Skip to content

Commit

Permalink
Update the xrfWriteBundle.wrenx to set only when it is different from…
Browse files Browse the repository at this point in the history
… coreMonitorBundle (#2541)

* Update the xrfWriteBundle.wrenx to set only when it is different from coreMonitorBundle

* Fix comparison variables
  • Loading branch information
abhinay-kayastha authored Jun 29, 2020
1 parent 510c78c commit c9d851f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/rocket/RocketCore.scala
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ class Rocket(tile: RocketTile)(implicit p: Parameters) extends CoreModule()(p)
xrfWriteBundle.valid := false.B
xrfWriteBundle.pc := 0.U
xrfWriteBundle.wrdst := rf_waddr
xrfWriteBundle.wrenx := rf_wen && !(coreMonitorBundle.wrenx && (rf_waddr === coreMonitorBundle.wrdst))
xrfWriteBundle.wrenx := rf_wen && !(csr.io.trace(0).valid && wb_wen && (wb_waddr === rf_waddr))
xrfWriteBundle.wrenf := false.B
xrfWriteBundle.wrdata := rf_wdata
xrfWriteBundle.rd0src := 0.U
Expand Down

0 comments on commit c9d851f

Please sign in to comment.