gowin: BUGFIX. Place the ALU head in sliсe 0 only

Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
This commit is contained in:
YRabbit 2021-12-11 19:10:02 +10:00
parent fd2d4a8f99
commit e0ab7bf6c1

View File

@ -89,6 +89,9 @@ static void pack_alus(Context *ctx)
} }
std::unique_ptr<CellInfo> packed_head = create_generic_cell(ctx, id_SLICE, ci->name.str(ctx) + "_HEAD_ALULC"); std::unique_ptr<CellInfo> packed_head = create_generic_cell(ctx, id_SLICE, ci->name.str(ctx) + "_HEAD_ALULC");
// Head is always SLICE0
packed_head->constr_z = 0;
packed_head->constr_abs_z = true;
if (ctx->verbose) { if (ctx->verbose) {
log_info("packed ALU head into %s. CIN net is %s\n", ctx->nameOf(packed_head.get()), log_info("packed ALU head into %s. CIN net is %s\n", ctx->nameOf(packed_head.get()),
ctx->nameOf(cin_netId)); ctx->nameOf(cin_netId));