Source code for piel.models.physical.electronic.straight

import hdl21 as h

__all__ = ["straight", "StraightParameters"]


[docs]@h.paramclass class StraightParameters: """ These are all the potential parametric configuration variables """ pass
@h.generator def straight(params: StraightParameters) -> h.Module: """ Implements a `hdl21` taper resistor class. """ @h.module class Straight: e1, e2 = h.Ports(2) r1 = h.IdealResistor(r=1e3)(p=e1, n=e2) return Straight