remove redundant / mis-named variable in core
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 1 Dec 2021 12:20:23 +0000 (12:20 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 1 Dec 2021 12:20:23 +0000 (12:20 +0000)
src/soc/simple/core.py

index e1dffb0a0c76ac42595acdf29b57971e7ce6447b..6e9184dfad28a827280584e8225671796ca5be3a 100644 (file)
@@ -769,7 +769,6 @@ class NonProductionCore(ControlBase):
             wvset = wv.s # write-vec bit-level hazard ctrl
             wvclr = wv.r # write-vec bit-level hazard ctrl
             wvchk = wv.q # write-after-write hazard check
-            wvchk_qint = wv.q # write-after-write hazard check, NOT delayed
 
         fspecs = fspec
         if not isinstance(fspecs, list):
@@ -914,7 +913,7 @@ class NonProductionCore(ControlBase):
                 # write-hazard is ANDed with (filtered by) what is actually
                 # being requested.  the wvchk data is on a one-clock delay,
                 # and wvchk_en comes directly from the main decoder
-                comb += whazard.eq((wvchk_qint & wvchk_en).bool())
+                comb += whazard.eq((wvchk & wvchk_en).bool())
                 with m.If(whazard):
                     comb += fu._waw_hazard.eq(1)