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/pybindings.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'common/pybindings.cc') diff --git a/common/pybindings.cc b/common/pybindings.cc index 504074e1..00ebe66e 100644 --- a/common/pybindings.cc +++ b/common/pybindings.cc @@ -164,10 +164,10 @@ PYBIND11_EMBEDDED_MODULE(MODULE_NAME, m) .def("maxFallDelay", &DelayQuad::maxFallDelay) .def("delayPair", &DelayQuad::delayPair); - typedef std::unordered_map AttrMap; - typedef std::unordered_map PortMap; - typedef std::unordered_map IdIdMap; - typedef std::unordered_map> RegionMap; + typedef dict AttrMap; + typedef dict PortMap; + typedef dict IdIdMap; + typedef dict> RegionMap; py::class_(m, "BaseCtx"); @@ -218,9 +218,9 @@ PYBIND11_EMBEDDED_MODULE(MODULE_NAME, m) pass_through>::def_wrap(pi_cls, "type"); typedef std::vector PortRefVector; - typedef std::unordered_map WireMap; - typedef std::unordered_set BelSet; - typedef std::unordered_set WireSet; + typedef dict WireMap; + typedef pool BelSet; + typedef pool WireSet; auto ni_cls = py::class_>(m, "NetInfo"); readwrite_wrapper, -- cgit v1.2.3