fix the condition under which comparator error signal is set
This commit is contained in:
parent
88dc0b983a
commit
f3775df04d
@ -341,7 +341,7 @@ class ComparatorSink(implicit val p: Parameters) extends Module
|
||||
assert (base.data === g.data || !g.hasData(), "data mismatch")
|
||||
|
||||
assert_conds.zipWithIndex.foreach { case (cond, i) =>
|
||||
when (cond) {
|
||||
when (!cond) {
|
||||
io.error.valid := Bool(true)
|
||||
io.error.bits := UInt(i)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user