From d8c5d4927fc23a8d04da0528c39db30af6d86d9b Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 20 Mar 2021 18:58:54 +0000 Subject: [PATCH] more pseudocode in TestIssuer --- src/soc/simple/issuer.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/soc/simple/issuer.py b/src/soc/simple/issuer.py index 3d6c3ce6..a58a44a0 100644 --- a/src/soc/simple/issuer.py +++ b/src/soc/simple/issuer.py @@ -343,9 +343,15 @@ class TestIssuerInternal(Elaboratable): # detected, in order to trigger - and wait for - the # predicate reading. pmode = pdecode2.rm_dec.predmode - sv_ptype = pdecode2.dec.op.SV_Ptype - srcpred = pdecode2.rm_dec.srcpred - dstpred = pdecode2.rm_dec.dstpred + """ + if pmode != SVP64PredMode.ALWAYS.value: + fire predicate loading FSM and wait before + moving to INSN_READY + else: + sync += self.srcmask.eq(-1) # set to all 1s + sync += self.dstmask.eq(-1) # set to all 1s + m.next = "INSN_READY" + """ with m.State("INSN_READY"): # hand over the instruction, to be decoded -- 2.30.2