Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to dump out a vcs file in Verilog simulation?

Status
Not open for further replies.

ne.me.sis

Newbie level 6
Joined
Feb 25, 2006
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,428
verilog task function

How to dump out a vcd file at certain time interval in simulation? Anything wrong with I have done in testbench below? It just don't work, and dump out all the time.

In testbench:

initial
$dumpfile("top.vcd");

initial
$dumpvar("0,top");

initial
begin
#1000 $dumpon;
#10000 $dumpoff;
end

initial
$dumpall;
 

Re: Verilog Task Function

Checkout this!

Code:
initial begin
      $dumpfile("top.vcd");
      #100 $dumpvars(0,top);
      #100 $dumpoff;
      #100 $dumpall;
      $dumpon;
   end
 

Re: Verilog Task Function

initial begin
$dumpfile("top.vcd");
#100 $dumpvars(0,top); // Here Replace #100 by whatever time you need.
end
 

Re: Verilog Task Function

wait for simulation time and put $stop after that.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top