From 8ccbf10ab0b919fec422f5d2434d060542916cdd Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 22 Aug 2024 12:20:34 +0200 Subject: [PATCH] When in place CSC size not important --- himbaechel/uarch/ng-ultra/pack.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/himbaechel/uarch/ng-ultra/pack.cc b/himbaechel/uarch/ng-ultra/pack.cc index daf002f6..eaaf8a87 100644 --- a/himbaechel/uarch/ng-ultra/pack.cc +++ b/himbaechel/uarch/ng-ultra/pack.cc @@ -2442,7 +2442,6 @@ void NgUltraPacker::insert_csc() int available_csc = 12; for (std::size_t i = 0; i < std::min(fanout.size(),available_csc ); i++) { auto &n = fanout.at(i); - if (lsm.second[n.second].size() < 4) break; NetInfo *net = ctx->nets.at(n.second).get(); CellInfo *cell = net->driver.cell; @@ -2468,6 +2467,7 @@ void NgUltraPacker::insert_csc() BelId newbel = getCSC(loc,(cell_loc.y & 3)+1); // Take CSC from pefered row if (newbel==BelId()) newbel = getCSC(loc,0); // Try getting any other CSC if (newbel==BelId()) break; + if (lsm.second[n.second].size() < 4) break; CellInfo *fe = create_cell_ptr(id_BEYOND_FE, ctx->id(net->name.str(ctx) + "$" + lsm.first.c_str(ctx) + "$csc")); NetInfo *new_out = ctx->createNet(ctx->id(fe->name.str(ctx) + "$o"));