From: Tobias Platen Date: Sat, 16 Apr 2022 20:50:29 +0000 (+0200) Subject: part two of issuer_fix: read pspec.microwatt_old and pspec.microwatt_debug X-Git-Url: https://git.libre-soc.org/?p=soc.git;a=commitdiff_plain;h=c1158cbf5d36b24584e0ca03b55dcb7c6a47c26e part two of issuer_fix: read pspec.microwatt_old and pspec.microwatt_debug --- 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)