Hi all. I'm trying to run the std logic cells (lib...
# sky130
d
Hi all. I'm trying to run the std logic cells (lib: sky130_stdcells). Below shows the cell I have used and the error I get when trying to run the sim. When I descend into the AND gate I get a blank schematic. Anyone have an idea what the issue could be? Txs
t
Did you actually load the library with the spice models for the standard cells ?
m
@Diarmuid Collins As far as I know, there are xschem symbols for the standard cell libraries but no schematics. Might be an interesting project for an intern. For spice simulatiton, be sure to include the standard cell spice library in the spice deck.
d
Thanks guys. What is the path to the std cell spice models? Only one I have is to specify TT devices: .lib /home/slice/pdk/SW130/share/pdk/sky130A/libs.tech/combined/sky130.lib.spice tt Tried adding: .lib $::SKYWATER_STDCELLS/sky130_fd_sc_hd.spice sky130_fd_sc_hd__and2_0 But no success. What is the path contained in $::SKYWATER_STDCELLS? Thanks.
m
You could try without environment variables first. Replace the
<PDK_ROOT>
and
<PDK>
with your local values.
Copy code
.include <PDK_PATH>/<PDK>/libs.ref/sky130_fd_sc_hd/spice/sky130_fd_sc_hd
d
Perfect! As per the shown waveforms it works for me now when I include the below line: .include /home/slice/pdk/SW130/share/pdk/sky130A/libs.ref/sky130_fd_sc_hd/spice/sky130_fd_sc_hd.spice Thanks very much for the help! Basic question - what is the difference between .lib and .include? I always specify my corner files with .lib as per below: .lib /home/slice/pdk/SW130/share/pdk/sky130A/libs.tech/combined/sky130.lib.spice tt However this didnt work for the std cells even tho they are also coming from a spice deck.
m
I think the lib files include the details about the low level device models rather than the standard cell spice subcircuits. You’ll noticed that the same sky130.lib.spice file is used for all standard cell libraries.
d
Ah I see. Good to know. Thanks
👍 1