data/full_repos/permissive/463481430/RTL/core/exu_bju.v
1: b'%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:12: 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/exu_bju.v:13: Cannot find include file: defines.v\n`include "defines.v" \n         ^~~~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:20: Define or directive not defined: \'`rfidxlen_def\'\n    input wire[`rfidxlen_def] i_bju_rdidx,\n               ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:20: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    input wire[`rfidxlen_def] i_bju_rdidx,\n                            ^\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:21: Define or directive not defined: \'`decinfo_grplen_def\'\n    input wire[`decinfo_grplen_def] i_decinfo_grp,\n               ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:22: Define or directive not defined: \'`decinfolen_def\'\n    input wire[`decinfolen_def] i_bjuinfo,\n               ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:23: Define or directive not defined: \'`xlen_def\'\n    input wire[`xlen_def] i_rs1_rdata,\n               ^~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:27: Define or directive not defined: \'`xlen_def\'\n    input wire[`xlen_def] i_iaddr,\n               ^~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:28: Define or directive not defined: \'`xlen_def\'\n    input wire[`xlen_def] i_imm,\n               ^~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:29: Define or directive not defined: \'`xlen_def\'\n    input wire[`xlen_def] i_bju_op1, \n               ^~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:30: Define or directive not defined: \'`xlen_def\'\n    input wire[`xlen_def] i_bju_op2, \n               ^~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:33: syntax error, unexpected output, expecting IDENTIFIER or do or final\n    output wire[`xlen_def] o_bju_jaddr, \n    ^~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:33: Define or directive not defined: \'`xlen_def\'\n    output wire[`xlen_def] o_bju_jaddr, \n                ^~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:36: syntax error, unexpected output, expecting IDENTIFIER or do or final\n    output wire[`rfidxlen_def] o_bju_rdidx,\n    ^~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:36: Define or directive not defined: \'`rfidxlen_def\'\n    output wire[`rfidxlen_def] o_bju_rdidx,\n                ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:37: Define or directive not defined: \'`xlen_def\'\n    output wire[`xlen_def] o_bju_rdwdata\n                ^~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:43: Define or directive not defined: \'`bjuinfo_beq\'\n    wire bxx_beq  = i_bjuinfo[`bjuinfo_beq]  & (i_bju_op1 == i_bju_op2);\n                              ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:43: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    wire bxx_beq  = i_bjuinfo[`bjuinfo_beq]  & (i_bju_op1 == i_bju_op2);\n                                          ^\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:44: Define or directive not defined: \'`bjuinfo_bne\'\n    wire bxx_bne  = i_bjuinfo[`bjuinfo_bne]  & (i_bju_op1!=i_bju_op2);\n                              ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:44: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    wire bxx_bne  = i_bjuinfo[`bjuinfo_bne]  & (i_bju_op1!=i_bju_op2);\n                                          ^\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:45: Define or directive not defined: \'`bjuinfo_blt\'\n    wire bxx_blt  = i_bjuinfo[`bjuinfo_blt]  & (($signed(i_bju_op1))<($signed(i_bju_op2)));\n                              ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:45: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    wire bxx_blt  = i_bjuinfo[`bjuinfo_blt]  & (($signed(i_bju_op1))<($signed(i_bju_op2)));\n                                          ^\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:46: Define or directive not defined: \'`bjuinfo_bge\'\n    wire bxx_bge  = i_bjuinfo[`bjuinfo_bge]  & (($signed(i_bju_op1))>=($signed(i_bju_op2)));\n                              ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:46: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    wire bxx_bge  = i_bjuinfo[`bjuinfo_bge]  & (($signed(i_bju_op1))>=($signed(i_bju_op2)));\n                                          ^\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:47: Define or directive not defined: \'`bjuinfo_bltu\'\n    wire bxx_bltu = i_bjuinfo[`bjuinfo_bltu] & (i_bju_op1<i_bju_op2);\n                              ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:47: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    wire bxx_bltu = i_bjuinfo[`bjuinfo_bltu] & (i_bju_op1<i_bju_op2);\n                                           ^\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:48: Define or directive not defined: \'`bjuinfo_bgeu\'\n    wire bxx_bgeu = i_bjuinfo[`bjuinfo_bgeu] & (i_bju_op1>=i_bju_op2);\n                              ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:48: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    wire bxx_bgeu = i_bjuinfo[`bjuinfo_bgeu] & (i_bju_op1>=i_bju_op2);\n                                           ^\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:58: Define or directive not defined: \'`xlen_def\'\n    wire[`xlen_def] bxx_nxtpc = i_iaddr + i_imm;\n         ^~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:58: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    wire[`xlen_def] bxx_nxtpc = i_iaddr + i_imm;\n                  ^\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:61: Define or directive not defined: \'`decinfo_grp_bju\'\n    assign o_bju_rdwen = i_decinfo_grp[`decinfo_grp_bju] & (i_bjuinfo[`bjuinfo_jal] | i_bjuinfo[`bjuinfo_jalr]);\n                                       ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:61: Define or directive not defined: \'`bjuinfo_jal\'\n    assign o_bju_rdwen = i_decinfo_grp[`decinfo_grp_bju] & (i_bjuinfo[`bjuinfo_jal] | i_bjuinfo[`bjuinfo_jalr]);\n                                                                      ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:61: Define or directive not defined: \'`bjuinfo_jalr\'\n    assign o_bju_rdwen = i_decinfo_grp[`decinfo_grp_bju] & (i_bjuinfo[`bjuinfo_jal] | i_bjuinfo[`bjuinfo_jalr]);\n                                                                                                ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:70: Define or directive not defined: \'`decinfo_grp_bju\'\n    assign o_bju_taken = i_decinfo_grp[`decinfo_grp_bju] & ((i_bjuinfo[`bjuinfo_bpu_bflag] ^ judgeflag) | i_bjuinfo[`bjuinfo_jalr]);\n                                       ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:70: Define or directive not defined: \'`bjuinfo_bpu_bflag\'\n    assign o_bju_taken = i_decinfo_grp[`decinfo_grp_bju] & ((i_bjuinfo[`bjuinfo_bpu_bflag] ^ judgeflag) | i_bjuinfo[`bjuinfo_jalr]);\n                                                                       ^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:70: Define or directive not defined: \'`bjuinfo_jalr\'\n    assign o_bju_taken = i_decinfo_grp[`decinfo_grp_bju] & ((i_bjuinfo[`bjuinfo_bpu_bflag] ^ judgeflag) | i_bjuinfo[`bjuinfo_jalr]);\n                                                                                                                    ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:71: Define or directive not defined: \'`bjuinfo_jalr\'\n    assign o_bju_jaddr = i_bjuinfo[`bjuinfo_jalr] ? i_bju_op1+i_imm : (i_bjuinfo[`bjuinfo_bpu_bflag] ? i_iaddr + 4 : bxx_nxtpc);\n                                   ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/463481430/RTL/core/exu_bju.v:71: Define or directive not defined: \'`bjuinfo_bpu_bflag\'\n    assign o_bju_jaddr = i_bjuinfo[`bjuinfo_jalr] ? i_bju_op1+i_imm : (i_bjuinfo[`bjuinfo_bpu_bflag] ? i_iaddr + 4 : bxx_nxtpc);\n                                                                                 ^~~~~~~~~~~~~~~~~~\n%Error: Exiting due to 38 error(s)\n'
module EXU_BJU (
    input wire i_clk,
    input wire i_rstn,

    input wire[`rfidxlen_def] i_bju_rdidx,
    input wire[`decinfo_grplen_def] i_decinfo_grp,
    input wire[`decinfolen_def] i_bjuinfo,
    input wire[`xlen_def] i_rs1_rdata,



    input wire[`xlen_def] i_iaddr,
    input wire[`xlen_def] i_imm,
    input wire[`xlen_def] i_bju_op1,
    input wire[`xlen_def] i_bju_op2,

    output wire o_bju_taken,
    output wire[`xlen_def] o_bju_jaddr,

    output wire o_bju_rdwen,
    output wire[`rfidxlen_def] o_bju_rdidx,
    output wire[`xlen_def] o_bju_rdwdata

);



    wire bxx_beq  = i_bjuinfo[`bjuinfo_beq]  & (i_bju_op1 == i_bju_op2);
    wire bxx_bne  = i_bjuinfo[`bjuinfo_bne]  & (i_bju_op1!=i_bju_op2);
    wire bxx_blt  = i_bjuinfo[`bjuinfo_blt]  & (($signed(i_bju_op1))<($signed(i_bju_op2)));
    wire bxx_bge  = i_bjuinfo[`bjuinfo_bge]  & (($signed(i_bju_op1))>=($signed(i_bju_op2)));
    wire bxx_bltu = i_bjuinfo[`bjuinfo_bltu] & (i_bju_op1<i_bju_op2);
    wire bxx_bgeu = i_bjuinfo[`bjuinfo_bgeu] & (i_bju_op1>=i_bju_op2);

    wire judgeflag = bxx_beq  |
                     bxx_bne  |
                     bxx_blt  |
                     bxx_bge  |
                     bxx_bltu |
                     bxx_bgeu ;


    wire[`xlen_def] bxx_nxtpc = i_iaddr + i_imm;


    assign o_bju_rdwen = i_decinfo_grp[`decinfo_grp_bju] & (i_bjuinfo[`bjuinfo_jal] | i_bjuinfo[`bjuinfo_jalr]);
    assign o_bju_rdidx = i_bju_rdidx;
    assign o_bju_rdwdata = i_iaddr + 4;






    assign o_bju_taken = i_decinfo_grp[`decinfo_grp_bju] & ((i_bjuinfo[`bjuinfo_bpu_bflag] ^ judgeflag) | i_bjuinfo[`bjuinfo_jalr]);
    assign o_bju_jaddr = i_bjuinfo[`bjuinfo_jalr] ? i_bju_op1+i_imm : (i_bjuinfo[`bjuinfo_bpu_bflag] ? i_iaddr + 4 : bxx_nxtpc);
    
    
endmodule
module EXU_BJU (
    input wire i_clk,
    input wire i_rstn,

    input wire[`rfidxlen_def] i_bju_rdidx,
    input wire[`decinfo_grplen_def] i_decinfo_grp,
    input wire[`decinfolen_def] i_bjuinfo,
    input wire[`xlen_def] i_rs1_rdata,



    input wire[`xlen_def] i_iaddr,
    input wire[`xlen_def] i_imm,
    input wire[`xlen_def] i_bju_op1,
    input wire[`xlen_def] i_bju_op2,

    output wire o_bju_taken,
    output wire[`xlen_def] o_bju_jaddr,

    output wire o_bju_rdwen,
    output wire[`rfidxlen_def] o_bju_rdidx,
    output wire[`xlen_def] o_bju_rdwdata

);




    wire bxx_beq  = i_bjuinfo[`bjuinfo_beq]  & (i_bju_op1 == i_bju_op2);
    wire bxx_bne  = i_bjuinfo[`bjuinfo_bne]  & (i_bju_op1!=i_bju_op2);
    wire bxx_blt  = i_bjuinfo[`bjuinfo_blt]  & (($signed(i_bju_op1))<($signed(i_bju_op2)));
    wire bxx_bge  = i_bjuinfo[`bjuinfo_bge]  & (($signed(i_bju_op1))>=($signed(i_bju_op2)));
    wire bxx_bltu = i_bjuinfo[`bjuinfo_bltu] & (i_bju_op1<i_bju_op2);
    wire bxx_bgeu = i_bjuinfo[`bjuinfo_bgeu] & (i_bju_op1>=i_bju_op2);

    wire judgeflag = bxx_beq  |
                     bxx_bne  |
                     bxx_blt  |
                     bxx_bge  |
                     bxx_bltu |
                     bxx_bgeu ;


    wire[`xlen_def] bxx_nxtpc = i_iaddr + i_imm;


    assign o_bju_rdwen = i_decinfo_grp[`decinfo_grp_bju] & (i_bjuinfo[`bjuinfo_jal] | i_bjuinfo[`bjuinfo_jalr]);
    assign o_bju_rdidx = i_bju_rdidx;
    assign o_bju_rdwdata = i_iaddr + 4;






    assign o_bju_taken = i_decinfo_grp[`decinfo_grp_bju] & ((i_bjuinfo[`bjuinfo_bpu_bflag] ^ judgeflag) | i_bjuinfo[`bjuinfo_jalr]);
    assign o_bju_jaddr = i_bjuinfo[`bjuinfo_jalr] ? i_bju_op1+i_imm : (i_bjuinfo[`bjuinfo_bpu_bflag] ? i_iaddr + 4 : bxx_nxtpc);
    
    
endmodule