aboutsummaryrefslogtreecommitdiffstats
path: root/frontend
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2019-11-29 16:25:11 +0000
committerDavid Shah <dave@ds0.me>2019-12-27 10:44:30 +0000
commitb1000870244dbb1a73198e23a859825865938b4c (patch)
tree1958990ff08d0dca2034e91f5651e4533fe9f60e /frontend
parent9f6031cda13a290903785a1c469af02838309b39 (diff)
downloadnextpnr-b1000870244dbb1a73198e23a859825865938b4c.tar.gz
nextpnr-b1000870244dbb1a73198e23a859825865938b4c.tar.bz2
nextpnr-b1000870244dbb1a73198e23a859825865938b4c.zip
python: Add bindings for hierarchy structures
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'frontend')
-rw-r--r--frontend/frontend_base.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/frontend/frontend_base.h b/frontend/frontend_base.h
index be764266..9e16cb24 100644
--- a/frontend/frontend_base.h
+++ b/frontend/frontend_base.h
@@ -500,6 +500,7 @@ template <typename FrontendType> struct GenericFrontend
submod.prefix += '.';
submod.parent_path = m.path;
submod.path = ctx->id(m.path.str(ctx) + "/" + name);
+ ctx->hierarchy[m.path].hier_cells[ctx->id(name)] = submod.path;
// Do the submodule import
auto type = impl.get_cell_type(cd);
import_module(submod, name, type, mod_refs.at(ctx->id(type)));