gatemate: Place CC_MULT packed P register in same row

Signed-off-by: Jasper Homann <jasper.homann@tu-braunschweig.de>
This commit is contained in:
Jasper Homann 2026-08-05 18:03:46 +02:00
parent 8d8053e0c5
commit eec97e77d5
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);
}
}
}