aboutsummaryrefslogtreecommitdiffstats
path: root/mistral/arch.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-10-11 14:35:28 +0100
committerGitHub <noreply@github.com>2021-10-11 14:35:28 +0100
commit349cbdf9da230c04671f7a7bcc2f2ea07f180de4 (patch)
treea4a7dde2ba9738f6034eaa45b81c5801483e70a2 /mistral/arch.cc
parent9963f76583ba133e9bdd1e71af167b4ce7f87381 (diff)
parent0a0c9393c1277b2e175d348fb4aca2a4d73ad61c (diff)
downloadnextpnr-349cbdf9da230c04671f7a7bcc2f2ea07f180de4.tar.gz
nextpnr-349cbdf9da230c04671f7a7bcc2f2ea07f180de4.tar.bz2
nextpnr-349cbdf9da230c04671f7a7bcc2f2ea07f180de4.zip
Merge pull request #843 from Ravenslofty/lofty/mistral-basic-timing
mistral: very basic timing info
Diffstat (limited to 'mistral/arch.cc')
-rw-r--r--mistral/arch.cc20
1 files changed, 0 insertions, 20 deletions
diff --git a/mistral/arch.cc b/mistral/arch.cc
index 52ba14fb..8ac225d4 100644
--- a/mistral/arch.cc
+++ b/mistral/arch.cc
@@ -388,15 +388,6 @@ void Arch::assignArchInfo()
}
}
-delay_t Arch::estimateDelay(WireId src, WireId dst) const
-{
- int x0 = CycloneV::rn2x(src.node);
- int y0 = CycloneV::rn2y(src.node);
- int x1 = CycloneV::rn2x(dst.node);
- int y1 = CycloneV::rn2y(dst.node);
- return 100 * std::abs(y1 - y0) + 100 * std::abs(x1 - x0) + 100;
-}
-
ArcBounds Arch::getRouteBoundingBox(WireId src, WireId dst) const
{
ArcBounds bounds;
@@ -411,17 +402,6 @@ ArcBounds Arch::getRouteBoundingBox(WireId src, WireId dst) const
return bounds;
}
-delay_t Arch::predictDelay(const NetInfo *net_info, const PortRef &sink) const
-{
- if (net_info->driver.cell == nullptr || net_info->driver.cell->bel == BelId())
- return 100;
- if (sink.cell->bel == BelId())
- return 100;
- Loc src_loc = getBelLocation(net_info->driver.cell->bel);
- Loc dst_loc = getBelLocation(sink.cell->bel);
- return std::abs(dst_loc.y - src_loc.y) * 100 + std::abs(dst_loc.x - src_loc.x) * 100 + 100;
-}
-
bool Arch::place()
{
std::string placer = str_or_default(settings, id("placer"), defaultPlacer);