From ab7c49d6d0d24ed6e5f20e74296f7059f8c9f870 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 23 Jan 2018 00:02:16 +0800 Subject: [PATCH] sayma_amc: raise error on invalid variant --- artiq/gateware/targets/sayma_amc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artiq/gateware/targets/sayma_amc.py b/artiq/gateware/targets/sayma_amc.py index f7a22873d..88af9bd3a 100755 --- a/artiq/gateware/targets/sayma_amc.py +++ b/artiq/gateware/targets/sayma_amc.py @@ -461,6 +461,8 @@ def main(): cls = Master elif variant == "satellite": cls = Satellite + else: + raise SystemExit("Invalid variant (-V/--variant)") soc = cls(with_sawg=not args.without_sawg, **soc_sdram_argdict(args)) # DRTIO variants do not use the RTM yet.