Up to now, SKiDL supported hierarchy by applying the @subcircuit decorator to a Python function:
@subcircuit
def analog_average(in1, in2, avg):
"""Output the average of the two inputs."""
# Create two 1K resistors.
r1, r2 = 2 * Part('Device', 'R', value='1K', dest=TEMPLATE)
# Each input connects thru a resistor to the …
