Time stamp in VHDL

fpga, vhdl

Solution

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

Problem

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()`

Original source