From d0339a90e63939c75e74a07ded6035b6bc6b023a Mon Sep 17 00:00:00 2001 From: Sam Crow Date: Mon, 17 Jul 2023 15:36:57 -0700 Subject: [PATCH] change spice_nets and spice_pins to dicts --- compiler/base/geometry.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/compiler/base/geometry.py b/compiler/base/geometry.py index 18e1a39b..29093a2d 100644 --- a/compiler/base/geometry.py +++ b/compiler/base/geometry.py @@ -181,8 +181,10 @@ class instance(geometry): # change attributes in these spice objects self.spice_pins = copy.deepcopy(self.mod.pins) self.spice_nets = copy.deepcopy(self.mod.nets) - for spice_obj in self.spice_pins + self.spice_nets: - spice_obj.set_inst(self) + for pin in self.spice_pins.values(): + pin.set_inst(self) + for net in self.spice_nets.values(): + net.set_inst(self) if OPTS.netlist_only: self.width = 0