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

21 lines
429 B
Verilog

module top;
reg pass = 1'b1;
reg [7:0] result;
initial begin
result = {{0{1'b1}}, 2'b11};
if (result != 8'h03) begin
$display("FAILED: replication inside of concatenation");
pass = 1'b0;
end
result = {2{{0{1'b1}}, 2'b11}};
if (result != 8'h0f) begin
$display("FAILED: replication inside of replication");
pass = 1'b0;
end
if (pass) $display("PASSED");
end
endmodule