Roberto Di Lorenzo
01/14/2023, 4:30 PMMitch Bailey
01/14/2023, 4:37 PMRoberto Di Lorenzo
01/14/2023, 4:38 PMMitch Bailey
01/14/2023, 5:24 PMsky130.lib.spice
only includes the primitive devices.
I was going to suggest including the standard cell spice too, but the spice symbols in your netlist are missing VPWR VPB VGND VNB ports.
.include /usr/local/share/pdk/sky130A/libs.ref/sky130_fd_sc_hd/spice/sky130_fd_sc_hd.spice
Also looks like you’re trying to simulate with VDD=3.3V. The thin-ox devices in the standard cells are rated at 1.8V.
@Stefan Schippers probably knows how to get the sky130A standard cell symbols to simulate in hgspice.Stefan Schippers
01/15/2023, 10:34 AM.include $::SKYWATER_STDCELLS/sky130_fd_sc_hd.spice
Or if you know the path:
.include /path/to/share/pdk/sky130A/libs.ref/sky130_fd_sc_hd/spice/sky130_fd_sc_hd.spice
this file contains all the spice netlists of the standard cells (inverters, nand gates, flops etc).
Also, as @Mitch Bailey mentioned, select all logic cells together (by clicking with the shift key) then press 'q', check the 'Preserve unchanged props' checkbutton, and ensure to assign your VCC and VSS to the power/subbstrate attributes. The standard cell symbols don't have power pins but these are implicitly assigned as attributes. This makes the symbols look less cluttered with power pins (and you can change power connection of the whole logic with one single edit attribute operation!).Stefan Schippers
01/15/2023, 10:40 AMRoberto Di Lorenzo
01/15/2023, 1:45 PMMitch Bailey
01/15/2023, 1:55 PMsky130_fd_sc_hvl
at once.Stefan Schippers
01/15/2023, 2:05 PMsky130_fd_sc_hvl
, (remember to check preserve unchanged props
to avoid changing other attributes). I have not made tests with hvl standard cells, so let us know if it works.
Remember also to include the right spice netlist file for these standardcells:
.include /path/to/share/pdk/sky130A/libs.ref/sky130_fd_sc_hvl/spice/sky130_fd_sc_hvl.spice
Roberto Di Lorenzo
01/15/2023, 7:25 PM