diff --git a/edg/abstract_parts/PowerCircuits.py b/edg/abstract_parts/PowerCircuits.py index 51af0a821..313ca048c 100644 --- a/edg/abstract_parts/PowerCircuits.py +++ b/edg/abstract_parts/PowerCircuits.py @@ -92,7 +92,7 @@ def contents(self): self.connect(self.low_fet.drain.adapt_to(VoltageSource( voltage_out=self.pwr.link().voltage)), self.out) - self.connect(self.out.as_ground(self.driver.high_pwr.link().current_drawn), self.driver.high_gnd) + self.connect(self.out.as_ground((0, 0)*Amp), self.driver.high_gnd) # TODO model driver current class FetHalfBridgeIndependent(FetHalfBridge, HalfBridgeIndependent): diff --git a/examples/test_fcml.py b/examples/test_fcml.py index 09bcb9808..aaacdae37 100644 --- a/examples/test_fcml.py +++ b/examples/test_fcml.py @@ -114,7 +114,7 @@ def generate(self): driver_indep = self.driver.with_mixin(HalfBridgeDriverIndependent()) self.connect(driver_indep.high_in, high_pwm) self.connect(driver_indep.low_in, low_pwm) - self.connect(self.driver.high_gnd, self.high_out.as_ground(self.driver.high_pwr.link().current_drawn)) + self.connect(self.driver.high_gnd, self.high_out.as_ground((0, 0)*Amp)) # TODO model driver current if self.get(self.high_boot_out.is_connected()): # leave port disconnected if not used, to avoid an unsolved interface self.connect(self.driver.high_pwr, self.high_boot_out) # schematic connected to boot diode diff --git a/examples/test_iot_iron.py b/examples/test_iot_iron.py index dcdb4d3ad..4de296907 100644 --- a/examples/test_iot_iron.py +++ b/examples/test_iot_iron.py @@ -153,8 +153,8 @@ def contents(self) -> None: imp.Block(FootprintToucbPad('edg:Symbol_DucklingSolid')) ) - self.iron = self.Block(IronConnector()) - self.connect(self.conv.pwr_out, self.iron.pwr) + self.iron = imp.Block(IronConnector()) + self.connect(self.conv.pwr_out, self.iron.pwr) # IRON SENSE AMPS - 3v3 DOMAIN with self.implicit_connect(