data/full_repos/permissive/154352170/IM.v
[Errno 2] No such file or directory: 'preprocess.output'
1: b'%Warning-WIDTH: data/full_repos/permissive/154352170/IM.v:34: Operator EQ expects 4 bits on the RHS, but RHS\'s CONST \'2\'h3\' generates 2 bits.\n                                                            : ... In instance IM\n  assign IM_Out = (PC_Out[15:12] == 2\'b0011) ? ROM[Addr] : 32\'h00000000;\n                                 ^~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Error: Exiting due to 1 warning(s)\n'
module IM(
    input [31:0] PC_Out,
    output [31:0] IM_Out
    );
	 
	 wire [9:0] Addr;
	 reg [31:0] ROM [0:1023];
	 
	 initial begin
	    $readmemh("code.txt", ROM); 
	 end
	 
	 assign Addr = PC_Out[11:2];
	 assign IM_Out = (PC_Out[15:12] == 2'b0011) ? ROM[Addr] : 32'h00000000;

endmodule
module IM(
    input [31:0] PC_Out,
    output [31:0] IM_Out
    );

	 
	 wire [9:0] Addr;
	 reg [31:0] ROM [0:1023];
	 
	 initial begin
	    $readmemh("code.txt", ROM); 
	 end
	 
	 assign Addr = PC_Out[11:2];
	 assign IM_Out = (PC_Out[15:12] == 2'b0011) ? ROM[Addr] : 32'h00000000;

endmodule