diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-07-11 18:15:08 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-07-11 18:15:08 +0200 |
commit | 7daa8524c8ab8c9ff5400d5074b80573b0d39a14 (patch) | |
tree | 372ed9db3069f40e733a503472659155ea62f4dc /generic | |
parent | 7df67c91b38433e8a1002f8e9f53926aafaa4d1b (diff) | |
download | nextpnr-7daa8524c8ab8c9ff5400d5074b80573b0d39a14.tar.gz nextpnr-7daa8524c8ab8c9ff5400d5074b80573b0d39a14.tar.bz2 nextpnr-7daa8524c8ab8c9ff5400d5074b80573b0d39a14.zip |
Add ctx->place() API
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'generic')
-rw-r--r-- | generic/arch.cc | 6 | ||||
-rw-r--r-- | generic/arch.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/generic/arch.cc b/generic/arch.cc index b82d8ce6..2282b2b8 100644 --- a/generic/arch.cc +++ b/generic/arch.cc @@ -19,6 +19,7 @@ #include <math.h> #include "nextpnr.h" +#include "placer1.h" #include "router1.h" NEXTPNR_NAMESPACE_BEGIN @@ -316,6 +317,11 @@ delay_t Arch::estimateDelay(WireId src, WireId dst) const // --------------------------------------------------------------- +bool Arch::place() +{ + return placer1(getCtx()); +} + bool Arch::route() { return router1(getCtx()); diff --git a/generic/arch.h b/generic/arch.h index 60ac9435..85f469f9 100644 --- a/generic/arch.h +++ b/generic/arch.h @@ -158,6 +158,7 @@ struct Arch : BaseCtx float getDelayNS(delay_t v) const { return v; } uint32_t getDelayChecksum(delay_t v) const { return 0; } + bool place(); bool route(); const std::vector<GraphicElement> &getDecalGraphics(DecalId decal) const; |