.subckt inv<> GND Vdd x y
M0_ GND x y GND nch W=5u L=2u
M1_ Vdd x y Vdd pch W=5u L=2u
.ends

.subckt foo<> GND Vdd a b c
xp GND Vdd a b inv<>
xq GND Vdd b c inv<>
.ends

xbar GND Vdd bar.a bar.b bar.c foo<>

