fix 'sync' referenced before assignment in src/soc/fu/mmu/fsm.py
authorTobias Platen <tplaten@posteo.de>
Fri, 7 May 2021 18:39:37 +0000 (20:39 +0200)
committerTobias Platen <tplaten@posteo.de>
Fri, 7 May 2021 18:39:37 +0000 (20:39 +0200)
src/soc/fu/mmu/fsm.py

index b9877435cb8aaa31392ac3ca61e36111601f0eb7..e062ceb9332174760d81bbacbc1d65f70158ad9e 100644 (file)
@@ -139,9 +139,9 @@ class FSMMMUStage(ControlBase):
                         comb += self.debug0.eq(3)
                         #if matched update local cached value
                         with m.If(spr[0]):
-                            sync += dsisr.eq(a_i[:32])
+                            m.d.sync += dsisr.eq(a_i[:32])
                         with m.Else():
-                            sync += dar.eq(a_i)
+                            m.d.sync += dar.eq(a_i)
                         comb += done.eq(1)
                     # pass it over to the MMU instead
                     with m.Else():