part two of issuer_fix: read pspec.microwatt_old and pspec.microwatt_debug
authorTobias Platen <tplaten@posteo.de>
Sat, 16 Apr 2022 20:50:29 +0000 (22:50 +0200)
committerTobias Platen <tplaten@posteo.de>
Sat, 16 Apr 2022 20:50:29 +0000 (22:50 +0200)
src/soc/simple/issuer.py

index f00cadf9d92a4c9bb5d8b2ab8fb7d12bd11023e1..0756e4b68b383586b1c1479a20e031d898a7fd07 100644 (file)
@@ -171,8 +171,16 @@ class TestIssuerBase(Elaboratable):
         self.alt_reset = Signal(reset_less=True) # not connected yet (microwatt)
 
         if self.microwatt_compat:
-            self.microwatt_old = True # PLEASE DO NOT ALTER THIS
-            self.microwatt_debug = True # set to False when using an FPGA
+
+            if hasattr(pspec, "microwatt_old"):
+                self.microwatt_old = pspec.microwatt_old
+            else:
+                self.microwatt_old = True # PLEASE DO NOT ALTER THIS
+
+            if hasattr(pspec, "microwatt_debug"):
+                self.microwatt_debug = pspec.microwatt_debug
+            else:
+                self.microwatt_debug = True # set to False when using an FPGA
 
         # test is SVP64 is to be enabled
         self.svp64_en = hasattr(pspec, "svp64") and (pspec.svp64 == True)