Files
iverilog/ivtest/ivltests/resolv1.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

30 lines
400 B
Verilog

module test;
wire w;
wire q;
reg g;
pullup(w);
bufif1(w, 1'b1, g);
pmos(q, w, 1'b0);
bufif0(q, 1'b0, g);
initial
begin
g = 1;
#10
$display(q, w); // should print "11"
#20
g = 0; // w changes from St1 to Pu1
#30
$display(q, w); // should print "01"
if (q == 1'b0)
$display("PASSED");
else
$display("FAILED");
#40
$finish;
end
endmodule