HDL-Coder: initialization of internal VHDL-signals
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Kiran Kintali
il 16 Lug 2023
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 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!