aboutsummaryrefslogtreecommitdiffstats
path: root/generic/arch.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-07-11 18:04:09 +0200
committerClifford Wolf <clifford@clifford.at>2018-07-11 18:04:09 +0200
commit7df67c91b38433e8a1002f8e9f53926aafaa4d1b (patch)
tree1a1f459ef291f7e8d026125206f3fe934e97086d /generic/arch.cc
parente9b27860daa97eb66c3268be247c28d15d33db1e (diff)
downloadnextpnr-7df67c91b38433e8a1002f8e9f53926aafaa4d1b.tar.gz
nextpnr-7df67c91b38433e8a1002f8e9f53926aafaa4d1b.tar.bz2
nextpnr-7df67c91b38433e8a1002f8e9f53926aafaa4d1b.zip
Add ctx->route() API
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'generic/arch.cc')
-rw-r--r--generic/arch.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/generic/arch.cc b/generic/arch.cc
index b3854401..b82d8ce6 100644
--- a/generic/arch.cc
+++ b/generic/arch.cc
@@ -19,6 +19,7 @@
#include <math.h>
#include "nextpnr.h"
+#include "router1.h"
NEXTPNR_NAMESPACE_BEGIN
@@ -315,6 +316,14 @@ delay_t Arch::estimateDelay(WireId src, WireId dst) const
// ---------------------------------------------------------------
+bool Arch::route()
+{
+ return router1(getCtx());
+}
+
+// ---------------------------------------------------------------
+
+
const std::vector<GraphicElement> &Arch::getDecalGraphics(DecalId decal) const { return decal_graphics.at(decal); }
DecalXY Arch::getFrameDecal() const { return frame_decalxy; }