data/full_repos/permissive/123627914/src/main/modules/branch-equal-zero/branchEqualZero.v
data/verilator_xmls/bfc55313-31db-460f-b5b6-ce61217a3e00.xml
module branchEqualZero(
IDATA   ,
OPCODE  ,
BO
);

parameter DATA_WIDTH = 32;
parameter OPCODE_WIDTH = 6;


input [DATA_WIDTH-1:0]      IDATA;
input [OPCODE_WIDTH-1:0]    OPCODE;


output reg BO;


localparam  [OPCODE_WIDTH-1:0]  JMP    = 6'b010100;
localparam  [OPCODE_WIDTH-1:0]  BEQZ   = 6'b010101;




always @(IDATA or OPCODE) begin
    case (OPCODE)
        JMP: BO = 1'b1;
        BEQZ: BO = ~|IDATA;
        default: BO = 1'b0;
    endcase
end

endmodule
module branchEqualZero(
IDATA   ,
OPCODE  ,
BO
);


parameter DATA_WIDTH = 32;
parameter OPCODE_WIDTH = 6;


input [DATA_WIDTH-1:0]      IDATA;
input [OPCODE_WIDTH-1:0]    OPCODE;


output reg BO;


localparam  [OPCODE_WIDTH-1:0]  JMP    = 6'b010100;
localparam  [OPCODE_WIDTH-1:0]  BEQZ   = 6'b010101;




always @(IDATA or OPCODE) begin
    case (OPCODE)
        JMP: BO = 1'b1;
        BEQZ: BO = ~|IDATA;
        default: BO = 1'b0;
    endcase
end

endmodule