I have the following code in a testbench
while not end_sim loop
if seconds_tp'event then
report integer'image(TO_INTEGER(unsigned(seconds_tp)));
end if;
wait for 100 ns;
end loop;
wait;
end_sim is false until the end of the simulation.
seconds_tp is a std_logic_vector that starts at 0 and increments by 1 every simulated second.
The idea is to display the value of simulated seconds elapsed while the simulation is running.
When the simulation is running no value for seconds_tp is displayed.
However, seconds_tp does display correctly on the waveform viewer when the simulation is stopped.
What am I missing here?
while not end_sim loop
if seconds_tp'event then
report integer'image(TO_INTEGER(unsigned(seconds_tp)));
end if;
wait for 100 ns;
end loop;
wait;
end_sim is false until the end of the simulation.
seconds_tp is a std_logic_vector that starts at 0 and increments by 1 every simulated second.
The idea is to display the value of simulated seconds elapsed while the simulation is running.
When the simulation is running no value for seconds_tp is displayed.
However, seconds_tp does display correctly on the waveform viewer when the simulation is stopped.
What am I missing here?