Extended the Hazard Unit with new Signals
MODIFY
src/processors/RISC-V/rv5s_no_fw/rv5s_no_fw.h
src/processors/RISC-V/rv5s_no_fw/rv5s_no_fw.h
@@ -223,10 +223,13 @@ public:
idex_reg->mem_do_read_out >> hzunit->ex_do_mem_read_en;
idex_reg->wr_reg_idx_out >> hzunit->ex_reg_wr_idx;
+ idex_reg->reg_do_write_out >> hzunit->ex_do_reg_write;
exmem_reg->reg_do_write_out >> hzunit->mem_do_reg_write;
+ exmem_reg->wr_reg_idx_out >> hzunit->mem_reg_wr_idx;
memwb_reg->reg_do_write_out >> hzunit->wb_do_reg_write;
+ memwb_reg->wr_reg_idx_out >> hzunit->wb_reg_wr_idx;
idex_reg->opcode_out >> hzunit->opcode;
}

MODIFY
src/processors/RISC-V/rv5s_no_fw/rv5s_no_fw_hazardunit.h
src/processors/RISC-V/rv5s_no_fw/rv5s_no_fw_hazardunit.h
@@ -23,11 +23,16 @@ public:
INPUTPORT(ex_reg_wr_idx, RV_REGS_BITS);
INPUTPORT(ex_do_mem_read_en, 1);
+ INPUTPORT(ex_do_reg_write, 1);
+ INPUTPORT(mem_reg_wr_idx, RV_REGS_BITS);
INPUTPORT(mem_do_reg_write, 1);
+ INPUTPORT(wb_reg_wr_idx, RV_REGS_BITS);
INPUTPORT(wb_do_reg_write, 1);
+
+
INPUTPORT_ENUM(opcode, RVInstr);
// Hazard Front End enable: Low when stalling the front end (shall be connected to a register 'enable' input port).

Extended the Hazard Unit with new Signals