forked from M-Labs/artiq
1
0
Fork 0

sayma_amc: raise error on invalid variant

This commit is contained in:
Sebastien Bourdeauducq 2018-01-23 00:02:16 +08:00
parent c1ac3b66b1
commit ab7c49d6d0
1 changed files with 2 additions and 0 deletions

View File

@ -461,6 +461,8 @@ def main():
cls = Master cls = Master
elif variant == "satellite": elif variant == "satellite":
cls = Satellite cls = Satellite
else:
raise SystemExit("Invalid variant (-V/--variant)")
soc = cls(with_sawg=not args.without_sawg, **soc_sdram_argdict(args)) soc = cls(with_sawg=not args.without_sawg, **soc_sdram_argdict(args))
# DRTIO variants do not use the RTM yet. # DRTIO variants do not use the RTM yet.