How to show the current simulation time

Discussion in 'VHDL' started by boku0712@gmail.com, Aug 31, 2006.

  1. Guest

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

    Best Regards,
     
    , Aug 31, 2006
    #1
    1. Advertising

  2. 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, Aug 31, 2006
    #2
    1. Advertising

  3. Andy Guest

    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, Aug 31, 2006
    #3
  4. 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, Sep 1, 2006
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Manu
    Replies:
    1
    Views:
    6,188
    Natty Gur
    Jul 20, 2003
  2. flamesrock
    Replies:
    8
    Views:
    548
    Hendrik van Rooyen
    Nov 24, 2006
  3. kevs
    Replies:
    3
    Views:
    1,887
  4. jasperng
    Replies:
    0
    Views:
    1,350
    jasperng
    Nov 27, 2008
  5. Replies:
    1
    Views:
    326
    Thomas 'PointedEars' Lahn
    Mar 19, 2008
Loading...

Share This Page