mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-29 01:03:29 +02:00
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.
30 lines
527 B
Verilog
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
|