Hdl21 icon indicating copy to clipboard operation
Hdl21 copied to clipboard

Take port-references to `Pair`, and any other `InstanceBundle`

Open dan-fritchman opened this issue 1 year ago • 1 comments

@h.module 
class M:
  inp = h.Diff()
  out = h.Diff()
  bias, VSS = 2 * h.Input()

  pair = h.Pair(h.Nmos())(d=out, g=inp, b=VSS)
  nbias = h.Nmos()(g=bias, s=VSS, b=VSS, d=FIXME) # <= FIXME here the problem

It would be nice if this could say

  nbias = h.Nmos()(g=bias, s=VSS, b=VSS, d=pair.s) # <= Connect into a port-reference of the `Pair`

But that doesn't quite work yet.

dan-fritchman avatar Jun 05 '23 23:06 dan-fritchman