1
0

fix the condition under which comparator error signal is set

This commit is contained in:
Howard Mao 2016-07-12 17:12:22 -07:00
parent 88dc0b983a
commit f3775df04d

View File

@ -341,7 +341,7 @@ class ComparatorSink(implicit val p: Parameters) extends Module
assert (base.data === g.data || !g.hasData(), "data mismatch") assert (base.data === g.data || !g.hasData(), "data mismatch")
assert_conds.zipWithIndex.foreach { case (cond, i) => assert_conds.zipWithIndex.foreach { case (cond, i) =>
when (cond) { when (!cond) {
io.error.valid := Bool(true) io.error.valid := Bool(true)
io.error.bits := UInt(i) io.error.bits := UInt(i)
} }