data/full_repos/permissive/463395574/forwarding.v
1: b'%Error: data/full_repos/permissive/463395574/forwarding.v:4: Cannot find include file: defines.v\n`include "defines.v" \n         ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/463395574,data/full_repos/permissive/463395574/defines.v\n             data/full_repos/permissive/463395574,data/full_repos/permissive/463395574/defines.v.v\n             data/full_repos/permissive/463395574,data/full_repos/permissive/463395574/defines.v.sv\n             defines.v\n             defines.v.v\n             defines.v.sv\n             obj_dir/defines.v\n             obj_dir/defines.v.v\n             obj_dir/defines.v.sv\n%Error: data/full_repos/permissive/463395574/forwarding.v:8: Define or directive not defined: \'`REG_IDX_WIDTH\'\n    input [`REG_IDX_WIDTH-1:0] readAddr1_ID, readAddr2_ID, readAddr1_EX, readAddr2_EX, readAddr2_MEM,\n           ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/463395574/forwarding.v:9: Define or directive not defined: \'`REG_IDX_WIDTH\'\n    input [`REG_IDX_WIDTH-1:0] writeAddr_MEM, writeAddr_WB,\n           ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/463395574/forwarding.v:46: Define or directive not defined: \'`WORD_LEN\'\n    input [`WORD_LEN-1:0] data_ID,   \n           ^~~~~~~~~\n%Error: data/full_repos/permissive/463395574/forwarding.v:47: Define or directive not defined: \'`WORD_LEN\'\n    input [`WORD_LEN-1:0] data_MEM,  \n           ^~~~~~~~~\n%Error: data/full_repos/permissive/463395574/forwarding.v:48: Define or directive not defined: \'`WORD_LEN\'\n    input [`WORD_LEN-1:0] data_WB,   \n           ^~~~~~~~~\n%Error: data/full_repos/permissive/463395574/forwarding.v:51: Define or directive not defined: \'`WORD_LEN\'\n    output reg [`WORD_LEN-1:0] out\n                ^~~~~~~~~\n%Error: data/full_repos/permissive/463395574/forwarding.v:64: Define or directive not defined: \'`WORD_LEN\'\n    input [`WORD_LEN-1:0] data_EX,   \n           ^~~~~~~~~\n%Error: data/full_repos/permissive/463395574/forwarding.v:65: Define or directive not defined: \'`WORD_LEN\'\n    input [`WORD_LEN-1:0] data_WB,   \n           ^~~~~~~~~\n%Error: data/full_repos/permissive/463395574/forwarding.v:68: Define or directive not defined: \'`WORD_LEN\'\n    output [`WORD_LEN-1:0] out\n            ^~~~~~~~~\n%Error: data/full_repos/permissive/463395574/forwarding.v:75: Define or directive not defined: \'`WORD_LEN\'\n    input [`WORD_LEN-1:0] data_ID,   \n           ^~~~~~~~~\n%Error: data/full_repos/permissive/463395574/forwarding.v:76: Define or directive not defined: \'`WORD_LEN\'\n    input [`WORD_LEN-1:0] data_MEM,  \n           ^~~~~~~~~\n%Error: data/full_repos/permissive/463395574/forwarding.v:79: Define or directive not defined: \'`WORD_LEN\'\n    output [`WORD_LEN-1:0] out\n            ^~~~~~~~~\n%Error: Exiting due to 13 error(s)\n'
module ALUForwardMux (
    input [`WORD_LEN-1:0] data_ID,
    input [`WORD_LEN-1:0] data_MEM,
    input [`WORD_LEN-1:0] data_WB,
    input [1:0] forwardSrc,

    output reg [`WORD_LEN-1:0] out
);
    always @(*) begin
        case (forwardSrc)
            2'b00: out <= data_ID;
            2'b01: out <= data_MEM;
            2'b10: out <= data_WB;
        endcase
    end
endmodule
module ALUForwardMux (
    input [`WORD_LEN-1:0] data_ID,
    input [`WORD_LEN-1:0] data_MEM,
    input [`WORD_LEN-1:0] data_WB,
    input [1:0] forwardSrc,

    output reg [`WORD_LEN-1:0] out
);

    always @(*) begin
        case (forwardSrc)
            2'b00: out <= data_ID;
            2'b01: out <= data_MEM;
            2'b10: out <= data_WB;
        endcase
    end
endmodule