How to show the current simulation time

B

boku0712@gmail.com

Guest
Dear all,
How to use "now" to display the current simulation time? Thank
you~~~

Best Regards,
 
boku0712@gmail.com wrote:
Dear all,
How to use "now" to display the current simulation time? Thank
Easiest way is to use the report command.
If I say:

report " Hello World!" ;

in my testbench,
I will get this in the transcript:

# ** Note: Hello World!
# Time: 105 ns Iteration: 1 Instance: /test_mydesign

-- Mike Treseler
 
How about something like

Report time'image(now);

Andy


boku0712@gmail.com wrote:
Dear all,
How to use "now" to display the current simulation time? Thank
you~~~

Best Regards,
 
boku0712@gmail.com wrote:

Dear all,
How to use "now" to display the current simulation time? Thank
you~~~
USE std.textio.ALL;
....
VARIABLE l: line;
....
write(l, string'("The current simulation time is: "));
write(l, now);
writeline(output, l);

This will write to stdout: the simulator window.

--
Paul.
 

Welcome to EDABoard.com

Sponsor

Back
Top