aboutsummaryrefslogtreecommitdiffstats
path: root/icebox
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2017-11-17 15:00:08 +0000
committerDavid Shah <davey1576@gmail.com>2017-11-17 15:10:04 +0000
commit095b8404e8397f767c0d0fe62664906b5b3d15a8 (patch)
tree9a677711ed8776b8c76d4a5edf2583614107f0e4 /icebox
parentafcc653b7882217d98aad95829256d65665f7c07 (diff)
downloadicestorm-095b8404e8397f767c0d0fe62664906b5b3d15a8.tar.gz
icestorm-095b8404e8397f767c0d0fe62664906b5b3d15a8.tar.bz2
icestorm-095b8404e8397f767c0d0fe62664906b5b3d15a8.zip
Remove non-existing routing resources (5k)
Diffstat (limited to 'icebox')
-rw-r--r--icebox/icebox.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/icebox/icebox.py b/icebox/icebox.py
index 0a810e8..ce2a3cd 100644
--- a/icebox/icebox.py
+++ b/icebox/icebox.py
@@ -519,8 +519,9 @@ class iceconfig:
h_idx = idx - 28
elif corner == "tl":
#TODO: bounds check for v_idx case?
- v_idx = (idx + 8) ^ 1
- if idx >= 8 and idx < 32:
+ if idx >= 4:
+ v_idx = (idx + 8) ^ 1
+ if idx >= 12 and idx < 28:
h_idx = (idx ^ 1) - 8
elif corner == "tr":
#TODO: bounds check for v_idx case?