HDL Coder reset control
Show older comments
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
Accepted Answer
More Answers (1)
xiaodong yu
on 20 Jun 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 Comment
Casey
on 21 Apr 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' )
Categories
Find more on AMD FPGA and SoC Devices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!