Create xor_tb.v
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
'include "predefined/xor_gate.v"
|
||||
|
||||
module nor_tb();
|
||||
reg ta, tb;
|
||||
wire ty;
|
||||
|
||||
xor_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
|
||||
Reference in New Issue
Block a user