Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 1 | * Copyright 2020 The SkyWater PDK Authors |
| 2 | * |
| 3 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | * you may not use this file except in compliance with the License. |
| 5 | * You may obtain a copy of the License at |
| 6 | * |
| 7 | * https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | * |
| 9 | * Unless required by applicable law or agreed to in writing, software |
| 10 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | * See the License for the specific language governing permissions and |
| 13 | * limitations under the License. |
| 14 | |
| 15 | ******* SkyWater sky130 model library ********* |
| 16 | |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 17 | * Typical corner (tt) |
| 18 | .lib tt |
| 19 | .param mc_mm_switch=0 |
| 20 | .param mc_pr_switch=0 |
| 21 | * MOSFET |
| 22 | .include "corners/tt.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 23 | * Resistor/Capacitor |
| 24 | .include "r+c/res_typical__cap_typical.spice" |
| 25 | .include "r+c/res_typical__cap_typical__lin.spice" |
| 26 | * Special cells |
| 27 | .include "corners/tt/specialized_cells.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 28 | .endl tt |
| 29 | |
| 30 | * Slow-Fast corner (sf) |
| 31 | .lib sf |
| 32 | .param mc_mm_switch=0 |
| 33 | .param mc_pr_switch=0 |
| 34 | * MOSFET |
| 35 | .include "corners/sf.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 36 | * Resistor/Capacitor |
| 37 | .include "r+c/res_typical__cap_typical.spice" |
| 38 | .include "r+c/res_typical__cap_typical__lin.spice" |
| 39 | * Special cells |
| 40 | .include "corners/sf/specialized_cells.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 41 | .endl sf |
| 42 | |
| 43 | * Fast-Fast corner (ff) |
| 44 | .lib ff |
| 45 | .param mc_mm_switch=0 |
| 46 | .param mc_pr_switch=0 |
| 47 | * MOSFET |
| 48 | .include "corners/ff.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 49 | * Resistor/Capacitor |
| 50 | .include "r+c/res_typical__cap_typical.spice" |
| 51 | .include "r+c/res_typical__cap_typical__lin.spice" |
| 52 | * Special cells |
| 53 | .include "corners/ff/specialized_cells.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 54 | .endl ff |
| 55 | |
| 56 | * Slow-Slow corner (ss) |
| 57 | .lib ss |
| 58 | .param mc_mm_switch=0 |
| 59 | .param mc_pr_switch=0 |
| 60 | * MOSFET |
| 61 | .include "corners/ss.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 62 | * Resistor/Capacitor |
| 63 | .include "r+c/res_typical__cap_typical.spice" |
| 64 | .include "r+c/res_typical__cap_typical__lin.spice" |
| 65 | * Special cells |
| 66 | .include "corners/ss/specialized_cells.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 67 | .endl ss |
| 68 | |
| 69 | * Fast-Slow corner (fs) |
| 70 | .lib fs |
| 71 | .param mc_mm_switch=0 |
| 72 | .param mc_pr_switch=0 |
| 73 | * MOSFET |
| 74 | .include "corners/fs.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 75 | * Resistor/Capacitor |
| 76 | .include "r+c/res_typical__cap_typical.spice" |
| 77 | .include "r+c/res_typical__cap_typical__lin.spice" |
| 78 | * Special cells |
| 79 | .include "corners/fs/specialized_cells.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 80 | .endl fs |
| 81 | |
| 82 | * Low-Low corner (ll) |
| 83 | .lib ll |
| 84 | .param mc_mm_switch=0 |
| 85 | .param mc_pr_switch=0 |
| 86 | * MOSFET |
| 87 | .include "corners/tt.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 88 | * Resistor/Capacitor |
| 89 | .include "r+c/res_low__cap_low.spice" |
| 90 | .include "r+c/res_low__cap_low__lin.spice" |
| 91 | * Special cells |
| 92 | .include "corners/tt/specialized_cells.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 93 | .endl ll |
| 94 | |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 95 | * High-High corner (hh) |
| 96 | .lib hh |
| 97 | .param mc_mm_switch=0 |
| 98 | .param mc_pr_switch=0 |
| 99 | * MOSFET |
| 100 | .include "corners/tt.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 101 | * Resistor/Capacitor |
| 102 | .include "r+c/res_high__cap_high.spice" |
| 103 | .include "r+c/res_high__cap_high__lin.spice" |
| 104 | * Special cells |
| 105 | .include "corners/tt/specialized_cells.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 106 | .endl hh |
| 107 | |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 108 | * High-Low corner (hl) |
| 109 | .lib hl |
| 110 | .param mc_mm_switch=0 |
| 111 | .param mc_pr_switch=0 |
| 112 | * MOSFET |
| 113 | .include "corners/tt.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 114 | * Resistor/Capacitor |
| 115 | .include "r+c/res_high__cap_low.spice" |
| 116 | .include "r+c/res_high__cap_low__lin.spice" |
| 117 | * Special cells |
| 118 | .include "corners/tt/specialized_cells.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 119 | .endl hl |
| 120 | |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 121 | * Low-High corner (lh) |
| 122 | .lib lh |
| 123 | .param mc_mm_switch=0 |
| 124 | .param mc_pr_switch=0 |
| 125 | * MOSFET |
| 126 | .include "corners/tt.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 127 | * Resistor/Capacitor |
| 128 | .include "r+c/res_low__cap_high.spice" |
| 129 | .include "r+c/res_low__cap_high__lin.spice" |
| 130 | * Special cells |
| 131 | .include "corners/tt/specialized_cells.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 132 | .endl lh |
Tim Edwards | 4b1a140 | 2021-09-15 11:27:51 -0400 | [diff] [blame] | 133 | |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 134 | * Typical corner with mismatch (tt_mm) |
| 135 | .lib tt_mm |
| 136 | .param mc_mm_switch=1 |
| 137 | .param mc_pr_switch=0 |
| 138 | * MOSFET |
| 139 | .include "corners/tt.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 140 | * Resistor/Capacitor |
| 141 | .include "r+c/res_typical__cap_typical.spice" |
| 142 | .include "r+c/res_typical__cap_typical__lin.spice" |
| 143 | * Special cells |
| 144 | .include "corners/tt/specialized_cells.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 145 | .endl tt_mm |
| 146 | |
| 147 | * Slow-Fast corner with mismatch (sf_mm) |
| 148 | .lib sf_mm |
| 149 | .param mc_mm_switch=1 |
| 150 | .param mc_pr_switch=0 |
| 151 | * MOSFET |
| 152 | .include "corners/sf.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 153 | * Resistor/Capacitor |
| 154 | .include "r+c/res_typical__cap_typical.spice" |
| 155 | .include "r+c/res_typical__cap_typical__lin.spice" |
| 156 | * Special cells |
| 157 | .include "corners/sf/specialized_cells.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 158 | .endl sf_mm |
| 159 | |
| 160 | * Fast-Fast corner with mismatch (ff_mm) |
| 161 | .lib ff_mm |
| 162 | .param mc_mm_switch=1 |
| 163 | .param mc_pr_switch=0 |
| 164 | * MOSFET |
| 165 | .include "corners/ff.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 166 | * Resistor/Capacitor |
| 167 | .include "r+c/res_typical__cap_typical.spice" |
| 168 | .include "r+c/res_typical__cap_typical__lin.spice" |
| 169 | * Special cells |
| 170 | .include "corners/ff/specialized_cells.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 171 | .endl ff_mm |
| 172 | |
| 173 | * Slow-Slow corner with mismatch (ss_mm) |
| 174 | .lib ss_mm |
| 175 | .param mc_mm_switch=1 |
| 176 | .param mc_pr_switch=0 |
| 177 | * MOSFET |
| 178 | .include "corners/ss.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 179 | * Resistor/Capacitor |
| 180 | .include "r+c/res_typical__cap_typical.spice" |
| 181 | .include "r+c/res_typical__cap_typical__lin.spice" |
| 182 | * Special cells |
| 183 | .include "corners/ss/specialized_cells.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 184 | .endl ss_mm |
| 185 | |
| 186 | * Fast-Slow corner with mismatch (fs_mm) |
| 187 | .lib fs_mm |
| 188 | .param mc_mm_switch=1 |
| 189 | .param mc_pr_switch=0 |
| 190 | * MOSFET |
| 191 | .include "corners/fs.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 192 | * Resistor/Capacitor |
| 193 | .include "r+c/res_typical__cap_typical.spice" |
| 194 | .include "r+c/res_typical__cap_typical__lin.spice" |
| 195 | * Special cells |
| 196 | .include "corners/fs/specialized_cells.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 197 | .endl fs_mm |
| 198 | |
| 199 | * Low-Low corner with mismatch (ll_mm) |
| 200 | .lib ll_mm |
| 201 | .param mc_mm_switch=1 |
| 202 | .param mc_pr_switch=0 |
| 203 | * MOSFET |
| 204 | .include "corners/tt.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 205 | * Resistor/Capacitor |
| 206 | .include "r+c/res_low__cap_low.spice" |
| 207 | .include "r+c/res_low__cap_low__lin.spice" |
| 208 | * Special cells |
| 209 | .include "corners/tt/specialized_cells.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 210 | .endl ll_mm |
| 211 | |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 212 | * High-High corner with mismatch (hh_mm) |
| 213 | .lib hh_mm |
| 214 | .param mc_mm_switch=1 |
| 215 | .param mc_pr_switch=0 |
| 216 | * MOSFET |
| 217 | .include "corners/tt.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 218 | * Resistor/Capacitor |
| 219 | .include "r+c/res_high__cap_high.spice" |
| 220 | .include "r+c/res_high__cap_high__lin.spice" |
| 221 | * Special cells |
| 222 | .include "corners/tt/specialized_cells.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 223 | .endl hh_mm |
| 224 | |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 225 | * High-Low corner with mismatch (hl_mm) |
| 226 | .lib hl_mm |
| 227 | .param mc_mm_switch=1 |
| 228 | .param mc_pr_switch=0 |
| 229 | * MOSFET |
| 230 | .include "corners/tt.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 231 | * Resistor/Capacitor |
| 232 | .include "r+c/res_high__cap_low.spice" |
| 233 | .include "r+c/res_high__cap_low__lin.spice" |
| 234 | * Special cells |
| 235 | .include "corners/tt/specialized_cells.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 236 | .endl hl_mm |
| 237 | |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 238 | * Low-High corner with mismatch (lh_mm) |
| 239 | .lib lh_mm |
| 240 | .param mc_mm_switch=1 |
| 241 | .param mc_pr_switch=0 |
| 242 | * MOSFET |
| 243 | .include "corners/tt.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 244 | * Resistor/Capacitor |
| 245 | .include "r+c/res_low__cap_high.spice" |
| 246 | .include "r+c/res_low__cap_high__lin.spice" |
| 247 | * Special cells |
| 248 | .include "corners/tt/specialized_cells.spice" |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 249 | .endl lh_mm |
| 250 | |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 251 | * Monte Carlo process variation |
| 252 | |
| 253 | .lib mc |
| 254 | |
| 255 | .param mc_mm_switch=0 |
| 256 | .param mc_pr_switch=1 |
| 257 | |
| 258 | .include "parameters/critical.spice" |
| 259 | .include "parameters/montecarlo.spice" |
| 260 | |
| 261 | .endl mc |