The device generator works by having five routines...
# magic
t
The device generator works by having five routines for each device:
defaults
sets the default values of parameters,
convert
converts values from a netlist,
dialog
creates the pop-up window,
check
checks all parameter values for limits, and
draw
draws the device.