Update icestorm.py with u4k device, since Yosys can target it

This commit is contained in:
Chris Osterwood 2021-10-08 15:20:39 -04:00 committed by GitHub
parent db20cb172d
commit 665665e1cc
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"],
"up3k": ["sg48", "uwg30"],
"up5k": ["sg48", "uwg30"],
"u4k": ["sg48"],
}
(family, architecture, package) = device.split("-")
if family not in ["ice40"]:
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))
if package not in packages[architecture]:
raise ValueError("Invalid device package {}".format(package))