From 64dc05bb295845fd02e066a2f42e54345791c259 Mon Sep 17 00:00:00 2001 From: Cesar Strauss Date: Sun, 6 Mar 2022 15:00:37 -0300 Subject: [PATCH] Copy the startup delay from issuer.py to inorder.py Fixes TestIssuerInternalInOrder hanging at startup. --- src/soc/simple/inorder.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/soc/simple/inorder.py b/src/soc/simple/inorder.py index 8174fc5c..03a101a4 100644 --- a/src/soc/simple/inorder.py +++ b/src/soc/simple/inorder.py @@ -120,6 +120,12 @@ class FetchFSM(ControlBase): with m.FSM(name='fetch_fsm'): + # allow fetch to not run at startup due to I-Cache reset not + # having time to settle. power-on-reset holds dbg.core_stopped_i + with m.State("PRE_IDLE"): + with m.If(~dbg.core_stopped_i & ~dbg.core_stop_o): + m.next = "IDLE" + # waiting (zzz) with m.State("IDLE"): with m.If(~dbg.stopping_o & ~fetch_failed): -- 2.30.2