missing optional check on make_hazard_vecs
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 17 Nov 2021 14:10:50 +0000 (14:10 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 17 Nov 2021 14:10:50 +0000 (14:10 +0000)
src/soc/simple/core.py

index e0ad6763a54cb376d24d415193795f31965ba2d1..e813d29b561e03015a1273df672e38d981f6ffb5 100644 (file)
@@ -651,6 +651,9 @@ class NonProductionCore(ControlBase):
             comb += wport.addr.eq(ortreereduce_sig(addrs))
             comb += wport.wen.eq(ortreereduce_sig(wens))
 
+        if not self.make_hazard_vecs:
+            return
+
         # for write-vectors
         comb += wvclr.wen.eq(ortreereduce_sig(wvclren)) # clear (regfile write)
         comb += wvset.wen.eq(ortreereduce_sig(wvseten)) # set (issue time)