data/full_repos/permissive/445216371/decoder.v
1: b'%Error: data/full_repos/permissive/445216371/decoder.v:10: Cannot find include file: parameters.vh\n    `include "parameters.vh" \n             ^~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/445216371,data/full_repos/permissive/445216371/parameters.vh\n             data/full_repos/permissive/445216371,data/full_repos/permissive/445216371/parameters.vh.v\n             data/full_repos/permissive/445216371,data/full_repos/permissive/445216371/parameters.vh.sv\n             parameters.vh\n             parameters.vh.v\n             parameters.vh.sv\n             obj_dir/parameters.vh\n             obj_dir/parameters.vh.v\n             obj_dir/parameters.vh.sv\n%Error: Exiting due to 1 error(s)\n'
module decoder (
    output reg [31:0] Imm,
    input [2:0] InstFormat,
    input [31:0] inst,
    input sign_ext);

    `include "parameters.vh"

    always @(*) begin
        case (InstFormat)
            IFormatR:  Imm <= 0;
            IFormatI:  Imm <= {(sign_ext&&inst[31])?20'hfffff:20'b0,inst[31:20]};
            IFormatS:  Imm <= {(sign_ext&&inst[31])?20'hfffff:20'b0,inst[31:25],inst[11:7]};
            IFormatSB: Imm <= {(sign_ext&&inst[31])?20'hfffff:20'b0,inst[31],inst[7],inst[30:25],inst[11:8],1'b0};
            IFormatU:  Imm <= {inst[31:12],{12'b0}};
            IFormatUJ: Imm <= {inst[31]?11'hFFF:11'b0,inst[31],inst[19:12],inst[20],inst[30:21],1'b0};
            default:   Imm <= 0;
        endcase 
    end 


endmodule
module decoder (
    output reg [31:0] Imm,
    input [2:0] InstFormat,
    input [31:0] inst,
    input sign_ext);


    `include "parameters.vh"

    always @(*) begin
        case (InstFormat)
            IFormatR:  Imm <= 0;
            IFormatI:  Imm <= {(sign_ext&&inst[31])?20'hfffff:20'b0,inst[31:20]};
            IFormatS:  Imm <= {(sign_ext&&inst[31])?20'hfffff:20'b0,inst[31:25],inst[11:7]};
            IFormatSB: Imm <= {(sign_ext&&inst[31])?20'hfffff:20'b0,inst[31],inst[7],inst[30:25],inst[11:8],1'b0};
            IFormatU:  Imm <= {inst[31:12],{12'b0}};
            IFormatUJ: Imm <= {inst[31]?11'hFFF:11'b0,inst[31],inst[19:12],inst[20],inst[30:21],1'b0};
            default:   Imm <= 0;
        endcase 
    end 


endmodule