hdl coder synchronism problem

9 visualizzazioni (ultimi 30 giorni)
Marco
Marco il 30 Apr 2014
Commentato: Marco il 2 Mag 2014
Hi all, I have a problem related to synchronism of the paths of the simulink model shown in the attached figure after the simulink-vhdl conversion. As you can see from figure there is a path without any delay so after vhdl conversion this path is translated in a pure combinatorial logic while the paths with the delay are translated in a process with clock and reset in the sensitivity list. This has 2 main effects: - the overall output is asynchronous so it changes not only during the positive edge of the clock (as I want) - during the reset phase the output doesn't reset since no process with a reset is present in the path without delay. I tried to insert a zero-order hold at the input to synchronise the paths but this trick doesn't work. Any idea about my issue?? Thanks

Risposta accettata

Tim McBrayer
Tim McBrayer il 1 Mag 2014
Can you register your inputs our outputs (or both)? HDL Coder supports this via its subsystem pipelining capability; this can be implemented without modifying the Simulink diagram or changing the Simulink simulation behavior. You can access the HDL-specific settings by right-clicking on the subsystem and choosing HDL Code>HDL Block Properties.
An alternative solution, of course, is to add any necessary additional delays directly to the Simulink model.
  1 Commento
Marco
Marco il 2 Mag 2014
Thanks Tim, your suggestion solved my issue.

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by