Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1 | # Makefile for efabless design kits for SkyWater Sky130: |
| 2 | # |
| 3 | # sky130A = 5-metal backend stack with dual MiM |
| 4 | # |
| 5 | # Written by Tim Edwards March 2019 |
| 6 | # efabless corporation |
| 7 | # updated October 2019 |
| 8 | # updated December 2019 (divide installation sections for individual tools) |
| 9 | # updated March 2020 (refactored the install process) |
| 10 | # updated May 2020 (changed to new process name Sky130) |
| 11 | # |
| 12 | # Instructions: |
| 13 | # |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 14 | # Run "configure" from the top level directory. Use the following |
| 15 | # configuration options to match your environment: |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 16 | # |
Tim Edwards | c7ab1ea | 2020-12-24 17:04:36 -0500 | [diff] [blame] | 17 | # --enable-sky130-pdk[=<path>] |
Tim Edwards | 942a14f | 2020-12-24 16:20:31 -0500 | [diff] [blame] | 18 | # If enabled, install the skywater PDK. If <path> is specified, |
| 19 | # then the skywater PDK is expected to be found rooted at the |
| 20 | # given path. If not specified, then the skywater PDK will be |
| 21 | # downloaded and installed to <repo root>/pdks. |
| 22 | # If explicitly disabled, sky130 is skipped over entirely. |
| 23 | # |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 24 | # --with-sky130-local-path=<path> |
| 25 | # where <path> is the run-time location of the installed PDK |
| 26 | # files generated by open_pdks. This option is mandatory and |
| 27 | # has no default. |
| 28 | # |
| 29 | # --with-sky130-dist-path=<path> |
| 30 | # where <path> is the install-time location of the installed |
| 31 | # PDK files generated by open_pdks, with the expectation that |
| 32 | # <path> is something like a git repository that is then |
| 33 | # distributed across a system. If this option is not specified, |
| 34 | # then files are installed to the local path. |
| 35 | # |
| 36 | # --with-sky130-link-targets=<value> |
| 37 | # where <value> is one of "none" or "source". If set to "source", |
| 38 | # then where possible, the installed files are symbolic links |
| 39 | # back to the source, rather than copies of the source. The |
| 40 | # default value is "none" if the option is not specified. |
| 41 | # |
| 42 | # --with-ef-style |
| 43 | # If specified, then the installation uses the efabless style, |
| 44 | # which swaps the file hierarchy of file formats vs. IP libraries; |
| 45 | # e.g., "gds/sky130_fd_sc_hd/" with ef-style, vs. |
| 46 | # "sky130_fd_sc_hd/gds/" without it. |
| 47 | # |
Tim Edwards | 22fdb44 | 2020-12-02 12:40:03 -0500 | [diff] [blame] | 48 | # Enable/disable for specific libraries to be installed (and downloaded if |
| 49 | # needed). Libraries that are part of the open_pdks repository are enabled |
| 50 | # by default and must be disabled by passing an option to configure. Libraries |
| 51 | # that are not part of the open_pdks repository are disabled by default and |
| 52 | # must be enabled by passing an option to configure. |
| 53 | # |
| 54 | # Internal libraries and tool setups that can be disabled are the following: |
| 55 | # |
| 56 | # --disable-magic |
| 57 | # Do not install setup files for the magic layout tool. |
| 58 | # |
| 59 | # --disable-netgen |
| 60 | # Do not install setup files for the netgen LVS tool. |
| 61 | # |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 62 | # --disable-irsim |
| 63 | # Do not install setup files for the IRSIM simulation tool. |
| 64 | # |
Tim Edwards | 22fdb44 | 2020-12-02 12:40:03 -0500 | [diff] [blame] | 65 | # --disable-qflow |
| 66 | # Do not install setup files for the qflow synthesis flow. |
| 67 | # |
| 68 | # --disable-openlane |
| 69 | # Do not install setup files for the openlane sythesis flow. |
| 70 | # |
| 71 | # --disable-klayout |
| 72 | # Do not install setup files for the klayout layout tool. |
| 73 | # |
Tim Edwards | ccaea72 | 2020-12-24 10:59:42 -0500 | [diff] [blame] | 74 | # |
| 75 | # NOTE: The comments below are for features that have not yet been |
| 76 | # implemented. |
| 77 | # |
Tim Edwards | 9a17fca | 2021-02-11 17:44:04 -0500 | [diff] [blame] | 78 | # External (third-party) libraries and tool setups are the following (enabled |
| 79 | # by default): |
Tim Edwards | 22fdb44 | 2020-12-02 12:40:03 -0500 | [diff] [blame] | 80 | # |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 81 | # --enable-alpha-sky130[=<path>] |
Tim Edwards | bcf59aa | 2020-12-17 16:55:13 -0500 | [diff] [blame] | 82 | # If enabled, install the sky130_ml_xx_hd font library from |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 83 | # Paul Schulz on github. If <path> is not specified, then the |
| 84 | # font library will be cloned from the git repository and |
| 85 | # installed. |
Tim Edwards | 22fdb44 | 2020-12-02 12:40:03 -0500 | [diff] [blame] | 86 | # |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 87 | # --enable-xschem-sky130[=<path>] |
Tim Edwards | 22fdb44 | 2020-12-02 12:40:03 -0500 | [diff] [blame] | 88 | # If enabled, install the Sky130 setup for the xschem schematic |
| 89 | # editor. If <path> is specified, then the xschem setup is |
| 90 | # expected to be found rooted at the given path. If not |
| 91 | # specified, then the xschem setup will be cloned from the |
| 92 | # repository and installed. |
| 93 | # |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 94 | # External (third-party) libraries and tool setups are the following (disabled |
| 95 | # by default): |
| 96 | # |
| 97 | # --enable-sram-sky130[=<path>] |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 98 | # If enabled, install the sky130_sram_macros library from |
| 99 | # efabless on github. If <path> is not specified, then |
| 100 | # the SRAM library will be cloned from the repository and |
| 101 | # installed. |
| 102 | # |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 103 | # --enable-osu-sky130[=<path>] |
| 104 | # If enabled, install the sky130_osu_sc library from |
| 105 | # foss-eda-tools on googlesource. If <path> is not |
| 106 | # specified, then the OSU standard cell library will be |
| 107 | # clones from the repository and installed. |
| 108 | # |
| 109 | # --enable-osu-t12-sky130[=<path>] |
| 110 | # If enabled, install the sky130_osu_sc_t12 libraries from |
| 111 | # foss-eda-tools on googlesource. If <path> is not |
| 112 | # specified, then the OSU standard cell library will be |
| 113 | # clones from the repository and installed. |
| 114 | # |
| 115 | # --enable-osu-t15-sky130[=<path>] |
| 116 | # If enabled, install the sky130_osu_sc_t15 libraries from |
| 117 | # foss-eda-tools on googlesource. If <path> is not |
| 118 | # specified, then the OSU standard cell library will be |
| 119 | # clones from the repository and installed. |
| 120 | # |
| 121 | # --enable-osu-t18-sky130[=<path>] |
| 122 | # If enabled, install the sky130_osu_sc_t18 libraries from |
| 123 | # foss-eda-tools on googlesource. If <path> is not |
| 124 | # specified, then the OSU standard cell library will be |
| 125 | # clones from the repository and installed. |
| 126 | # |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 127 | # The variables below are substituted from the configuration options: |
| 128 | # |
| 129 | # SKYWATER_PATH: points to vendor sources |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 130 | # EF_STYLE: 1 for efabless style, 0 otherwise |
| 131 | # LINK_TARGETS: link back to source or link to 1st PDK when possible |
| 132 | # DIST_PATH: install location for distributed install |
| 133 | # LOCAL_PATH: install location for local install or runtime location |
| 134 | # for distributed install |
| 135 | # |
| 136 | # Run "make" to stage the PDK for tool setup and vendor libraries |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 137 | # |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 138 | # Run "make install" to install all staged files. The installation is |
| 139 | # either local or distributed, depending on whether --with-sky130-dist-path |
| 140 | # has been set when running configure. |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 141 | # |
| 142 | # Run "make clean" to remove all staging files. |
| 143 | # |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 144 | # Run "make veryclean" to remove all staging and make.log files. |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 145 | # |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 146 | # For the sake of simplicity, the "standard" installation can be done |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 147 | # with the usual |
| 148 | # |
| 149 | # make |
| 150 | # make install |
| 151 | # make clean |
| 152 | # |
| 153 | #-------------------------------------------------------------------- |
| 154 | # This Makefile contains bash-isms |
| 155 | SHELL = bash |
Tristan Gingold | a585431 | 2020-10-15 18:28:16 +0200 | [diff] [blame] | 156 | MV = mv |
Tim Edwards | 5a623ff | 2021-04-30 16:30:52 -0400 | [diff] [blame] | 157 | SED = @SED@ |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 158 | |
Tim Edwards | f04c421 | 2021-03-18 10:12:16 -0400 | [diff] [blame] | 159 | # Use git revision if this is a cloned repo; otherwise get the revision |
| 160 | # from the VERSION file in the directory above. |
| 161 | GITREV = $(shell git describe --long) |
| 162 | ifeq (${GITREV},) |
| 163 | REVISION = $(shell cat ../VERSION) |
| 164 | else |
| 165 | REVISION = ${GITREV} |
| 166 | endif |
| 167 | TECH = sky130 |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 168 | |
| 169 | # If EF_STYLE is set to 1, then efabless naming conventions are |
| 170 | # used, otherwise the generic naming conventions are used. |
| 171 | # Mainly, the hierarchy of library names and file types is reversed |
| 172 | # (e.g., sky130_fd_sc_hd/lef vs. lef/sky130_fd_sc_hd). |
| 173 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 174 | # EF_STYLE = 0 | 1 |
| 175 | EF_STYLE = @EF_STYLE@ |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 176 | |
| 177 | # Normally it's fine to keep the staging path in a local directory, |
| 178 | # although /tmp or a dedicated staging area are also fine, as long |
| 179 | # as the install process can write to the path. |
| 180 | |
Tim Edwards | f04c421 | 2021-03-18 10:12:16 -0400 | [diff] [blame] | 181 | STAGING_PATH = $(shell pwd) |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 182 | |
| 183 | # If LINK_TARGETS is set to "none", then files are copied |
| 184 | # from the SkyWater sources to the target. If set to "source", |
| 185 | # symbolic links are made in the target directories pointing |
| 186 | # back to the SkyWater sources. If set to the name of another |
| 187 | # PDK (e.g, "sky130A"), then symbolic links are made to the |
| 188 | # same files in that PDK, where they exist, and are copied |
| 189 | # from source, where they don't. |
| 190 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 191 | # LINK_TARGETS = source | none | sky130A |
| 192 | LINK_TARGETS = @SKY130_LINK_TARGETS@ |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 193 | |
| 194 | # Paths: |
| 195 | |
agorararmard | 3ee5f11 | 2021-02-03 19:49:09 +0200 | [diff] [blame] | 196 | # Path to skywater_pdk |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 197 | SKYWATER_PATH = @SKY130_SOURCE_PATH@ |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 198 | ifneq ($(SKYWATER_PATH),) |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 199 | SKYWATER_LIBS_PATH = ${SKYWATER_PATH}/libraries |
| 200 | else |
| 201 | SKYWATER_LIBS_PATH = |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 202 | endif |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 203 | |
Tim Edwards | bcf59aa | 2020-12-17 16:55:13 -0500 | [diff] [blame] | 204 | # Path to independent library sources (to be added to configuration options). |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 205 | ALPHA_PATH = @SKY130_ML_XX_HD_PATH@ |
| 206 | XSCHEM_PATH = @XSCHEM_SKY130_PATH@ |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 207 | SRAM_PATH = @SKY130_SRAM_MACROS_PATH@ |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 208 | OSU_PATH = @SKY130_OSU_PATH@ |
| 209 | OSU_T12_PATH = @SKY130_OSU_T12_PATH@ |
| 210 | OSU_T15_PATH = @SKY130_OSU_T15_PATH@ |
| 211 | OSU_T18_PATH = @SKY130_OSU_T18_PATH@ |
Tim Edwards | bcf59aa | 2020-12-17 16:55:13 -0500 | [diff] [blame] | 212 | |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 213 | PDK_URL = https://github.com/google/skywater-pdk |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 214 | ALPHA_URL = https://github.com/PaulSchulz/sky130_pschulz_xx_hd/archive/master.tar.gz |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 215 | XSCHEM_URL = https://github.com/StefanSchippers/xschem_sky130/archive/main.tar.gz |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 216 | SRAM_URL = https://github.com/efabless/sky130_sram_macros/archive/main.tar.gz |
Tim Edwards | 9759ce5 | 2021-05-04 13:19:56 -0400 | [diff] [blame] | 217 | OSU_URL = https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_osu_sc/+archive/refs/heads/main.tar.gz |
| 218 | OSU_T12_URL = https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_osu_sc_t12/+archive/refs/heads/main.tar.gz |
| 219 | OSU_T15_URL = https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_osu_sc_t15/+archive/refs/heads/main.tar.gz |
| 220 | OSU_T18_URL = https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_osu_sc_t18/+archive/refs/heads/main.tar.gz |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 221 | |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 222 | # NOTE: Install destination is the git repository of the technology platform. |
| 223 | # Once updated in git, the git project can be distributed to all hosts. |
| 224 | # |
| 225 | ifeq (${EF_STYLE}, 1) |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 226 | LOCAL_PATH = @SKY130_LOCAL_PATH@ |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 227 | CONFIG_DIR = .ef-config |
| 228 | REV_DIR = ${REVISION} |
| 229 | else |
| 230 | # LOCAL_PATH = /usr/local/share/vlsi/SkyWater |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 231 | LOCAL_PATH = @SKY130_LOCAL_PATH@ |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 232 | CONFIG_DIR = .config |
| 233 | REV_DIR = . |
| 234 | endif |
| 235 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 236 | # DIST_PATH = ~/gits/ef-skywater-${TECH} |
| 237 | DIST_PATH = @SKY130_DIST_PATH@ |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 238 | |
| 239 | # EF process nodes created from the master sources |
| 240 | SKY130A = sky130A |
| 241 | |
| 242 | ifeq (${LINK_TARGETS}, ${SKY130A}) |
| 243 | DIST_LINK_TARGETS = ${LOCAL_PATH}/${LINK_TARGETS} |
| 244 | else |
| 245 | DIST_LINK_TARGETS = ${LINK_TARGETS} |
| 246 | endif |
| 247 | |
| 248 | # Basic definitions for each EF process node |
| 249 | SKY130A_DEFS = -DTECHNAME=sky130A -DREVISION=${REVISION} |
| 250 | |
| 251 | # Module definitions for each process node |
| 252 | # (Note that MOS is default and therefore not used anywhere) |
Tim Edwards | 0a0272b | 2020-07-28 14:40:10 -0400 | [diff] [blame] | 253 | SKY130A_DEFS += -DMETAL5 -DMIM -DREDISTRIBUTION |
| 254 | # SKY130A_DEFS += -DMETAL5 -DMIM |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 255 | |
| 256 | # Add staging path |
| 257 | SKY130A_DEFS += -DSTAGING_PATH=${STAGING_PATH} |
| 258 | |
| 259 | ifeq (${EF_STYLE}, 1) |
| 260 | EF_FORMAT = -ef_format |
| 261 | SKY130A_DEFS += -DEF_FORMAT |
| 262 | else |
| 263 | EF_FORMAT = -std_format |
| 264 | endif |
| 265 | |
| 266 | MAGICTOP = libs.tech/magic |
| 267 | NETGENTOP = libs.tech/netgen |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 268 | IRSIMTOP = libs.tech/irsim |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 269 | QFLOWTOP = libs.tech/qflow |
| 270 | KLAYOUTTOP = libs.tech/klayout |
| 271 | OPENLANETOP = libs.tech/openlane |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 272 | XSCHEMTOP = libs.tech/xschem |
Tim Edwards | e4c4409 | 2021-02-12 10:18:56 -0500 | [diff] [blame] | 273 | XCIRCUITTOP = libs.tech/xcircuit |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 274 | NGSPICETOP = libs.tech/ngspice |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 275 | |
| 276 | ifeq (${EF_STYLE}, 1) |
| 277 | MAGICPATH = ${MAGICTOP}/${REVISION} |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 278 | MAGICCURRENT = ${MAGICTOP}/current |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 279 | else |
| 280 | MAGICPATH = ${MAGICTOP} |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 281 | MAGICCURRENT = ${MAGICTOP} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 282 | endif |
| 283 | |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 284 | # Currently, netgen, qflow, irsim, and klayout do not use revisioning (needs to change!) |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 285 | NETGENPATH = ${NETGENTOP} |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 286 | IRSIMPATH = ${IRSIMTOP} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 287 | QFLOWPATH = ${QFLOWTOP} |
| 288 | KLAYOUTPATH = ${KLAYOUTTOP} |
| 289 | OPENLANEPATH = ${OPENLANETOP} |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 290 | XSCHEMPATH = ${XSCHEMTOP} |
Tim Edwards | e4c4409 | 2021-02-12 10:18:56 -0500 | [diff] [blame] | 291 | XCIRCUITPATH = ${XCIRCUITTOP} |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 292 | NGSPICEPATH = ${NGSPICETOP} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 293 | |
| 294 | MAGICTOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${MAGICTOP} |
| 295 | NETGENTOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${NETGENTOP} |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 296 | IRSIMTOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${IRSIMTOP} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 297 | QFLOWTOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${QFLOWTOP} |
| 298 | KLAYOUTTOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${KLAYOUTTOP} |
| 299 | OPENLANETOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${OPENLANETOP} |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 300 | XSCHEMTOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${XSCHEMTOP} |
Tim Edwards | e4c4409 | 2021-02-12 10:18:56 -0500 | [diff] [blame] | 301 | XCIRCUITTOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${XCIRCUITTOP} |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 302 | NGSPICETOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${NGSPICETOP} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 303 | |
| 304 | MAGIC_STAGING_A = ${STAGING_PATH}/${SKY130A}/${MAGICPATH} |
| 305 | NETGEN_STAGING_A = ${STAGING_PATH}/${SKY130A}/${NETGENPATH} |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 306 | IRSIM_STAGING_A = ${STAGING_PATH}/${SKY130A}/${IRSIMPATH} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 307 | QFLOW_STAGING_A = ${STAGING_PATH}/${SKY130A}/${QFLOWPATH} |
| 308 | KLAYOUT_STAGING_A = ${STAGING_PATH}/${SKY130A}/${KLAYOUTPATH} |
| 309 | OPENLANE_STAGING_A = ${STAGING_PATH}/${SKY130A}/${OPENLANEPATH} |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 310 | XSCHEM_STAGING_A = ${STAGING_PATH}/${SKY130A}/${XSCHEMPATH} |
Tim Edwards | e4c4409 | 2021-02-12 10:18:56 -0500 | [diff] [blame] | 311 | XCIRCUIT_STAGING_A = ${STAGING_PATH}/${SKY130A}/${XCIRCUITPATH} |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 312 | NGSPICE_STAGING_A = ${STAGING_PATH}/${SKY130A}/${NGSPICEPATH} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 313 | |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 314 | SKY130A_DEFS += -DMAGIC_CURRENT=${MAGICCURRENT} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 315 | |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 316 | # Openlane has a number of files that are common to all digital |
| 317 | # standard cell libraries, so these are collected in one definition |
| 318 | # here: |
agorararmard | 2ca4602 | 2021-02-11 21:43:51 +0200 | [diff] [blame] | 319 | OPENLANE_COMMON = config.tcl tracks.info no_synth.cells drc_exclude.cells |
manarabdelaty | 2ecac4f | 2021-03-08 15:23:12 +0200 | [diff] [blame] | 320 | OPENLANE_COMMON += tribuff_map.v latch_map.v mux2_map.v mux4_map.v fa_map.v rca_map.v csa_map.v |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 321 | |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 322 | # Where cpp syntax is followed, this is equivalent to cpp, but it does not |
| 323 | # mangle non-C source files under the belief that they are actually C code. |
| 324 | CPP = ../common/preproc.py |
| 325 | |
| 326 | # The following script in the ../common directory does most of the work of |
| 327 | # copying or linking the foundry vendor files to the target directory. |
| 328 | STAGE = set -f ; ../common/foundry_install.py ${EF_FORMAT} |
| 329 | INSTALL = ../common/staging_install.py ${EF_FORMAT} |
| 330 | |
| 331 | # The script(s) below are used for custom changes to the vendor PDK files |
Ahmed Ghazy | a285ff4 | 2020-07-27 17:52:14 +0200 | [diff] [blame] | 332 | ADDPROP = ../common/insert_property.py ${EF_FORMAT} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 333 | |
| 334 | # List the EDA tools to install local setup files for |
Tim Edwards | ccaea72 | 2020-12-24 10:59:42 -0500 | [diff] [blame] | 335 | TOOLS = |
| 336 | |
| 337 | # KLAYOUT_DISABLED = 0 | 1 |
| 338 | KLAYOUT_DISABLED = @KLAYOUT_DISABLED@ |
| 339 | ifneq (${KLAYOUT_DISABLED}, 1) |
| 340 | TOOLS += klayout |
| 341 | endif |
| 342 | |
| 343 | # OPENLANE_DISABLED = 0 | 1 |
| 344 | OPENLANE_DISABLED = @OPENLANE_DISABLED@ |
| 345 | ifneq (${OPENLANE_DISABLED}, 1) |
| 346 | TOOLS += openlane |
| 347 | endif |
| 348 | |
| 349 | # QFLOW_DISABLED = 0 | 1 |
| 350 | QFLOW_DISABLED = @QFLOW_DISABLED@ |
| 351 | ifneq (${QFLOW_DISABLED}, 1) |
| 352 | TOOLS += qflow |
| 353 | endif |
| 354 | |
| 355 | # MAGIC_DISABLED = 0 | 1 |
| 356 | MAGIC_DISABLED = @MAGIC_DISABLED@ |
| 357 | ifneq (${MAGIC_DISABLED}, 1) |
| 358 | TOOLS += magic |
| 359 | endif |
| 360 | |
| 361 | # NETGEN_DISABLED = 0 | 1 |
| 362 | NETGEN_DISABLED = @NETGEN_DISABLED@ |
| 363 | ifneq (${NETGEN_DISABLED}, 1) |
| 364 | TOOLS += netgen |
| 365 | endif |
| 366 | |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 367 | # IRSIM_DISABLED = 0 | 1 |
| 368 | IRSIM_DISABLED = @IRSIM_DISABLED@ |
| 369 | ifneq (${IRSIM_DISABLED}, 1) |
| 370 | TOOLS += irsim |
| 371 | endif |
| 372 | |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 373 | # XSCHEM_DISABLED = 0 | 1 |
| 374 | XSCHEM_DISABLED = @XSCHEM_DISABLED@ |
| 375 | ifneq (${XSCHEM_DISABLED}, 1) |
| 376 | TOOLS += xschem |
| 377 | endif |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 378 | |
Tim Edwards | e4c4409 | 2021-02-12 10:18:56 -0500 | [diff] [blame] | 379 | # XCIRCUIT_DISABLED = 0 | 1 |
| 380 | XCIRCUIT_DISABLED = @XCIRCUIT_DISABLED@ |
| 381 | ifneq (${XCIRCUIT_DISABLED}, 1) |
| 382 | TOOLS += xcircuit |
| 383 | endif |
| 384 | |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 385 | # These definitions depend on the setting of EF_STYLE |
| 386 | ifeq (${EF_STYLE}, 1) |
| 387 | IO_VERILOG = verilog/sky130_fd_io |
| 388 | HD_VERILOG = verilog/sky130_fd_sc_hd |
| 389 | HDLL_VERILOG = verilog/sky130_fd_sc_hdll |
| 390 | HVL_VERILOG = verilog/sky130_fd_sc_hvl |
| 391 | HS_VERILOG = verilog/sky130_fd_sc_hs |
| 392 | MS_VERILOG = verilog/sky130_fd_sc_ms |
| 393 | LS_VERILOG = verilog/sky130_fd_sc_ls |
| 394 | LP_VERILOG = verilog/sky130_fd_sc_lp |
| 395 | HD_TECHLEF = techLEF/sky130_fd_sc_hd |
| 396 | HDLL_TECHLEF = techLEF/sky130_fd_sc_hdll |
| 397 | MLXX_SCRIPTS = scripts/sky130_ml_xx_hd |
| 398 | PR_SPICE = spi/sky130_fd_pr |
Tim Edwards | f63ee05 | 2021-04-29 15:13:45 -0400 | [diff] [blame] | 399 | HVL_SPICE = spi/sky130_fd_sc_hvl |
Tim Edwards | 16b050b | 2021-05-17 16:45:34 -0400 | [diff] [blame^] | 400 | HVL_PATCH4 = 4b |
Tim Edwards | f63ee05 | 2021-04-29 15:13:45 -0400 | [diff] [blame] | 401 | HVL_CDL = cdl/sky130_fd_sc_hvl |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 402 | else |
| 403 | IO_VERILOG = sky130_fd_io/verilog |
| 404 | HD_VERILOG = sky130_fd_sc_hd/verilog |
| 405 | HDLL_VERILOG = sky130_fd_sc_hdll/verilog |
| 406 | HVL_VERILOG = sky130_fd_sc_hvl/verilog |
| 407 | HS_VERILOG = sky130_fd_sc_hs/verilog |
| 408 | MS_VERILOG = sky130_fd_sc_ms/verilog |
| 409 | LS_VERILOG = sky130_fd_sc_ls/verilog |
| 410 | LP_VERILOG = sky130_fd_sc_lp/verilog |
| 411 | HD_TECHLEF = sky130_fd_sc_hd/techlef |
| 412 | HDLL_TECHLEF = sky130_fd_sc_hdll/techlef |
| 413 | MLXX_SCRIPTS = sky130_ml_xx_hd/scripts |
| 414 | PR_SPICE = sky130_fd_pr/spice |
Tim Edwards | f63ee05 | 2021-04-29 15:13:45 -0400 | [diff] [blame] | 415 | HVL_SPICE = sky130_fd_sc_hvl/spice |
Tim Edwards | 16b050b | 2021-05-17 16:45:34 -0400 | [diff] [blame^] | 416 | HVL_PATCH4 = 4 |
Tim Edwards | f63ee05 | 2021-04-29 15:13:45 -0400 | [diff] [blame] | 417 | HVL_CDL = sky130_fd_sc_hvl/cdl |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 418 | endif |
| 419 | |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 420 | all: all-a |
| 421 | |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 422 | # Handle prerequisites (fetch and install the PDK and requested libraries) |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 423 | prerequisites: pdk-repo alpha-repo xschem-repo sram-repo osu-repo osu-t12-repo osu-t15-repo osu-t18-repo |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 424 | |
| 425 | pdk-repo: |
| 426 | if test "x${SKYWATER_PATH}" != "x" ; then \ |
| 427 | if test -d "${SKYWATER_PATH}" ; then \ |
| 428 | echo "Using existing installation of SkyWater PDK from ${SKYWATER_PATH}" ; \ |
| 429 | else \ |
| 430 | echo "Downloading SkyWater PDK from ${PDK_URL}" ; \ |
| 431 | custom/scripts/pdk_download.sh ${PDK_URL} ${SKYWATER_PATH} ; \ |
| 432 | fi ; \ |
| 433 | fi |
| 434 | |
| 435 | alpha-repo: |
| 436 | if test "x${ALPHA_PATH}" != "x" ; then \ |
| 437 | if test -d "${ALPHA_PATH}" ; then \ |
| 438 | echo "Using existing installation of alphanumeric library from ${ALPHA_PATH}" ; \ |
| 439 | else \ |
| 440 | echo "Downloading alphanumeric library from ${ALPHA_URL}" ; \ |
| 441 | ../scripts/download.sh ${ALPHA_URL} ${ALPHA_PATH} ; \ |
| 442 | fi ; \ |
| 443 | fi |
| 444 | |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 445 | sram-repo: |
| 446 | if test "x${SRAM_PATH}" != "x" ; then \ |
| 447 | if test -d "${SRAM_PATH}" ; then \ |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 448 | echo "Using existing installation of SRAM macro library from ${SRAM_PATH}" ; \ |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 449 | else \ |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 450 | echo "Downloading SRAM macro library from ${SRAM_URL}" ; \ |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 451 | ../scripts/download.sh ${SRAM_URL} ${SRAM_PATH} ; \ |
| 452 | fi ; \ |
| 453 | fi |
| 454 | |
| 455 | xschem-repo: |
| 456 | if test "x${XSCHEM_PATH}" != "x" ; then \ |
| 457 | if test -d "${XSCHEM_PATH}" ; then \ |
| 458 | echo "Using existing installation of xschem setup from ${XSCHEM_PATH}" ; \ |
| 459 | else \ |
| 460 | echo "Downloading xschem setup from ${XSCHEM_URL}" ; \ |
| 461 | ../scripts/download.sh ${XSCHEM_URL} ${XSCHEM_PATH} ; \ |
| 462 | fi ; \ |
| 463 | fi |
| 464 | |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 465 | osu-repo: |
| 466 | if test "x${OSU_PATH}" != "x" ; then \ |
| 467 | if test -d "${OSU_PATH}" ; then \ |
| 468 | echo "Using existing installation of OSU standard cell library from ${OSU_PATH}" ; \ |
| 469 | else \ |
| 470 | echo "Downloading OSU standard cell library from ${OSU_URL}" ; \ |
| 471 | ../scripts/download.sh ${OSU_URL} ${OSU_PATH} 0 ; \ |
| 472 | fi ; \ |
| 473 | fi |
| 474 | |
| 475 | osu-t12-repo: |
| 476 | if test "x${OSU_T12_PATH}" != "x" ; then \ |
| 477 | if test -d "${OSU_T12_PATH}" ; then \ |
| 478 | echo "Using existing installation of OSU T12 standard cell library from ${OSU_T12_PATH}" ; \ |
| 479 | else \ |
| 480 | echo "Downloading OSU standard T12 cell library from ${OSU_T12_URL}" ; \ |
| 481 | ../scripts/download.sh ${OSU_T12_URL} ${OSU_T12_PATH} 0 ; \ |
| 482 | fi ; \ |
| 483 | fi |
| 484 | |
| 485 | osu-t15-repo: |
| 486 | if test "x${OSU_T15_PATH}" != "x" ; then \ |
| 487 | if test -d "${OSU_T15_PATH}" ; then \ |
| 488 | echo "Using existing installation of OSU T15 standard cell library from ${OSU_T15_PATH}" ; \ |
| 489 | else \ |
| 490 | echo "Downloading OSU standard T15 cell library from ${OSU_T15_URL}" ; \ |
| 491 | ../scripts/download.sh ${OSU_T15_URL} ${OSU_T15_PATH} 0 ; \ |
| 492 | fi ; \ |
| 493 | fi |
| 494 | |
| 495 | osu-t18-repo: |
| 496 | if test "x${OSU_T18_PATH}" != "x" ; then \ |
| 497 | if test -d "${OSU_T18_PATH}" ; then \ |
| 498 | echo "Using existing installation of OSU T18 standard cell library from ${OSU_T18_PATH}" ; \ |
| 499 | else \ |
| 500 | echo "Downloading OSU standard T18 cell library from ${OSU_T18_URL}" ; \ |
| 501 | ../scripts/download.sh ${OSU_T18_URL} ${OSU_T18_PATH} 0 ; \ |
| 502 | fi ; \ |
| 503 | fi |
| 504 | |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 505 | all-a: prerequisites |
| 506 | echo "Starting sky130A PDK staging on "`date` > ${SKY130A}_make.log |
Tim Edwards | 10aa9ab | 2021-03-15 17:46:29 -0400 | [diff] [blame] | 507 | ${MAKE} general-a |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 508 | ${MAKE} tools-a |
| 509 | ${MAKE} vendor-a |
| 510 | echo "Ended sky130A PDK staging on "`date` >> ${SKY130A}_make.log |
| 511 | |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 512 | general-a: ${TECH}.json |
| 513 | mkdir -p ${STAGING_PATH}/${SKY130A}/${CONFIG_DIR} |
| 514 | rm -f ${STAGING_PATH}/${SKY130A}/${CONFIG_DIR}/nodeinfo.json |
| 515 | ${CPP} ${SKY130A_DEFS} ${TECH}.json \ |
| 516 | ${STAGING_PATH}/${SKY130A}/${CONFIG_DIR}/nodeinfo.json |
| 517 | |
Tim Edwards | 942a14f | 2020-12-24 16:20:31 -0500 | [diff] [blame] | 518 | tools-a: $(addsuffix -a, $(TOOLS)) |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 519 | |
Tim Edwards | 5778c23 | 2020-07-07 16:57:52 -0400 | [diff] [blame] | 520 | magic-a: magic/${TECH}.tech magic/${TECH}gds.tech magic/${TECH}.magicrc magic/${TECH}.tcl |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 521 | mkdir -p ${MAGICTOP_STAGING_A} |
| 522 | mkdir -p ${MAGIC_STAGING_A} |
| 523 | rm -f ${MAGICTOP_STAGING_A}/current |
| 524 | rm -f ${MAGIC_STAGING_A}/${SKY130A}.tech |
| 525 | rm -f ${MAGIC_STAGING_A}/${SKY130A}-GDS.tech |
| 526 | rm -f ${MAGIC_STAGING_A}/${SKY130A}.tcl |
| 527 | rm -f ${MAGIC_STAGING_A}/${SKY130A}-BindKeys |
| 528 | rm -f ${MAGIC_STAGING_A}/magicrc |
Tim Edwards | 4db522f | 2021-05-04 13:34:40 -0400 | [diff] [blame] | 529 | if test "${EF_STYLE}" == "1" ; then \ |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 530 | (cd ${MAGICTOP_STAGING_A} ; ln -s ${REV_DIR} current) ; \ |
| 531 | fi |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 532 | cp -rp custom/scripts/seal_ring_generator ${MAGIC_STAGING_A}/. |
Tim Edwards | 4d081b8 | 2021-01-27 14:30:03 -0500 | [diff] [blame] | 533 | cp -rp custom/scripts/bump_bond_generator ${MAGIC_STAGING_A}/. |
Tim Edwards | 4d46bac | 2020-12-29 16:23:22 -0500 | [diff] [blame] | 534 | cp custom/scripts/generate_fill.py ${MAGIC_STAGING_A}/. |
Tim Edwards | 113b083 | 2021-01-13 11:27:52 -0500 | [diff] [blame] | 535 | cp custom/scripts/check_density.py ${MAGIC_STAGING_A}/. |
Tim Edwards | c46b953 | 2021-04-12 14:31:29 -0400 | [diff] [blame] | 536 | cp custom/scripts/run_standard_drc.py ${MAGIC_STAGING_A}/. |
| 537 | cp custom/scripts/check_antenna.py ${MAGIC_STAGING_A}/. |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 538 | ${CPP} ${SKY130A_DEFS} magic/${TECH}.tech ${MAGIC_STAGING_A}/${SKY130A}.tech |
| 539 | ${CPP} ${SKY130A_DEFS} magic/${TECH}gds.tech ${MAGIC_STAGING_A}/${SKY130A}-GDS.tech |
| 540 | ${CPP} ${SKY130A_DEFS} magic/${TECH}.magicrc ${MAGIC_STAGING_A}/${SKY130A}.magicrc |
| 541 | ${CPP} ${SKY130A_DEFS} ../common/pdk.bindkeys ${MAGIC_STAGING_A}/${SKY130A}-BindKeys |
| 542 | ${CPP} ${SKY130A_DEFS} magic/${TECH}.tcl ${MAGIC_STAGING_A}/${SKY130A}.tcl |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 543 | ${CPP} ${SKY130A_DEFS} ../common/pdk.tcl >> ${MAGIC_STAGING_A}/${SKY130A}.tcl |
| 544 | |
Tim Edwards | 5778c23 | 2020-07-07 16:57:52 -0400 | [diff] [blame] | 545 | qflow-a: qflow/${TECH}.sh qflow/${TECH}.par |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 546 | mkdir -p ${QFLOWTOP_STAGING_A} |
| 547 | mkdir -p ${QFLOW_STAGING_A} |
| 548 | rm -f ${QFLOW_STAGING_A}/${SKY130A}hd.sh |
| 549 | rm -f ${QFLOW_STAGING_A}/${SKY130A}hd.par |
| 550 | rm -f ${QFLOW_STAGING_A}/${SKY130A}hdll.sh |
| 551 | rm -f ${QFLOW_STAGING_A}/${SKY130A}hdll.par |
| 552 | rm -f ${QFLOW_STAGING_A}/${SKY130A}hs.sh |
| 553 | rm -f ${QFLOW_STAGING_A}/${SKY130A}hs.par |
| 554 | rm -f ${QFLOW_STAGING_A}/${SKY130A}hvl.sh |
| 555 | rm -f ${QFLOW_STAGING_A}/${SKY130A}hvl.par |
| 556 | rm -f ${QFLOW_STAGING_A}/${SKY130A}ls.sh |
| 557 | rm -f ${QFLOW_STAGING_A}/${SKY130A}ls.par |
| 558 | rm -f ${QFLOW_STAGING_A}/${SKY130A}lp.sh |
| 559 | rm -f ${QFLOW_STAGING_A}/${SKY130A}lp.par |
| 560 | rm -f ${QFLOW_STAGING_A}/${SKY130A}ms.sh |
| 561 | rm -f ${QFLOW_STAGING_A}/${SKY130A}ms.par |
Tim Edwards | 7ec7697 | 2020-07-07 21:56:08 -0400 | [diff] [blame] | 562 | rm -f ${QFLOW_STAGING_A}/${SKY130A}osu.sh |
| 563 | rm -f ${QFLOW_STAGING_A}/${SKY130A}osu.par |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 564 | ${CPP} ${SKY130A_DEFS} -DLIBRARY=sky130_fd_sc_hd qflow/${TECH}.sh \ |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 565 | ${QFLOW_STAGING_A}/${SKY130A}hd.sh |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 566 | ${CPP} ${SKY130A_DEFS} -DLIBRARY=sky130_fd_sc_hdll qflow/${TECH}.sh \ |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 567 | ${QFLOW_STAGING_A}/${SKY130A}hdll.sh |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 568 | ${CPP} ${SKY130A_DEFS} -DLIBRARY=sky130_fd_sc_hvl qflow/${TECH}.sh \ |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 569 | ${QFLOW_STAGING_A}/${SKY130A}hvl.sh |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 570 | ${CPP} ${SKY130A_DEFS} -DLIBRARY=sky130_fd_sc_hs qflow/${TECH}.sh \ |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 571 | ${QFLOW_STAGING_A}/${SKY130A}hs.sh |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 572 | ${CPP} ${SKY130A_DEFS} -DLIBRARY=sky130_fd_sc_lp qflow/${TECH}.sh \ |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 573 | ${QFLOW_STAGING_A}/${SKY130A}lp.sh |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 574 | ${CPP} ${SKY130A_DEFS} -DLIBRARY=sky130_fd_sc_ls qflow/${TECH}.sh \ |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 575 | ${QFLOW_STAGING_A}/${SKY130A}ls.sh |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 576 | ${CPP} ${SKY130A_DEFS} -DLIBRARY=sky130_fd_sc_ms qflow/${TECH}.sh \ |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 577 | ${QFLOW_STAGING_A}/${SKY130A}ms.sh |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 578 | ${CPP} ${SKY130A_DEFS} -DLIBRARY=sky130_osu_sc_t18 qflow/sky130osu.sh \ |
Tim Edwards | 7ec7697 | 2020-07-07 21:56:08 -0400 | [diff] [blame] | 579 | ${QFLOW_STAGING_A}/${SKY130A}osu.sh |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 580 | ${CPP} ${SKY130A_DEFS} qflow/${TECH}.par ${QFLOW_STAGING_A}/${SKY130A}hd.par |
| 581 | ${CPP} ${SKY130A_DEFS} qflow/${TECH}.par ${QFLOW_STAGING_A}/${SKY130A}hdll.par |
| 582 | ${CPP} ${SKY130A_DEFS} qflow/${TECH}.par ${QFLOW_STAGING_A}/${SKY130A}hvl.par |
| 583 | ${CPP} ${SKY130A_DEFS} qflow/${TECH}.par ${QFLOW_STAGING_A}/${SKY130A}hs.par |
| 584 | ${CPP} ${SKY130A_DEFS} qflow/${TECH}.par ${QFLOW_STAGING_A}/${SKY130A}ms.par |
| 585 | ${CPP} ${SKY130A_DEFS} qflow/${TECH}.par ${QFLOW_STAGING_A}/${SKY130A}lp.par |
| 586 | ${CPP} ${SKY130A_DEFS} qflow/${TECH}.par ${QFLOW_STAGING_A}/${SKY130A}ls.par |
| 587 | ${CPP} ${SKY130A_DEFS} qflow/${TECH}.par ${QFLOW_STAGING_A}/${SKY130A}osu.par |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 588 | |
Tim Edwards | 5778c23 | 2020-07-07 16:57:52 -0400 | [diff] [blame] | 589 | netgen-a: netgen/${TECH}_setup.tcl |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 590 | mkdir -p ${NETGENTOP_STAGING_A} |
| 591 | mkdir -p ${NETGEN_STAGING_A} |
| 592 | rm -f ${NETGEN_STAGING_A}/${SKY130A}_setup.tcl |
| 593 | rm -f ${NETGEN_STAGING_A}/setup.tcl |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 594 | ${CPP} ${SKY130A_DEFS} netgen/${TECH}_setup.tcl ${NETGEN_STAGING_A}/${SKY130A}_setup.tcl |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 595 | (cd ${NETGEN_STAGING_A} ; ln -s ${SKY130A}_setup.tcl setup.tcl) |
| 596 | |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 597 | irsim-a: irsim |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 598 | mkdir -p ${IRSIMTOP_STAGING_A} |
| 599 | mkdir -p ${IRSIM_STAGING_A} |
| 600 | rm -f ${IRSIM_STAGING_A}/${SKY130A}_*.prm |
| 601 | cp irsim/${SKY130A}_*.prm ${IRSIM_STAGING_A}/ |
| 602 | |
Tim Edwards | 5778c23 | 2020-07-07 16:57:52 -0400 | [diff] [blame] | 603 | klayout-a: klayout/${TECH}.lyp klayout/${TECH}.lyt |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 604 | mkdir -p ${KLAYOUTTOP_STAGING_A} |
| 605 | mkdir -p ${KLAYOUT_STAGING_A} |
| 606 | rm -f ${KLAYOUT_STAGING_A}/${SKY130A}.lyp |
| 607 | rm -f ${KLAYOUT_STAGING_A}/${SKY130A}.lyt |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 608 | ${CPP} ${SKY130A_DEFS} klayout/${TECH}.lyp ${KLAYOUT_STAGING_A}/${SKY130A}.lyp |
| 609 | ${CPP} ${SKY130A_DEFS} klayout/${TECH}.lyt ${KLAYOUT_STAGING_A}/${SKY130A}.lyt |
agorararmard | 1a6ece5 | 2021-01-15 18:50:43 +0200 | [diff] [blame] | 610 | cp klayout/${TECH}.lydrc ${KLAYOUT_STAGING_A}/${SKY130A}.lydrc |
agorararmard | 2256158 | 2021-01-15 17:55:59 +0200 | [diff] [blame] | 611 | ./custom/scripts/gen_run_drc.py -l ${KLAYOUT_STAGING_A}/${SKY130A}.lydrc -o ${KLAYOUT_STAGING_A}/${SKY130A}.drc |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 612 | |
Tim Edwards | e4c4409 | 2021-02-12 10:18:56 -0500 | [diff] [blame] | 613 | xcircuit-a: xcircuit/${TECH}.xcircuitrc |
| 614 | rm -rf ${XCIRCUIT_STAGING_A} |
| 615 | mkdir -p ${XCIRCUITTOP_STAGING_A} |
| 616 | mkdir -p ${XCIRCUIT_STAGING_A} |
| 617 | rm -f ${XCIRCUIT_STAGING_A}/*.lps |
| 618 | rm -f ${XCIRCUIT_STAGING_A}/${SKY130A}.xcircuitrc |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 619 | ${CPP} ${SKY130A_DEFS} xcircuit/ngspice.lps ${XCIRCUIT_STAGING_A}/ngspice.lps |
| 620 | ${CPP} ${SKY130A_DEFS} xcircuit/sky130_fd_pr.lps ${XCIRCUIT_STAGING_A}/sky130_fd_pr.lps |
| 621 | ${CPP} ${SKY130A_DEFS} xcircuit/sky130_fd_sc_hd.lps ${XCIRCUIT_STAGING_A}/sky130_fd_sc_hd.lps |
| 622 | ${CPP} ${SKY130A_DEFS} xcircuit/${TECH}.xcircuitrc ${XCIRCUIT_STAGING_A}/${SKY130A}.xcircuitrc |
Tim Edwards | e4c4409 | 2021-02-12 10:18:56 -0500 | [diff] [blame] | 623 | |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 624 | xschem-a: ${XSCHEM_PATH} |
| 625 | rm -rf ${XSCHEM_STAGING_A} |
| 626 | mkdir -p ${XSCHEMTOP_STAGING_A} |
| 627 | mkdir -p ${XSCHEM_STAGING_A} |
| 628 | # Copy the entire repository (other than .git, if it exists) |
| 629 | if test "x${XSCHEM_PATH}" != "x" ; then \ |
| 630 | cp -rp ${XSCHEM_PATH}/* ${XSCHEM_STAGING_A} ; \ |
| 631 | fi |
Tim Edwards | 9a17fca | 2021-02-11 17:44:04 -0500 | [diff] [blame] | 632 | # Re-copy the xschemrc, with one change to add the PDK install path as |
| 633 | # a component of XSCHEM_LIBRARY_PATH |
| 634 | cat ${XSCHEM_PATH}/xschemrc | \ |
Tim Edwards | 5a623ff | 2021-04-30 16:30:52 -0400 | [diff] [blame] | 635 | ${SED} -e "/PWD/aappend XSCHEM_LIBRARY_PATH :${XSCHEM_STAGING_A}" | \ |
| 636 | ${SED} -e "/sky130_models.tcl/s#scripts#${XSCHEM_STAGING_A}/scripts#" | \ |
| 637 | ${SED} -e "/netlist_dir/aset netlist_dir ." \ |
Tim Edwards | 9a17fca | 2021-02-11 17:44:04 -0500 | [diff] [blame] | 638 | > ${XSCHEM_STAGING_A}/xschemrc |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 639 | |
Tristan Gingold | a585431 | 2020-10-15 18:28:16 +0200 | [diff] [blame] | 640 | openlane-a: openlane/common_pdn.tcl openlane/config.tcl openlane/sky130_fd_sc_hd/config.tcl openlane/sky130_fd_sc_hs/config.tcl openlane/sky130_fd_sc_ms/config.tcl openlane/sky130_fd_sc_ls/config.tcl openlane/sky130_fd_sc_hdll/config.tcl openlane/sky130_osu_sc_t18/config.tcl |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 641 | mkdir -p ${OPENLANETOP_STAGING_A} |
| 642 | mkdir -p ${OPENLANE_STAGING_A} |
Tim Edwards | 3c1dd9a | 2020-11-27 13:49:58 -0500 | [diff] [blame] | 643 | rm -rf ${OPENLANE_STAGING_A}/custom_cells/* |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 644 | mkdir -p ${OPENLANE_STAGING_A}/sky130_fd_sc_hd |
Tim Edwards | 5778c23 | 2020-07-07 16:57:52 -0400 | [diff] [blame] | 645 | mkdir -p ${OPENLANE_STAGING_A}/sky130_fd_sc_hs |
Ahmed Ghazy | 8e84e5c | 2020-07-27 14:32:34 +0200 | [diff] [blame] | 646 | mkdir -p ${OPENLANE_STAGING_A}/sky130_fd_sc_ls |
| 647 | mkdir -p ${OPENLANE_STAGING_A}/sky130_fd_sc_ms |
| 648 | mkdir -p ${OPENLANE_STAGING_A}/sky130_fd_sc_hdll |
| 649 | mkdir -p ${OPENLANE_STAGING_A}/sky130_fd_sc_hvl |
Tristan Gingold | a585431 | 2020-10-15 18:28:16 +0200 | [diff] [blame] | 650 | mkdir -p ${OPENLANE_STAGING_A}/sky130_osu_sc_t18 |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 651 | rm -f ${OPENLANE_STAGING_A}/common_pdn.info |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 652 | rm -f ${OPENLANE_STAGING_A}/config.tcl |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 653 | for file in ${OPENLANE_COMMON} ; do \ |
| 654 | rm -f ${OPENLANE_STAGING_A}/sky130_fd_sc_hd/$$file ; \ |
| 655 | done |
| 656 | for file in ${OPENLANE_COMMON} ; do \ |
| 657 | rm -f ${OPENLANE_STAGING_A}/sky130_fd_sc_hs/$$file ; \ |
| 658 | done |
| 659 | for file in ${OPENLANE_COMMON} ; do \ |
| 660 | rm -f ${OPENLANE_STAGING_A}/sky130_fd_sc_hdll/$$file ; \ |
| 661 | done |
| 662 | for file in ${OPENLANE_COMMON} ; do \ |
| 663 | rm -f ${OPENLANE_STAGING_A}/sky130_fd_sc_ls/$$file ; \ |
| 664 | done |
| 665 | for file in ${OPENLANE_COMMON} ; do \ |
| 666 | rm -f ${OPENLANE_STAGING_A}/sky130_fd_sc_ms/$$file ; \ |
| 667 | done |
| 668 | for file in ${OPENLANE_COMMON} ; do \ |
| 669 | rm -f ${OPENLANE_STAGING_A}/sky130_fd_sc_hvl/$$file ; \ |
| 670 | done |
| 671 | for file in ${OPENLANE_COMMON} ; do \ |
| 672 | rm -f ${OPENLANE_STAGING_A}/sky130_osu_sc_t18/$$file ; \ |
| 673 | done |
| 674 | |
Ahmed Ghazy | 5fd61d2 | 2020-11-24 21:44:28 +0200 | [diff] [blame] | 675 | cp -r openlane/custom_cells ${OPENLANE_STAGING_A} |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 676 | ${CPP} ${SKY130A_DEFS} openlane/common_pdn.tcl ${OPENLANE_STAGING_A}/common_pdn.tcl |
| 677 | ${CPP} ${SKY130A_DEFS} openlane/config.tcl ${OPENLANE_STAGING_A}/config.tcl |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 678 | |
| 679 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 680 | ${CPP} -quiet ${SKY130A_DEFS} openlane/sky130_fd_sc_hd/$$file \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 681 | ${OPENLANE_STAGING_A}/sky130_fd_sc_hd/$$file ; \ |
| 682 | done |
| 683 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 684 | ${CPP} -quiet ${SKY130A_DEFS} openlane/sky130_fd_sc_hs/$$file \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 685 | ${OPENLANE_STAGING_A}/sky130_fd_sc_hs/$$file ; \ |
| 686 | done |
| 687 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 688 | ${CPP} -quiet ${SKY130A_DEFS} openlane/sky130_fd_sc_ms/$$file \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 689 | ${OPENLANE_STAGING_A}/sky130_fd_sc_ms/$$file ; \ |
| 690 | done |
| 691 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 692 | ${CPP} -quiet ${SKY130A_DEFS} openlane/sky130_fd_sc_ls/$$file \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 693 | ${OPENLANE_STAGING_A}/sky130_fd_sc_ls/$$file ; \ |
| 694 | done |
| 695 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 696 | ${CPP} -quiet ${SKY130A_DEFS} openlane/sky130_fd_sc_hdll/$$file \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 697 | ${OPENLANE_STAGING_A}/sky130_fd_sc_hdll/$$file ; \ |
| 698 | done |
| 699 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 700 | ${CPP} -quiet ${SKY130A_DEFS} openlane/sky130_fd_sc_hvl/$$file \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 701 | ${OPENLANE_STAGING_A}/sky130_fd_sc_hvl/$$file ; \ |
| 702 | done |
| 703 | |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 704 | ${CPP} -quiet ${SKY130A_DEFS} openlane/sky130_osu_sc_t18/config.tcl \ |
| 705 | ${OPENLANE_STAGING_A}/sky130_osu_sc_t18/config.tcl |
| 706 | ${CPP} -quiet ${SKY130A_DEFS} openlane/sky130_osu_sc_t18/tracks.info \ |
| 707 | ${OPENLANE_STAGING_A}/sky130_osu_sc_t18/tracks.info |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 708 | |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 709 | vendor-a: primitive-a io-a digital-a alpha-a sram-a osu-base-a osu-t12-a osu-t15-a osu-t18-a |
| 710 | |
| 711 | primitive-a: |
Tim Edwards | 106e38b | 2020-09-20 13:07:54 -0400 | [diff] [blame] | 712 | # Install device subcircuits from vendor files |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 713 | ${STAGE} -source ${SKYWATER_LIBS_PATH} -target ${STAGING_PATH}/${SKY130A} \ |
Tim Edwards | 995c133 | 2020-09-25 15:33:58 -0400 | [diff] [blame] | 714 | -ngspice sky130_fd_pr/latest/models/* \ |
| 715 | filter=custom/scripts/rename_models.py \ |
Mohamed Gaber | 28e86d7 | 2021-02-23 08:34:03 +0200 | [diff] [blame] | 716 | 2>&1 | tee -a ${SKY130A}_make.log |
Tim Edwards | 7e29496 | 2021-05-04 20:33:17 -0400 | [diff] [blame] | 717 | # Install device layouts from custom sources |
| 718 | ${STAGE} -source ./custom -target ${STAGING_PATH}/${SKY130A} \ |
| 719 | -gds sky130_fd_pr/*.gds \ |
| 720 | options=custom/scripts/gds_import_setup.tcl \ |
| 721 | -library primitive sky130_fd_pr 2>&1 | tee -a ${SKY130A}_make.log |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 722 | # Install base device library from vendor files |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 723 | ${STAGE} -source ${SKYWATER_LIBS_PATH} -target ${STAGING_PATH}/${SKY130A} \ |
Tim Edwards | 7e29496 | 2021-05-04 20:33:17 -0400 | [diff] [blame] | 724 | -gds %l/latest/cells/*/*.gds \ |
| 725 | exclude=sky130_fd_pr__pnp_05v5_W3p40L3p40.gds \ |
| 726 | compile-only \ |
Tim Edwards | b6e8c7e | 2021-03-30 12:20:15 -0400 | [diff] [blame] | 727 | options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 106e38b | 2020-09-20 13:07:54 -0400 | [diff] [blame] | 728 | -cdl %l/latest/cells/*/*.cdl compile-only \ |
| 729 | -lef %l/latest/cells/*/*.magic.lef compile-only \ |
Tim Edwards | bfc8269 | 2020-09-20 21:33:08 -0400 | [diff] [blame] | 730 | -spice %l/latest/cells/*/*.spice filter=custom/scripts/rename_cells.py \ |
Mohamed Gaber | 28e86d7 | 2021-02-23 08:34:03 +0200 | [diff] [blame] | 731 | -library primitive sky130_fd_pr 2>&1 | tee -a ${SKY130A}_make.log |
Tim Edwards | e60b486 | 2020-11-23 16:56:52 -0500 | [diff] [blame] | 732 | # Custom: Add "short" resistor model and subcircuit to the r+c models file |
Tim Edwards | 42f79a3 | 2020-09-21 14:18:09 -0400 | [diff] [blame] | 733 | cat ./custom/models/short.spice >> \ |
agorararmard | 3ee5f11 | 2021-02-03 19:49:09 +0200 | [diff] [blame] | 734 | ${STAGING_PATH}/${SKY130A}/libs.tech/ngspice/sky130_fd_pr__model__r+c.model.spice |
Tim Edwards | e60b486 | 2020-11-23 16:56:52 -0500 | [diff] [blame] | 735 | # Custom: Add diodes as subcircuits to the r+c models file |
| 736 | cat ./custom/models/diode.spice >> \ |
agorararmard | 3ee5f11 | 2021-02-03 19:49:09 +0200 | [diff] [blame] | 737 | ${STAGING_PATH}/${SKY130A}/libs.tech/ngspice/sky130_fd_pr__model__r+c.model.spice |
Tim Edwards | f63ee05 | 2021-04-29 15:13:45 -0400 | [diff] [blame] | 738 | # Custom: Add resistors as subcircuits to the r+c models file |
| 739 | cat ./custom/models/resistor.spice >> \ |
| 740 | ${STAGING_PATH}/${SKY130A}/libs.tech/ngspice/sky130_fd_pr__model__r+c.model.spice |
Tim Edwards | e60b486 | 2020-11-23 16:56:52 -0500 | [diff] [blame] | 741 | |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 742 | # Custom: Patch the models to work around ngspice issue with the relative |
| 743 | # order of the "nf" and "mult" parameters. |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 744 | patch -p4 -f -d ${STAGING_PATH}/${SKY130A}/libs.ref/${PR_SPICE} \ |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 745 | < custom/patches/sky130_fd_pr.patch \ |
Mohamed Gaber | 28e86d7 | 2021-02-23 08:34:03 +0200 | [diff] [blame] | 746 | 2>&1 | tee -a ${SKY130A}_make.log || true |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 747 | patch -p1 -f -d ${STAGING_PATH}/${SKY130A} \ |
| 748 | < custom/patches/sky130_fd_pr_2.patch \ |
| 749 | 2>&1 | tee -a ${SKY130A}_make.log || true |
Tim Edwards | f499ad2 | 2021-05-04 16:55:21 -0400 | [diff] [blame] | 750 | # Custom: Patch the models to remove the substrate pin from the PNP |
| 751 | # device, which has no independent substrate pin (collector=substrate) |
| 752 | patch -p4 -f -d ${STAGING_PATH}/${SKY130A}/libs.ref/${PR_SPICE} \ |
| 753 | < custom/patches/sky130_fd_pr_3.patch \ |
| 754 | 2>&1 | tee -a ${SKY130A}_make.log || true |
Tim Edwards | f63ee05 | 2021-04-29 15:13:45 -0400 | [diff] [blame] | 755 | # Custom: Patch the ngspice models to add the HV diffusion resistor subcircuits |
| 756 | patch -p2 -f -d ${STAGING_PATH}/${SKY130A}/libs.tech/ngspice \ |
| 757 | < custom/patches/sky130_fd_pr_5.patch \ |
| 758 | 2>&1 | tee -a ${SKY130A}_make.log || true |
Tim Edwards | f499ad2 | 2021-05-04 16:55:21 -0400 | [diff] [blame] | 759 | # Fix up the PNP model file before running the next modification |
| 760 | head -15 ${STAGING_PATH}/${SKY130A}/libs.ref/${PR_SPICE}/sky130_fd_pr__pnp_05v5_W3p40L3p40.model.spice > ${STAGING_PATH}/${SKY130A}/libs.ref/${PR_SPICE}/temp |
| 761 | tail -39 ${STAGING_PATH}/${SKY130A}/libs.ref/${PR_SPICE}/sky130_fd_pr__pnp_05v5_W3p40L3p40.model.spice >> ${STAGING_PATH}/${SKY130A}/libs.ref/${PR_SPICE}/temp |
| 762 | mv ${STAGING_PATH}/${SKY130A}/libs.ref/${PR_SPICE}/temp ${STAGING_PATH}/${SKY130A}/libs.ref/${PR_SPICE}/sky130_fd_pr__pnp_05v5_W3p40L3p40.model.spice |
Tim Edwards | 9fdf5f0 | 2021-05-03 16:15:03 -0400 | [diff] [blame] | 763 | # Custom: Parse the (commented out) statistics blocks and generate |
| 764 | # ngspice-compatible monte carlo parameters for mismatch and process |
Tim Edwards | 00bfca5 | 2021-05-04 10:48:46 -0400 | [diff] [blame] | 765 | ./custom/scripts/mismatch_params.py \ |
| 766 | 2>&1 | tee -a ${SKY130A}_make.log || true |
| 767 | ./custom/scripts/mismatch_params.py \ |
| 768 | ${STAGING_PATH}/${SKY130A}/libs.tech/ngspice \ |
| 769 | 2>&1 | tee -a ${SKY130A}_make.log || true |
| 770 | ./custom/scripts/process_params.py \ |
| 771 | 2>&1 | tee -a ${SKY130A}_make.log || true |
| 772 | # Custom: Add "mc" section to sky130.lib.spice |
| 773 | head -n-1 ${STAGING_PATH}/${SKY130A}/libs.tech/ngspice/sky130.lib.spice \ |
| 774 | | ${SED} -e '/^\.lib/a.param mc_pr_switch=0' \ |
| 775 | > ${STAGING_PATH}/${SKY130A}/libs.tech/ngspice/sky130.lib.spice.head |
| 776 | cat ${STAGING_PATH}/${SKY130A}/libs.tech/ngspice/sky130.lib.spice.head \ |
| 777 | custom/models/sky130.lib.spice.extra > \ |
| 778 | ${STAGING_PATH}/${SKY130A}/libs.tech/ngspice/sky130.lib.spice |
| 779 | rm ${STAGING_PATH}/${SKY130A}/libs.tech/ngspice/sky130.lib.spice.head |
Tim Edwards | 9fdf5f0 | 2021-05-03 16:15:03 -0400 | [diff] [blame] | 780 | |
Tim Edwards | 10aa9ab | 2021-03-15 17:46:29 -0400 | [diff] [blame] | 781 | # Custom: Add "spinit" file |
| 782 | cat ./custom/models/spinit >> \ |
| 783 | ${STAGING_PATH}/${SKY130A}/libs.tech/ngspice/spinit |
| 784 | |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 785 | io-a: |
Ahmed Ghazy | 59370ab | 2020-10-29 02:04:45 +0200 | [diff] [blame] | 786 | # Install custom additions to I/O pad library |
| 787 | ${STAGE} -source ./custom -target ${STAGING_PATH}/${SKY130A} \ |
| 788 | -verilog %l/verilog/*.v \ |
| 789 | -cdl %l/cdl/*.cdl \ |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 790 | -spice %l/spice/*.spice \ |
Tim Edwards | b6e8c7e | 2021-03-30 12:20:15 -0400 | [diff] [blame] | 791 | -gds %l/gds/*.gds options=custom/scripts/gds_import_setup.tcl \ |
Ahmed Ghazy | 59370ab | 2020-10-29 02:04:45 +0200 | [diff] [blame] | 792 | -lef %l/lef/*.lef compile-only rename=sky130_ef_io \ |
Mohamed Gaber | 28e86d7 | 2021-02-23 08:34:03 +0200 | [diff] [blame] | 793 | -library general sky130_fd_io 2>&1 | tee -a ${SKY130A}_make.log |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 794 | # Install SkyWater I/O pad library |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 795 | ${STAGE} -source ${SKYWATER_LIBS_PATH} -target ${STAGING_PATH}/${SKY130A} \ |
Tim Edwards | 1134fbc | 2020-10-12 22:35:42 -0400 | [diff] [blame] | 796 | -spice %l/latest/cells/*/*.spice compile-only \ |
| 797 | sort=custom/scripts/sort_pdkfiles.py \ |
| 798 | -cdl %l/latest/cells/*/*.cdl ignore=topography compile-only \ |
| 799 | sort=custom/scripts/sort_pdkfiles.py \ |
| 800 | -lef %l/latest/cells/*/*.magic.lef compile-only \ |
| 801 | sort=custom/scripts/sort_pdkfiles.py \ |
| 802 | -doc %l/latest/cells/*/*.pdf \ |
| 803 | -lib %l/latest/timing/*.lib \ |
| 804 | -gds %l/latest/cells/*/*.gds compile-only \ |
| 805 | sort=custom/scripts/sort_pdkfiles.py \ |
Tim Edwards | 26ab496 | 2021-01-03 14:22:54 -0500 | [diff] [blame] | 806 | options=custom/scripts/sky130_fd_io_import.tcl \ |
Tim Edwards | 1134fbc | 2020-10-12 22:35:42 -0400 | [diff] [blame] | 807 | -verilog %l/latest/cells/*/*.*.v \ |
| 808 | -verilog %l/latest/cells/*/*.v exclude=*.*.v \ |
| 809 | compile-only filter=custom/scripts/inc_verilog.py \ |
| 810 | sort=custom/scripts/sort_pdkfiles.py \ |
Mohamed Gaber | 28e86d7 | 2021-02-23 08:34:03 +0200 | [diff] [blame] | 811 | -library general sky130_fd_io 2>&1 | tee -a ${SKY130A}_make.log |
Tim Edwards | 1134fbc | 2020-10-12 22:35:42 -0400 | [diff] [blame] | 812 | # Remove the base verilog files which have already been included into |
| 813 | # the libraries |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 814 | ${RM} ${STAGING_PATH}/${SKY130A}/libs.ref/${IO_VERILOG}/*.*.v |
Ahmed Ghazy | 5fd61d2 | 2020-11-24 21:44:28 +0200 | [diff] [blame] | 815 | # Install custom additions to standard cell libraries |
| 816 | ${STAGE} -source ./custom -target ${STAGING_PATH}/${SKY130A} \ |
Tim Edwards | b6e8c7e | 2021-03-30 12:20:15 -0400 | [diff] [blame] | 817 | -gds %l/gds/*.gds options=custom/scripts/gds_import_setup.tcl \ |
Ahmed Ghazy | 5fd61d2 | 2020-11-24 21:44:28 +0200 | [diff] [blame] | 818 | -lef %l/lef/*.lef \ |
Tim Edwards | bb8ab29 | 2021-01-22 10:19:40 -0500 | [diff] [blame] | 819 | -verilog %l/verilog/*.v \ |
Mohamed Gaber | 28e86d7 | 2021-02-23 08:34:03 +0200 | [diff] [blame] | 820 | -library digital sky130_fd_sc_hd 2>&1 | tee -a ${SKY130A}_make.log |
Tim Edwards | d14571f | 2021-01-06 14:49:27 -0500 | [diff] [blame] | 821 | # Add a maskhint set for the GPIO pad .mag view to prevent problems writing |
| 822 | # when writing HVI to GDS during hierarchical adjustments. |
| 823 | ${ADDPROP} ${STAGING_PATH}/${SKY130A} sky130_fd_io sky130_fd_io__top_gpiov2 \ |
| 824 | "MASKHINTS_HVI 1346 17198 5828 19224 13700 1890 15920 2360 24 17522 1778 20612" -mag |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 825 | |
| 826 | digital-a: |
Ahmed Ghazy | a285ff4 | 2020-07-27 17:52:14 +0200 | [diff] [blame] | 827 | # Install all SkyWater digital standard cells. |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 828 | ${STAGE} -source ${SKYWATER_LIBS_PATH} -target ${STAGING_PATH}/${SKY130A} \ |
Tim Edwards | fd5136b | 2020-07-08 22:57:04 -0400 | [diff] [blame] | 829 | -techlef %l/latest/tech/*.tlef \ |
| 830 | -spice %l/latest/cells/*/*.spice compile-only \ |
Tim Edwards | 995c133 | 2020-09-25 15:33:58 -0400 | [diff] [blame] | 831 | sort=custom/scripts/sort_pdkfiles.py \ |
Tim Edwards | 99a5cf9 | 2021-05-16 16:42:49 -0400 | [diff] [blame] | 832 | filter=custom/scripts/fix_device_models.py \ |
Tim Edwards | fd5136b | 2020-07-08 22:57:04 -0400 | [diff] [blame] | 833 | -cdl %l/latest/cells/*/*.cdl ignore=topography compile-only \ |
Tim Edwards | 995c133 | 2020-09-25 15:33:58 -0400 | [diff] [blame] | 834 | sort=custom/scripts/sort_pdkfiles.py \ |
Tim Edwards | 106e38b | 2020-09-20 13:07:54 -0400 | [diff] [blame] | 835 | -lef %l/latest/cells/*/*.magic.lef compile-only \ |
Tim Edwards | 995c133 | 2020-09-25 15:33:58 -0400 | [diff] [blame] | 836 | sort=custom/scripts/sort_pdkfiles.py \ |
Tim Edwards | fd5136b | 2020-07-08 22:57:04 -0400 | [diff] [blame] | 837 | -doc %l/latest/cells/*/*.pdf \ |
| 838 | -lib %l/latest/timing/*.lib \ |
| 839 | -gds %l/latest/cells/*/*.gds compile-only \ |
Tim Edwards | b6e8c7e | 2021-03-30 12:20:15 -0400 | [diff] [blame] | 840 | options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 995c133 | 2020-09-25 15:33:58 -0400 | [diff] [blame] | 841 | sort=custom/scripts/sort_pdkfiles.py \ |
| 842 | -verilog %l/latest/models/*/*.v exclude=*.*.v compile-only \ |
| 843 | rename=primitives filter=custom/scripts/inc_verilog.py \ |
| 844 | sort=custom/scripts/sort_pdkfiles.py \ |
| 845 | -verilog %l/latest/cells/*/*.*.v \ |
| 846 | -verilog %l/latest/cells/*/*.v exclude=*.*.v,primitives.v \ |
| 847 | compile-only filter=custom/scripts/inc_verilog.py \ |
| 848 | sort=custom/scripts/sort_pdkfiles.py \ |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 849 | -library digital sky130_fd_sc_hd \ |
| 850 | -library digital sky130_fd_sc_hdll \ |
| 851 | -library digital sky130_fd_sc_hvl \ |
| 852 | -library digital sky130_fd_sc_hs \ |
| 853 | -library digital sky130_fd_sc_ls \ |
| 854 | -library digital sky130_fd_sc_ms \ |
Mohamed Gaber | 28e86d7 | 2021-02-23 08:34:03 +0200 | [diff] [blame] | 855 | -library digital sky130_fd_sc_lp 2>&1 | tee -a ${SKY130A}_make.log |
Tim Edwards | 16a9caa | 2021-01-08 13:10:06 -0500 | [diff] [blame] | 856 | # Add a maskhint set for the tap cell .ag view to prevent problems writing |
| 857 | # when writing NSDM and PSDM to GDS during hierarchical adjustments. |
| 858 | ${ADDPROP} ${STAGING_PATH}/${SKY130A} sky130_fd_sc_hd sky130_fd_sc_hd__tapvpwrvgnd_1 \ |
| 859 | "MASKHINTS_PSDM 0 38 92 196" -mag |
| 860 | ${ADDPROP} ${STAGING_PATH}/${SKY130A} sky130_fd_sc_hd sky130_fd_sc_hd__tapvpwrvgnd_1 \ |
| 861 | "MASKHINTS_NSDM 0 280 92 506" -mag |
Tim Edwards | 995c133 | 2020-09-25 15:33:58 -0400 | [diff] [blame] | 862 | # Remove the base verilog files which have already been included into |
| 863 | # the libraries |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 864 | ${RM} ${STAGING_PATH}/${SKY130A}/libs.ref/${HD_VERILOG}/*.*.v |
| 865 | ${RM} ${STAGING_PATH}/${SKY130A}/libs.ref/${HDLL_VERILOG}/*.*.v |
| 866 | ${RM} ${STAGING_PATH}/${SKY130A}/libs.ref/${HVL_VERILOG}/*.*.v |
| 867 | ${RM} ${STAGING_PATH}/${SKY130A}/libs.ref/${HS_VERILOG}/*.*.v |
| 868 | ${RM} ${STAGING_PATH}/${SKY130A}/libs.ref/${MS_VERILOG}/*.*.v |
| 869 | ${RM} ${STAGING_PATH}/${SKY130A}/libs.ref/${LS_VERILOG}/*.*.v |
| 870 | ${RM} ${STAGING_PATH}/${SKY130A}/libs.ref/${LP_VERILOG}/*.*.v |
Ahmed Ghazy | 7875f1e | 2021-01-19 18:15:30 +0200 | [diff] [blame] | 871 | # Apply extra PDK patches until they get fixed properly in the source |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 872 | patch -p1 -f -d ${STAGING_PATH}/${SKY130A}/libs.ref/${HD_TECHLEF} \ |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 873 | < custom/patches/hd_minenclosed.squeaky.patch \ |
Mohamed Gaber | 28e86d7 | 2021-02-23 08:34:03 +0200 | [diff] [blame] | 874 | 2>&1 | tee -a ${SKY130A}_make.log || true |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 875 | patch -p1 -f -d ${STAGING_PATH}/${SKY130A}/libs.ref/${HDLL_TECHLEF} \ |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 876 | < custom/patches/hdll_minenclosed.squeaky.patch \ |
Mohamed Gaber | 28e86d7 | 2021-02-23 08:34:03 +0200 | [diff] [blame] | 877 | 2>&1 | tee -a ${SKY130A}_make.log || true |
Tim Edwards | f63ee05 | 2021-04-29 15:13:45 -0400 | [diff] [blame] | 878 | # Custom: Patch the HVL library to correct the resistor device names |
| 879 | patch -p3 -f -d ${STAGING_PATH}/${SKY130A}/libs.ref/${HVL_SPICE} \ |
Tim Edwards | 16b050b | 2021-05-17 16:45:34 -0400 | [diff] [blame^] | 880 | < custom/patches/sky130_fd_pr_${HVL_PATCH4}.patch \ |
Tim Edwards | f63ee05 | 2021-04-29 15:13:45 -0400 | [diff] [blame] | 881 | 2>&1 | tee -a ${SKY130A}_make.log || true |
| 882 | patch -p3 -f -d ${STAGING_PATH}/${SKY130A}/libs.ref/${HVL_CDL} \ |
| 883 | < custom/patches/sky130_fd_pr_6.patch \ |
| 884 | 2>&1 | tee -a ${SKY130A}_make.log || true |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 885 | |
| 886 | alpha-a: |
Tim Edwards | bcf59aa | 2020-12-17 16:55:13 -0500 | [diff] [blame] | 887 | # Install alphanumeric library. |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 888 | ${STAGE} -source ${ALPHA_PATH}/.. -target ${STAGING_PATH}/${SKY130A} \ |
Tim Edwards | 88bd42e | 2020-12-18 15:29:48 -0500 | [diff] [blame] | 889 | -mag %l/mag/*.mag filter=custom/scripts/text2m5.py \ |
Mohamed Gaber | 28e86d7 | 2021-02-23 08:34:03 +0200 | [diff] [blame] | 890 | -library general sky130_ml_xx_hd 2>&1 | tee -a ${SKY130A}_make.log |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 891 | # Install text2mag.py script for alphanumeric library |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 892 | mkdir -p ${STAGING_PATH}/${SKY130A}/libs.ref/${MLXX_SCRIPTS} |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 893 | cp custom/scripts/text2mag.py \ |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 894 | ${STAGING_PATH}/${SKY130A}/libs.ref/${MLXX_SCRIPTS} |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 895 | |
| 896 | sram-a: |
Tim Edwards | 8b96a1b | 2021-04-27 15:16:26 -0400 | [diff] [blame] | 897 | # Install SRAM library. NOTE: SRAM macros share some of the same |
| 898 | # cell names, so use special option script gds_import_sram.tcl |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 899 | ${STAGE} -source ${SRAM_PATH}/.. -target ${STAGING_PATH}/${SKY130A} \ |
| 900 | -lef %l/*/*.lef \ |
| 901 | -lib %l/*/*.lib \ |
Tim Edwards | 8b96a1b | 2021-04-27 15:16:26 -0400 | [diff] [blame] | 902 | -gds %l/*/*.gds options=custom/scripts/gds_import_sram.tcl \ |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 903 | -spice %l/*/sky130_sram_1kbyte_1rw1r_32x256_8.lvs.sp \ |
| 904 | rename=sky130_sram_1kbyte_1rw1r_32x256_8.spice \ |
| 905 | -spice %l/*/sky130_sram_2kbyte_1rw1r_32x512_8.lvs.sp \ |
| 906 | rename=sky130_sram_2kbyte_1rw1r_32x512_8.spice \ |
| 907 | -spice %l/*/sky130_sram_4kbyte_1rw1r_32x1024_8.lvs.sp \ |
| 908 | rename=sky130_sram_4kbyte_1rw1r_32x1024_8.spice \ |
| 909 | -spice %l/*/sram_1rw1r_32_256_8_sky130.lvs.sp \ |
| 910 | rename=sram_1rw1r_32_256_8_sky130.spice \ |
| 911 | -verilog %l/*/*.v \ |
| 912 | -library general sky130_sram_macros 2>&1 | tee -a ${SKY130A}_make.log |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 913 | |
| 914 | osu-base-a: |
Tristan Gingold | a585431 | 2020-10-15 18:28:16 +0200 | [diff] [blame] | 915 | # Install OSU digital standard cells. |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 916 | ${STAGE} -source ${OSU_PATH} -target ${STAGING_PATH}/${SKY130A} \ |
| 917 | -techlef %l/tech/sky130_osu_sc.lef rename=sky130_osu_sc.tlef \ |
Tristan Gingold | a585431 | 2020-10-15 18:28:16 +0200 | [diff] [blame] | 918 | -cdl %l/latest/cdl/*.cdl ignore=topography compile-only \ |
| 919 | -lef %l/latest/lef/*.lef compile-only \ |
| 920 | -lib %l/latest/lib/*.lib \ |
| 921 | -gds %l/latest/gds/*.gds compile-only \ |
Tim Edwards | b6e8c7e | 2021-03-30 12:20:15 -0400 | [diff] [blame] | 922 | options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 923 | -library digital sky130_osu_sc 2>&1 | tee -a ${SKY130A}_make.log |
| 924 | |
| 925 | osu-t12-a: |
| 926 | # Install OSU T12 hs digital standard cells. |
| 927 | ${STAGE} -source ${OSU_T12_PATH} -target ${STAGING_PATH}/${SKY130A} \ |
| 928 | -techlef sky130_osu_sc_12T.tlef rename=sky130_osc_sc_12t_hs.tlef \ |
| 929 | -spice 12T_hs/cdl/*.spice compile-only exclude=*.*.spice \ |
| 930 | -lef 12T_hs/lef/*.lef \ |
| 931 | -lib 12T_hs/lib/*.lib \ |
| 932 | -gds 12T_hs/gds/*.gds compile-only \ |
| 933 | options=custom/scripts/gds_import_setup.tcl \ |
| 934 | -library digital sky130_osu_sc_12t_hs 2>&1 | tee -a ${SKY130A}_make.log |
| 935 | # Install OSU T12 ms digital standard cells. |
| 936 | ${STAGE} -source ${OSU_T12_PATH} -target ${STAGING_PATH}/${SKY130A} \ |
| 937 | -techlef sky130_osu_sc_12T.tlef rename=sky130_osc_sc_12t_ms.tlef \ |
| 938 | -spice 12T_ms/cdl/*.spice compile-only exclude=*.*.spice \ |
| 939 | -lef 12T_ms/lef/*.lef \ |
| 940 | -lib 12T_ms/lib/*.lib \ |
| 941 | -gds 12T_ms/gds/*.gds compile-only \ |
| 942 | options=custom/scripts/gds_import_setup.tcl \ |
| 943 | -library digital sky130_osu_sc_12t_ms 2>&1 | tee -a ${SKY130A}_make.log |
| 944 | # Install OSU T12 ls digital standard cells. |
| 945 | ${STAGE} -source ${OSU_T12_PATH} -target ${STAGING_PATH}/${SKY130A} \ |
| 946 | -techlef sky130_osu_sc_12T.tlef rename=sky130_osc_sc_12t_ls.tlef \ |
| 947 | -spice 12T_ls/cdl/*.spice compile-only exclude=*.*.spice \ |
| 948 | -lef 12T_ls/lef/*.lef \ |
| 949 | -lib 12T_ls/lib/*.lib \ |
| 950 | -gds 12T_ls/gds/*.gds compile-only \ |
| 951 | options=custom/scripts/gds_import_setup.tcl \ |
| 952 | -library digital sky130_osu_sc_12t_ls 2>&1 | tee -a ${SKY130A}_make.log |
| 953 | |
| 954 | osu-t15-a: |
| 955 | # Install OSU T15 hs digital standard cells. |
| 956 | ${STAGE} -source ${OSU_T15_PATH} -target ${STAGING_PATH}/${SKY130A} \ |
| 957 | -techlef sky130_osu_sc_15T.tlef rename=sky130_osc_sc_15t_hs.tlef \ |
| 958 | -spice 15T_hs/cdl/*.spice compile-only exclude=*.*.spice \ |
| 959 | -lef 15T_hs/lef/*.lef \ |
| 960 | -lib 15T_hs/lib/*.lib \ |
| 961 | -gds 15T_hs/gds/*.gds compile-only \ |
| 962 | options=custom/scripts/gds_import_setup.tcl \ |
| 963 | -library digital sky130_osu_sc_15t_hs 2>&1 | tee -a ${SKY130A}_make.log |
| 964 | # Install OSU T15 ms digital standard cells. |
| 965 | ${STAGE} -source ${OSU_T15_PATH} -target ${STAGING_PATH}/${SKY130A} \ |
| 966 | -techlef sky130_osu_sc_15T.tlef rename=sky130_osc_sc_15t_ms.tlef \ |
| 967 | -spice 15T_ms/cdl/*.spice compile-only exclude=*.*.spice \ |
| 968 | -lef 15T_ms/lef/*.lef \ |
| 969 | -lib 15T_ms/lib/*.lib \ |
| 970 | -gds 15T_ms/gds/*.gds compile-only \ |
| 971 | options=custom/scripts/gds_import_setup.tcl \ |
| 972 | -library digital sky130_osu_sc_15t_ms 2>&1 | tee -a ${SKY130A}_make.log |
| 973 | # Install OSU T15 ls digital standard cells. |
| 974 | ${STAGE} -source ${OSU_T15_PATH} -target ${STAGING_PATH}/${SKY130A} \ |
| 975 | -techlef sky130_osu_sc_15T.tlef rename=sky130_osc_sc_15t_ls.tlef \ |
| 976 | -spice 15T_ls/cdl/*.spice compile-only exclude=*.*.spice \ |
| 977 | -lef 15T_ls/lef/*.lef \ |
| 978 | -lib 15T_ls/lib/*.lib \ |
| 979 | -gds 15T_ls/gds/*.gds compile-only \ |
| 980 | options=custom/scripts/gds_import_setup.tcl \ |
| 981 | -library digital sky130_osu_sc_15t_ls 2>&1 | tee -a ${SKY130A}_make.log |
| 982 | |
| 983 | osu-t18-a: |
| 984 | # Install OSU T18 hs digital standard cells. |
| 985 | ${STAGE} -source ${OSU_T18_PATH} -target ${STAGING_PATH}/${SKY130A} \ |
| 986 | -techlef sky130_osu_sc_18T.tlef rename=sky130_osc_sc_18t_hs.tlef \ |
| 987 | -spice 18T_hs/cdl/*.spice compile-only exclude=*.*.spice \ |
| 988 | -lef 18T_hs/lef/*.lef \ |
| 989 | -lib 18T_hs/lib/*.lib \ |
| 990 | -gds 18T_hs/gds/*.gds compile-only \ |
| 991 | options=custom/scripts/gds_import_setup.tcl \ |
| 992 | -library digital sky130_osu_sc_18t_hs 2>&1 | tee -a ${SKY130A}_make.log |
| 993 | # Install OSU T18 ms digital standard cells. |
| 994 | ${STAGE} -source ${OSU_T18_PATH} -target ${STAGING_PATH}/${SKY130A} \ |
| 995 | -techlef sky130_osu_sc_18T.tlef rename=sky130_osc_sc_18t_ms.tlef \ |
| 996 | -spice 18T_ms/cdl/*.spice compile-only exclude=*.*.spice \ |
| 997 | -lef 18T_ms/lef/*.lef \ |
| 998 | -lib 18T_ms/lib/*.lib \ |
| 999 | -gds 18T_ms/gds/*.gds compile-only \ |
| 1000 | options=custom/scripts/gds_import_setup.tcl \ |
| 1001 | -library digital sky130_osu_sc_18t_ms 2>&1 | tee -a ${SKY130A}_make.log |
| 1002 | # Install OSU T18 ls digital standard cells. |
| 1003 | ${STAGE} -source ${OSU_T18_PATH} -target ${STAGING_PATH}/${SKY130A} \ |
| 1004 | -techlef sky130_osu_sc_18T.tlef rename=sky130_osc_sc_18t_ls.tlef \ |
| 1005 | -spice 18T_ls/cdl/*.spice compile-only exclude=*.*.spice \ |
| 1006 | -lef 18T_ls/lef/*.lef \ |
| 1007 | -lib 18T_ls/lib/*.lib \ |
| 1008 | -gds 18T_ls/gds/*.gds compile-only \ |
| 1009 | options=custom/scripts/gds_import_setup.tcl \ |
| 1010 | -library digital sky130_osu_sc_18t_ls 2>&1 | tee -a ${SKY130A}_make.log |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1011 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 1012 | install: |
Ahmed Ghazy | f45cbf3 | 2020-08-08 17:11:53 +0200 | [diff] [blame] | 1013 | if test "x${DIST_PATH}" == "x" ; then \ |
| 1014 | ${MAKE} install-local ; \ |
| 1015 | else \ |
| 1016 | ${MAKE} install-dist; \ |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 1017 | fi |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1018 | |
| 1019 | install-local: install-local-a |
| 1020 | |
| 1021 | install-local-a: |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 1022 | echo "Starting SKY130 PDK migration on "`date` > ${SKY130A}_install.log |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1023 | ${INSTALL} -source ${STAGING_PATH}/${SKY130A} \ |
| 1024 | -target ${LOCAL_PATH}/${SKY130A} \ |
Tim Edwards | b184e85 | 2020-12-04 15:30:05 -0500 | [diff] [blame] | 1025 | -variable PDKPATH \ |
Mohamed Gaber | 28e86d7 | 2021-02-23 08:34:03 +0200 | [diff] [blame] | 1026 | -link_from ${LINK_TARGETS} 2>&1 | tee -a ${SKY130A}_install.log |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 1027 | echo "Ended SKY130 PDK migration on "`date` >> ${SKY130A}_install.log |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1028 | |
| 1029 | install-dist: install-dist-a |
| 1030 | |
| 1031 | install-dist-a: |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 1032 | echo "Starting SKY130 PDK migration on "`date` > ${SKY130A}_install.log |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1033 | ${INSTALL} -source ${STAGING_PATH}/${SKY130A} \ |
| 1034 | -target ${DIST_PATH}/${SKY130A} \ |
Tim Edwards | b184e85 | 2020-12-04 15:30:05 -0500 | [diff] [blame] | 1035 | -variable PDKPATH \ |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1036 | -local ${LOCAL_PATH}/${SKY130A} \ |
Mohamed Gaber | 28e86d7 | 2021-02-23 08:34:03 +0200 | [diff] [blame] | 1037 | -link_from ${DIST_LINK_TARGETS} 2>&1 | tee -a ${SKY130A}_install.log |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 1038 | echo "Ended SKY130 PDK migration on "`date` >> ${SKY130A}_install.log |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1039 | |
Tim Edwards | 8830dfe | 2021-02-25 11:29:59 -0500 | [diff] [blame] | 1040 | uninstall: |
| 1041 | if test "x${DIST_PATH}" == "x" ; then \ |
| 1042 | ${MAKE} uninstall-local ; \ |
| 1043 | else \ |
| 1044 | ${MAKE} uninstall-dist; \ |
| 1045 | fi |
| 1046 | |
| 1047 | uninstall-local: uninstall-local-a |
| 1048 | |
| 1049 | uninstall-local-a: |
| 1050 | echo "Uninstalling SKY130 PDK from ${LOCAL_PATH}" |
| 1051 | if test "x${LOCAL_PATH}" != "x" ; then \ |
| 1052 | ${RM} -rf ${LOCAL_PATH}/${SKY130A} ; \ |
| 1053 | fi |
| 1054 | echo "Finished SKY130 PDK uninstall" |
| 1055 | |
| 1056 | uninstall-dist: uninstall-dist-a |
| 1057 | |
| 1058 | uninstall-dist-a: |
| 1059 | echo "Uninstalling SKY130 PDK from ${DIST_PATH}" |
| 1060 | if test "x${DIST_PATH}" != "x" ; then \ |
| 1061 | ${RM} -rf ${DIST_PATH}/${SKY130A} ; \ |
| 1062 | fi |
| 1063 | echo "Finished SKY130 PDK uninstall" |
| 1064 | |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1065 | clean: clean-a |
| 1066 | |
| 1067 | clean-a: |
| 1068 | ${STAGE} -target ${STAGING_PATH}/${SKY130A} -clean |
| 1069 | |
| 1070 | veryclean: veryclean-a |
| 1071 | |
| 1072 | veryclean-a: clean-a |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 1073 | ${RM} ${SKY130A}_make.log |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1074 | ${RM} ${SKY130A}_install.log |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 1075 | # Legacy name |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1076 | ${RM} ${SKY130A}_migrate.log |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 1077 | |