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

module top;
reg [1:0] q;
wire [4:0] icim[1:0];
integer j;
always @(q) begin
/*
* The following line had the muli problem, the other line has a
* different problem.
*/
icim[0] <= #1 0 + 8 * (0 >> q);
icim[1] <= #1 1 + 8 * (1 >> q);
end
initial begin
q = 2'd1;
#2;
if (icim[0] !== 0) begin
$display("FAILED");
$finish;
end
if (icim[1] !== 1) begin
$display("FAILED");
$finish;
end
$display("PASSED");
end
endmodule