demo_tb.v
来自「一些自己编写的verilog代码」· Verilog 代码 · 共 21 行
V
21 行
// Testbench for "Demo" module
module Demo_TB;
reg astim; // stimulus for port "a"
wire bmon; // connection to monitor port "b"
// Instantiate the device-under-test
Demo DUT (
.a(astim),
.b(bmon)
);
// Apply input stimulus
initial begin
astim = 0;
#10 astim = 1;
#30 astim = 0;
#20 $finish;
end
endmodule
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?