aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/chains.cc
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-08-03 15:40:01 +0200
committerDavid Shah <davey1576@gmail.com>2018-08-03 15:40:01 +0200
commit8c518cb8388df5b50b3c263d5a36d27851764fe4 (patch)
tree8807ade618751d1b0adcfb5382ef92662f87d810 /ice40/chains.cc
parent60757a2dd74bdaae6c20f59417a7a2597eb6d3bc (diff)
downloadnextpnr-8c518cb8388df5b50b3c263d5a36d27851764fe4.tar.gz
nextpnr-8c518cb8388df5b50b3c263d5a36d27851764fe4.tar.bz2
nextpnr-8c518cb8388df5b50b3c263d5a36d27851764fe4.zip
Fixing relative constraint implementation
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40/chains.cc')
-rw-r--r--ice40/chains.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ice40/chains.cc b/ice40/chains.cc
index b1ad1007..54e284af 100644
--- a/ice40/chains.cc
+++ b/ice40/chains.cc
@@ -260,7 +260,8 @@ class ChainConstrainer
log_info("Placing carry chain starting at '%s'\n", chain.cells.front()->name.c_str(ctx));
// Place carry chain
- chain.cells.at(0)->constr_abs_z = 0;
+ chain.cells.at(0)->constr_abs_z = true;
+ chain.cells.at(0)->constr_z = 0;
for (int i = 1; i < int(chain.cells.size()); i++) {
chain.cells.at(i)->constr_x = 0;
chain.cells.at(i)->constr_y = (i / 8);