aboutsummaryrefslogtreecommitdiffstats
path: root/icebox/icebox_vlog.py
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-02-23 08:35:26 -0800
committerGitHub <noreply@github.com>2019-02-23 08:35:26 -0800
commit3a2bfee5cbc0558641668114260d3f644d6b7c83 (patch)
treec52eaf3de8d20ab4f198720ab3863c17448e6f13 /icebox/icebox_vlog.py
parenta2c8be79487ad448198357d63e7b9f0f946066f1 (diff)
parentbe0bca0230d6fe1102e0a360b953fbb0d273a39f (diff)
downloadicestorm-3a2bfee5cbc0558641668114260d3f644d6b7c83.tar.gz
icestorm-3a2bfee5cbc0558641668114260d3f644d6b7c83.tar.bz2
icestorm-3a2bfee5cbc0558641668114260d3f644d6b7c83.zip
Merge pull request #202 from corecode/u4k
iCE40 Ultra = iCE5LP = u4k port
Diffstat (limited to 'icebox/icebox_vlog.py')
-rwxr-xr-xicebox/icebox_vlog.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/icebox/icebox_vlog.py b/icebox/icebox_vlog.py
index 0080f34..64e9ea5 100755
--- a/icebox/icebox_vlog.py
+++ b/icebox/icebox_vlog.py
@@ -325,7 +325,7 @@ for segs in sorted(ic.group_segments(extra_connections=extra_connections, extra_
match = re.match("lutff_(\d+)/", s[2])
if match:
#IpCon and DSP tiles look like logic tiles, but aren't.
- if ic.device == "5k" and (s[0] == 0 or s[0] == ic.max_x):
+ if ic.device in ["5k", "u4k"] and (s[0] == 0 or s[0] == ic.max_x):
special_5k_queue.add((s[0], s[1]))
else:
luts_queue.add((s[0], s[1], int(match.group(1))))
@@ -743,7 +743,7 @@ for tile in ic.ramb_tiles:
if len(wire_bits) > 1:
return "{%s}" % ", ".join(wire_bits)
return wire_bits[0]
- if get_ram_config('PowerUp') == (ic.device in ("8k", "5k")):
+ if get_ram_config('PowerUp') == (ic.device in ("8k", "5k", "u4k")):
if not strip_comments:
text_func.append("// RAM TILE %d %d" % tile)
text_func.append("SB_RAM40_4K%s%s #(" % ("NR" if negclk_rd else "", "NW" if negclk_wr else ""));