在vcs中使用debussy保存仿真波形

需要设置NOVAS_HOME环境变量,并且在仿真时加-fsdb参数

#############################################################
#make.csh
#############################################################
#!/bin/tcsh -f
#
#

unsetenv PATH
unsetenv LD_LIBRARY_PATH
set path = (. /bin /usr/bin /tools/lsc/bin)

setenv NOVAS_HOME /disks/depot3/novas/verdi200907

vcs -sverilog -R -fsdb test.sv

#############################################################
#test.sv
#############################################################
module test();
reg a;

initial begin
a = 0;
#1 a = 1;
#1 a = 0;
#1 $finish();
end

initial begin
$fsdbDumpfile(“./wave.fsdb”);
$fsdbDumpvars(0, test);
$fsdbDumpon();
end

endmodule

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s