data/full_repos/permissive/429737743/sources_1/new/IMM_EXT.v
1: b'%Error: data/full_repos/permissive/429737743/sources_1/new/IMM_EXT.v:21: Cannot find include file: cpu_constant.v\n`include "cpu_constant.v" \n         ^~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/429737743/sources_1/new,data/full_repos/permissive/429737743/cpu_constant.v\n             data/full_repos/permissive/429737743/sources_1/new,data/full_repos/permissive/429737743/cpu_constant.v.v\n             data/full_repos/permissive/429737743/sources_1/new,data/full_repos/permissive/429737743/cpu_constant.v.sv\n             cpu_constant.v\n             cpu_constant.v.v\n             cpu_constant.v.sv\n             obj_dir/cpu_constant.v\n             obj_dir/cpu_constant.v.v\n             obj_dir/cpu_constant.v.sv\n%Error: data/full_repos/permissive/429737743/sources_1/new/IMM_EXT.v:29: Define or directive not defined: \'`IType\'\n        `IType ,`SType, `LType : Imm = {{20{rImm[11 : 11]}}, rImm[11 : 0]};\n        ^~~~~~\n%Error: data/full_repos/permissive/429737743/sources_1/new/IMM_EXT.v:29: syntax error, unexpected \',\', expecting endcase\n        `IType ,`SType, `LType : Imm = {{20{rImm[11 : 11]}}, rImm[11 : 0]};\n               ^\n%Error: data/full_repos/permissive/429737743/sources_1/new/IMM_EXT.v:29: Define or directive not defined: \'`SType\'\n        `IType ,`SType, `LType : Imm = {{20{rImm[11 : 11]}}, rImm[11 : 0]};\n                ^~~~~~\n%Error: data/full_repos/permissive/429737743/sources_1/new/IMM_EXT.v:29: Define or directive not defined: \'`LType\'\n        `IType ,`SType, `LType : Imm = {{20{rImm[11 : 11]}}, rImm[11 : 0]};\n                        ^~~~~~\n%Error: data/full_repos/permissive/429737743/sources_1/new/IMM_EXT.v:30: Define or directive not defined: \'`BType\'\n        `BType : Imm = {{19{rImm[11 : 11]}}, rImm[11 : 0], 1\'b0};\n        ^~~~~~\n%Error: data/full_repos/permissive/429737743/sources_1/new/IMM_EXT.v:31: Define or directive not defined: \'`jalType\'\n        `jalType, `jalrType : Imm = {{11{rImm[19 : 19]}}, rImm, 1\'b0};\n        ^~~~~~~~\n%Error: data/full_repos/permissive/429737743/sources_1/new/IMM_EXT.v:31: Define or directive not defined: \'`jalrType\'\n        `jalType, `jalrType : Imm = {{11{rImm[19 : 19]}}, rImm, 1\'b0};\n                  ^~~~~~~~~\n%Error: data/full_repos/permissive/429737743/sources_1/new/IMM_EXT.v:32: Define or directive not defined: \'`luiType\'\n        `luiType, `auipcType : Imm = {{12{rImm[19 : 19]}}, rImm};\n        ^~~~~~~~\n%Error: data/full_repos/permissive/429737743/sources_1/new/IMM_EXT.v:32: Define or directive not defined: \'`auipcType\'\n        `luiType, `auipcType : Imm = {{12{rImm[19 : 19]}}, rImm};\n                  ^~~~~~~~~~\n%Error: Cannot continue\n'
module IMM_EXT(Imm, option, rImm);
output [31 : 0] Imm;reg [31 : 0] Imm;
input [6 : 0] option;
input [19 : 0] rImm;
always @(*) begin
    case (option)
        `IType ,`SType, `LType : Imm = {{20{rImm[11 : 11]}}, rImm[11 : 0]};
        `BType : Imm = {{19{rImm[11 : 11]}}, rImm[11 : 0], 1'b0};
        `jalType, `jalrType : Imm = {{11{rImm[19 : 19]}}, rImm, 1'b0};
        `luiType, `auipcType : Imm = {{12{rImm[19 : 19]}}, rImm};
        default  : Imm = -1;
    endcase
end
endmodule
module IMM_EXT(Imm, option, rImm);

output [31 : 0] Imm;reg [31 : 0] Imm;
input [6 : 0] option;
input [19 : 0] rImm;
always @(*) begin
    case (option)
        `IType ,`SType, `LType : Imm = {{20{rImm[11 : 11]}}, rImm[11 : 0]};
        `BType : Imm = {{19{rImm[11 : 11]}}, rImm[11 : 0], 1'b0};
        `jalType, `jalrType : Imm = {{11{rImm[19 : 19]}}, rImm, 1'b0};
        `luiType, `auipcType : Imm = {{12{rImm[19 : 19]}}, rImm};
        default  : Imm = -1;
    endcase
end
endmodule