Difference between revisions of "SKY130 Models"

From Microlab Classes
Jump to navigation Jump to search
Line 3: Line 3:
  
 
== Step 2: ==
 
== Step 2: ==
After installing git, you can clone the SKY130 libraries into a directory (e.g. <code>/home/louis/git/sky130</code>) in your filesystem by:
+
After installing git, you can clone the SKY130 libraries into a directory (e.g. <code>/home/louis/git/sky130</code>) in your filesystem, assuming <code>/home/louis/git/</code>, or you equivalent home directory already exists) by:
  
 
<div style="margin-left: 2em;">
 
<div style="margin-left: 2em;">

Revision as of 12:05, 11 October 2021

Step 1:

Installing the SkyWater SKY130 130nm CMOS models from the Github repository requires installing git. You can also just got to the SkyWater github page and just download the files as one zip file.

Step 2:

After installing git, you can clone the SKY130 libraries into a directory (e.g. /home/louis/git/sky130) in your filesystem, assuming /home/louis/git/, or you equivalent home directory already exists) by:

cd ~/git
mkdir ./sky130
cd ./sky130
git clone https://github.com/google/skywater-pdk-libs-sky130_fd_pr.git

Note that if you downloaded the zip file instead, you should get the same directory structure by uncompressing the zip file into your local directory (e.g. /home/louis/git/sky130).

Step 3:

To instantiate SKY130 devices into your SPICE deck, add the following commands to access the typical (tt) model corner:

* Include SkyWater sky130 device models
.lib "/home/louis/git/sky130/skywater-pdk-libs-sky130_fd_pr/models/sky130.lib.spice" tt
.option scale=1e-6

Since these are relatively complex, the models are not native transistors, but subcircuits. So to instantiate a low threshold voltage (LVT) 1.8V NMOS transistor with a width of 1um and a length of 0.5um, you will need to use the 'x' device prefix instead of the 'm' prefix:

xm1	d1 g1 0 0	sky130_fd_pr__nfet_01v8_lvt w=1 l=0.5