HDL Coder reset control
Afficher commentaires plus anciens
Hi, Simulink HDL Coder: is it possible to control the generation of the vhdl reset clause on a block by block basis?
In general, most flops in a datapath design dont require reset. we just reset the input of datapath, and wait long enough for the known input to propagate through the datapath and put the design in a well defined state. Anything with feedback requires a reset. By using reset only when required like this, we save fpga routing resource, and produce more efficient, higher performance designs.
However,HDL coder produces vhdl with a reset on every flop. (we use sychronous reset). Is there a way for us to prevent hdl coder adding resets on all flops? can we control it?
cheers andrew
Réponse acceptée
Plus de réponses (1)
xiaodong yu
le 20 Juin 2024
0 votes
Hi Androw
I want to find out all the delay module with "default reset". I use following command, but it is failed. do you have any suggestions?
find_system('modelname', 'BlockType', 'Delay','ResetType','default')
Apreciate your help.
Regards
XD
1 commentaire
Casey
le 21 Avr 2025
This is a combination of two commands, where the result of
find_system('modelname', 'BlockType', 'Delay')
is being used as the first argument to the hdlset_param() function
hdlset_param( find_system('modelname', 'BlockType', 'Delay'), 'ResetType', 'none' )
Catégories
En savoir plus sur AMD FPGA and SoC Devices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!