Pulse Generator For HDL conversion!
Mostra commenti meno recenti
Hello;
I want to use simulink HDL coder workflow to generate vhdl code for a block that contains a MATLAB function triggered with a pulse generator (as a clock), but when i try to generate, it says that the pulse generator isn't supported for HDL ! so is there any solution or alternative to generate hdl for a triggered matlab function ??

Also if i try to generate the HDL code for the second sub-system (not including pulse generator but MATLAB function only), it gives me the following error:
The top design unit selected for HDL code generation may not be inside a triggered subsystem.
Is there any solution for this problem please?
3 Commenti
Bharath Venkataraman
il 6 Mag 2021
Take a look at this MATLAB Answers post to see if it answers your question. You can turn off the global reset and have your own synchronous reset sent in to a delay block - in this case, please use the State Control block set to Synchronous for best HDL behavior.
Ben Fayçal
il 6 Mag 2021
Modificato: Ben Fayçal
il 6 Mag 2021
Bharath Venkataraman
il 7 Mag 2021
Modificato: Bharath Venkataraman
il 7 Mag 2021
Yes, the requirements for a triggered subsystem are as you mention.
I do wonder if you need the trigger at all. Can you for example, try to model this without a trigger, and rather with enable/valid signals which run the appropriate logic? Here is an example of how to user valid in/out for model the system.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Code Generation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

