fix the condition under which comparator error signal is set
This commit is contained in:
1 parent
88dc0b983a
commit
f3775df04d
1 file changed
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user