aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/main.cc
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-07-08 12:56:43 +0200
committerDavid Shah <davey1576@gmail.com>2018-07-11 10:42:09 +0200
commit49f39b8d5635e607764f12c31d2f18a0f79b1969 (patch)
tree8df0b892c5e46fbad5829c4bddd3749c92165f09 /ecp5/main.cc
parent59cb1600d9995eb52af41caea7bc364dcf47ea35 (diff)
downloadnextpnr-49f39b8d5635e607764f12c31d2f18a0f79b1969.tar.gz
nextpnr-49f39b8d5635e607764f12c31d2f18a0f79b1969.tar.bz2
nextpnr-49f39b8d5635e607764f12c31d2f18a0f79b1969.zip
ecp5: Place design working, router now segfaults due to db issue
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ecp5/main.cc')
-rw-r--r--ecp5/main.cc13
1 files changed, 6 insertions, 7 deletions
diff --git a/ecp5/main.cc b/ecp5/main.cc
index a9b02537..245d1cc3 100644
--- a/ecp5/main.cc
+++ b/ecp5/main.cc
@@ -29,18 +29,18 @@
#endif
#include <boost/filesystem/convenience.hpp>
#include <boost/program_options.hpp>
-#include <iostream>
#include <fstream>
+#include <iostream>
#include "log.h"
#include "nextpnr.h"
#include "version.h"
+#include "design_utils.h"
+#include "jsonparse.h"
+#include "pack.h"
#include "place_sa.h"
#include "route.h"
-#include "design_utils.h"
#include "timing.h"
-#include "jsonparse.h"
-
USING_NEXTPNR_NAMESPACE
@@ -123,8 +123,8 @@ int main(int argc, char *argv[])
if (!parse_json_file(f, filename, &ctx))
log_error("Loading design failed.\n");
- //if (!pack_design(&ctx) && !ctx.force)
- // log_error("Packing design failed.\n");
+ if (!pack_design(&ctx) && !ctx.force)
+ log_error("Packing design failed.\n");
if (vm.count("freq"))
ctx.target_freq = vm["freq"].as<double>() * 1e6;
assign_budget(&ctx);
@@ -139,7 +139,6 @@ int main(int argc, char *argv[])
ctx.check();
if (!route_design(&ctx) && !ctx.force)
log_error("Routing design failed.\n");
-
}
#ifndef NO_PYTHON