how can i cnvert a simulink model to hdl code??

조회 수: 1 (최근 30일)
Ruby
Ruby 2014년 5월 13일
댓글: Ruby 2014년 5월 22일
sir, i created a simulink model for an all digital pll... i have to convert this model to hdl code.. option is there in simulink... but ican't do this?? error showing that trigger ports are not supported... what i have to do?
  댓글 수: 1
Walter Roberson
Walter Roberson 2014년 5월 13일
Please show the complete message and indicate your MATLAB version. Trigger ports do appear to be supported, at least in current versions.

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

채택된 답변

Tim McBrayer
Tim McBrayer 2014년 5월 13일
Trigger ports are supported in HDL Coder with some limitations, all of which are in the documentation. To access this documentation from MATLAB, run the following command.
>> web(fullfile(docroot, 'hdlcoder/ref/triggeredsubsystem.html'))
For your convenience, here is the bulk of the guidelines to successfully generate code for a triggered subsystem in HDL Coder. This is taken directly from the documentation.
  • The DUT (that is, the top-level subsystem for whichcode is generated) must not be a triggered subsystem.
  • The coder does not support subsystems that are both triggered and enabledfor HDL code generation.
  • The trigger signal must be a scalar.
  • The data type of the trigger signal must be either boolean or ufix1.
  • Outputs of the triggered subsystem must have an initialvalue of 0.
  • All inputs and outputsof the triggered subsystem (including the trigger signal) must runat the same rate.
  • The Show output port parameter of the Trigger block must be set to Off.
  댓글 수: 1
Ruby
Ruby 2014년 5월 22일
sir...this is my simulink model ...i have to convert this into vhdl code...what i have to do?

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

추가 답변 (0개)

카테고리

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