Files
iverilog/ivtest/ivltests/br965.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
356 B
Verilog

module top;
wire [2:0] value = 2;
shim shim(
.bit0(value[0]),
.bit1(value[1]),
.bit2(value[2])
);
endmodule
module shim(
inout wire bit0,
inout wire bit1,
inout wire bit2
);
wire [2:0] value = {bit2, bit1, bit0};
initial begin
#1 $display(value);
if (value === 2)
$display("PASSED");
else
$display("FAILED");
end
endmodule