aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5
diff options
context:
space:
mode:
Diffstat (limited to 'ecp5')
-rw-r--r--ecp5/arch.cc6
-rw-r--r--ecp5/archdefs.h2
2 files changed, 6 insertions, 2 deletions
diff --git a/ecp5/arch.cc b/ecp5/arch.cc
index a200e102..6708c339 100644
--- a/ecp5/arch.cc
+++ b/ecp5/arch.cc
@@ -272,7 +272,11 @@ BelId Arch::getPackagePinBel(const std::string &pin) const { return BelId(); }
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; }
diff --git a/ecp5/archdefs.h b/ecp5/archdefs.h
index b05ac22c..4facc786 100644
--- a/ecp5/archdefs.h
+++ b/ecp5/archdefs.h
@@ -71,7 +71,7 @@ struct Location
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; }
};
inline Location operator+(const Location &a, const Location &b) { return Location(a.x + b.x, a.y + b.y); }