aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2018-12-05 10:12:23 +0000
committerDavid Shah <dave@ds0.me>2018-12-05 10:12:23 +0000
commitd298687dc2472e3afd2b19979719658b5eba3132 (patch)
tree75d53fc7726cb6bd9f26990dea6df50a12f5b072
parent51cda136b185730afa9e058e5b8e998cdb8c1d08 (diff)
downloadnextpnr-d298687dc2472e3afd2b19979719658b5eba3132.tar.gz
nextpnr-d298687dc2472e3afd2b19979719658b5eba3132.tar.bz2
nextpnr-d298687dc2472e3afd2b19979719658b5eba3132.zip
ice40: Fix carry chain splitting
Signed-off-by: David Shah <dave@ds0.me>
-rw-r--r--ice40/chains.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ice40/chains.cc b/ice40/chains.cc
index b8fbee0f..3ef367f1 100644
--- a/ice40/chains.cc
+++ b/ice40/chains.cc
@@ -62,7 +62,7 @@ class ChainConstrainer
bool split_chain = (!ctx->logicCellsCompatible(tile.data(), tile.size())) ||
(int(chains.back().cells.size()) > max_length);
if (split_chain) {
- CellInfo *passout = make_carry_pass_out(cell->ports.at(ctx->id("COUT")));
+ CellInfo *passout = make_carry_pass_out((*(curr_cell - 1))->ports.at(ctx->id("COUT")));
tile.pop_back();
chains.back().cells.back() = passout;
start_of_chain = true;