Installing the SkyWater 130nm Design Kit: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 20: | Line 20: | ||
== Using the PDK SPICE Models == | == Using the PDK SPICE Models == | ||
Once we have downloaded the PDK, we can now use [http://ngspice.sourceforge.net/ ngspice] to plot the transistor transfer and output characteristics. | Once we have downloaded the PDK, we can now use [http://ngspice.sourceforge.net/ ngspice] to plot the transistor transfer and output characteristics. Let us use this [[https://github.com/louisalarcon/ee220/blob/master/cidr/skywater-mos-test.sp SPICE deck]]: | ||
<syntaxhighlight lang="text" line> | |||
* SKyWater 130nm Test Simulation | |||
.option scale=1e-6 | |||
.lib /usr/local/share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice tt | |||
xm01 d1 g1 0 0 sky130_fd_pr__nfet_01v8 l=0.15 w=10 | |||
vds1 d1 0 1.8 | |||
vgs1 g1 0 1.8 | |||
xm02 d2 g2 vdd vdd sky130_fd_pr__pfet_01v8 l=0.15 w=25 | |||
eds2 vdd d2 d1 0 1 | |||
egs2 vdd g2 g1 0 1 | |||
vsup vdd 0 1.8 | |||
.control | |||
* Transfer Characteristics | |||
dc vgs1 0 1.8 0.01 | |||
plot (-i(vds1)) (-i(eds2)) | |||
* Output Characteristics | |||
dc vds1 0 1.8 0.01 vgs1 0.2 1.8 0.2 | |||
plot (-i(vds1)) (-i(eds2)) | |||
.endc | |||
.end | |||
</syntaxhighlight> |
Revision as of 15:44, 20 July 2022
We will install the SkyWater 130nm design kit via the Open_PDKs scripts. This allows us to install (1) the Google/SkyWater SKY130 PDK from github and compile the timing files, (2) 3rd-party alphanumeric layout libraries, and (3) 3rd-party libraries for the xschem schematic entry and schematic capture tool.
Prerequisites
For installing the files needed by the Magic layout tool, Magic must be installed. Download Magic here or via
git clone https://github.com/RTimothyEdwards/magic
Then follow the compile and install instructions.
Installing the PDK
After installing Magic, we can now download the PDK via:
git clone git://opencircuitdesign.com/open_pdks
See the full installation instructions at the Open_PDKs website.
Using the PDK SPICE Models
Once we have downloaded the PDK, we can now use ngspice to plot the transistor transfer and output characteristics. Let us use this [SPICE deck]:
1 * SKyWater 130nm Test Simulation
2
3 .option scale=1e-6
4 .lib /usr/local/share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice tt
5
6
7 xm01 d1 g1 0 0 sky130_fd_pr__nfet_01v8 l=0.15 w=10
8
9 vds1 d1 0 1.8
10 vgs1 g1 0 1.8
11
12 xm02 d2 g2 vdd vdd sky130_fd_pr__pfet_01v8 l=0.15 w=25
13 eds2 vdd d2 d1 0 1
14 egs2 vdd g2 g1 0 1
15
16 vsup vdd 0 1.8
17
18 .control
19 * Transfer Characteristics
20 dc vgs1 0 1.8 0.01
21 plot (-i(vds1)) (-i(eds2))
22
23 * Output Characteristics
24 dc vds1 0 1.8 0.01 vgs1 0.2 1.8 0.2
25 plot (-i(vds1)) (-i(eds2))
26
27 .endc
28
29 .end