kasli: raise error when enabling WRPLL with v1.x

This commit is contained in:
morgan 2024-06-19 12:08:35 +08:00 committed by Sébastien Bourdeauducq
parent 84b97976c0
commit 77580b5bf6

View File

@ -843,6 +843,8 @@ def main():
has_shuttler = any(peripheral["type"] == "shuttler" for peripheral in description["peripherals"])
if has_shuttler and (description["drtio_role"] == "standalone"):
raise ValueError("Shuttler requires DRTIO, please switch role to master")
if description["enable_wrpll"] and description["hw_rev"] in ["v1.0", "v1.1"]:
raise ValueError("Kasli {} does not support WRPLL".format(description["hw_rev"]))
soc = cls(description, gateware_identifier_str=args.gateware_identifier_str, **soc_kasli_argdict(args))
args.variant = description["variant"]