aboutsummaryrefslogtreecommitdiffstats
path: root/gui
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 /gui
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 'gui')
-rw-r--r--gui/ice40/mainwindow.cc3
-rw-r--r--gui/ice40/worker.cc3
2 files changed, 2 insertions, 4 deletions
diff --git a/gui/ice40/mainwindow.cc b/gui/ice40/mainwindow.cc
index c4e568a3..ea7e0667 100644
--- a/gui/ice40/mainwindow.cc
+++ b/gui/ice40/mainwindow.cc
@@ -30,7 +30,6 @@
#include "pack.h"
#include "pcf.h"
#include "place_sa.h"
-#include "route.h"
static void initMainResource() { Q_INIT_RESOURCE(nextpnr); }
@@ -444,4 +443,4 @@ void MainWindow::budget()
void MainWindow::place() { Q_EMIT task->place(timing_driven); }
-NEXTPNR_NAMESPACE_END \ No newline at end of file
+NEXTPNR_NAMESPACE_END
diff --git a/gui/ice40/worker.cc b/gui/ice40/worker.cc
index ab82b6bb..fc21ed34 100644
--- a/gui/ice40/worker.cc
+++ b/gui/ice40/worker.cc
@@ -26,7 +26,6 @@
#include "pack.h"
#include "pcf.h"
#include "place_sa.h"
-#include "route.h"
#include "timing.h"
NEXTPNR_NAMESPACE_BEGIN
@@ -134,7 +133,7 @@ void Worker::route()
{
Q_EMIT taskStarted();
try {
- Q_EMIT route_finished(route_design(ctx));
+ Q_EMIT route_finished(ctx->route());
} catch (WorkerInterruptionRequested) {
Q_EMIT taskCanceled();
}