aboutsummaryrefslogtreecommitdiffstats
path: root/common/nextpnr.h
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 /common/nextpnr.h
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 'common/nextpnr.h')
-rw-r--r--common/nextpnr.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/nextpnr.h b/common/nextpnr.h
index ceea2088..7dfebd62 100644
--- a/common/nextpnr.h
+++ b/common/nextpnr.h
@@ -530,7 +530,7 @@ struct TimingConstraint
// Represents the contents of a non-leaf cell in a design
// with hierarchy
-struct HierachicalPort
+struct HierarchicalPort
{
IdString name;
PortType dir;
@@ -539,12 +539,12 @@ struct HierachicalPort
bool upto;
};
-struct HierachicalCell
+struct HierarchicalCell
{
IdString name, type, parent, fullpath;
// Name inside cell instance -> global name
std::unordered_map<IdString, IdString> leaf_cells, nets;
- std::unordered_map<IdString, HierachicalPort> ports;
+ std::unordered_map<IdString, HierarchicalPort> ports;
// Name inside cell instance -> global name
std::unordered_map<IdString, IdString> hier_cells;
};
@@ -643,7 +643,7 @@ struct BaseCtx
std::unordered_map<IdString, std::unique_ptr<CellInfo>> cells;
// Hierarchical (non-leaf) cells by full path
- std::unordered_map<IdString, HierachicalCell> hierarchy;
+ std::unordered_map<IdString, HierarchicalCell> hierarchy;
// This is the root of the above structure
IdString top_module;