data/full_repos/permissive/143278/ivltests/pr1367855.v
1: b'%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/pr1367855.v:9: Unsupported: Ignoring delay on this delayed statement.\n   S=3; #100;\n        ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/pr1367855.v:10: Unsupported: Ignoring delay on this delayed statement.\n   S=2; #100;\n        ^\n%Warning-WIDTH: data/full_repos/permissive/143278/ivltests/pr1367855.v:22: Operator ADD expects 32 bits on the LHS, but LHS\'s SEL generates 1 bits.\n                                                                         : ... In instance test.m\n   offset = SEL[3] + SEL[0]*128 + SEL[2:1]*2;\n                   ^\n%Warning-WIDTH: data/full_repos/permissive/143278/ivltests/pr1367855.v:25: Operator CASE expects 32 bits on the Case expression, but Case expression\'s VARREF \'SEL\' generates 4 bits.\n                                                                         : ... In instance test.m\n   case (SEL)\n   ^~~~\n%Error: Exiting due to 4 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module mux(SEL);
input [3:0] SEL;
wire [3:0] SEL;
integer offset;

always @(SEL) begin
   offset = SEL[3] + SEL[0]*128 + SEL[2:1]*2;
   $display("MUX: SEL=%d offset=%b", SEL, offset);

   case (SEL)

     'bxxxx: begin
     end

     2: if (offset !== 'b00000000000000000000000000000010) begin
	$display("FAILED");
	$finish;
     end

     3: if (offset !== 'b00000000000000000000000010000010) begin
	$display("FAILED");
	$finish;
     end

     default: begin
	$display("FAILED -- SEL=%b", SEL);
	$finish;
     end

   endcase
end
endmodule
module mux(SEL);

input [3:0] SEL;
wire [3:0] SEL;
integer offset;

always @(SEL) begin
   offset = SEL[3] + SEL[0]*128 + SEL[2:1]*2;
   $display("MUX: SEL=%d offset=%b", SEL, offset);

   case (SEL)

     'bxxxx: begin
     end

     2: if (offset !== 'b00000000000000000000000000000010) begin
	$display("FAILED");
	$finish;
     end

     3: if (offset !== 'b00000000000000000000000010000010) begin
	$display("FAILED");
	$finish;
     end

     default: begin
	$display("FAILED -- SEL=%b", SEL);
	$finish;
     end

   endcase
end
endmodule