From 59db6ed7cd4aca5b1e41468d82d28fe170631e77 Mon Sep 17 00:00:00 2001 From: Liphen Date: Sun, 25 Feb 2024 16:06:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(ctrl):=20=E5=88=A0=E9=99=A4=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E4=BF=A1=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chisel/playground/src/ctrl/Ctrl.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chisel/playground/src/ctrl/Ctrl.scala b/chisel/playground/src/ctrl/Ctrl.scala index d9ddb8d..eac8455 100644 --- a/chisel/playground/src/ctrl/Ctrl.scala +++ b/chisel/playground/src/ctrl/Ctrl.scala @@ -30,7 +30,7 @@ class Ctrl(implicit val cpuConfig: CpuConfig) extends Module { io.decodeUnit.allow_to_go := !(lw_stall || longest_stall) io.executeUnit.allow_to_go := !longest_stall io.memoryUnit.allow_to_go := !longest_stall - io.writeBackUnit.allow_to_go := !longest_stall || io.memoryUnit.flush + io.writeBackUnit.allow_to_go := !longest_stall io.fetchUnit.do_flush := false.B io.decodeUnit.do_flush := io.memoryUnit.flush || io.executeUnit.flush || io.decodeUnit.branch