Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - How to show the current simulation time

 
Thread Tools Search this Thread
Old 08-31-2006, 03:19 PM   #1
Default How to show the current simulation time


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

Best Regards,



boku0712@gmail.com
  Reply With Quote
Old 08-31-2006, 06:06 PM   #2
Mike Treseler
 
Posts: n/a
Default Re: How to show the current simulation time
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


Mike Treseler
  Reply With Quote
Old 08-31-2006, 09:54 PM   #3
Andy
 
Posts: n/a
Default Re: How to show the current simulation time
How about something like

Report time'image(now);

Andy


wrote:
> Dear all,
> How to use "now" to display the current simulation time? Thank
> you~~~
>
> Best Regards,




Andy
  Reply With Quote
Old 09-01-2006, 08:47 PM   #4
Paul Uiterlinden
 
Posts: n/a
Default Re: How to show the current simulation time
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.



Paul Uiterlinden
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
simulation Tom MCITP 0 04-05-2007 01:40 AM
DVD Review - The Tomorrow Show: Tom Snyder's Electric Kool-Aid TalkShow John Metzger DVD Video 0 10-24-2006 09:53 PM
looking for anime breadguy DVD Video 1 08-27-2006 06:59 PM
Nero Show Time not working Terry Pinnell DVD Video 7 01-10-2006 01:06 PM
Re: Panasonic & Pioneer DVD players - time remaining display and black level settings? SloPoke DVD Video 0 08-18-2003 02:40 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46