proppy / conda-eda

Conda recipes for FPGA EDA tools for simulation, synthesis, place and route and bitstream generation.
https://anaconda.org/LiteX-Hub
Apache License 2.0
8 stars 2 forks source link

Netlist issue from Magic #3

Closed spnadig closed 1 year ago

spnadig commented 1 year ago

In Magic when we do a extract all -> ext2spice to get post layout extraction netlist - does not match definitions for xschem netlist while running ngspice sim on the extracted subcircuit Error while running post-extraction simulation on ngspice

image
spnadig commented 1 year ago

Found that the issue is magic writes the netlist with transistor names: nmos_3p3 and pmos_3pm. Whereas, xschem/ngpice expects the netlist to have nfet_03v3 and pfet_03v3. Magic ext2spice script needs to be modified to accommodate this

spnadig commented 1 year ago

But the order of terminals for netlist from magic may also be an issue. Also, pfets get additional terminal in magic extracted netlist...

proppy commented 1 year ago

Seems like we should report this against https://github.com/RTimothyEdwards/open_pdks, to change the magic enablement for the PDK in https://github.com/RTimothyEdwards/open_pdks/tree/master/gf180mcu/magic to match the klayout pcells convention.

proppy commented 1 year ago

Found that the issue is magic writes the netlist with transistor names: nmos_3p3 and pmos_3pm. Whereas, xschem/ngpice expects the netlist to have nfet_03v3 and pfet_03v3. Magic ext2spice script needs to be modified to accommodate this

Seems like it's already has been fixed in https://github.com/RTimothyEdwards/open_pdks/commit/9c9ffda7aa1da807db9a8c6128678e6f96b6adc7, we just need to make sure we use the latest version of open_pdks.

proppy commented 1 year ago

Fixed with https://github.com/proppy/conda-eda/commit/528579705352e6010c15ee9f135c169341505bdd

New version of the installer available here https://github.com/proppy/conda-eda/releases/tag/v0.0-1435-g5285797