From 642d073700ef4b9541c502140535316c48e36fb0 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sun, 5 Jan 2020 21:04:13 +0100 Subject: [PATCH] cpu/minerva: fix variant syntax warning --- litex/soc/cores/cpu/minerva/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/cores/cpu/minerva/core.py b/litex/soc/cores/cpu/minerva/core.py index 9cac00d8c..b592e34ca 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()