ecp5: Fixing arch bugs
Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
parent
93f379a488
commit
59cb1600d9
@ -272,7 +272,11 @@ BelId Arch::getPackagePinBel(const std::string &pin) const { return BelId(); }
|
|||||||
std::string Arch::getBelPackagePin(BelId bel) const { return ""; }
|
std::string Arch::getBelPackagePin(BelId bel) const { return ""; }
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
|
||||||
void Arch::estimatePosition(BelId bel, int &x, int &y, bool &gb) const {}
|
void Arch::estimatePosition(BelId bel, int &x, int &y, bool &gb) const {
|
||||||
|
x = bel.location.x;
|
||||||
|
y = bel.location.y;
|
||||||
|
gb = false;
|
||||||
|
}
|
||||||
|
|
||||||
delay_t Arch::estimateDelay(WireId src, WireId dst) const { return 1; }
|
delay_t Arch::estimateDelay(WireId src, WireId dst) const { return 1; }
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ struct Location
|
|||||||
Location(const Location &loc) : x(loc.x), y(loc.y){};
|
Location(const Location &loc) : x(loc.x), y(loc.y){};
|
||||||
|
|
||||||
bool operator==(const Location &other) const { return x == other.x && y == other.y; }
|
bool operator==(const Location &other) const { return x == other.x && y == other.y; }
|
||||||
bool operator!=(const Location &other) const { return x != other.x || y == other.y; }
|
bool operator!=(const Location &other) const { return x != other.x || y != other.y; }
|
||||||
};
|
};
|
||||||
|
|
||||||
inline Location operator+(const Location &a, const Location &b) { return Location(a.x + b.x, a.y + b.y); }
|
inline Location operator+(const Location &a, const Location &b) { return Location(a.x + b.x, a.y + b.y); }
|
||||||
|
Loading…
Reference in New Issue
Block a user