data/full_repos/permissive/437204475/pipeline/hazard.v
1: b'%Error: data/full_repos/permissive/437204475/pipeline/hazard.v:4: Cannot find include file: defines.v\n`include "defines.v" \n         ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/437204475/pipeline,data/full_repos/permissive/437204475/defines.v\n             data/full_repos/permissive/437204475/pipeline,data/full_repos/permissive/437204475/defines.v.v\n             data/full_repos/permissive/437204475/pipeline,data/full_repos/permissive/437204475/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/437204475/pipeline/hazard.v:16: Define or directive not defined: \'`FALSE\'\n            pc_flush <= `FALSE;\n                        ^~~~~~\n%Error: data/full_repos/permissive/437204475/pipeline/hazard.v:16: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n            pc_flush <= `FALSE;\n                              ^\n%Error: data/full_repos/permissive/437204475/pipeline/hazard.v:17: Define or directive not defined: \'`FALSE\'\n            pc_stall <= `FALSE;\n                        ^~~~~~\n%Error: data/full_repos/permissive/437204475/pipeline/hazard.v:17: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n            pc_stall <= `FALSE;\n                              ^\n%Error: data/full_repos/permissive/437204475/pipeline/hazard.v:18: Define or directive not defined: \'`FALSE\'\n            id_stall <= `FALSE;\n                        ^~~~~~\n%Error: data/full_repos/permissive/437204475/pipeline/hazard.v:18: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n            id_stall <= `FALSE;\n                              ^\n%Error: data/full_repos/permissive/437204475/pipeline/hazard.v:19: Define or directive not defined: \'`FALSE\'\n            id_ex_bubble <= `FALSE;\n                            ^~~~~~\n%Error: data/full_repos/permissive/437204475/pipeline/hazard.v:19: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n            id_ex_bubble <= `FALSE;\n                                  ^\n%Error: data/full_repos/permissive/437204475/pipeline/hazard.v:49: Define or directive not defined: \'`WORD_WIDTH\'\n    parameter W = `WORD_WIDTH\n                  ^~~~~~~~~~~\n%Error: data/full_repos/permissive/437204475/pipeline/hazard.v:50: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\n) (\n^\n%Error: data/full_repos/permissive/437204475/pipeline/hazard.v:52: syntax error, unexpected input, expecting IDENTIFIER or do or final\n    input wire[W-1:0] idex_pc, exmem_pc,\n    ^~~~~\n%Error: data/full_repos/permissive/437204475/pipeline/hazard.v:53: syntax error, unexpected input, expecting IDENTIFIER or do or final\n    input wire idex_targ_else_offset, exmem_targ_else_offset,\n    ^~~~~\n%Error: data/full_repos/permissive/437204475/pipeline/hazard.v:55: syntax error, unexpected input, expecting IDENTIFIER or do or final\n    input wire idex_pc_addr_src_reg,     \n    ^~~~~\n%Error: data/full_repos/permissive/437204475/pipeline/hazard.v:56: syntax error, unexpected input, expecting IDENTIFIER or do or final\n    input wire[W-1:0] idex_rs_val,       \n    ^~~~~\n%Error: data/full_repos/permissive/437204475/pipeline/hazard.v:57: syntax error, unexpected input, expecting IDENTIFIER or do or final\n    input wire[W-1:0] idex_imm,          \n    ^~~~~\n%Error: data/full_repos/permissive/437204475/pipeline/hazard.v:59: syntax error, unexpected input, expecting IDENTIFIER or do or final\n    input wire exmem_pc_addr_src_reg,\n    ^~~~~\n%Error: data/full_repos/permissive/437204475/pipeline/hazard.v:60: syntax error, unexpected input, expecting IDENTIFIER or do or final\n    input wire[W-1:0] exmem_rs_val,\n    ^~~~~\n%Error: data/full_repos/permissive/437204475/pipeline/hazard.v:61: syntax error, unexpected input, expecting IDENTIFIER or do or final\n    input wire[W-1:0] exmem_imm,\n    ^~~~~\n%Error: data/full_repos/permissive/437204475/pipeline/hazard.v:63: syntax error, unexpected output, expecting IDENTIFIER or do or final\n    output reg[W-1:0] flush_addr\n    ^~~~~~\n%Error: data/full_repos/permissive/437204475/pipeline/hazard.v:64: syntax error, unexpected \')\', expecting \',\' or \';\'\n);\n^\n%Error: data/full_repos/permissive/437204475/pipeline/hazard.v:67: syntax error, unexpected always\n    always @(*) begin\n    ^~~~~~\n%Error: Exiting due to 22 error(s)\n'
module hazard (
    input wire rst,

    input wire mem_ex_hazard, j_ctrl_hazard, branch_ctrl_hazard,


    output reg pc_flush, pc_stall, id_stall, id_ex_bubble
);
    always @(*) begin
        if (rst) begin
            pc_flush <= `FALSE;
            pc_stall <= `FALSE;
            id_stall <= `FALSE;
            id_ex_bubble <= `FALSE;
        end
        else begin
            id_ex_bubble <= (mem_ex_hazard || branch_ctrl_hazard);
            pc_stall <= mem_ex_hazard;
            id_stall <= mem_ex_hazard;

            pc_flush <= (j_ctrl_hazard || branch_ctrl_hazard);
        end
    end
endmodule
module hazard (
    input wire rst,

    input wire mem_ex_hazard, j_ctrl_hazard, branch_ctrl_hazard,


    output reg pc_flush, pc_stall, id_stall, id_ex_bubble
);

    always @(*) begin
        if (rst) begin
            pc_flush <= `FALSE;
            pc_stall <= `FALSE;
            id_stall <= `FALSE;
            id_ex_bubble <= `FALSE;
        end
        else begin
            id_ex_bubble <= (mem_ex_hazard || branch_ctrl_hazard);
            pc_stall <= mem_ex_hazard;
            id_stall <= mem_ex_hazard;

            pc_flush <= (j_ctrl_hazard || branch_ctrl_hazard);
        end
    end
endmodule