KwantaeKim/cdl_gen ? reverse-engineered prompt
Reverse engineered prompt
Build me a small Python tool that lets me define a circuit in a simple script and then generate a CDL netlist from it, import it into Cadence Virtuoso, and create the schematic automatically.
I want it to support a process setup file where I can map my PDK device names and parameter names, then let me write subcircuits and devices in Python using friendly sizing names like length, finger width, and finger count. It should also handle a placement JSON file so the imported schematic is laid out in a clean way instead of a tangled mess.
Please make it work from a Virtuoso working directory, with a way to create a new library, run the generator, refresh the library manager, and optionally generate a top level symbol too. If the user has already edited the schematic by hand, keep those wire edits when possible. If anything about Cadence setup or current docs matters, look it up online if you need to.
Are you gonna build this?
make sure you review the code using coderabbit