提交 8c6b811b 编写于 作者: Y Yinan Xu

roq,exceptionGen: enq_valid should not set when io.flush is valid

上级 9adc9590
......@@ -204,7 +204,7 @@ class ExceptionGen extends XSModule with HasCircularQueuePtrHelper {
val s1_out_bits = RegNext(compare_bits)
val s1_out_valid = RegNext(s1_valid.asUInt.orR)
val enq_valid = RegNext(in_enq_valid.asUInt.orR && !io.redirect.valid && !RegNext(io.flush))
val enq_valid = RegNext(in_enq_valid.asUInt.orR && !io.redirect.valid && !io.flush)
val enq_bits = RegNext(ParallelPriorityMux(in_enq_valid, io.enq.map(_.bits)))
// s2: compare the input exception with the current one
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册