Computers, Hardware, Electronics, Computer Science, Cpu.
hazard unit looks like the following, hazardunit hazardunit(regwriteM, regwriteW, rsE, rtE, writeregM, writeregW, forwardAE, forwardBE); always_ff @(forwardAE) begin case(forwardAE) 2'b01: $display("Forwarded %h to srcaE from MEM/WB stage", result); 2'b10: $display("Forwarded %h to srcaE from