aboutsummaryrefslogtreecommitdiffstats
path: root/frontend
diff options
context:
space:
mode:
authorKeith Rothman <537074+litghost@users.noreply.github.com>2021-02-11 13:41:13 -0800
committerKeith Rothman <537074+litghost@users.noreply.github.com>2021-02-11 13:43:23 -0800
commit96293ab25ea1adda3e0ead128312f3afd3ac4764 (patch)
tree379447d5b7f2769175b3ac39733e372198a228ac /frontend
parente376f950fe683b9a744437301a9e09eae1895efa (diff)
downloadnextpnr-96293ab25ea1adda3e0ead128312f3afd3ac4764.tar.gz
nextpnr-96293ab25ea1adda3e0ead128312f3afd3ac4764.tar.bz2
nextpnr-96293ab25ea1adda3e0ead128312f3afd3ac4764.zip
Add design_loaded state variable.
This is to decouple the command line flag "--json" and enable other frontend's. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
Diffstat (limited to 'frontend')
-rw-r--r--frontend/frontend_base.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/frontend/frontend_base.h b/frontend/frontend_base.h
index e262c943..4f7d22ec 100644
--- a/frontend/frontend_base.h
+++ b/frontend/frontend_base.h
@@ -135,6 +135,8 @@ template <typename FrontendType> struct GenericFrontend
ctx->top_module = top;
// Do the actual import, starting from the top level module
import_module(m, top.str(ctx), top.str(ctx), mod_refs.at(top));
+
+ ctx->design_loaded = true;
}
Context *ctx;