mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-01-11 23:53:21 +00:00
cleanup
This commit is contained in:
parent
ea6cb97ced
commit
d60c52e315
@ -192,7 +192,7 @@ struct GateMateCCFReader
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (floorplanning) {
|
if (floorplanning) {
|
||||||
int size = -1;
|
// int size = -1;
|
||||||
std::string src_location;
|
std::string src_location;
|
||||||
|
|
||||||
std::string s = linebuf;
|
std::string s = linebuf;
|
||||||
@ -219,12 +219,12 @@ struct GateMateCCFReader
|
|||||||
}
|
}
|
||||||
|
|
||||||
// find size
|
// find size
|
||||||
size = -1;
|
// size = -1;
|
||||||
for (size_t i = 0; i + 1 < parts.size(); ++i) {
|
for (size_t i = 0; i + 1 < parts.size(); ++i) {
|
||||||
if (boost::iequals(parts[i], "size")) {
|
if (boost::iequals(parts[i], "size")) {
|
||||||
if (!parts[i + 1].empty() &&
|
if (!parts[i + 1].empty() &&
|
||||||
std::all_of(parts[i + 1].begin(), parts[i + 1].end(), ::isdigit)) {
|
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;
|
break;
|
||||||
}
|
}
|
||||||
@ -259,8 +259,6 @@ struct GateMateCCFReader
|
|||||||
int x2 = std::stoi(match[3]);
|
int x2 = std::stoi(match[3]);
|
||||||
int y2 = std::stoi(match[4]);
|
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());
|
IdString scopename(ctx, src_location.c_str());
|
||||||
ctx->createRectangularRegion(scopename, x1, y1, x2, y2);
|
ctx->createRectangularRegion(scopename, x1, y1, x2, y2);
|
||||||
uarch->scopenames.emplace(scopename);
|
uarch->scopenames.emplace(scopename);
|
||||||
|
|||||||
@ -527,7 +527,7 @@ void GateMatePacker::assign_regions()
|
|||||||
scope = str_or_default(ci.attrs, ctx->id("hdlname"), "");
|
scope = str_or_default(ci.attrs, ctx->id("hdlname"), "");
|
||||||
scope = "top " + scope;
|
scope = "top " + scope;
|
||||||
}
|
}
|
||||||
IdString name = IdString(ctx,scope.c_str());
|
IdString name = IdString(ctx, scope.c_str());
|
||||||
if (uarch->scopenames.count(name))
|
if (uarch->scopenames.count(name))
|
||||||
ctx->constrainCellToRegion(ci.name, name);
|
ctx->constrainCellToRegion(ci.name, name);
|
||||||
if (ci.attrs.count(id_GATEMATE_DIE) != 0) {
|
if (ci.attrs.count(id_GATEMATE_DIE) != 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user