data/full_repos/permissive/527176783/Pipeline/Forward.v
1: b'%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:3: Cannot find include file: define.v\n`include "define.v" \n         ^~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/527176783/Pipeline,data/full_repos/permissive/527176783/define.v\n             data/full_repos/permissive/527176783/Pipeline,data/full_repos/permissive/527176783/define.v.v\n             data/full_repos/permissive/527176783/Pipeline,data/full_repos/permissive/527176783/define.v.sv\n             define.v\n             define.v.v\n             define.v.sv\n             obj_dir/define.v\n             obj_dir/define.v.v\n             obj_dir/define.v.sv\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:19: Define or directive not defined: \'`Not_Forward\'\n        ForwardAE = `Not_Forward;\n                    ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:19: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n        ForwardAE = `Not_Forward;\n                                ^\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:20: Define or directive not defined: \'`Not_Forward\'\n        ForwardBE = `Not_Forward;\n                    ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:20: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n        ForwardBE = `Not_Forward;\n                                ^\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:21: Define or directive not defined: \'`Not_Forward\'\n        ForwardAD = `Not_Forward;\n                    ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:21: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n        ForwardAD = `Not_Forward;\n                                ^\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:22: Define or directive not defined: \'`Not_Forward\'\n        ForwardBD = `Not_Forward;\n                    ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:22: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n        ForwardBD = `Not_Forward;\n                                ^\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:27: Define or directive not defined: \'`Forward_MEM\'\n            ForwardAE = `Forward_MEM;\n                        ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:27: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n            ForwardAE = `Forward_MEM;\n                                    ^\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:29: Define or directive not defined: \'`Forward_WB\'\n            ForwardAE = `Forward_WB;\n                        ^~~~~~~~~~~\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:29: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n            ForwardAE = `Forward_WB;\n                                   ^\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:30: Define or directive not defined: \'`Not_Forward\'\n        else ForwardAE = `Not_Forward;\n                         ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:30: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n        else ForwardAE = `Not_Forward;\n                                     ^\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:33: Define or directive not defined: \'`Forward_MEM\'\n            ForwardBE = `Forward_MEM;\n                        ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:33: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n            ForwardBE = `Forward_MEM;\n                                    ^\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:35: Define or directive not defined: \'`Forward_WB\'\n            ForwardBE = `Forward_WB;\n                        ^~~~~~~~~~~\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:35: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n            ForwardBE = `Forward_WB;\n                                   ^\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:36: Define or directive not defined: \'`Not_Forward\'\n        else ForwardBE = `Not_Forward;\n                         ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:36: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n        else ForwardBE = `Not_Forward;\n                                     ^\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:39: Define or directive not defined: \'`Forward_ALU\'\n            ForwardAD = `Forward_ALU;\n                        ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:39: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n            ForwardAD = `Forward_ALU;\n                                    ^\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:40: Define or directive not defined: \'`Not_Forward_ALU\'\n        else ForwardAD = `Not_Forward_ALU;\n                         ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:40: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n        else ForwardAD = `Not_Forward_ALU;\n                                         ^\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:43: Define or directive not defined: \'`Forward_ALU\'\n            ForwardBD = `Forward_ALU;\n                        ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:43: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n            ForwardBD = `Forward_ALU;\n                                    ^\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:44: Define or directive not defined: \'`Not_Forward_ALU\'\n        else ForwardBD = `Not_Forward_ALU;\n                         ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/527176783/Pipeline/Forward.v:44: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n        else ForwardBD = `Not_Forward_ALU;\n                                         ^\n%Error: Exiting due to 29 error(s)\n'
module Forward(
    input  [4:0] rs_EX,
    input  [4:0] rt_EX,
    input  [4:0] rs_ID,
    input  [4:0] rt_ID,
    input  [4:0] WriteReg_MEM,
    input  [4:0] WriteReg_WB,
    input  regWr_MEM,
    input  regWr_WB,
    output reg [1:0] ForwardAE,
    output reg [1:0] ForwardBE,
    output reg ForwardAD,
    output reg ForwardBD
);
    initial begin
        ForwardAE = `Not_Forward;
        ForwardBE = `Not_Forward;
        ForwardAD = `Not_Forward;
        ForwardBD = `Not_Forward;
    end

    always @(*) begin
        if((rs_EX != 0) && (rs_EX == WriteReg_MEM) && (regWr_MEM ==1))
            ForwardAE = `Forward_MEM;
        else if((rs_EX != 0) && (rs_EX == WriteReg_WB) && (regWr_WB ==1))
            ForwardAE = `Forward_WB;
        else ForwardAE = `Not_Forward;

        if ((rt_EX != 0) && (rt_EX == WriteReg_MEM) && (regWr_MEM ==1))
            ForwardBE = `Forward_MEM;
        else if ((rt_EX != 0) && (rt_EX == WriteReg_WB) && (regWr_WB ==1))
            ForwardBE = `Forward_WB;
        else ForwardBE = `Not_Forward;

        if ((rs_ID != 0) && (rs_ID== WriteReg_MEM) && (regWr_MEM ==1))
            ForwardAD = `Forward_ALU;
        else ForwardAD = `Not_Forward_ALU;

        if ((rt_ID != 0) && (rt_ID== WriteReg_MEM) && (regWr_MEM ==1))
            ForwardBD = `Forward_ALU;
        else ForwardBD = `Not_Forward_ALU;
    end


endmodule
module Forward(
    input  [4:0] rs_EX,
    input  [4:0] rt_EX,
    input  [4:0] rs_ID,
    input  [4:0] rt_ID,
    input  [4:0] WriteReg_MEM,
    input  [4:0] WriteReg_WB,
    input  regWr_MEM,
    input  regWr_WB,
    output reg [1:0] ForwardAE,
    output reg [1:0] ForwardBE,
    output reg ForwardAD,
    output reg ForwardBD
);

    initial begin
        ForwardAE = `Not_Forward;
        ForwardBE = `Not_Forward;
        ForwardAD = `Not_Forward;
        ForwardBD = `Not_Forward;
    end

    always @(*) begin
        if((rs_EX != 0) && (rs_EX == WriteReg_MEM) && (regWr_MEM ==1))
            ForwardAE = `Forward_MEM;
        else if((rs_EX != 0) && (rs_EX == WriteReg_WB) && (regWr_WB ==1))
            ForwardAE = `Forward_WB;
        else ForwardAE = `Not_Forward;

        if ((rt_EX != 0) && (rt_EX == WriteReg_MEM) && (regWr_MEM ==1))
            ForwardBE = `Forward_MEM;
        else if ((rt_EX != 0) && (rt_EX == WriteReg_WB) && (regWr_WB ==1))
            ForwardBE = `Forward_WB;
        else ForwardBE = `Not_Forward;

        if ((rs_ID != 0) && (rs_ID== WriteReg_MEM) && (regWr_MEM ==1))
            ForwardAD = `Forward_ALU;
        else ForwardAD = `Not_Forward_ALU;

        if ((rt_ID != 0) && (rt_ID== WriteReg_MEM) && (regWr_MEM ==1))
            ForwardBD = `Forward_ALU;
        else ForwardBD = `Not_Forward_ALU;
    end


endmodule