Testbench for geting currect time in ModelSim

Discussion in 'VHDL' started by Aiken, Sep 17, 2009.

  1. Aiken

    Aiken Guest

    If I want to simulating a design and during the simulation, I will
    print something on the screen, I want print the simulation time .
    what function should I call?
    Aiken, Sep 17, 2009
    #1
    1. Advertising

  2. Aiken

    KJ Guest

    On Sep 17, 5:30 pm, Aiken <> wrote:
    > If I want to simulating a design and during the simulation, I will
    > print something on the screen, I want print the simulation time .
    > what function should I call?


    report "Current sim time=" & time'image(now);

    'now' is the current simulation time

    time'image() is a function that returns a string given an input of
    type 'time'

    KJ
    KJ, Sep 18, 2009
    #2
    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. Niv

    ModelSim & tcl testbench

    Niv, Oct 7, 2003, in forum: VHDL
    Replies:
    2
    Views:
    7,508
    Mike Treseler
    Oct 7, 2003
  2. Martin Maurer
    Replies:
    2
    Views:
    2,034
    Charles Bailey
    May 21, 2004
  3. Replies:
    10
    Views:
    2,586
    Simon Peacock
    Oct 1, 2005
  4. Guido
    Replies:
    3
    Views:
    3,204
    Mike Treseler
    Jan 30, 2006
  5. Andrew FPGA
    Replies:
    7
    Views:
    1,119
    stephenmm
    Nov 1, 2008
Loading...

Share This Page