No Cadence? No problem! The great thing about our version, it even has a --depth (-d) option. But, you do need a netlist to work with.
Say this is your netlist:
.subckt A in out vdd vss XB1 n1 n2 B XB2 n3 n4 B XC1 n5 n6 C XC2 n7 n8 C .ends .subckt B a b XD1 x y D XD2 x y D XD3 x y D XD4 x y D XC1 p q C XE1 p q E .ends .subckt C p q R1 p q 1k .ends .subckt D p q R2 p q 1k .ends .subckt E p q R3 p q 1k .ends XTOP in out vdd vss A
A |----- B (2) | |----- C | |----- D (4) | \----- E \----- C (2)