Tuesday, March 24, 2026

Who Needs Cadence Anymore (for Schematic Tree Reporting that is :)? Make Your Own Reporter with chatGPT!

You know what I mean, if you've used Cadence - the SHIFT-T thing that gives you the schematic tree can be VERY useful, at times.

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

This is what you'll get with just python3 report_hierarchy.py netlist.sp:
 
A
|----- B (2)
|      |----- C
|      |----- D (4)
|      \----- E
\----- C (2)

That's right. I wasn't sleeping in the presentation skills class. Don't report (1)!! Maximize info to ink ratio!

No comments:

Post a Comment

Who Needs Cadence Anymore (for Schematic Tree Reporting that is :)? Make Your Own Reporter with chatGPT!

You know what I mean, if you've used Cadence - the SHIFT-T thing that gives you the schematic tree can be VERY useful, at times. No Cade...