ecp5: Regression fix & format
Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
parent
91a0927196
commit
7e1df82462
@ -87,7 +87,10 @@ struct BelId
|
||||
|
||||
bool operator==(const BelId &other) const { return index == other.index && location == other.location; }
|
||||
bool operator!=(const BelId &other) const { return index != other.index || location != other.location; }
|
||||
bool operator<(const BelId &other) const { return location == other.location ? index < other.index : location < other.location; }
|
||||
bool operator<(const BelId &other) const
|
||||
{
|
||||
return location == other.location ? index < other.index : location < other.location;
|
||||
}
|
||||
};
|
||||
|
||||
struct WireId
|
||||
@ -97,7 +100,10 @@ struct WireId
|
||||
|
||||
bool operator==(const WireId &other) const { return index == other.index && location == other.location; }
|
||||
bool operator!=(const WireId &other) const { return index != other.index || location != other.location; }
|
||||
bool operator<(const WireId &other) const { return location == other.location ? index < other.index : location < other.location; }
|
||||
bool operator<(const WireId &other) const
|
||||
{
|
||||
return location == other.location ? index < other.index : location < other.location;
|
||||
}
|
||||
};
|
||||
|
||||
struct PipId
|
||||
@ -107,7 +113,10 @@ struct PipId
|
||||
|
||||
bool operator==(const PipId &other) const { return index == other.index && location == other.location; }
|
||||
bool operator!=(const PipId &other) const { return index != other.index || location != other.location; }
|
||||
bool operator<(const PipId &other) const { return location == other.location ? index < other.index : location < other.location; }
|
||||
bool operator<(const PipId &other) const
|
||||
{
|
||||
return location == other.location ? index < other.index : location < other.location;
|
||||
}
|
||||
};
|
||||
|
||||
struct GroupId
|
||||
|
@ -426,7 +426,8 @@ void fix_tile_names(Context *ctx, ChipConfig &cc)
|
||||
auto cibdcu = tile.first.find("CIB_DCU");
|
||||
if (cibdcu != std::string::npos) {
|
||||
// Add the V
|
||||
newname.insert(cibdcu, 1, 'V');
|
||||
if (newname.at(cibdcu - 1) != 'V')
|
||||
newname.insert(cibdcu, 1, 'V');
|
||||
tiletype_xform[tile.first] = newname;
|
||||
} else if (tile.first.substr(tile.first.size() - 7) == "BMID_0H") {
|
||||
newname.back() = 'V';
|
||||
|
Loading…
Reference in New Issue
Block a user