1059 views|1 replies

3180

Posts

0

Resources
The OP
 

Problems with emulating VCD file system tasks [Copy link]

I saw an example on page 97 of Xia Yuwen's book. I tried to do it, but it didn't work.

Code:

`timescale 1 ns/ 1 ps
module LAMP_vlg_tst();
// constants
// general purpose registers
reg eachvec;
// test vector input registers
reg clk;
reg rst_n;
// wires
wire led;

// assign statements (if any)
LAMP i1 (
// port map - connection between master ports and signals/registers
.clk(clk),
.led(led),
.rst_n(rst_n)
);

module M;
initial
$display("Displaying in %m");
endmodule

module top;
M m1();
M m2();
M m3();
endmodule

initial
$dumpfile("myfile.dmp");
initial
$dumpvars;
initial
$dumpvars(1,top); //?
initial
$dumpvars(2,top.m1);
initial
$dumpvars(0,top.m1);
initial begin
$dumpon;
#100000 $dumpoff;
end
initial
$dumpall;

endmodule

Prompt error

Actually, there are two sentences with problems

$dumpvars(1,top);

There is another sentence

$dumpall;

Please give me some advice, thank you!

This post is from EE_FPGA Learning Park

Latest reply

Looking forward to the emergence of experts in the task of emulating VCD file system   Details Published on 2022-10-11 07:54
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 

6547

Posts

0

Resources
2
 

Looking forward to the emergence of experts in the task of emulating VCD file system

This post is from EE_FPGA Learning Park
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list