combi_ckt_tb.v
来自「一些自己编写的verilog代码」· Verilog 代码 · 共 32 行
V
32 行
// Testbench for "CombinationalCircuit" module
//
// Illustrates efficient way to exhaustively test
// a combinational circuit
module CombinationalCircuit_TB;
reg a,b,d,c;
wire y;
// Instantiate the device-under-test
CombinationalCircuit DUT (
.a(a),
.b(b),
.c(c),
.d(d),
.y(y)
);
// Declare loop index variable
integer k;
// Apply input stimulus
initial begin
{a,b,c,d} = 0;
for (k=0; k<=16; k=k+1)
#5 {a,b,c,d} = k;
#20 $finish;
end
endmodule
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?