data/full_repos/permissive/216615048/src/branch.v
1: b'%Error: data/full_repos/permissive/216615048/src/branch.v:1: Cannot find include file: defines.v\n`include "defines.v" \n         ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/216615048/src,data/full_repos/permissive/216615048/defines.v\n             data/full_repos/permissive/216615048/src,data/full_repos/permissive/216615048/defines.v.v\n             data/full_repos/permissive/216615048/src,data/full_repos/permissive/216615048/defines.v.sv\n             defines.v\n             defines.v.v\n             defines.v.sv\n             obj_dir/defines.v\n             obj_dir/defines.v.v\n             obj_dir/defines.v.sv\n%Error: data/full_repos/permissive/216615048/src/branch.v:22: Define or directive not defined: \'`BR_BEQ\'\n        `BR_BEQ: out = zero;\n        ^~~~~~~\n%Error: data/full_repos/permissive/216615048/src/branch.v:22: syntax error, unexpected \':\', expecting endcase\n        `BR_BEQ: out = zero;\n               ^\n%Error: data/full_repos/permissive/216615048/src/branch.v:23: Define or directive not defined: \'`BR_BNE\'\n        `BR_BNE: out = ~zero;\n        ^~~~~~~\n%Error: data/full_repos/permissive/216615048/src/branch.v:24: Define or directive not defined: \'`BR_BLT\'\n        `BR_BLT: out = (sign != overflow);\n        ^~~~~~~\n%Error: data/full_repos/permissive/216615048/src/branch.v:25: Define or directive not defined: \'`BR_BGE\'\n        `BR_BGE: out = (sign == overflow);\n        ^~~~~~~\n%Error: data/full_repos/permissive/216615048/src/branch.v:26: Define or directive not defined: \'`BR_BLTU\'\n        `BR_BLTU: out = ~carry;\n        ^~~~~~~~\n%Error: data/full_repos/permissive/216615048/src/branch.v:27: Define or directive not defined: \'`BR_BGEU\'\n        `BR_BGEU: out = carry;\n        ^~~~~~~~\n%Error: Cannot continue\n'
module branch (input [2:0]func3, input carry, input zero, input overflow, input sign, output reg out);

always @(*) begin
    case (func3)
        `BR_BEQ: out = zero;
        `BR_BNE: out = ~zero;
        `BR_BLT: out = (sign != overflow);
        `BR_BGE: out = (sign == overflow);
        `BR_BLTU: out = ~carry;
        `BR_BGEU: out = carry;
    endcase
end

endmodule
module branch (input [2:0]func3, input carry, input zero, input overflow, input sign, output reg out);


always @(*) begin
    case (func3)
        `BR_BEQ: out = zero;
        `BR_BNE: out = ~zero;
        `BR_BLT: out = (sign != overflow);
        `BR_BGE: out = (sign == overflow);
        `BR_BLTU: out = ~carry;
        `BR_BGEU: out = carry;
    endcase
end

endmodule