Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
ducky64 committed Jul 13, 2024
1 parent 40ae086 commit 47d9c2d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion edg/abstract_parts/PowerCircuits.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion examples/test_fcml.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions examples/test_iot_iron.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 47d9c2d

Please sign in to comment.