data/full_repos/permissive/431487364/src/core/if_id.v
1: b'%Error: data/full_repos/permissive/431487364/src/core/if_id.v:9: Cannot find include file: ../headers/buceros_header.v\n`include "../headers/buceros_header.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/431487364/src/core,data/full_repos/permissive/431487364/../headers/buceros_header.v\n             data/full_repos/permissive/431487364/src/core,data/full_repos/permissive/431487364/../headers/buceros_header.v.v\n             data/full_repos/permissive/431487364/src/core,data/full_repos/permissive/431487364/../headers/buceros_header.v.sv\n             ../headers/buceros_header.v\n             ../headers/buceros_header.v.v\n             ../headers/buceros_header.v.sv\n             obj_dir/../headers/buceros_header.v\n             obj_dir/../headers/buceros_header.v.v\n             obj_dir/../headers/buceros_header.v.sv\n%Error: data/full_repos/permissive/431487364/src/core/if_id.v:16: Define or directive not defined: \'`InstAddrBus\'\n    input  wire [`InstAddrBus] pc_i,\n                 ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/431487364/src/core/if_id.v:16: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    input  wire [`InstAddrBus] pc_i,\n                             ^\n%Error: data/full_repos/permissive/431487364/src/core/if_id.v:17: Define or directive not defined: \'`InstBus\'\n    input  wire [    `InstBus] inst_i,\n                     ^~~~~~~~\n%Error: data/full_repos/permissive/431487364/src/core/if_id.v:19: Define or directive not defined: \'`InstAddrBus\'\n    output reg  [`InstAddrBus] pc_o,\n                 ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/431487364/src/core/if_id.v:20: Define or directive not defined: \'`InstBus\'\n    output reg  [    `InstBus] inst_o\n                     ^~~~~~~~\n%Error: data/full_repos/permissive/431487364/src/core/if_id.v:25: Define or directive not defined: \'`PC_RST_ADDR\'\n            pc_o   <= `PC_RST_ADDR;\n                      ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/431487364/src/core/if_id.v:26: Define or directive not defined: \'`NOP\'\n            inst_o <= `NOP;\n                      ^~~~\n%Error: data/full_repos/permissive/431487364/src/core/if_id.v:31: Define or directive not defined: \'`NOP\'\n            inst_o <= `NOP;\n                      ^~~~\n%Error: Exiting due to 9 error(s)\n'
module if_id (
    input  wire                clk,
    input  wire                rst_n,
    input  wire                hold_i,
    input  wire                jmp_en_i,
    input  wire [`InstAddrBus] pc_i,
    input  wire [    `InstBus] inst_i,

    output reg  [`InstAddrBus] pc_o,
    output reg  [    `InstBus] inst_o
);

    always @(posedge clk or negedge rst_n) begin
        if(~rst_n) begin
            pc_o   <= `PC_RST_ADDR;
            inst_o <= `NOP;
        end else if(hold_i) begin
            pc_o   <= pc_o;
            inst_o <= inst_o;
        end else if(jmp_en_i) begin
            inst_o <= `NOP;
            pc_o   <= pc_o;
        end else begin
            pc_o   <= pc_i;
            inst_o <= inst_i;
        end
    end

endmodule
module if_id (
    input  wire                clk,
    input  wire                rst_n,
    input  wire                hold_i,
    input  wire                jmp_en_i,
    input  wire [`InstAddrBus] pc_i,
    input  wire [    `InstBus] inst_i,

    output reg  [`InstAddrBus] pc_o,
    output reg  [    `InstBus] inst_o
);


    always @(posedge clk or negedge rst_n) begin
        if(~rst_n) begin
            pc_o   <= `PC_RST_ADDR;
            inst_o <= `NOP;
        end else if(hold_i) begin
            pc_o   <= pc_o;
            inst_o <= inst_o;
        end else if(jmp_en_i) begin
            inst_o <= `NOP;
            pc_o   <= pc_o;
        end else begin
            pc_o   <= pc_i;
            inst_o <= inst_i;
        end
    end

endmodule