diff options
author | gatecat <gatecat@ds0.me> | 2021-10-11 20:12:08 +0100 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2021-10-11 20:12:56 +0100 |
commit | 15c10796bdf6d99d440d31f98dea3daca195a57d (patch) | |
tree | 73699027a87fe04436412e07aa9cb5505e26df33 /mistral/pack.cc | |
parent | dd2c5942a4c261fc26b16e19280490a2860020fa (diff) | |
download | nextpnr-15c10796bdf6d99d440d31f98dea3daca195a57d.tar.gz nextpnr-15c10796bdf6d99d440d31f98dea3daca195a57d.tar.bz2 nextpnr-15c10796bdf6d99d440d31f98dea3daca195a57d.zip |
mistral: Fix MLAB clustering
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'mistral/pack.cc')
-rw-r--r-- | mistral/pack.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mistral/pack.cc b/mistral/pack.cc index ef3b3887..4b434015 100644 --- a/mistral/pack.cc +++ b/mistral/pack.cc @@ -367,8 +367,9 @@ struct MistralPacker CellInfo *ci = group.at(i); CellInfo *base = group.at((i / cluster_size) * cluster_size); int cell_index = int(i) % cluster_size; - int alm = i / 2; - int alm_cell = i % 2; + int alm = cell_index / 2; + int alm_cell = cell_index % 2; + ci->cluster = base->name; ci->constr_abs_z = true; ci->constr_z = alm * 6 + alm_cell; if (cell_index != 0) { |