more pseudocode in TestIssuer
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 20 Mar 2021 18:58:54 +0000 (18:58 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 20 Mar 2021 18:58:54 +0000 (18:58 +0000)
src/soc/simple/issuer.py

index 3d6c3ce6c62bb430278117415463ed2f4fd396da..a58a44a061435cd05ae652660b0d0826c4c5a0cc 100644 (file)
@@ -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