From c1158cbf5d36b24584e0ca03b55dcb7c6a47c26e Mon Sep 17 00:00:00 2001 From: Tobias Platen Date: Sat, 16 Apr 2022 22:50:29 +0200 Subject: [PATCH] part two of issuer_fix: read pspec.microwatt_old and pspec.microwatt_debug --- src/soc/simple/issuer.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/soc/simple/issuer.py b/src/soc/simple/issuer.py index f00cadf9..0756e4b6 100644 --- a/src/soc/simple/issuer.py +++ b/src/soc/simple/issuer.py @@ -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) -- 2.30.2