data/full_repos/permissive/492462267/if_id.v
1: b'%Error: data/full_repos/permissive/492462267/if_id.v:1: Cannot find include file: define.vh\n`include "define.vh" \n         ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/492462267,data/full_repos/permissive/492462267/define.vh\n             data/full_repos/permissive/492462267,data/full_repos/permissive/492462267/define.vh.v\n             data/full_repos/permissive/492462267,data/full_repos/permissive/492462267/define.vh.sv\n             define.vh\n             define.vh.v\n             define.vh.sv\n             obj_dir/define.vh\n             obj_dir/define.vh.v\n             obj_dir/define.vh.sv\n%Error: data/full_repos/permissive/492462267/if_id.v:13: Define or directive not defined: \'`InstAddrBus\'\n    input   wire[`InstAddrBus]  if_pc,        \n                 ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/492462267/if_id.v:13: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    input   wire[`InstAddrBus]  if_pc,        \n                             ^\n%Error: data/full_repos/permissive/492462267/if_id.v:14: Define or directive not defined: \'`InstBus\'\n    input   wire[`InstBus]      if_inst,      \n                 ^~~~~~~~\n%Error: data/full_repos/permissive/492462267/if_id.v:15: Define or directive not defined: \'`InstAddrBus\'\n    output  reg[`InstAddrBus]   id_pc,       \n                ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/492462267/if_id.v:16: Define or directive not defined: \'`InstBus\'\n    output  reg[`InstBus]       id_inst       \n                ^~~~~~~~\n%Error: data/full_repos/permissive/492462267/if_id.v:21: Define or directive not defined: \'`ZeroWord\'\n        id_pc   <= `ZeroWord;\n                   ^~~~~~~~~\n%Error: data/full_repos/permissive/492462267/if_id.v:22: Define or directive not defined: \'`ZeroWord\'\n        id_inst <= `ZeroWord;                \n                   ^~~~~~~~~\n%Error: data/full_repos/permissive/492462267/if_id.v:28: Define or directive not defined: \'`ZeroWord\'\n        id_pc   <= `ZeroWord;\n                   ^~~~~~~~~\n%Error: data/full_repos/permissive/492462267/if_id.v:29: Define or directive not defined: \'`ZeroWord\'\n        id_inst <= `ZeroWord;\n                   ^~~~~~~~~\n%Error: Exiting due to 10 error(s)\n'
module if_id (
    input   wire    clk,
    input   wire    rst,
    input   wire[5:0]           stall,
    input   wire[`InstAddrBus]  if_pc,
    input   wire[`InstBus]      if_inst,
    output  reg[`InstAddrBus]   id_pc,       
    output  reg[`InstBus]       id_inst
);

always @(posedge clk ) begin
    if(rst) begin
        id_pc   <= `ZeroWord;
        id_inst <= `ZeroWord;
    end 

    else if (stall[1] && !stall[2]) begin
        id_pc   <= `ZeroWord;
        id_inst <= `ZeroWord;
    end

    else if(!stall[1])begin
        id_pc   <= if_pc;
        id_inst <= if_inst;
    end 
    else begin
        id_pc   <= id_pc;
        id_inst <= id_inst;
    end
end

endmodule
module if_id (
    input   wire    clk,
    input   wire    rst,
    input   wire[5:0]           stall,
    input   wire[`InstAddrBus]  if_pc,
    input   wire[`InstBus]      if_inst,
    output  reg[`InstAddrBus]   id_pc,       
    output  reg[`InstBus]       id_inst
);


always @(posedge clk ) begin
    if(rst) begin
        id_pc   <= `ZeroWord;
        id_inst <= `ZeroWord;
    end 

    else if (stall[1] && !stall[2]) begin
        id_pc   <= `ZeroWord;
        id_inst <= `ZeroWord;
    end

    else if(!stall[1])begin
        id_pc   <= if_pc;
        id_inst <= if_inst;
    end 
    else begin
        id_pc   <= id_pc;
        id_inst <= id_inst;
    end
end

endmodule