hdl coder synchronism problem

2 views (last 30 days)
Marco
Marco on 30 Apr 2014
Commented: Marco on 2 May 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

Accepted Answer

Tim McBrayer
Tim McBrayer on 1 May 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 Comment
Marco
Marco on 2 May 2014
Thanks Tim, your suggestion solved my issue.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!