Difference between revisions of "SKY130 Models"
Line 17: | Line 17: | ||
== Step 3: == | == Step 3: == | ||
− | To | + | To instantiate SKY130 devices into your SPICE deck, add the following commands to access the typical (tt) model corner: |
<div style="margin-left: 2em;"> | <div style="margin-left: 2em;"> | ||
Line 24: | Line 24: | ||
.lib "/home/louis/git/sky130/skywater-pdk-libs-sky130_fd_pr/models/sky130.lib.spice" tt | .lib "/home/louis/git/sky130/skywater-pdk-libs-sky130_fd_pr/models/sky130.lib.spice" tt | ||
.option scale=1e-6 | .option scale=1e-6 | ||
+ | </source> | ||
+ | </div> | ||
+ | |||
+ | 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: | ||
+ | |||
+ | <div style="margin-left: 2em;"> | ||
+ | <source lang="bash"> | ||
+ | xm1 d1 g1 0 0 sky130_fd_pr__nfet_01v8_lvt w=1 l=0.5 | ||
</source> | </source> | ||
</div> | </div> |
Revision as of 12:01, 11 October 2021
Step 1:
Installing the 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 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