BerkeleyHCI/PolymorphicBlocks

Dedicated Ground type

Opened this issue · 0 comments

because gnd and gnd_out in the microcontroller dev board is actually pretty confusing

Idea: unify it into a single bidirectional gnd type. Voltage-source-to-ground requires an explicit conversion (which it probably should).

Some considerations:

  • How to support offset grounds? Perhaps there does need to be a GroundSource that supports offset-grounds, while a link with no GroundSource is zero implicitly? (and conflicting GroundSources are an obvious error)
  • How should voltage APIs look like? Perhaps Voltage[Source|Sink].voltage_from(gnd)? Likely all the port constructors should have a ground reference?