From d60c52e315675237cb98b2c9f191897ed438decc Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 27 Nov 2025 12:33:43 +0100 Subject: [PATCH] cleanup --- himbaechel/uarch/gatemate/ccf.cc | 8 +++----- himbaechel/uarch/gatemate/pack.cc | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/himbaechel/uarch/gatemate/ccf.cc b/himbaechel/uarch/gatemate/ccf.cc index 16620d77..ea73a2a1 100644 --- a/himbaechel/uarch/gatemate/ccf.cc +++ b/himbaechel/uarch/gatemate/ccf.cc @@ -192,7 +192,7 @@ struct GateMateCCFReader continue; } if (floorplanning) { - int size = -1; + // int size = -1; std::string src_location; std::string s = linebuf; @@ -219,12 +219,12 @@ struct GateMateCCFReader } // find size - size = -1; + // size = -1; for (size_t i = 0; i + 1 < parts.size(); ++i) { if (boost::iequals(parts[i], "size")) { if (!parts[i + 1].empty() && std::all_of(parts[i + 1].begin(), parts[i + 1].end(), ::isdigit)) { - size = std::stoi(parts[i + 1]); + // size = std::stoi(parts[i + 1]); } break; } @@ -259,8 +259,6 @@ struct GateMateCCFReader int x2 = std::stoi(match[3]); int y2 = std::stoi(match[4]); - log("size = %d src=%s pB=(%d,%d, %d,%d)\n", size, src_location.c_str(), x1, y1, x2, - y2); IdString scopename(ctx, src_location.c_str()); ctx->createRectangularRegion(scopename, x1, y1, x2, y2); uarch->scopenames.emplace(scopename); diff --git a/himbaechel/uarch/gatemate/pack.cc b/himbaechel/uarch/gatemate/pack.cc index f6223515..fc7e39e0 100644 --- a/himbaechel/uarch/gatemate/pack.cc +++ b/himbaechel/uarch/gatemate/pack.cc @@ -527,7 +527,7 @@ void GateMatePacker::assign_regions() scope = str_or_default(ci.attrs, ctx->id("hdlname"), ""); scope = "top " + scope; } - IdString name = IdString(ctx,scope.c_str()); + IdString name = IdString(ctx, scope.c_str()); if (uarch->scopenames.count(name)) ctx->constrainCellToRegion(ci.name, name); if (ci.attrs.count(id_GATEMATE_DIE) != 0) {