提交 9710bd13 编写于 作者: Z ZhangZifei

RS: add assert that checks listen wen vec to be onehot

上级 bcca3eda
......@@ -331,6 +331,7 @@ class RSDataSingleSrc(srcLen: Int, numEntries: Int, numListen: Int) extends XSMo
for (i <- 0 until numEntries) {
when (Cat(wen(i)).orR) {
value(i) := ParallelMux(wen(i) zip data)
assert(RegNext(PopCount(wen(i))===0.U || PopCount(wen(i))===1.U), s"${i}")
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册