From: Cesar Strauss Date: Sun, 6 Mar 2022 18:00:37 +0000 (-0300) Subject: Copy the startup delay from issuer.py to inorder.py X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=64dc05bb295845fd02e066a2f42e54345791c259;p=soc.git Copy the startup delay from issuer.py to inorder.py Fixes TestIssuerInternalInOrder hanging at startup. --- 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):