data/full_repos/permissive/503578084/pipeline/hazard_detection_unit.v
data/verilator_xmls/4b9c4a0d-7af4-4fbb-b61f-837ddab60c2e.xml
module hazard_detection_unit(
    input   rst_n,
    input   pc_sel,
    input   npc_op,
    output  reg flush
    );
    
always @ (*) begin
    if(rst_n=='b0) begin
        flush='b0;
    end
    else if(pc_sel=='b1 || npc_op=='b1) begin
        flush='b1;
    end
    else begin
        flush='b0;
    end
end
    
endmodule
module hazard_detection_unit(
    input   rst_n,
    input   pc_sel,
    input   npc_op,
    output  reg flush
    );

    
always @ (*) begin
    if(rst_n=='b0) begin
        flush='b0;
    end
    else if(pc_sel=='b1 || npc_op=='b1) begin
        flush='b1;
    end
    else begin
        flush='b0;
    end
end
    
endmodule