About HDL simulink coder for StateFlow
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Tim McBrayer
il 21 Giu 2013
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?)
Risposte (1)
Kiran Kintali
il 1 Nov 2020
Attached model describes how to model either edge in Stateflow suitable for HDL code generation.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/399394/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/399394/image.jpeg)
HDL Verision
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/399399/image.jpeg)
Result Comparison
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/399404/image.jpeg)
0 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!