aboutsummaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/arch.cc9
-rw-r--r--generic/arch.h2
2 files changed, 11 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; }
diff --git a/generic/arch.h b/generic/arch.h
index c73bbf3f..60ac9435 100644
--- a/generic/arch.h
+++ b/generic/arch.h
@@ -158,6 +158,8 @@ struct Arch : BaseCtx
float getDelayNS(delay_t v) const { return v; }
uint32_t getDelayChecksum(delay_t v) const { return 0; }
+ bool route();
+
const std::vector<GraphicElement> &getDecalGraphics(DecalId decal) const;
DecalXY getFrameDecal() const;
DecalXY getBelDecal(BelId bel) const;