About HDL simulink coder for StateFlow

조회 수: 1 (최근 30일)
Pham Van Dung
Pham Van Dung 2012년 11월 25일
답변: Kiran Kintali 2020년 11월 1일
Dear friends, I have a Stateflow subsystem that i have used a event.The event is a trigger input with frequency = 400ns( I used Pulse Generator block in simulink ). I try to convert this subsystem to Verilog code by HDL simulink coder and it's have a error:
Error: Cannot support triggered sample time in 'Stateflow/Sub/400n/'
How can I solve this problem, Can you give me some ideal to convert my code.
Need for helping! Thanks alot!
Pham Van Dung
  댓글 수: 2
Ali Alsaqqa
Ali Alsaqqa 2013년 6월 21일
I have the same problem.
Tim McBrayer
Tim McBrayer 2013년 6월 21일
What kind of block has the error reported for it? Is the reported block from within a Stateflow chart? Is the Stateflow chart inside a triggered subsystem? Have you experimented with using an input event to the Stateflow chart instead of a triggered subsystem (if the latter is what you are doing?)

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

답변 (1개)

Kiran Kintali
Kiran Kintali 2020년 11월 1일
Attached model describes how to model either edge in Stateflow suitable for HDL code generation.
HDL Verision
Result Comparison

카테고리

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