Skip to content

Commit

Permalink
[rtl] Only need to detect raw when reading.
Browse files Browse the repository at this point in the history
  • Loading branch information
qinjun-li committed May 15, 2024
1 parent caa3471 commit d09c4d6
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions t1/src/vrf/ChainingCheck.scala
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,5 @@ class ChainingCheck(val parameter: VRFParam) extends Module {
val vdGroup: UInt = readRecord.vd.bits(4, 3)

val raw: Bool = record.bits.vd.valid && (read.vs(4, 3) === record.bits.vd.bits(4, 3)) && hitElement
val waw: Bool = readRecord.vd.valid && record.bits.vd.valid &&
readRecord.vd.bits(4, 3) === record.bits.vd.bits(4, 3) &&
writeHitElement
val warSource1: Bool = (vdGroup === record.bits.vs1.bits(4, 3)) && record.bits.vs1.valid
// Only index type will read vs2
val warSource2: Bool = vdGroup === record.bits.vs2(4, 3) && (!record.bits.ls || record.bits.indexType)
// store or ma need read vd
val warVD: Bool = (vdGroup === record.bits.vd.bits(4, 3)) && (record.bits.ma || record.bits.st)
val war: Bool = readRecord.vd.valid && (warSource1 || warSource2 || warVD) && writeHitElement
checkResult := !((!older && (waw || raw || war)) && !sameInst && recordValid)
checkResult := !(!older && raw && !sameInst && recordValid)
}

0 comments on commit d09c4d6

Please sign in to comment.