is there any function in VHDL which is used to get current simulation time at which a process is running? May be same like the function in systemC sc_time_stamp()
now is a purely simulation only construct, which tells you the simulation time to whatever resolution the simulator is set to.
Yes there is. Use the keyword now
.
You can print the simulation time using VHDL Attributes:
report "current time = " & time'image(now);
You can also store the current time to a variable:
variable v_TIME : time := 0 ns;
v_TIME := now;
-- STUFF HAPPENS
v_TIME := now - V_TIME; --used to find delta time
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With