Archived
1
0
This repository has been archived on 2026-02-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
iceberg/testbench/and16_tb.v
T
2022-03-07 02:16:45 +01:00

18 lines
657 B
Verilog

'include "predefined/and16.v"
module and16_tb();
reg [15:0]ta;
reg [15:0]tb;
wire [15:0]y;
and16 dut(y, ta, tb);
initial begin
ta = 15'b000000000000000; tb = 15'b000000000000000;
$monitor("IN: %b, %b ", ta, tb, "OUT: ", y);
#5 ta = 15'b011010010110010; tb = 15'b000000000000000;
$monitor("IN: %b, %b ", ta, tb, "OUT: ", y);
#5 ta = 15'b000000000000000; tb = 15'b100010110101110;
$monitor("IN: %b, %b ", ta, tb, "OUT: ", y);
#5 ta = 15'b111111111111111; tb = 15'b111111111111111;
$monitor("IN: %b, %b ", ta, tb, "OUT: ", y);
end
endmodule