From 665665e1ccbe5b3d5775cfc27f2cf954fc71ee07 Mon Sep 17 00:00:00 2001 From: Chris Osterwood Date: Fri, 8 Oct 2021 15:20:39 -0400 Subject: [PATCH] Update icestorm.py with u4k device, since Yosys can target it --- litex/build/lattice/icestorm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litex/build/lattice/icestorm.py b/litex/build/lattice/icestorm.py index db32181f4..2c45d1e0e 100644 --- a/litex/build/lattice/icestorm.py +++ b/litex/build/lattice/icestorm.py @@ -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))