From 96293ab25ea1adda3e0ead128312f3afd3ac4764 Mon Sep 17 00:00:00 2001 From: Keith Rothman <537074+litghost@users.noreply.github.com> Date: Thu, 11 Feb 2021 13:41:13 -0800 Subject: 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> --- frontend/frontend_base.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'frontend') 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 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; -- cgit v1.2.3