Skip to content

Commit

Permalink
[rtl] Adding write back pressure.
Browse files Browse the repository at this point in the history
  • Loading branch information
qinjun-li committed Nov 11, 2024
1 parent 8a02a8c commit e23fab1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t1/src/mask/MaskUnit.scala
Original file line number Diff line number Diff line change
Expand Up @@ -619,9 +619,10 @@ class MaskUnit(parameter: T1Parameter) extends Module {
val executeReady: Bool = Wire(Bool())
// todo: remove, it will do nothing when vl=0
val sendInitData: Bool = unitType(2) && !readVS1Reg.sendToExecution && instReg.vl === 0.U
val executeDeqReady: Bool = VecInit(maskedWrite.in.map(_.ready)).asUInt.andR
val otherTypeRequestDeq: Bool =
Mux(noSource, noSourceValid, allDataValid || sendInitData) &&
vs1DataValid && instVlValid || mvRd
vs1DataValid && instVlValid && executeDeqReady || mvRd
val requestStageDeq: Bool = Mux(readType, readTypeRequestDeq, otherTypeRequestDeq && executeReady)
val readIssueStageEnq: Bool =
(allDataValid || slideAddressGen.indexDeq.valid) &&
Expand Down

0 comments on commit e23fab1

Please sign in to comment.