aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYRabbit <rabbit@yrabbit.cyou>2021-12-11 19:10:02 +1000
committerYRabbit <rabbit@yrabbit.cyou>2021-12-11 19:10:02 +1000
commite0ab7bf6c16953e5cf688b7e4bfffe99e937c072 (patch)
treee4d61a10e3079a206b1336d29cc2e3a28ddc4985
parentfd2d4a8f999947ece42f791e19ddc4c2d8b823f2 (diff)
downloadnextpnr-e0ab7bf6c16953e5cf688b7e4bfffe99e937c072.tar.gz
nextpnr-e0ab7bf6c16953e5cf688b7e4bfffe99e937c072.tar.bz2
nextpnr-e0ab7bf6c16953e5cf688b7e4bfffe99e937c072.zip
gowin: BUGFIX. Place the ALU head in sliсe 0 only
Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
-rw-r--r--gowin/pack.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gowin/pack.cc b/gowin/pack.cc
index 2616a913..4c6e28ca 100644
--- a/gowin/pack.cc
+++ b/gowin/pack.cc
@@ -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");
+ // Head is always SLICE0
+ packed_head->constr_z = 0;
+ packed_head->constr_abs_z = true;
if (ctx->verbose) {
log_info("packed ALU head into %s. CIN net is %s\n", ctx->nameOf(packed_head.get()),
ctx->nameOf(cin_netId));