gatemate: Place CC_MULT packed P register in same row (#1771)

Signed-off-by: Jasper Homann <jasper.homann@tu-braunschweig.de>
This commit is contained in:
Jasper Homann 2026-08-06 00:49:49 +02:00 committed by GitHub
parent 8d8053e0c5
commit 8f6cab0fc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -1026,7 +1026,7 @@ void GateMatePacker::pack_mult()
auto *sink = cpe_half_cpout_user.cell;
NPNR_ASSERT(sink != nullptr);
if (sink->type == id_CC_DFF && should_pack_register) {
create_p_register(cpe_half, sink, b_width / 2, b_width / 2 + p / 2, p % 2 == 1, p);
create_p_register(cpe_half, sink, b_width / 2, 4 + p / 2, p % 2 == 1, p);
}
}
}
@ -1043,8 +1043,8 @@ void GateMatePacker::pack_mult()
auto *sink = cpe_half_cpout_user.cell;
NPNR_ASSERT(sink != nullptr);
if (sink->type == id_CC_DFF && should_pack_register) {
create_p_register(cpe_half, sink, b_width / 2, b_width / 2 + diagonal_p_width / 2 + p / 2,
p % 2 == 1, p + diagonal_p_width);
create_p_register(cpe_half, sink, b_width / 2, 4 + diagonal_p_width / 2 + p / 2, p % 2 == 1,
p + diagonal_p_width);
}
}
}