diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-07-11 18:04:09 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-07-11 18:04:09 +0200 |
commit | 7df67c91b38433e8a1002f8e9f53926aafaa4d1b (patch) | |
tree | 1a1f459ef291f7e8d026125206f3fe934e97086d /ecp5/arch.cc | |
parent | e9b27860daa97eb66c3268be247c28d15d33db1e (diff) | |
download | nextpnr-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 'ecp5/arch.cc')
-rw-r--r-- | ecp5/arch.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ecp5/arch.cc b/ecp5/arch.cc index 6d320996..74548391 100644 --- a/ecp5/arch.cc +++ b/ecp5/arch.cc @@ -23,6 +23,7 @@ #include <cstring> #include "log.h" #include "nextpnr.h" +#include "router1.h" #include "util.h" NEXTPNR_NAMESPACE_BEGIN @@ -288,6 +289,13 @@ delay_t Arch::estimateDelay(WireId src, WireId dst) const // ----------------------------------------------------------------------- +bool Arch::route() +{ + return router1(getCtx()); +} + +// ----------------------------------------------------------------------- + std::vector<GraphicElement> Arch::getDecalGraphics(DecalId decalId) const { std::vector<GraphicElement> ret; |