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 Sebastien Bourdeauducq
parent 49a5c1b13c
commit 56059250ce

View File

@ -843,6 +843,8 @@ def main():
has_shuttler = any(peripheral["type"] == "shuttler" for peripheral in description["peripherals"]) has_shuttler = any(peripheral["type"] == "shuttler" for peripheral in description["peripherals"])
if has_shuttler and (description["drtio_role"] == "standalone"): if has_shuttler and (description["drtio_role"] == "standalone"):
raise ValueError("Shuttler requires DRTIO, please switch role to master") 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)) soc = cls(description, gateware_identifier_str=args.gateware_identifier_str, **soc_kasli_argdict(args))
args.variant = description["variant"] args.variant = description["variant"]