HDL-Coder: initialization of internal VHDL-signals
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I've got a question regarding the VHDL-code generation of the HDL-Coder. I have a Simulink Model from which I generate VHDL-Code. This VHDL-Code has lots of internal signals corresponding to the signal-lines of the simulink model. Unfortunately these signals are not initialized with any value in VHDL (i.e.
SIGNAL In_signed : signed(31 DOWNTO 0);
hence simulation with an hand-written Testbench is noch working out as all internal signals are marked with 'X' (Forcing Unknown).
Is there a way to automatically initialize the internal signals with zero / others initial values in the corresponding fixpoint representation like
SIGNAL In_signed : signed(31 DOWNTO 0) := (others => '0');
Thanks for your help
Dennis
0 个评论
回答(1 个)
Kiran Kintali
2023-7-16
All HDL Coder generated signals are fully initialized or driven with valid logic.
Lack of valid drivers to signals is considered an unexpected behavior.
Please reach out tehcnical support if you see unintialized or undriven signals from the HDL Coder generated code.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!