diff options
author | gatecat <gatecat@ds0.me> | 2021-06-01 16:51:18 +0100 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2021-06-02 14:27:56 +0100 |
commit | 579b98c5963c2b86d191d481a2147a663a8196dd (patch) | |
tree | a37baaeac305fbb9d3f7db98ccda8a1708ac234c /common/basectx.h | |
parent | ff72454f8391ab4785fa8314f3efbbea96c30422 (diff) | |
download | nextpnr-579b98c5963c2b86d191d481a2147a663a8196dd.tar.gz nextpnr-579b98c5963c2b86d191d481a2147a663a8196dd.tar.bz2 nextpnr-579b98c5963c2b86d191d481a2147a663a8196dd.zip |
Use hashlib for core netlist structures
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'common/basectx.h')
-rw-r--r-- | common/basectx.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/common/basectx.h b/common/basectx.h index fccd12af..dd48c33c 100644 --- a/common/basectx.h +++ b/common/basectx.h @@ -59,29 +59,29 @@ struct BaseCtx mutable StrRingBuffer log_strs; // Project settings and config switches - std::unordered_map<IdString, Property> settings; + dict<IdString, Property> settings; // Placed nets and cells. - std::unordered_map<IdString, std::unique_ptr<NetInfo>> nets; - std::unordered_map<IdString, std::unique_ptr<CellInfo>> cells; + dict<IdString, std::unique_ptr<NetInfo>> nets; + dict<IdString, std::unique_ptr<CellInfo>> cells; // Hierarchical (non-leaf) cells by full path - std::unordered_map<IdString, HierarchicalCell> hierarchy; + dict<IdString, HierarchicalCell> hierarchy; // This is the root of the above structure IdString top_module; // Aliases for nets, which may have more than one name due to assignments and hierarchy - std::unordered_map<IdString, IdString> net_aliases; + dict<IdString, IdString> net_aliases; // Top-level ports - std::unordered_map<IdString, PortInfo> ports; - std::unordered_map<IdString, CellInfo *> port_cells; + dict<IdString, PortInfo> ports; + dict<IdString, CellInfo *> port_cells; // Floorplanning regions - std::unordered_map<IdString, std::unique_ptr<Region>> region; + dict<IdString, std::unique_ptr<Region>> region; // Context meta data - std::unordered_map<IdString, Property> attrs; + dict<IdString, Property> attrs; Context *as_ctx = nullptr; @@ -186,10 +186,10 @@ struct BaseCtx bool allUiReload = true; bool frameUiReload = false; - std::unordered_set<BelId> belUiReload; - std::unordered_set<WireId> wireUiReload; - std::unordered_set<PipId> pipUiReload; - std::unordered_set<GroupId> groupUiReload; + pool<BelId> belUiReload; + pool<WireId> wireUiReload; + pool<PipId> pipUiReload; + pool<GroupId> groupUiReload; void refreshUi() { allUiReload = true; } |