data/full_repos/permissive/463481430/RTL/core/bpu_bp.v
1: b'%Error: data/full_repos/permissive/463481430/RTL/core/bpu_bp.v:17: Cannot find include file: config.v\n`include "config.v" \n         ^~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/463481430/RTL/core,data/full_repos/permissive/463481430/config.v\n             data/full_repos/permissive/463481430/RTL/core,data/full_repos/permissive/463481430/config.v.v\n             data/full_repos/permissive/463481430/RTL/core,data/full_repos/permissive/463481430/config.v.sv\n             config.v\n             config.v.v\n             config.v.sv\n             obj_dir/config.v\n             obj_dir/config.v.v\n             obj_dir/config.v.sv\n%Error: data/full_repos/permissive/463481430/RTL/core/bpu_bp.v:24: Define or directive not defined: \'`xlen_def\'\n    input wire[`xlen_def] i_pc, \n               ^~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/bpu_bp.v:24: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    input wire[`xlen_def] i_pc, \n                        ^\n%Error: data/full_repos/permissive/463481430/RTL/core/bpu_bp.v:26: syntax error, unexpected input, expecting IDENTIFIER or do or final\n    input wire i_inst_jalr,\n    ^~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/bpu_bp.v:27: syntax error, unexpected input, expecting IDENTIFIER or do or final\n    input wire i_inst_rs1ren, \n    ^~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/bpu_bp.v:28: syntax error, unexpected input, expecting IDENTIFIER or do or final\n    input wire i_inst_bxx,\n    ^~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/bpu_bp.v:29: syntax error, unexpected input, expecting IDENTIFIER or do or final\n    input wire[`xlen_def] i_imm, \n    ^~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/bpu_bp.v:29: Define or directive not defined: \'`xlen_def\'\n    input wire[`xlen_def] i_imm, \n               ^~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/bpu_bp.v:30: Define or directive not defined: \'`xlen_def\'\n    input wire[`xlen_def] i_jalr_rs1rdata, \n               ^~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/bpu_bp.v:34: syntax error, unexpected output, expecting IDENTIFIER or do or final\n    output wire[`xlen_def] o_prdt_pc  \n    ^~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/bpu_bp.v:34: Define or directive not defined: \'`xlen_def\'\n    output wire[`xlen_def] o_prdt_pc  \n                ^~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/bpu_bp.v:42: Define or directive not defined: \'`xlen\'\nassign o_prdt_taken =  (i_inst_jalr & (~i_inst_rs1ren)) | i_inst_jal | (i_inst_bxx & i_imm[`xlen-1]);\n                                                                                           ^~~~~\n%Error: Exiting due to 12 error(s)\n'
module BPU_BP (
    input wire i_clk,
    input wire i_rstn,


    input wire[`xlen_def] i_pc,
    input wire i_inst_jal,
    input wire i_inst_jalr,
    input wire i_inst_rs1ren,
    input wire i_inst_bxx,
    input wire[`xlen_def] i_imm,
    input wire[`xlen_def] i_jalr_rs1rdata,


    output wire o_prdt_taken,
    output wire[`xlen_def] o_prdt_pc
);






assign o_prdt_taken =  (i_inst_jalr & (~i_inst_rs1ren)) | i_inst_jal | (i_inst_bxx & i_imm[`xlen-1]);


assign o_prdt_pc = i_inst_jalr ? 
                    i_imm :
                    i_pc + i_imm;






endmodule
module BPU_BP (
    input wire i_clk,
    input wire i_rstn,


    input wire[`xlen_def] i_pc,
    input wire i_inst_jal,
    input wire i_inst_jalr,
    input wire i_inst_rs1ren,
    input wire i_inst_bxx,
    input wire[`xlen_def] i_imm,
    input wire[`xlen_def] i_jalr_rs1rdata,


    output wire o_prdt_taken,
    output wire[`xlen_def] o_prdt_pc
);







assign o_prdt_taken =  (i_inst_jalr & (~i_inst_rs1ren)) | i_inst_jal | (i_inst_bxx & i_imm[`xlen-1]);


assign o_prdt_pc = i_inst_jalr ? 
                    i_imm :
                    i_pc + i_imm;






endmodule