diff options
author | David Shah <dave@ds0.me> | 2018-12-05 10:12:23 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2018-12-05 10:12:23 +0000 |
commit | d298687dc2472e3afd2b19979719658b5eba3132 (patch) | |
tree | 75d53fc7726cb6bd9f26990dea6df50a12f5b072 /ice40 | |
parent | 51cda136b185730afa9e058e5b8e998cdb8c1d08 (diff) | |
download | nextpnr-d298687dc2472e3afd2b19979719658b5eba3132.tar.gz nextpnr-d298687dc2472e3afd2b19979719658b5eba3132.tar.bz2 nextpnr-d298687dc2472e3afd2b19979719658b5eba3132.zip |
ice40: Fix carry chain splitting
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'ice40')
-rw-r--r-- | ice40/chains.cc | 2 |
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; |