Home > Community > Forums > Functional Verification > SV Help ! how can dump the wave from class ?

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 SV Help ! how can dump the wave from class ? 

Last post Thu, Aug 22 2013 6:47 PM by phoenixson. 2 replies.
Started by phoenixson 18 Aug 2013 08:26 PM. Topic has 2 replies and 458 views
Page 1 of 1 (3 items)
Sort Posts:
  • Sun, Aug 18 2013 8:26 PM

    • phoenixson
    • Not Ranked
    • Joined on Wed, Aug 13 2008
    • beijing, Beijing
    • Posts 10
    • Points 110
    SV Help ! how can dump the wave from class ? Reply

    Hi, all

     Now I define a class ,and initiate it to a new class varible, I want to dump  some signals from it , how can I get that ? 

     

    Just do it.
    • Post Points: 20
  • Thu, Aug 22 2013 2:39 PM

    • Doug Koslow
    • Top 500 Contributor
    • Joined on Mon, Aug 25 2008
    • Chelmsford, MA
    • Posts 19
    • Points 260
    Re: SV Help ! how can dump the wave from class ? Reply

     
    Hi,

    You simply need to probe the class variable in order to view its fields in the
    SimVision Waveform window.

    For example, using the following testcase:

    //test.sv
    module top;

      class c1;
        int i;
      endclass

      c1 o1 = new;

      initial
      begin
        #50 o1.i++;
        #50 o1.i++;
        #50 o1.i++;
        #50 o1.i++;
      end

    endmodule


    Invoke irun with this command:

    irun test.sv -access +rwc -input input.tcl

    ...with an "input.tcl" file with the following contents:

    database -open waves -into waves.shm -default
    probe -create top.o1 -depth all -database waves
    run
    exit


    When simulation completes, you can invoke SimVision ("simvision waves.shm")
    and send the class variable "top.o1" to the Waveform window.  Expand "o1" in
    the Waveform window and you can see the value of "o1.i" over time.

    Good luck.

    - Doug

    • Post Points: 20
  • Thu, Aug 22 2013 6:47 PM

    • phoenixson
    • Not Ranked
    • Joined on Wed, Aug 13 2008
    • beijing, Beijing
    • Posts 10
    • Points 110
    Re: SV Help ! how can dump the wave from class ? Reply
    okay, I got it ,thanks a lot for your patient reply.
    Just do it.
    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by phoenixson at 18 Aug 2013 08:26 PM. Topic has 2 replies.