Files
iverilog/ivtest/ivltests/pr1787423c.v
T
Stephen Williams cea237b407 Add ivtest to the iverilog source tree
By adding ivtest to the iverilog source tree, it is easier to keep
the regression test synchronized with the source that is being tested.
This should be especially helpful for PRs that add a new feature, and
have a matching ivtest PR with the regression test for that feature.
2022-01-15 10:18:50 -08:00

32 lines
491 B
Verilog

module top;
wire net1, net2;
reg [1:0] data;
buf bus_drv[1:0] (net1, net2, data);
initial begin
data = 0;
#1 $monitor(net1,,net2,,data);
#1 if (net1 !== 1'b0) begin
$display("FAILED");
$finish;
end
data = 3;
#1 if (net1 !== 1'b1) begin
$display("FAILED");
$finish;
end
data = 1;
#1 if (net1 !== 1'bx) begin
$display("FAILED");
$finish;
end
$display("PASSED");
end // initial begin
endmodule