From: Florent Kermarrec Date: Sun, 5 Jan 2020 20:04:13 +0000 (+0100) Subject: cpu/minerva: fix variant syntax warning X-Git-Tag: 24jan2021_ls180~773 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=642d073700ef4b9541c502140535316c48e36fb0;p=litex.git cpu/minerva: fix variant syntax warning --- diff --git a/litex/soc/cores/cpu/minerva/core.py b/litex/soc/cores/cpu/minerva/core.py index 9cac00d8..b592e34c 100644 --- a/litex/soc/cores/cpu/minerva/core.py +++ b/litex/soc/cores/cpu/minerva/core.py @@ -29,7 +29,7 @@ class Minerva(CPU): return flags def __init__(self, platform, variant="standard"): - assert variant is "standard", "Unsupported variant %s" % variant + assert variant in CPU_VARIANTS, "Unsupported variant %s" % variant self.platform = platform self.variant = variant self.reset = Signal()