Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sequencer committed Jan 7, 2022
1 parent 0154f2c commit e0e60ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/rv32_5stage/dpath.scala
Expand Up @@ -427,7 +427,7 @@ class DatPath(implicit val p: Parameters, val conf: SodorCoreParams) extends Mod
// The CSRFile can redirect the PC so it's easiest to put this in Execute for now.
val csr = Module(new CSRFile(perfEventSets=CSREvents.events))
csr.io := DontCare
csr.io.decode(0).csr := mem_reg_inst(CSR_ADDR_MSB,CSR_ADDR_LSB)
csr.io.decode(0).csr_addr := mem_reg_inst
csr.io.rw.addr := mem_reg_inst(CSR_ADDR_MSB,CSR_ADDR_LSB)
csr.io.rw.wdata := mem_reg_alu_out
csr.io.rw.cmd := mem_reg_ctrl_csr_cmd
Expand Down

0 comments on commit e0e60ae

Please sign in to comment.