How do you generate a registered output from Stateflow?
Ältere Kommentare anzeigen
If I have an output from a Stateflow diagram; in the generated HDL code the output is assigned from the next state decision logic (combinatorial) _next signal and not from the clocked process, _reg signal. As best practice is to have all outputs from a module being registered a unit delay is added to the output external to the stateflow. However when the generated code is synthesised this register is identified as an equivalent register to the equivalent _reg signal and removed, generating a warning.
How do I generate an output from stateflow that is sourced from the _reg signal as opposed to the the _next signal so that I do not need to put unit delays external to the stateflow diagram?
Antworten (2)
Michael Felger
am 15 Okt. 2019
0 Stimmen
I have exactly the same question!
1 Kommentar
James Price
am 29 Okt. 2019
Michael Felger
am 26 Mai 2023
0 Stimmen
Update: starting with R2022b, the ClockDrivenOutput parameter for stateflow is available for Moore charts.
With this, registered output is generated.
Kategorien
Mehr zu Stateflow finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!