필터 지우기
필터 지우기

How can I add a finish signal for HDL generation?

조회 수: 1 (최근 30일)
King
King 2015년 4월 16일
댓글: Bharath Venkataraman 2015년 6월 11일
I created a algrithm using simulink and used HDL Coder to have my VHDL code generated. But I found that there's no flag indicate that the ouput result is already at the output port, I wonder if there's any way to solve this question? Any help would be appreciated. Thanks.

채택된 답변

Bharath Venkataraman
Bharath Venkataraman 2015년 4월 16일
If you are referring to the latency of the system due to registers in the path between input and output, a valid flag is typically modeled as an output of the design to indicate that data is ready.
This valid flag in the Simulink simulation should go high when the data is ready on the output. Once you verify this working in your Simulink design, you can generate HDL code for it and you will find the same valid output available in HDL as well.
  댓글 수: 2
King
King 2015년 4월 16일
편집: King 2015년 4월 16일
Excuse me, but may I ask which block in simulink shall be used to implement such "valid flag" feature? Thank you for your support!
Bharath Venkataraman
Bharath Venkataraman 2015년 6월 11일
That will depend on your design. You can use counters, delays, logical comparison operators to figure out when the valid flag output should go high.

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by