Generating a loop in VHDL using Simulink HDL Coder

조회 수: 8 (최근 30일)
BabuLal
BabuLal 2011년 4월 6일
댓글: Tim McBrayer 2014년 9월 24일
How to write in Simulink HDL Coder to get for generate loop in VHDL?

답변 (2개)

Tim McBrayer
Tim McBrayer 2011년 4월 11일
While there are certain constructs in Simulink where Simulink HDL Coder will generate a for-generate loop in VHDL, it is best not to be overly concerned about the style of code generation. There is no recipe for creating a for-generate loop.

Andrew
Andrew 2014년 9월 24일
"There is a "For Iterator Subsystem" block to do for-loop in Simulink. But your task doesn't sound like it. You might want to consider the "Repeating Sequence" block from Simulink>Source library." [ loop-in-simulink ]
I don't think this solution will work for VHDL, but I may try it soon. Will this feature be added in newer simulink/HDL coder releases? I need to instantiate a block 127 times so I am also interested in this kind of feature.
  댓글 수: 1
Tim McBrayer
Tim McBrayer 2014년 9월 24일
Neither of the mentioned Simulink constructs are currently supported by HDL Coder. They may exist in the testbench portion of the design, but cannot have HDL Code generated for them.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Code Generation에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by