提交 251a37e4 编写于 作者: J Jenius 提交者: Lingrui98

<bug-fix> IFU: fix f3_lastHalf_disable flush bug

* when f3_flush is enabled, f3_lastHalf_disable is still set and
influence the next packet
上级 5df8c5a8
......@@ -692,7 +692,7 @@ class NewIFU(implicit p: Parameters) extends XSModule
*/
//f3_fire is after wb_valid
when(wb_valid && RegNext(f3_hasLastHalf,init = false.B)
&& wb_check_result_stage2.fixedMissPred(PredictWidth - 1) && !f3_fire && !RegNext(f3_fire,init = false.B)
&& wb_check_result_stage2.fixedMissPred(PredictWidth - 1) && !f3_fire && !RegNext(f3_fire,init = false.B) && !f3_flush
){
f3_lastHalf_disable := true.B
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册