soc_core: avoid manual listing of support CPUs, just use CPU.keys()
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Sat, 28 Sep 2019 17:04:38 +0000 (19:04 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Sat, 28 Sep 2019 20:19:23 +0000 (22:19 +0200)
litex/soc/integration/soc_core.py

index 60e5a7c27580c42eb4ff675842fbc344b661d82d..21e8d005a22d5f609b0aa1dbc8ab416df3d6223b 100644 (file)
@@ -548,7 +548,7 @@ class SoCCore(Module):
 
 def soc_core_args(parser):
     parser.add_argument("--cpu-type", default=None,
-                        help="select CPU: lm32, or1k, picorv32, vexriscv, minerva, rocket")
+                        help="select CPU: {}".format(", ".join(iter(cpu.CPUS.keys()))))
     parser.add_argument("--cpu-variant", default=None,
                         help="select CPU variant")
     parser.add_argument("--integrated-rom-size", default=None, type=int,