aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/pack.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-06-21 19:31:50 +0200
committerClifford Wolf <clifford@clifford.at>2018-06-21 19:31:50 +0200
commitbfae4663fcb6028e8c20f28d5ffa15fd20d8e1fa (patch)
treeb5dd0075a7a75ef9c24e0f758b80b5da5ee18b3f /ice40/pack.cc
parent38dc1cc5504961f666da32d7249532a23d5876ad (diff)
parentc33a039ac388bfcb5e068a04a7cb1b05ebec7d7f (diff)
downloadnextpnr-bfae4663fcb6028e8c20f28d5ffa15fd20d8e1fa.tar.gz
nextpnr-bfae4663fcb6028e8c20f28d5ffa15fd20d8e1fa.tar.bz2
nextpnr-bfae4663fcb6028e8c20f28d5ffa15fd20d8e1fa.zip
Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr
# Conflicts: # common/route.cc
Diffstat (limited to 'ice40/pack.cc')
-rw-r--r--ice40/pack.cc22
1 files changed, 13 insertions, 9 deletions
diff --git a/ice40/pack.cc b/ice40/pack.cc
index 7fcf2750..9258014e 100644
--- a/ice40/pack.cc
+++ b/ice40/pack.cc
@@ -487,15 +487,19 @@ static void promote_globals(Context *ctx)
// Main pack function
bool pack_design(Context *ctx)
{
- log_break();
- pack_constants(ctx);
- promote_globals(ctx);
- pack_io(ctx);
- pack_lut_lutffs(ctx);
- pack_nonlut_ffs(ctx);
- pack_ram(ctx);
- log_info("Checksum: 0x%08x\n", ctx->checksum());
- return true;
+ try {
+ log_break();
+ pack_constants(ctx);
+ promote_globals(ctx);
+ pack_io(ctx);
+ pack_lut_lutffs(ctx);
+ pack_nonlut_ffs(ctx);
+ pack_ram(ctx);
+ log_info("Checksum: 0x%08x\n", ctx->checksum());
+ return true;
+ } catch (log_execution_error_exception) {
+ return false;
+ }
}
NEXTPNR_NAMESPACE_END