Merge pull request #1061 from osterwood/patch-1

Update icestorm.py with u4k device, since Yosys can target it
This commit is contained in:
enjoy-digital 2021-10-11 10:21:23 +02:00 committed by GitHub
commit 975ec20d1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -84,12 +84,13 @@ def parse_device(device):
"ct256", "tq144:4k"], "ct256", "tq144:4k"],
"up3k": ["sg48", "uwg30"], "up3k": ["sg48", "uwg30"],
"up5k": ["sg48", "uwg30"], "up5k": ["sg48", "uwg30"],
"u4k": ["sg48"],
} }
(family, architecture, package) = device.split("-") (family, architecture, package) = device.split("-")
if family not in ["ice40"]: if family not in ["ice40"]:
raise ValueError("Unknown device family {}".format(family)) raise ValueError("Unknown device family {}".format(family))
if architecture not in ["lp384", "lp1k", "hx1k", "lp8k", "hx8k", "up5k"]: if architecture not in packages.keys():
raise ValueError("Invalid device architecture {}".format(architecture)) raise ValueError("Invalid device architecture {}".format(architecture))
if package not in packages[architecture]: if package not in packages[architecture]:
raise ValueError("Invalid device package {}".format(package)) raise ValueError("Invalid device package {}".format(package))