From 579b98c5963c2b86d191d481a2147a663a8196dd Mon Sep 17 00:00:00 2001 From: gatecat Date: Tue, 1 Jun 2021 16:51:18 +0100 Subject: Use hashlib for core netlist structures Signed-off-by: gatecat --- common/basectx.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'common/basectx.h') 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 settings; + dict settings; // Placed nets and cells. - std::unordered_map> nets; - std::unordered_map> cells; + dict> nets; + dict> cells; // Hierarchical (non-leaf) cells by full path - std::unordered_map hierarchy; + dict 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 net_aliases; + dict net_aliases; // Top-level ports - std::unordered_map ports; - std::unordered_map port_cells; + dict ports; + dict port_cells; // Floorplanning regions - std::unordered_map> region; + dict> region; // Context meta data - std::unordered_map attrs; + dict attrs; Context *as_ctx = nullptr; @@ -186,10 +186,10 @@ struct BaseCtx bool allUiReload = true; bool frameUiReload = false; - std::unordered_set belUiReload; - std::unordered_set wireUiReload; - std::unordered_set pipUiReload; - std::unordered_set groupUiReload; + pool belUiReload; + pool wireUiReload; + pool pipUiReload; + pool groupUiReload; void refreshUi() { allUiReload = true; } -- cgit v1.2.3