Archived
1
0

testbench dump

This commit is contained in:
Erick
2022-03-01 23:35:40 +01:00
parent 0646b73f9a
commit 001b7886d6
10 changed files with 77 additions and 5 deletions
+18
View File
@@ -0,0 +1,18 @@
include "predefined/xnor_gate.v"
module xnor_tb();
reg ta, tb;
wire ty;
xnor_gate dut(y, ta, tb);
initial begin
ta=0, tb=0;
$monitor("IN: %b, %b ",ta, tb, "OUT: ",y);
ta=0, tb=1;
$monitor("IN: %b, %b ",ta, tb, "OUT: ",y);
ta=1, tb=0;
$monitor("IN: %b, %b ",ta, tb, "OUT: ",y);
ta=1, tb=1;
end
endmodule