cpu/minerva: fix variant syntax warning
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Sun, 5 Jan 2020 20:04:13 +0000 (21:04 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Sun, 5 Jan 2020 20:04:27 +0000 (21:04 +0100)
litex/soc/cores/cpu/minerva/core.py

index 9cac00d8c776b9567529e27cf13213cd42100949..b592e34ca88f5ab8e30840a46dd471917ed99605 100644 (file)
@@ -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()