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 |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 4 | # sky130B = 5-metal backend stack with dual MiM and ReRAM |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 5 | # |
| 6 | # Written by Tim Edwards March 2019 |
| 7 | # efabless corporation |
| 8 | # updated October 2019 |
| 9 | # updated December 2019 (divide installation sections for individual tools) |
| 10 | # updated March 2020 (refactored the install process) |
| 11 | # updated May 2020 (changed to new process name Sky130) |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 12 | # updated January 2022 (divided into two variants A and B) |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 13 | # |
| 14 | # Instructions: |
| 15 | # |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 16 | # Run "configure" from the top level directory. Use the following |
| 17 | # configuration options to match your environment: |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 18 | # |
Tim Edwards | c7ab1ea | 2020-12-24 17:04:36 -0500 | [diff] [blame] | 19 | # --enable-sky130-pdk[=<path>] |
Tim Edwards | 942a14f | 2020-12-24 16:20:31 -0500 | [diff] [blame] | 20 | # If enabled, install the skywater PDK. If <path> is specified, |
| 21 | # then the skywater PDK is expected to be found rooted at the |
| 22 | # given path. If not specified, then the skywater PDK will be |
| 23 | # downloaded and installed to <repo root>/pdks. |
| 24 | # If explicitly disabled, sky130 is skipped over entirely. |
| 25 | # |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 26 | # --with-sky130-link-targets=<value> |
| 27 | # where <value> is one of "none" or "source". If set to "source", |
| 28 | # then where possible, the installed files are symbolic links |
| 29 | # back to the source, rather than copies of the source. The |
| 30 | # default value is "none" if the option is not specified. |
| 31 | # |
| 32 | # --with-ef-style |
| 33 | # If specified, then the installation uses the efabless style, |
| 34 | # which swaps the file hierarchy of file formats vs. IP libraries; |
| 35 | # e.g., "gds/sky130_fd_sc_hd/" with ef-style, vs. |
| 36 | # "sky130_fd_sc_hd/gds/" without it. |
| 37 | # |
Tim Edwards | 22fdb44 | 2020-12-02 12:40:03 -0500 | [diff] [blame] | 38 | # Enable/disable for specific libraries to be installed (and downloaded if |
| 39 | # needed). Libraries that are part of the open_pdks repository are enabled |
| 40 | # by default and must be disabled by passing an option to configure. Libraries |
| 41 | # that are not part of the open_pdks repository are disabled by default and |
| 42 | # must be enabled by passing an option to configure. |
| 43 | # |
| 44 | # Internal libraries and tool setups that can be disabled are the following: |
| 45 | # |
| 46 | # --disable-magic |
| 47 | # Do not install setup files for the magic layout tool. |
| 48 | # |
| 49 | # --disable-netgen |
| 50 | # Do not install setup files for the netgen LVS tool. |
| 51 | # |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 52 | # --disable-irsim |
| 53 | # Do not install setup files for the IRSIM simulation tool. |
| 54 | # |
Tim Edwards | 22fdb44 | 2020-12-02 12:40:03 -0500 | [diff] [blame] | 55 | # --disable-qflow |
| 56 | # Do not install setup files for the qflow synthesis flow. |
| 57 | # |
| 58 | # --disable-openlane |
| 59 | # Do not install setup files for the openlane sythesis flow. |
| 60 | # |
| 61 | # --disable-klayout |
| 62 | # Do not install setup files for the klayout layout tool. |
| 63 | # |
Tim Edwards | ccaea72 | 2020-12-24 10:59:42 -0500 | [diff] [blame] | 64 | # |
| 65 | # NOTE: The comments below are for features that have not yet been |
| 66 | # implemented. |
| 67 | # |
Tim Edwards | 9a17fca | 2021-02-11 17:44:04 -0500 | [diff] [blame] | 68 | # External (third-party) libraries and tool setups are the following (enabled |
| 69 | # by default): |
Tim Edwards | 22fdb44 | 2020-12-02 12:40:03 -0500 | [diff] [blame] | 70 | # |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 71 | # --enable-alpha-sky130[=<path>] |
Tim Edwards | bcf59aa | 2020-12-17 16:55:13 -0500 | [diff] [blame] | 72 | # If enabled, install the sky130_ml_xx_hd font library from |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 73 | # Paul Schulz on github. If <path> is not specified, then the |
| 74 | # font library will be cloned from the git repository and |
| 75 | # installed. |
Tim Edwards | 22fdb44 | 2020-12-02 12:40:03 -0500 | [diff] [blame] | 76 | # |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 77 | # --enable-xschem-sky130[=<path>] |
Tim Edwards | 22fdb44 | 2020-12-02 12:40:03 -0500 | [diff] [blame] | 78 | # If enabled, install the Sky130 setup for the xschem schematic |
| 79 | # editor. If <path> is specified, then the xschem setup is |
| 80 | # expected to be found rooted at the given path. If not |
| 81 | # specified, then the xschem setup will be cloned from the |
| 82 | # repository and installed. |
| 83 | # |
Tim Edwards | 5ed94ff | 2022-06-16 15:07:53 -0400 | [diff] [blame] | 84 | # --enable-klayout-sky130[=<path>] |
| 85 | # If enabled, install the Sky130 setup for the klayout layout |
| 86 | # editor. If <path> is specified, then the klayout setup is |
| 87 | # expected to be found rooted at the given path. If not |
| 88 | # specified, then the klayout setup will be cloned from the |
| 89 | # repository and installed. |
| 90 | # |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 91 | # External (third-party) libraries and tool setups are the following (disabled |
| 92 | # by default): |
| 93 | # |
| 94 | # --enable-sram-sky130[=<path>] |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 95 | # If enabled, install the sky130_sram_macros library from |
| 96 | # efabless on github. If <path> is not specified, then |
| 97 | # the SRAM library will be cloned from the repository and |
| 98 | # installed. |
| 99 | # |
Tim Edwards | d6c91b4 | 2023-01-04 17:03:58 -0500 | [diff] [blame] | 100 | # --enable-sram-space-sky130[=<path>] |
| 101 | # If enabled, install the sky130_fd_bd_sram library from |
| 102 | # google on github. If <path> is not specified, then the |
| 103 | # library will be cloned from the repository and installed. |
| 104 | # |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 105 | # --enable-osu-t12-sky130[=<path>] |
| 106 | # If enabled, install the sky130_osu_sc_t12 libraries from |
| 107 | # foss-eda-tools on googlesource. If <path> is not |
| 108 | # specified, then the OSU standard cell library will be |
| 109 | # clones from the repository and installed. |
| 110 | # |
| 111 | # --enable-osu-t15-sky130[=<path>] |
| 112 | # If enabled, install the sky130_osu_sc_t15 libraries from |
| 113 | # foss-eda-tools on googlesource. If <path> is not |
| 114 | # specified, then the OSU standard cell library will be |
| 115 | # clones from the repository and installed. |
| 116 | # |
| 117 | # --enable-osu-t18-sky130[=<path>] |
| 118 | # If enabled, install the sky130_osu_sc_t18 libraries from |
| 119 | # foss-eda-tools on googlesource. If <path> is not |
| 120 | # specified, then the OSU standard cell library will be |
| 121 | # clones from the repository and installed. |
| 122 | # |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 123 | # The variables below are substituted from the configuration options: |
| 124 | # |
Tim Edwards | 6f01cd2 | 2022-01-17 19:23:53 -0500 | [diff] [blame] | 125 | # SKYWATER_PATH: Points to vendor sources |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 126 | # EF_STYLE: 1 for efabless style, 0 otherwise |
Tim Edwards | 6f01cd2 | 2022-01-17 19:23:53 -0500 | [diff] [blame] | 127 | # LINK_TARGETS_A: If "source", link back to source when possible |
Tim Edwards | 7fa92fd | 2022-01-19 11:13:51 -0500 | [diff] [blame] | 128 | # ENABLED_VARIANTS: If not "all", then compile/install only the specified variants |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 129 | # |
| 130 | # Run "make" to stage the PDK for tool setup and vendor libraries |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 131 | # |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 132 | # Run "make install" to install all staged files. |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 133 | # |
| 134 | # Run "make clean" to remove all staging files. |
| 135 | # |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 136 | # Run "make veryclean" to remove all staging and make.log files. |
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 | # For the sake of simplicity, the "standard" installation can be done |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 139 | # with the usual |
| 140 | # |
| 141 | # make |
| 142 | # make install |
| 143 | # make clean |
| 144 | # |
| 145 | #-------------------------------------------------------------------- |
| 146 | # This Makefile contains bash-isms |
Tim 'mithro' Ansell | 5652756 | 2021-11-23 09:37:07 -0800 | [diff] [blame] | 147 | SHELL := /bin/bash |
| 148 | export SHELL |
| 149 | # We use pipes to save output to files, without pipefail they will always be |
| 150 | # seen by make as having succeeded. |
| 151 | SHELLOPTS := pipefail |
| 152 | export SHELLOPTS |
Tristan Gingold | a585431 | 2020-10-15 18:28:16 +0200 | [diff] [blame] | 153 | MV = mv |
Tim Edwards | b94b6c1 | 2022-02-05 16:47:22 -0500 | [diff] [blame] | 154 | PATCH = patch |
Tim Edwards | 5a623ff | 2021-04-30 16:30:52 -0400 | [diff] [blame] | 155 | SED = @SED@ |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 156 | |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 157 | prefix = @prefix@ |
| 158 | datarootdir = @datarootdir@ |
| 159 | datadir = @datadir@ |
| 160 | |
Tim Edwards | f04c421 | 2021-03-18 10:12:16 -0400 | [diff] [blame] | 161 | # Use git revision if this is a cloned repo; otherwise get the revision |
| 162 | # from the VERSION file in the directory above. |
| 163 | GITREV = $(shell git describe --long) |
| 164 | ifeq (${GITREV},) |
| 165 | REVISION = $(shell cat ../VERSION) |
| 166 | else |
| 167 | REVISION = ${GITREV} |
| 168 | endif |
| 169 | TECH = sky130 |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 170 | |
Tim Edwards | aac3d1a | 2021-06-15 16:37:10 -0400 | [diff] [blame] | 171 | # The run-time environment uses PDKPATH to override the PDK location, |
Tim Edwards | ae78ab7 | 2022-02-28 20:41:08 -0500 | [diff] [blame] | 172 | # so prevent that from happening during PDK install. This will also |
| 173 | # happen with PDK_ROOT, so avoid that as well. |
Tim Edwards | aac3d1a | 2021-06-15 16:37:10 -0400 | [diff] [blame] | 174 | unexport PDKPATH |
Tim Edwards | ae78ab7 | 2022-02-28 20:41:08 -0500 | [diff] [blame] | 175 | unexport PDK_ROOT |
Tim Edwards | aac3d1a | 2021-06-15 16:37:10 -0400 | [diff] [blame] | 176 | |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 177 | # If EF_STYLE is set to 1, then efabless naming conventions are |
| 178 | # used, otherwise the generic naming conventions are used. |
| 179 | # Mainly, the hierarchy of library names and file types is reversed |
| 180 | # (e.g., sky130_fd_sc_hd/lef vs. lef/sky130_fd_sc_hd). |
| 181 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 182 | # EF_STYLE = 0 | 1 |
| 183 | EF_STYLE = @EF_STYLE@ |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 184 | |
| 185 | # Normally it's fine to keep the staging path in a local directory, |
| 186 | # although /tmp or a dedicated staging area are also fine, as long |
| 187 | # as the install process can write to the path. |
| 188 | |
Tim Edwards | 1ffd99c | 2021-08-20 16:27:43 -0400 | [diff] [blame] | 189 | STAGING_PATH = $(shell pwd) |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 190 | |
mrg | bea9d87 | 2021-11-08 13:43:42 -0800 | [diff] [blame] | 191 | SHARED_PDKS_PATH ?= $(datadir)/pdk |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 192 | |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 193 | # If LINK_TARGETS is set to "none", then files are copied |
| 194 | # from the SkyWater sources to the target. If set to "source", |
| 195 | # symbolic links are made in the target directories pointing |
| 196 | # back to the SkyWater sources. If set to the name of another |
| 197 | # PDK (e.g, "sky130A"), then symbolic links are made to the |
| 198 | # same files in that PDK, where they exist, and are copied |
| 199 | # from source, where they don't. |
Tim Edwards | 6f01cd2 | 2022-01-17 19:23:53 -0500 | [diff] [blame] | 200 | # |
| 201 | # Behavior is to let the link targets for variant A follow the |
| 202 | # configuration option. Link targets for variant B will always |
| 203 | # be the files of variant A (which may end up being symbolic |
| 204 | # links to symbolic links if "source" was chosen for link-targets |
| 205 | # in the configuration). |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 206 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 207 | # LINK_TARGETS = source | none | sky130A |
Tim Edwards | 6f01cd2 | 2022-01-17 19:23:53 -0500 | [diff] [blame] | 208 | LINK_TARGETS_A = @SKY130_LINK_TARGETS@ |
| 209 | LINK_TARGETS_B = sky130A |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 210 | |
Tim Edwards | 7fa92fd | 2022-01-19 11:13:51 -0500 | [diff] [blame] | 211 | # ENABLED_VARIANTS = all | A | B |
| 212 | ENABLED_VARIANTS = @SKY130_ENABLED_VARIANTS@ |
| 213 | ifeq (${ENABLED_VARIANTS},) |
| 214 | VARIANTS += A B |
| 215 | else |
| 216 | ifeq (${ENABLED_VARIANTS}, all) |
| 217 | VARIANTS += A B |
| 218 | else |
| 219 | VARIANTS += ${ENABLED_VARIANTS} |
| 220 | endif |
| 221 | endif |
| 222 | |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 223 | # Paths: |
| 224 | |
agorararmard | 3ee5f11 | 2021-02-03 19:49:09 +0200 | [diff] [blame] | 225 | # Path to skywater_pdk |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 226 | SKYWATER_PATH = @SKY130_SOURCE_PATH@ |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 227 | ifneq ($(SKYWATER_PATH),) |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 228 | SKYWATER_LIBS_PATH = ${SKYWATER_PATH}/libraries |
| 229 | else |
| 230 | SKYWATER_LIBS_PATH = |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 231 | endif |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 232 | |
Tim Edwards | bcf59aa | 2020-12-17 16:55:13 -0500 | [diff] [blame] | 233 | # Path to independent library sources (to be added to configuration options). |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 234 | ALPHA_PATH = @SKY130_ML_XX_HD_PATH@ |
| 235 | XSCHEM_PATH = @XSCHEM_SKY130_PATH@ |
Tim Edwards | 5ed94ff | 2022-06-16 15:07:53 -0400 | [diff] [blame] | 236 | KLAYOUT_PATH = @KLAYOUT_SKY130_PATH@ |
| 237 | PRECHECK_PATH = @PRECHECK_SKY130_PATH@ |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 238 | SRAM_PATH = @SKY130_SRAM_MACROS_PATH@ |
Tim Edwards | d6c91b4 | 2023-01-04 17:03:58 -0500 | [diff] [blame] | 239 | SRAM_SPACE_PATH = @SKY130_FD_BD_SRAM_PATH@ |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 240 | OSU_T12_PATH = @SKY130_OSU_T12_PATH@ |
| 241 | OSU_T15_PATH = @SKY130_OSU_T15_PATH@ |
| 242 | OSU_T18_PATH = @SKY130_OSU_T18_PATH@ |
Tim Edwards | bcf59aa | 2020-12-17 16:55:13 -0500 | [diff] [blame] | 243 | |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 244 | PDK_URL = https://github.com/google/skywater-pdk |
Tim Edwards | 8877f8f | 2021-06-10 21:35:36 -0400 | [diff] [blame] | 245 | ALPHA_URL = https://github.com/PaulSchulz/sky130_pschulz_xx_hd |
| 246 | XSCHEM_URL = https://github.com/StefanSchippers/xschem_sky130 |
Tim Edwards | 5ed94ff | 2022-06-16 15:07:53 -0400 | [diff] [blame] | 247 | KLAYOUT_URL = https://github.com/mabrains/sky130_klayout_pdk |
| 248 | PRECHECK_URL = https://github.com/efabless/mpw_precheck |
Tim Edwards | 8877f8f | 2021-06-10 21:35:36 -0400 | [diff] [blame] | 249 | SRAM_URL = https://github.com/efabless/sky130_sram_macros |
Tim Edwards | d6c91b4 | 2023-01-04 17:03:58 -0500 | [diff] [blame] | 250 | SRAM_SPACE_URL = https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_fd_bd_sram |
Tim Edwards | 8877f8f | 2021-06-10 21:35:36 -0400 | [diff] [blame] | 251 | OSU_T12_URL = https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_osu_sc_t12 |
| 252 | OSU_T15_URL = https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_osu_sc_t15 |
| 253 | OSU_T18_URL = https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_osu_sc_t18 |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 254 | |
Tim Edwards | 2f7032e | 2022-12-16 17:51:45 -0500 | [diff] [blame] | 255 | USE_REFERENCE = @USE_REFERENCE@ |
| 256 | |
Tim Edwards | c74daac | 2023-01-05 15:38:30 -0500 | [diff] [blame] | 257 | ifeq (${USE_REFERENCE}, 1) |
| 258 | REFERENCE_JSON = ${TECH}.json |
| 259 | else |
| 260 | REFERENCE_JSON = |
| 261 | endif |
| 262 | |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 263 | # NOTE: Install destination is the git repository of the technology platform. |
| 264 | # Once updated in git, the git project can be distributed to all hosts. |
| 265 | # |
| 266 | ifeq (${EF_STYLE}, 1) |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 267 | CONFIG_DIR = .ef-config |
| 268 | REV_DIR = ${REVISION} |
| 269 | else |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 270 | CONFIG_DIR = .config |
| 271 | REV_DIR = . |
| 272 | endif |
| 273 | |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 274 | # EF process nodes created from the master sources |
| 275 | SKY130A = sky130A |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 276 | SKY130B = sky130B |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 277 | |
Tim Edwards | 6f01cd2 | 2022-01-17 19:23:53 -0500 | [diff] [blame] | 278 | DIST_LINK_TARGETS_A = ${LINK_TARGETS_A} |
| 279 | DIST_LINK_TARGETS_B = ${SHARED_PDKS_PATH}/${LINK_TARGETS_B} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 280 | |
| 281 | # Basic definitions for each EF process node |
| 282 | SKY130A_DEFS = -DTECHNAME=sky130A -DREVISION=${REVISION} |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 283 | SKY130B_DEFS = -DTECHNAME=sky130B -DREVISION=${REVISION} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 284 | |
| 285 | # Module definitions for each process node |
| 286 | # (Note that MOS is default and therefore not used anywhere) |
Tim Edwards | 0a0272b | 2020-07-28 14:40:10 -0400 | [diff] [blame] | 287 | SKY130A_DEFS += -DMETAL5 -DMIM -DREDISTRIBUTION |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 288 | SKY130B_DEFS += -DMETAL5 -DMIM -DREDISTRIBUTION |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 289 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 290 | # NOTE: ReRAM support is what distinguishes variant B from variant A. |
| 291 | SKY130B_DEFS += -DRERAM |
Tim Edwards | 33e6598 | 2021-11-24 22:35:04 -0500 | [diff] [blame] | 292 | |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 293 | # Add staging path |
| 294 | SKY130A_DEFS += -DSTAGING_PATH=${STAGING_PATH} |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 295 | SKY130B_DEFS += -DSTAGING_PATH=${STAGING_PATH} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 296 | |
Tim Edwards | 5d450d5 | 2022-01-22 15:31:32 -0500 | [diff] [blame] | 297 | # Get the timestamp of the open_pdks commit to use for stamping layouts. |
| 298 | OPEN_PDKS_TIMESTAMP = $(shell git log -1 --format="%ad" --date=raw | cut -d' ' -f1) |
| 299 | TIMESTAMP_OPT = -timestamp ${OPEN_PDKS_TIMESTAMP} |
| 300 | |
Tim Edwards | 8877f8f | 2021-06-10 21:35:36 -0400 | [diff] [blame] | 301 | # Record commit numbers for the nodeinfo.json file |
| 302 | OPEN_PDKS_COMMIT = $(shell git rev-parse HEAD) |
| 303 | ifeq (${OPEN_PDKS_COMMIT},) |
| 304 | COMMIT_DEFS = -DOPEN_PDKS_COMMIT=${REVISION} |
| 305 | else |
| 306 | COMMIT_DEFS = -DOPEN_PDKS_COMMIT=${OPEN_PDKS_COMMIT} |
| 307 | endif |
Tim Edwards | cc0029b | 2022-08-01 18:11:30 -0400 | [diff] [blame] | 308 | |
Tim Edwards | c74daac | 2023-01-05 15:38:30 -0500 | [diff] [blame] | 309 | ifeq (${SKYWATER_PATH},) |
| 310 | COMMIT_DEFS += -DSKYWATER_COMMIT="unknown" |
| 311 | else |
| 312 | COMMIT_DEFS += -DSKYWATER_COMMIT=$(shell cd ${SKYWATER_PATH} ; git rev-parse HEAD) |
| 313 | endif |
Tim Edwards | cc0029b | 2022-08-01 18:11:30 -0400 | [diff] [blame] | 314 | ifeq (${XSCHEM_PATH},) |
| 315 | COMMIT_DEFS += -DXSCHEM_COMMIT="unknown" |
| 316 | else |
| 317 | COMMIT_DEFS += -DXSCHEM_COMMIT=$(shell cd ${XSCHEM_PATH} ; git rev-parse HEAD) |
| 318 | endif |
| 319 | ifeq (${KLAYOUT_PATH},) |
| 320 | COMMIT_DEFS += -DKLAYOUT_COMMIT="unknown" |
| 321 | else |
| 322 | COMMIT_DEFS += -DKLAYOUT_COMMIT=$(shell cd ${KLAYOUT_PATH} ; git rev-parse HEAD) |
| 323 | endif |
| 324 | ifeq (${PRECHECK_PATH},) |
| 325 | COMMIT_DEFS += -DPRECHECK_COMMIT="unknown" |
| 326 | else |
| 327 | COMMIT_DEFS += -DPRECHECK_COMMIT=$(shell cd ${PRECHECK_PATH} ; git rev-parse HEAD) |
| 328 | endif |
Tim Edwards | 8877f8f | 2021-06-10 21:35:36 -0400 | [diff] [blame] | 329 | ifeq (${ALPHA_PATH},) |
| 330 | COMMIT_DEFS += -DALPHA_COMMIT="unknown" |
| 331 | else |
| 332 | COMMIT_DEFS += -DALPHA_COMMIT=$(shell cd ${ALPHA_PATH} ; git rev-parse HEAD) |
| 333 | endif |
| 334 | ifeq (${SRAM_PATH},) |
| 335 | COMMIT_DEFS += -DSRAM_COMMIT="unknown" |
| 336 | else |
| 337 | COMMIT_DEFS += -DSRAM_COMMIT=$(shell cd ${SRAM_PATH} ; git rev-parse HEAD) |
| 338 | endif |
Tim Edwards | d6c91b4 | 2023-01-04 17:03:58 -0500 | [diff] [blame] | 339 | ifeq (${SRAM_SPACE_PATH},) |
| 340 | COMMIT_DEFS += -DSRAM_SPACE_COMMIT="unknown" |
| 341 | else |
| 342 | COMMIT_DEFS += -DSRAM_SPACE_COMMIT=$(shell cd ${SRAM_SPACE_PATH} ; git rev-parse HEAD) |
| 343 | endif |
Tim Edwards | 8877f8f | 2021-06-10 21:35:36 -0400 | [diff] [blame] | 344 | ifeq (${OSU_T12_PATH},) |
| 345 | COMMIT_DEFS += -DOSU_T12_COMMIT="unknown" |
| 346 | else |
| 347 | COMMIT_DEFS += -DOSU_T12_COMMIT=$(shell cd ${OSU_T12_PATH} ; git rev-parse HEAD) |
| 348 | endif |
| 349 | ifeq (${OSU_T15_PATH},) |
| 350 | COMMIT_DEFS += -DOSU_T15_COMMIT="unknown" |
| 351 | else |
| 352 | COMMIT_DEFS += -DOSU_T15_COMMIT=$(shell cd ${OSU_T15_PATH} ; git rev-parse HEAD) |
| 353 | endif |
| 354 | ifeq (${OSU_T18_PATH},) |
| 355 | COMMIT_DEFS += -DOSU_T18_COMMIT="unknown" |
| 356 | else |
| 357 | COMMIT_DEFS += -DOSU_T18_COMMIT=$(shell cd ${OSU_T18_PATH} ; git rev-parse HEAD) |
| 358 | endif |
| 359 | ifeq (${SKYWATER_PATH},) |
| 360 | COMMIT_DEFS += -DFD_PR_COMMIT="unknown" |
| 361 | COMMIT_DEFS += -DFD_IO_COMMIT="unknown" |
| 362 | COMMIT_DEFS += -DFD_SC_HD_COMMIT="unknown" |
| 363 | COMMIT_DEFS += -DFD_SC_HDLL_COMMIT="unknown" |
| 364 | COMMIT_DEFS += -DFD_SC_HVL_COMMIT="unknown" |
| 365 | COMMIT_DEFS += -DFD_SC_HS_COMMIT="unknown" |
| 366 | COMMIT_DEFS += -DFD_SC_MS_COMMIT="unknown" |
| 367 | COMMIT_DEFS += -DFD_SC_LS_COMMIT="unknown" |
| 368 | COMMIT_DEFS += -DFD_SC_LP_COMMIT="unknown" |
| 369 | else |
Tim Edwards | 02b3c79 | 2021-09-08 22:25:13 -0400 | [diff] [blame] | 370 | ifeq ($(wildcard ${SKYWATER_PATH}/libraries/sky130_fd_pr/latest/cells),) |
| 371 | COMMIT_DEFS += -DFD_PR_COMMIT="unknown" |
| 372 | else |
| 373 | COMMIT_DEFS += -DFD_PR_COMMIT=$(shell cd ${SKYWATER_PATH} ; git rev-parse @:libraries/sky130_fd_pr/latest) |
| 374 | endif |
| 375 | ifeq ($(wildcard ${SKYWATER_PATH}/libraries/sky130_fd_io/latest/cells),) |
| 376 | COMMIT_DEFS += -DFD_IO_COMMIT="unknown" |
| 377 | else |
| 378 | COMMIT_DEFS += -DFD_IO_COMMIT=$(shell cd ${SKYWATER_PATH} ; git rev-parse @:libraries/sky130_fd_io/latest) |
| 379 | endif |
Tim Edwards | 9309039 | 2021-09-09 17:21:49 -0400 | [diff] [blame] | 380 | ifeq ($(wildcard ${SKYWATER_PATH}/libraries/sky130_fd_sc_hd/latest/cells),) |
Tim Edwards | 02b3c79 | 2021-09-08 22:25:13 -0400 | [diff] [blame] | 381 | COMMIT_DEFS += -DFD_SC_HD_COMMIT="unknown" |
| 382 | else |
| 383 | COMMIT_DEFS += -DFD_SC_HD_COMMIT=$(shell cd ${SKYWATER_PATH} ; git rev-parse @:libraries/sky130_fd_sc_hd/latest) |
| 384 | endif |
Tim Edwards | 9309039 | 2021-09-09 17:21:49 -0400 | [diff] [blame] | 385 | ifeq ($(wildcard ${SKYWATER_PATH}/libraries/sky130_fd_sc_hdll/latest/cells),) |
Tim Edwards | 02b3c79 | 2021-09-08 22:25:13 -0400 | [diff] [blame] | 386 | COMMIT_DEFS += -DFD_SC_HDLL_COMMIT="unknown" |
| 387 | else |
| 388 | COMMIT_DEFS += -DFD_SC_HDLL_COMMIT=$(shell cd ${SKYWATER_PATH} ; git rev-parse @:libraries/sky130_fd_sc_hdll/latest) |
| 389 | endif |
Tim Edwards | 9309039 | 2021-09-09 17:21:49 -0400 | [diff] [blame] | 390 | ifeq ($(wildcard ${SKYWATER_PATH}/libraries/sky130_fd_sc_hvl/latest/cells),) |
Tim Edwards | 02b3c79 | 2021-09-08 22:25:13 -0400 | [diff] [blame] | 391 | COMMIT_DEFS += -DFD_SC_HVL_COMMIT="unknown" |
| 392 | else |
| 393 | COMMIT_DEFS += -DFD_SC_HVL_COMMIT=$(shell cd ${SKYWATER_PATH} ; git rev-parse @:libraries/sky130_fd_sc_hvl/latest) |
| 394 | endif |
Tim Edwards | 9309039 | 2021-09-09 17:21:49 -0400 | [diff] [blame] | 395 | ifeq ($(wildcard ${SKYWATER_PATH}/libraries/sky130_fd_sc_hs/latest/cells),) |
Tim Edwards | 02b3c79 | 2021-09-08 22:25:13 -0400 | [diff] [blame] | 396 | COMMIT_DEFS += -DFD_SC_HS_COMMIT="unknown" |
| 397 | else |
| 398 | COMMIT_DEFS += -DFD_SC_HS_COMMIT=$(shell cd ${SKYWATER_PATH} ; git rev-parse @:libraries/sky130_fd_sc_hs/latest) |
| 399 | endif |
Tim Edwards | 9309039 | 2021-09-09 17:21:49 -0400 | [diff] [blame] | 400 | ifeq ($(wildcard ${SKYWATER_PATH}/libraries/sky130_fd_sc_ms/latest/cells),) |
Tim Edwards | 02b3c79 | 2021-09-08 22:25:13 -0400 | [diff] [blame] | 401 | COMMIT_DEFS += -DFD_SC_MS_COMMIT="unknown" |
| 402 | else |
| 403 | COMMIT_DEFS += -DFD_SC_MS_COMMIT=$(shell cd ${SKYWATER_PATH} ; git rev-parse @:libraries/sky130_fd_sc_ms/latest) |
| 404 | endif |
Tim Edwards | 9309039 | 2021-09-09 17:21:49 -0400 | [diff] [blame] | 405 | ifeq ($(wildcard ${SKYWATER_PATH}/libraries/sky130_fd_sc_ls/latest/cells),) |
Tim Edwards | 02b3c79 | 2021-09-08 22:25:13 -0400 | [diff] [blame] | 406 | COMMIT_DEFS += -DFD_SC_LS_COMMIT="unknown" |
| 407 | else |
| 408 | COMMIT_DEFS += -DFD_SC_LS_COMMIT=$(shell cd ${SKYWATER_PATH} ; git rev-parse @:libraries/sky130_fd_sc_ls/latest) |
| 409 | endif |
Tim Edwards | 9309039 | 2021-09-09 17:21:49 -0400 | [diff] [blame] | 410 | ifeq ($(wildcard ${SKYWATER_PATH}/libraries/sky130_fd_sc_lp/latest/cells),) |
Tim Edwards | 02b3c79 | 2021-09-08 22:25:13 -0400 | [diff] [blame] | 411 | COMMIT_DEFS += -DFD_SC_LP_COMMIT="unknown" |
| 412 | else |
| 413 | COMMIT_DEFS += -DFD_SC_LP_COMMIT=$(shell cd ${SKYWATER_PATH} ; git rev-parse @:libraries/sky130_fd_sc_lp/latest) |
| 414 | endif |
Tim Edwards | 8877f8f | 2021-06-10 21:35:36 -0400 | [diff] [blame] | 415 | endif |
Tim Edwards | e281e08 | 2022-02-25 09:58:31 -0500 | [diff] [blame] | 416 | COMMIT_DEFS += -DMAGIC_COMMIT=$(shell magic -dnull -noconsole --commit) |
Tim Edwards | 7d07616 | 2021-06-24 11:43:30 -0400 | [diff] [blame] | 417 | COMMIT_DEFS += -DMAGIC_VERSION=$(shell magic -dnull -noconsole --version) |
| 418 | COMMIT_DEFS += -DOPEN_PDKS_VERSION=$(shell cat ../VERSION) |
Tim Edwards | 8877f8f | 2021-06-10 21:35:36 -0400 | [diff] [blame] | 419 | |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 420 | ifeq (${EF_STYLE}, 1) |
| 421 | EF_FORMAT = -ef_format |
| 422 | SKY130A_DEFS += -DEF_FORMAT |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 423 | SKY130B_DEFS += -DEF_FORMAT |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 424 | else |
| 425 | EF_FORMAT = -std_format |
| 426 | endif |
| 427 | |
| 428 | MAGICTOP = libs.tech/magic |
| 429 | NETGENTOP = libs.tech/netgen |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 430 | IRSIMTOP = libs.tech/irsim |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 431 | QFLOWTOP = libs.tech/qflow |
| 432 | KLAYOUTTOP = libs.tech/klayout |
| 433 | OPENLANETOP = libs.tech/openlane |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 434 | XSCHEMTOP = libs.tech/xschem |
Tim Edwards | e4c4409 | 2021-02-12 10:18:56 -0500 | [diff] [blame] | 435 | XCIRCUITTOP = libs.tech/xcircuit |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 436 | NGSPICETOP = libs.tech/ngspice |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 437 | |
| 438 | ifeq (${EF_STYLE}, 1) |
| 439 | MAGICPATH = ${MAGICTOP}/${REVISION} |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 440 | MAGICCURRENT = ${MAGICTOP}/current |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 441 | else |
| 442 | MAGICPATH = ${MAGICTOP} |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 443 | MAGICCURRENT = ${MAGICTOP} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 444 | endif |
| 445 | |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 446 | # 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] | 447 | NETGENPATH = ${NETGENTOP} |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 448 | IRSIMPATH = ${IRSIMTOP} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 449 | QFLOWPATH = ${QFLOWTOP} |
| 450 | KLAYOUTPATH = ${KLAYOUTTOP} |
| 451 | OPENLANEPATH = ${OPENLANETOP} |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 452 | XSCHEMPATH = ${XSCHEMTOP} |
Tim Edwards | e4c4409 | 2021-02-12 10:18:56 -0500 | [diff] [blame] | 453 | XCIRCUITPATH = ${XCIRCUITTOP} |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 454 | NGSPICEPATH = ${NGSPICETOP} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 455 | |
| 456 | MAGICTOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${MAGICTOP} |
| 457 | NETGENTOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${NETGENTOP} |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 458 | IRSIMTOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${IRSIMTOP} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 459 | QFLOWTOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${QFLOWTOP} |
| 460 | KLAYOUTTOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${KLAYOUTTOP} |
| 461 | OPENLANETOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${OPENLANETOP} |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 462 | XSCHEMTOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${XSCHEMTOP} |
Tim Edwards | e4c4409 | 2021-02-12 10:18:56 -0500 | [diff] [blame] | 463 | XCIRCUITTOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${XCIRCUITTOP} |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 464 | NGSPICETOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${NGSPICETOP} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 465 | |
| 466 | MAGIC_STAGING_A = ${STAGING_PATH}/${SKY130A}/${MAGICPATH} |
| 467 | NETGEN_STAGING_A = ${STAGING_PATH}/${SKY130A}/${NETGENPATH} |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 468 | IRSIM_STAGING_A = ${STAGING_PATH}/${SKY130A}/${IRSIMPATH} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 469 | QFLOW_STAGING_A = ${STAGING_PATH}/${SKY130A}/${QFLOWPATH} |
| 470 | KLAYOUT_STAGING_A = ${STAGING_PATH}/${SKY130A}/${KLAYOUTPATH} |
| 471 | OPENLANE_STAGING_A = ${STAGING_PATH}/${SKY130A}/${OPENLANEPATH} |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 472 | XSCHEM_STAGING_A = ${STAGING_PATH}/${SKY130A}/${XSCHEMPATH} |
Tim Edwards | e4c4409 | 2021-02-12 10:18:56 -0500 | [diff] [blame] | 473 | XCIRCUIT_STAGING_A = ${STAGING_PATH}/${SKY130A}/${XCIRCUITPATH} |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 474 | NGSPICE_STAGING_A = ${STAGING_PATH}/${SKY130A}/${NGSPICEPATH} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 475 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 476 | MAGICTOP_STAGING_B = ${STAGING_PATH}/${SKY130B}/${MAGICTOP} |
| 477 | NETGENTOP_STAGING_B = ${STAGING_PATH}/${SKY130B}/${NETGENTOP} |
| 478 | IRSIMTOP_STAGING_B = ${STAGING_PATH}/${SKY130B}/${IRSIMTOP} |
| 479 | QFLOWTOP_STAGING_B = ${STAGING_PATH}/${SKY130B}/${QFLOWTOP} |
| 480 | KLAYOUTTOP_STAGING_B = ${STAGING_PATH}/${SKY130B}/${KLAYOUTTOP} |
| 481 | OPENLANETOP_STAGING_B = ${STAGING_PATH}/${SKY130B}/${OPENLANETOP} |
| 482 | XSCHEMTOP_STAGING_B = ${STAGING_PATH}/${SKY130B}/${XSCHEMTOP} |
| 483 | XCIRCUITTOP_STAGING_B = ${STAGING_PATH}/${SKY130B}/${XCIRCUITTOP} |
| 484 | NGSPICETOP_STAGING_B = ${STAGING_PATH}/${SKY130B}/${NGSPICETOP} |
| 485 | |
| 486 | MAGIC_STAGING_B = ${STAGING_PATH}/${SKY130B}/${MAGICPATH} |
| 487 | NETGEN_STAGING_B = ${STAGING_PATH}/${SKY130B}/${NETGENPATH} |
| 488 | IRSIM_STAGING_B = ${STAGING_PATH}/${SKY130B}/${IRSIMPATH} |
| 489 | QFLOW_STAGING_B = ${STAGING_PATH}/${SKY130B}/${QFLOWPATH} |
| 490 | KLAYOUT_STAGING_B = ${STAGING_PATH}/${SKY130B}/${KLAYOUTPATH} |
| 491 | OPENLANE_STAGING_B = ${STAGING_PATH}/${SKY130B}/${OPENLANEPATH} |
| 492 | XSCHEM_STAGING_B = ${STAGING_PATH}/${SKY130B}/${XSCHEMPATH} |
| 493 | XCIRCUIT_STAGING_B = ${STAGING_PATH}/${SKY130B}/${XCIRCUITPATH} |
| 494 | NGSPICE_STAGING_B = ${STAGING_PATH}/${SKY130B}/${NGSPICEPATH} |
| 495 | |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 496 | SKY130A_DEFS += -DMAGIC_CURRENT=${MAGICCURRENT} |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 497 | SKY130B_DEFS += -DMAGIC_CURRENT=${MAGICCURRENT} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 498 | |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 499 | # Openlane has a number of files that are common to all digital |
| 500 | # standard cell libraries, so these are collected in one definition |
| 501 | # here: |
agorararmard | 2ca4602 | 2021-02-11 21:43:51 +0200 | [diff] [blame] | 502 | OPENLANE_COMMON = config.tcl tracks.info no_synth.cells drc_exclude.cells |
manarabdelaty | 2ecac4f | 2021-03-08 15:23:12 +0200 | [diff] [blame] | 503 | 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] | 504 | |
Tim Edwards | d7c3a52 | 2022-10-01 17:58:29 -0400 | [diff] [blame] | 505 | # Corners defined in IRSIM parameter files (wild-carded) |
| 506 | IRSIM_CORNERS = `ls irsim/*.prm | cut -c14-` |
Tim Edwards | 6f01cd2 | 2022-01-17 19:23:53 -0500 | [diff] [blame] | 507 | |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 508 | # Where cpp syntax is followed, this is equivalent to cpp, but it does not |
| 509 | # mangle non-C source files under the belief that they are actually C code. |
| 510 | CPP = ../common/preproc.py |
| 511 | |
| 512 | # The following script in the ../common directory does most of the work of |
| 513 | # copying or linking the foundry vendor files to the target directory. |
Tim Edwards | 5d450d5 | 2022-01-22 15:31:32 -0500 | [diff] [blame] | 514 | STAGE = set -f ; ../common/foundry_install.py ${EF_FORMAT} ${TIMESTAMP_OPT} |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 515 | ifneq ($(DESTDIR), ) |
Tim 'mithro' Ansell | 1957663 | 2021-11-14 17:01:53 -0800 | [diff] [blame] | 516 | INSTALL = ../common/staging_install.py -writeto $(DESTDIR) ${EF_FORMAT} |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 517 | else |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 518 | INSTALL = ../common/staging_install.py ${EF_FORMAT} |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 519 | endif |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 520 | |
| 521 | # 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] | 522 | ADDPROP = ../common/insert_property.py ${EF_FORMAT} |
Tim Edwards | 22f014d | 2022-01-26 10:37:03 -0500 | [diff] [blame] | 523 | ADDLAYER = ../common/insert_layer.py ${EF_FORMAT} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 524 | |
| 525 | # List the EDA tools to install local setup files for |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 526 | TOOLS = |
Tim Edwards | ccaea72 | 2020-12-24 10:59:42 -0500 | [diff] [blame] | 527 | |
| 528 | # KLAYOUT_DISABLED = 0 | 1 |
| 529 | KLAYOUT_DISABLED = @KLAYOUT_DISABLED@ |
| 530 | ifneq (${KLAYOUT_DISABLED}, 1) |
| 531 | TOOLS += klayout |
| 532 | endif |
| 533 | |
| 534 | # OPENLANE_DISABLED = 0 | 1 |
| 535 | OPENLANE_DISABLED = @OPENLANE_DISABLED@ |
| 536 | ifneq (${OPENLANE_DISABLED}, 1) |
| 537 | TOOLS += openlane |
| 538 | endif |
| 539 | |
| 540 | # QFLOW_DISABLED = 0 | 1 |
| 541 | QFLOW_DISABLED = @QFLOW_DISABLED@ |
| 542 | ifneq (${QFLOW_DISABLED}, 1) |
| 543 | TOOLS += qflow |
| 544 | endif |
| 545 | |
| 546 | # MAGIC_DISABLED = 0 | 1 |
| 547 | MAGIC_DISABLED = @MAGIC_DISABLED@ |
| 548 | ifneq (${MAGIC_DISABLED}, 1) |
| 549 | TOOLS += magic |
| 550 | endif |
| 551 | |
| 552 | # NETGEN_DISABLED = 0 | 1 |
| 553 | NETGEN_DISABLED = @NETGEN_DISABLED@ |
| 554 | ifneq (${NETGEN_DISABLED}, 1) |
| 555 | TOOLS += netgen |
| 556 | endif |
| 557 | |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 558 | # IRSIM_DISABLED = 0 | 1 |
| 559 | IRSIM_DISABLED = @IRSIM_DISABLED@ |
| 560 | ifneq (${IRSIM_DISABLED}, 1) |
| 561 | TOOLS += irsim |
| 562 | endif |
| 563 | |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 564 | # XSCHEM_DISABLED = 0 | 1 |
| 565 | XSCHEM_DISABLED = @XSCHEM_DISABLED@ |
| 566 | ifneq (${XSCHEM_DISABLED}, 1) |
| 567 | TOOLS += xschem |
| 568 | endif |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 569 | |
Tim Edwards | e4c4409 | 2021-02-12 10:18:56 -0500 | [diff] [blame] | 570 | # XCIRCUIT_DISABLED = 0 | 1 |
| 571 | XCIRCUIT_DISABLED = @XCIRCUIT_DISABLED@ |
| 572 | ifneq (${XCIRCUIT_DISABLED}, 1) |
| 573 | TOOLS += xcircuit |
| 574 | endif |
| 575 | |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 576 | # These definitions depend on the setting of EF_STYLE |
| 577 | ifeq (${EF_STYLE}, 1) |
| 578 | IO_VERILOG = verilog/sky130_fd_io |
Tim Edwards | b5bfca8 | 2022-03-04 11:29:56 -0500 | [diff] [blame] | 579 | IO_GDS = gds/sky130_fd_io |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 580 | HD_VERILOG = verilog/sky130_fd_sc_hd |
| 581 | HDLL_VERILOG = verilog/sky130_fd_sc_hdll |
| 582 | HVL_VERILOG = verilog/sky130_fd_sc_hvl |
| 583 | HS_VERILOG = verilog/sky130_fd_sc_hs |
| 584 | MS_VERILOG = verilog/sky130_fd_sc_ms |
| 585 | LS_VERILOG = verilog/sky130_fd_sc_ls |
| 586 | LP_VERILOG = verilog/sky130_fd_sc_lp |
| 587 | HD_TECHLEF = techLEF/sky130_fd_sc_hd |
| 588 | HDLL_TECHLEF = techLEF/sky130_fd_sc_hdll |
| 589 | MLXX_SCRIPTS = scripts/sky130_ml_xx_hd |
| 590 | PR_SPICE = spi/sky130_fd_pr |
Tim Edwards | f63ee05 | 2021-04-29 15:13:45 -0400 | [diff] [blame] | 591 | HVL_SPICE = spi/sky130_fd_sc_hvl |
Tim Edwards | 97274fd | 2021-07-13 15:15:03 -0400 | [diff] [blame] | 592 | HD_SPICE = spi/sky130_fd_sc_hd |
Tim Edwards | 16b050b | 2021-05-17 16:45:34 -0400 | [diff] [blame] | 593 | HVL_PATCH4 = 4b |
Tim Edwards | f63ee05 | 2021-04-29 15:13:45 -0400 | [diff] [blame] | 594 | HVL_CDL = cdl/sky130_fd_sc_hvl |
Tim Edwards | 12f00a0 | 2021-09-09 10:40:57 -0400 | [diff] [blame] | 595 | SPIEXT = spi |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 596 | else |
| 597 | IO_VERILOG = sky130_fd_io/verilog |
Tim Edwards | b5bfca8 | 2022-03-04 11:29:56 -0500 | [diff] [blame] | 598 | IO_GDS = sky130_fd_io/gds |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 599 | HD_VERILOG = sky130_fd_sc_hd/verilog |
| 600 | HDLL_VERILOG = sky130_fd_sc_hdll/verilog |
| 601 | HVL_VERILOG = sky130_fd_sc_hvl/verilog |
| 602 | HS_VERILOG = sky130_fd_sc_hs/verilog |
| 603 | MS_VERILOG = sky130_fd_sc_ms/verilog |
| 604 | LS_VERILOG = sky130_fd_sc_ls/verilog |
| 605 | LP_VERILOG = sky130_fd_sc_lp/verilog |
| 606 | HD_TECHLEF = sky130_fd_sc_hd/techlef |
| 607 | HDLL_TECHLEF = sky130_fd_sc_hdll/techlef |
| 608 | MLXX_SCRIPTS = sky130_ml_xx_hd/scripts |
| 609 | PR_SPICE = sky130_fd_pr/spice |
Tim Edwards | f63ee05 | 2021-04-29 15:13:45 -0400 | [diff] [blame] | 610 | HVL_SPICE = sky130_fd_sc_hvl/spice |
Tim Edwards | 97274fd | 2021-07-13 15:15:03 -0400 | [diff] [blame] | 611 | HD_SPICE = sky130_fd_sc_hd/spice |
Tim Edwards | 16b050b | 2021-05-17 16:45:34 -0400 | [diff] [blame] | 612 | HVL_PATCH4 = 4 |
Tim Edwards | f63ee05 | 2021-04-29 15:13:45 -0400 | [diff] [blame] | 613 | HVL_CDL = sky130_fd_sc_hvl/cdl |
Tim Edwards | 12f00a0 | 2021-09-09 10:40:57 -0400 | [diff] [blame] | 614 | SPIEXT = spice |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 615 | endif |
| 616 | |
Tim Edwards | 2f7032e | 2022-12-16 17:51:45 -0500 | [diff] [blame] | 617 | all: $(foreach var, ${VARIANTS}, all-$(var)) |
| 618 | |
Tim Edwards | 5ed94ff | 2022-06-16 15:07:53 -0400 | [diff] [blame] | 619 | reference: ${TECH}.json |
| 620 | # Rewrite the ${TECH}.json file to change the commit values in |
| 621 | # "reference" to reflect the state of the system when "make |
| 622 | # reference" was run. This is then committed to the open_pdks |
| 623 | # repository to create a known reference configuration of all |
| 624 | # tools. |
| 625 | ../common/save_commit_refs.py ${COMMIT_DEFS} ${TECH}.json |
| 626 | |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 627 | # Handle prerequisites (fetch and install the PDK and requested libraries) |
Tim Edwards | d6c91b4 | 2023-01-04 17:03:58 -0500 | [diff] [blame] | 628 | prerequisites: pdk-repo alpha-repo xschem-repo klayout-repo precheck-repo sram-repo sram-space-repo osu-t12-repo osu-t15-repo osu-t18-repo |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 629 | |
| 630 | pdk-repo: |
Tim Edwards | c74daac | 2023-01-05 15:38:30 -0500 | [diff] [blame] | 631 | if test "x${REFERENCE_JSON}" != "x"; then \ |
| 632 | SKYWATER_COMMIT = `cat ${REFERENCE_JSON} | grep skywater_pdk | grep -v COMMIT | cut -d'"' -f4` ; \ |
| 633 | fi |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 634 | if test "x${SKYWATER_PATH}" != "x" ; then \ |
| 635 | if test -d "${SKYWATER_PATH}" ; then \ |
| 636 | echo "Using existing installation of SkyWater PDK from ${SKYWATER_PATH}" ; \ |
| 637 | else \ |
| 638 | echo "Downloading SkyWater PDK from ${PDK_URL}" ; \ |
Tim Edwards | c74daac | 2023-01-05 15:38:30 -0500 | [diff] [blame] | 639 | custom/scripts/pdk_download.sh ${PDK_URL} ${SKYWATER_PATH} ${SKYWATER_COMMIT} ; \ |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 640 | fi ; \ |
| 641 | fi |
| 642 | |
| 643 | alpha-repo: |
Tim Edwards | c74daac | 2023-01-05 15:38:30 -0500 | [diff] [blame] | 644 | if test "x${REFERENCE_JSON}" != "x"; then \ |
| 645 | ALPHA_COMMIT = `cat ${REFERENCE_JSON} | grep sky130_ml_xx_hd | grep -v COMMIT | cut -d'"' -f4` ; \ |
| 646 | fi |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 647 | if test "x${ALPHA_PATH}" != "x" ; then \ |
| 648 | if test -d "${ALPHA_PATH}" ; then \ |
| 649 | echo "Using existing installation of alphanumeric library from ${ALPHA_PATH}" ; \ |
| 650 | else \ |
| 651 | echo "Downloading alphanumeric library from ${ALPHA_URL}" ; \ |
Tim Edwards | c74daac | 2023-01-05 15:38:30 -0500 | [diff] [blame] | 652 | ../scripts/download.sh ${ALPHA_URL} ${ALPHA_PATH} ${ALPHA_COMMIT} ; \ |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 653 | fi ; \ |
| 654 | fi |
| 655 | |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 656 | sram-repo: |
Tim Edwards | c74daac | 2023-01-05 15:38:30 -0500 | [diff] [blame] | 657 | if test "x${REFERENCE_JSON}" != "x"; then \ |
| 658 | SRAM_COMMIT = `cat ${REFERENCE_JSON} | grep sky130_sram_macros | grep -v COMMIT | cut -d'"' -f4` ; \ |
| 659 | fi |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 660 | if test "x${SRAM_PATH}" != "x" ; then \ |
| 661 | if test -d "${SRAM_PATH}" ; then \ |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 662 | echo "Using existing installation of SRAM macro library from ${SRAM_PATH}" ; \ |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 663 | else \ |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 664 | echo "Downloading SRAM macro library from ${SRAM_URL}" ; \ |
Tim Edwards | c74daac | 2023-01-05 15:38:30 -0500 | [diff] [blame] | 665 | ../scripts/download.sh ${SRAM_URL} ${SRAM_PATH} ${SRAM_COMMIT}; \ |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 666 | fi ; \ |
| 667 | fi |
| 668 | |
Tim Edwards | d6c91b4 | 2023-01-04 17:03:58 -0500 | [diff] [blame] | 669 | sram-space-repo: |
Tim Edwards | c74daac | 2023-01-05 15:38:30 -0500 | [diff] [blame] | 670 | if test "x${REFERENCE_JSON}" != "x"; then \ |
| 671 | SRAM_SPACE_COMMIT = `cat ${REFERENCE_JSON} | grep sky130_fd_bd_sram | grep -v COMMIT | cut -d'"' -f4` ; \ |
| 672 | fi |
Tim Edwards | d6c91b4 | 2023-01-04 17:03:58 -0500 | [diff] [blame] | 673 | if test "x${SRAM_SPACE_PATH}" != "x" ; then \ |
| 674 | if test -d "${SRAM_SPACE_PATH}" ; then \ |
| 675 | echo "Using existing installation of SRAM build-space library from ${SRAM_SPACE_PATH}" ; \ |
| 676 | else \ |
| 677 | echo "Downloading SRAM build-space library from ${SRAM_SPACE_URL}" ; \ |
Tim Edwards | c74daac | 2023-01-05 15:38:30 -0500 | [diff] [blame] | 678 | ../scripts/download.sh ${SRAM_SPACE_URL} ${SRAM_SPACE_PATH} ${SRAM_SPACE_COMMIT} ; \ |
Tim Edwards | d6c91b4 | 2023-01-04 17:03:58 -0500 | [diff] [blame] | 679 | fi ; \ |
| 680 | fi |
| 681 | |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 682 | xschem-repo: |
Tim Edwards | c74daac | 2023-01-05 15:38:30 -0500 | [diff] [blame] | 683 | if test "x${REFERENCE_JSON}" != "x"; then \ |
| 684 | XSCHEM_COMMIT = `cat ${REFERENCE_JSON} | grep xschem_sky130 | grep -v COMMIT | cut -d'"' -f4` ; \ |
| 685 | fi |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 686 | if test "x${XSCHEM_PATH}" != "x" ; then \ |
| 687 | if test -d "${XSCHEM_PATH}" ; then \ |
| 688 | echo "Using existing installation of xschem setup from ${XSCHEM_PATH}" ; \ |
| 689 | else \ |
| 690 | echo "Downloading xschem setup from ${XSCHEM_URL}" ; \ |
Tim Edwards | c74daac | 2023-01-05 15:38:30 -0500 | [diff] [blame] | 691 | ../scripts/download.sh ${XSCHEM_URL} ${XSCHEM_PATH} ${XSCHEM_COMMIT} ; \ |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 692 | fi ; \ |
| 693 | fi |
| 694 | |
Tim Edwards | 5ed94ff | 2022-06-16 15:07:53 -0400 | [diff] [blame] | 695 | klayout-repo: |
Tim Edwards | c74daac | 2023-01-05 15:38:30 -0500 | [diff] [blame] | 696 | if test "x${REFERENCE_JSON}" != "x"; then \ |
| 697 | KLAYOUT_COMMIT = `cat ${REFERENCE_JSON} | grep klayout_sky130 | grep -v COMMIT | cut -d'"' -f4` ; \ |
| 698 | fi |
Tim Edwards | 5ed94ff | 2022-06-16 15:07:53 -0400 | [diff] [blame] | 699 | if test "x${KLAYOUT_PATH}" != "x" ; then \ |
| 700 | if test -d "${KLAYOUT_PATH}" ; then \ |
| 701 | echo "Using existing installation of klayout setup from ${KLAYOUT_PATH}" ; \ |
| 702 | else \ |
| 703 | echo "Downloading klayout setup from ${KLAYOUT_URL}" ; \ |
Tim Edwards | c74daac | 2023-01-05 15:38:30 -0500 | [diff] [blame] | 704 | ../scripts/download.sh ${KLAYOUT_URL} ${KLAYOUT_PATH} ${KLAYOUT_COMMIT} ; \ |
Tim Edwards | 5ed94ff | 2022-06-16 15:07:53 -0400 | [diff] [blame] | 705 | fi ; \ |
| 706 | fi |
| 707 | |
| 708 | precheck-repo: |
Tim Edwards | c74daac | 2023-01-05 15:38:30 -0500 | [diff] [blame] | 709 | if test "x${REFERENCE_JSON}" != "x"; then \ |
| 710 | PRECHECK_COMMIT = `cat ${REFERENCE_JSON} | grep precheck_sky130 | grep -v COMMIT | cut -d'"' -f4` ; \ |
| 711 | fi |
Tim Edwards | 5ed94ff | 2022-06-16 15:07:53 -0400 | [diff] [blame] | 712 | if test "x${PRECHECK_PATH}" != "x" ; then \ |
| 713 | if test -d "${PRECHECK_PATH}" ; then \ |
| 714 | echo "Using existing installation of klayout setup from ${PRECHECK_PATH}" ; \ |
| 715 | else \ |
| 716 | echo "Downloading klayout setup from ${PRECHECK_URL}" ; \ |
Tim Edwards | c74daac | 2023-01-05 15:38:30 -0500 | [diff] [blame] | 717 | ../scripts/download.sh ${PRECHECK_URL} ${PRECHECK_PATH} ${PRECHECK_COMMIT} ; \ |
Tim Edwards | 5ed94ff | 2022-06-16 15:07:53 -0400 | [diff] [blame] | 718 | fi ; \ |
| 719 | fi |
| 720 | |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 721 | osu-t12-repo: |
Tim Edwards | c74daac | 2023-01-05 15:38:30 -0500 | [diff] [blame] | 722 | if test "x${REFERENCE_JSON}" != "x"; then \ |
| 723 | OSU_T12_COMMIT = `cat ${REFERENCE_JSON} | grep sky130_osu_sc_t12 | grep -v COMMIT | cut -d'"' -f4` ; \ |
| 724 | fi |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 725 | if test "x${OSU_T12_PATH}" != "x" ; then \ |
| 726 | if test -d "${OSU_T12_PATH}" ; then \ |
| 727 | echo "Using existing installation of OSU T12 standard cell library from ${OSU_T12_PATH}" ; \ |
| 728 | else \ |
| 729 | echo "Downloading OSU standard T12 cell library from ${OSU_T12_URL}" ; \ |
Tim Edwards | c74daac | 2023-01-05 15:38:30 -0500 | [diff] [blame] | 730 | ../scripts/download.sh ${OSU_T12_URL} ${OSU_T12_PATH} ${OSU_T12_COMMIT} ; \ |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 731 | fi ; \ |
| 732 | fi |
| 733 | |
| 734 | osu-t15-repo: |
Tim Edwards | c74daac | 2023-01-05 15:38:30 -0500 | [diff] [blame] | 735 | if test "x${REFERENCE_JSON}" != "x"; then \ |
| 736 | OSU_T15_COMMIT = `cat ${REFERENCE_JSON} | grep sky130_osu_sc_t15 | grep -v COMMIT | cut -d'"' -f4` ; \ |
| 737 | fi |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 738 | if test "x${OSU_T15_PATH}" != "x" ; then \ |
| 739 | if test -d "${OSU_T15_PATH}" ; then \ |
| 740 | echo "Using existing installation of OSU T15 standard cell library from ${OSU_T15_PATH}" ; \ |
| 741 | else \ |
| 742 | echo "Downloading OSU standard T15 cell library from ${OSU_T15_URL}" ; \ |
Tim Edwards | c74daac | 2023-01-05 15:38:30 -0500 | [diff] [blame] | 743 | ../scripts/download.sh ${OSU_T15_URL} ${OSU_T15_PATH} ${OSU_T15_COMMIT} ; \ |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 744 | fi ; \ |
| 745 | fi |
| 746 | |
| 747 | osu-t18-repo: |
Tim Edwards | c74daac | 2023-01-05 15:38:30 -0500 | [diff] [blame] | 748 | if test "x${REFERENCE_JSON}" != "x"; then \ |
| 749 | OSU_T18_COMMIT = `cat ${REFERENCE_JSON} | grep sky130_osu_sc_t18 | grep -v COMMIT | cut -d'"' -f4` ; \ |
| 750 | fi |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 751 | if test "x${OSU_T18_PATH}" != "x" ; then \ |
| 752 | if test -d "${OSU_T18_PATH}" ; then \ |
| 753 | echo "Using existing installation of OSU T18 standard cell library from ${OSU_T18_PATH}" ; \ |
| 754 | else \ |
| 755 | echo "Downloading OSU standard T18 cell library from ${OSU_T18_URL}" ; \ |
Tim Edwards | c74daac | 2023-01-05 15:38:30 -0500 | [diff] [blame] | 756 | ../scripts/download.sh ${OSU_T18_URL} ${OSU_T18_PATH} ${OSU_T18_COMMIT} ; \ |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 757 | fi ; \ |
| 758 | fi |
| 759 | |
Tim Edwards | 52af776 | 2022-02-18 13:49:23 -0500 | [diff] [blame] | 760 | # Update prerequisites |
Tim Edwards | d6c91b4 | 2023-01-04 17:03:58 -0500 | [diff] [blame] | 761 | update: update-pdk-repo update-alpha-repo update-xschem-repo update-klayout-repo update-precheck-repo update-sram-repo update-sram-space-repo update-osu-t12-repo update-osu-t15-repo update-osu-t18-repo |
Tim Edwards | 52af776 | 2022-02-18 13:49:23 -0500 | [diff] [blame] | 762 | |
| 763 | update-pdk-repo: |
| 764 | if test "x${SKYWATER_PATH}" != "x" ; then \ |
| 765 | echo "Updating SkyWater PDK from ${PDK_URL}" ; \ |
| 766 | custom/scripts/pdk_update.sh ${SKYWATER_PATH} ; \ |
| 767 | fi |
| 768 | |
| 769 | update-alpha-repo: |
| 770 | if test "x${ALPHA_PATH}" != "x" ; then \ |
| 771 | echo "Updating alphanumeric library from ${ALPHA_URL}" ; \ |
| 772 | ../scripts/update.sh ${ALPHA_PATH} ; \ |
| 773 | fi |
| 774 | |
| 775 | update-sram-repo: |
| 776 | if test "x${SRAM_PATH}" != "x" ; then \ |
| 777 | echo "Updating SRAM macro library from ${SRAM_URL}" ; \ |
| 778 | ../scripts/update.sh ${SRAM_PATH} ; \ |
| 779 | fi |
| 780 | |
Tim Edwards | d6c91b4 | 2023-01-04 17:03:58 -0500 | [diff] [blame] | 781 | update-sram-space-repo: |
| 782 | if test "x${SRAM_SPACE_PATH}" != "x" ; then \ |
| 783 | echo "Updating SRAM build-space library from ${SRAM_SPACE_URL}" ; \ |
| 784 | ../scripts/update.sh ${SRAM_SPACE_PATH} ; \ |
| 785 | fi |
| 786 | |
Tim Edwards | 52af776 | 2022-02-18 13:49:23 -0500 | [diff] [blame] | 787 | update-xschem-repo: |
| 788 | if test "x${XSCHEM_PATH}" != "x" ; then \ |
| 789 | echo "Updating xschem setup from ${XSCHEM_URL}" ; \ |
| 790 | ../scripts/update.sh ${XSCHEM_PATH} ; \ |
| 791 | fi |
| 792 | |
Tim Edwards | 5ed94ff | 2022-06-16 15:07:53 -0400 | [diff] [blame] | 793 | update-klayout-repo: |
| 794 | if test "x${KLAYOUT_PATH}" != "x" ; then \ |
| 795 | echo "Updating klayout setup from ${KLAYOUT_URL}" ; \ |
| 796 | ../scripts/update.sh ${KLAYOUT_PATH} ; \ |
| 797 | fi |
| 798 | |
| 799 | update-precheck-repo: |
| 800 | if test "x${PRECHECK_PATH}" != "x" ; then \ |
| 801 | echo "Updating klayout setup from ${PRECHECK_URL}" ; \ |
| 802 | ../scripts/update.sh ${PRECHECK_PATH} ; \ |
| 803 | fi |
| 804 | |
Tim Edwards | 52af776 | 2022-02-18 13:49:23 -0500 | [diff] [blame] | 805 | update-osu-t12-repo: |
| 806 | if test "x${OSU_T12_PATH}" != "x" ; then \ |
| 807 | echo "Updating OSU standard T12 cell library from ${OSU_T12_URL}" ; \ |
| 808 | ../scripts/update.sh ${OSU_T12_PATH} ; \ |
| 809 | fi |
| 810 | |
| 811 | update-osu-t15-repo: |
| 812 | if test "x${OSU_T15_PATH}" != "x" ; then \ |
| 813 | echo "Updating OSU standard T15 cell library from ${OSU_T15_URL}" ; \ |
| 814 | ../scripts/update.sh ${OSU_T15_PATH} ; \ |
| 815 | fi |
| 816 | |
| 817 | update-osu-t18-repo: |
| 818 | if test "x${OSU_T18_PATH}" != "x" ; then \ |
| 819 | echo "Updating OSU standard T18 cell library from ${OSU_T18_URL}" ; \ |
| 820 | ../scripts/update.sh ${OSU_T18_PATH} ; \ |
| 821 | fi |
| 822 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 823 | all-%: prerequisites |
| 824 | echo "Starting sky130$* PDK staging on "`date` > ${SKY130$*}_make.log |
| 825 | ${MAKE} general-$* |
| 826 | ${MAKE} tools-$* |
| 827 | ${MAKE} vendor-$* |
| 828 | echo "Ended sky130$* PDK staging on "`date` >> ${SKY130$*}_make.log |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 829 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 830 | general-%: ${TECH}.json |
| 831 | mkdir -p ${STAGING_PATH}/${SKY130$*}/${CONFIG_DIR} |
| 832 | rm -f ${STAGING_PATH}/${SKY130$*}/${CONFIG_DIR}/nodeinfo.json |
| 833 | ${CPP} ${SKY130$*_DEFS} ${COMMIT_DEFS} ${TECH}.json \ |
| 834 | ${STAGING_PATH}/${SKY130$*}/${CONFIG_DIR}/nodeinfo.json |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 835 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 836 | tools-A: $(addsuffix -A, $(TOOLS)) |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 837 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 838 | tools-B: $(addsuffix -B, $(TOOLS)) |
| 839 | |
| 840 | magic-%: magic/${TECH}.tech magic/${TECH}gds.tech magic/${TECH}.magicrc magic/${TECH}.tcl |
| 841 | mkdir -p ${MAGICTOP_STAGING_$*} |
| 842 | mkdir -p ${MAGIC_STAGING_$*} |
| 843 | rm -f ${MAGICTOP_STAGING_$*}/current |
| 844 | rm -f ${MAGIC_STAGING_$*}/${SKY130$*}.tech |
| 845 | rm -f ${MAGIC_STAGING_$*}/${SKY130$*}-GDS.tech |
| 846 | rm -f ${MAGIC_STAGING_$*}/${SKY130$*}.tcl |
| 847 | rm -f ${MAGIC_STAGING_$*}/${SKY130$*}-BindKeys |
| 848 | rm -f ${MAGIC_STAGING_$*}/magicrc |
Tim Edwards | 4db522f | 2021-05-04 13:34:40 -0400 | [diff] [blame] | 849 | if test "${EF_STYLE}" == "1" ; then \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 850 | (cd ${MAGICTOP_STAGING_$*} ; ln -s ${REV_DIR} current) ; \ |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 851 | fi |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 852 | cp -rp custom/scripts/seal_ring_generator ${MAGIC_STAGING_$*}/. |
| 853 | cp -rp custom/scripts/bump_bond_generator ${MAGIC_STAGING_$*}/. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 854 | cp custom/scripts/run_standard_drc.py ${MAGIC_STAGING_$*}/. |
Tim Edwards | 7325e44 | 2022-03-03 16:51:52 -0500 | [diff] [blame] | 855 | ${CPP} ${SKY130$*_DEFS} custom/scripts/generate_fill.py \ |
| 856 | ${MAGIC_STAGING_$*}/generate_fill.py |
| 857 | ${CPP} ${SKY130$*_DEFS} custom/scripts/check_density.py \ |
| 858 | ${MAGIC_STAGING_$*}/check_density.py |
| 859 | ${CPP} ${SKY130$*_DEFS} custom/scripts/check_antenna.py \ |
| 860 | ${MAGIC_STAGING_$*}/check_antenna.py |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 861 | ${CPP} ${SKY130$*_DEFS} magic/${TECH}.tech ${MAGIC_STAGING_$*}/${SKY130$*}.tech |
| 862 | ${CPP} ${SKY130$*_DEFS} magic/${TECH}gds.tech ${MAGIC_STAGING_$*}/${SKY130$*}-GDS.tech |
| 863 | ${CPP} ${SKY130$*_DEFS} magic/${TECH}.magicrc ${MAGIC_STAGING_$*}/${SKY130$*}.magicrc |
| 864 | ${CPP} ${SKY130$*_DEFS} ../common/pdk.bindkeys ${MAGIC_STAGING_$*}/${SKY130$*}-BindKeys |
| 865 | ${CPP} ${SKY130$*_DEFS} magic/${TECH}.tcl ${MAGIC_STAGING_$*}/${SKY130$*}.tcl |
| 866 | ${CPP} ${SKY130$*_DEFS} ../common/pdk.tcl >> ${MAGIC_STAGING_$*}/${SKY130$*}.tcl |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 867 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 868 | qflow-%: qflow/${TECH}.sh qflow/${TECH}.par |
| 869 | mkdir -p ${QFLOWTOP_STAGING_$*} |
| 870 | mkdir -p ${QFLOW_STAGING_$*} |
| 871 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_hd.sh |
| 872 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_hd.par |
| 873 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_hdll.sh |
| 874 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_hdll.par |
| 875 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_hs.sh |
| 876 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_hs.par |
| 877 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_hvl.sh |
| 878 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_hvl.par |
| 879 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_ls.sh |
| 880 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_ls.par |
| 881 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_lp.sh |
| 882 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_lp.par |
| 883 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_ms.sh |
| 884 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_ms.par |
| 885 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_12t_ls.sh |
| 886 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_12t_ls.par |
| 887 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_12t_ms.sh |
| 888 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_12t_ms.par |
| 889 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_12t_hs.sh |
| 890 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_12t_hs.par |
| 891 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_15t_ls.sh |
| 892 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_15t_ls.par |
| 893 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_15t_ms.sh |
| 894 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_15t_ms.par |
| 895 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_15t_hs.sh |
| 896 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_15t_hs.par |
| 897 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_18t_ls.sh |
| 898 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_18t_ls.par |
| 899 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_18t_ms.sh |
| 900 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_18t_ms.par |
| 901 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_18t_hs.sh |
| 902 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_18t_hs.par |
| 903 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_fd_sc_hd -DVOLTAGE=1v95 \ |
| 904 | qflow/${TECH}.sh ${QFLOW_STAGING_$*}/sky130_fd_sc_hd.sh |
| 905 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_fd_sc_hdll -DVOLTAGE=1v95 \ |
| 906 | qflow/${TECH}.sh ${QFLOW_STAGING_$*}/sky130_fd_sc_hdll.sh |
| 907 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_fd_sc_hvl -DVOLTAGE=4v95 \ |
| 908 | qflow/${TECH}.sh ${QFLOW_STAGING_$*}/sky130_fd_sc_hvl.sh |
| 909 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_fd_sc_hs -DVOLTAGE=1v95 \ |
| 910 | qflow/${TECH}.sh ${QFLOW_STAGING_$*}/sky130_fd_sc_hs.sh |
| 911 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_fd_sc_lp -DVOLTAGE=1v95 \ |
| 912 | qflow/${TECH}.sh ${QFLOW_STAGING_$*}/sky130_fd_sc_lp.sh |
| 913 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_fd_sc_ls -DVOLTAGE=1v95 \ |
| 914 | qflow/${TECH}.sh ${QFLOW_STAGING_$*}/sky130_fd_sc_ls.sh |
| 915 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_fd_sc_ms -DVOLTAGE=1v95 \ |
| 916 | qflow/${TECH}.sh ${QFLOW_STAGING_$*}/sky130_fd_sc_ms.sh |
| 917 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_osu_sc_12t_ls qflow/sky130osu.sh \ |
| 918 | ${QFLOW_STAGING_$*}/sky130_osu_sc_12t_ls.sh |
| 919 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_osu_sc_12t_ms qflow/sky130osu.sh \ |
| 920 | ${QFLOW_STAGING_$*}/sky130_osu_sc_12t_ms.sh |
| 921 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_osu_sc_12t_hs qflow/sky130osu.sh \ |
| 922 | ${QFLOW_STAGING_$*}/sky130_osu_sc_12t_hs.sh |
| 923 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_osu_sc_15t_ls qflow/sky130osu.sh \ |
| 924 | ${QFLOW_STAGING_$*}/sky130_osu_sc_15t_ls.sh |
| 925 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_osu_sc_15t_ms qflow/sky130osu.sh \ |
| 926 | ${QFLOW_STAGING_$*}/sky130_osu_sc_15t_ms.sh |
| 927 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_osu_sc_15t_hs qflow/sky130osu.sh \ |
| 928 | ${QFLOW_STAGING_$*}/sky130_osu_sc_15t_hs.sh |
| 929 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_osu_sc_18t_ls qflow/sky130osu.sh \ |
| 930 | ${QFLOW_STAGING_$*}/sky130_osu_sc_18t_ls.sh |
| 931 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_osu_sc_18t_ms qflow/sky130osu.sh \ |
| 932 | ${QFLOW_STAGING_$*}/sky130_osu_sc_18t_ms.sh |
| 933 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_osu_sc_18t_hs qflow/sky130osu.sh \ |
| 934 | ${QFLOW_STAGING_$*}/sky130_osu_sc_18t_hs.sh |
| 935 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par ${QFLOW_STAGING_$*}/sky130_fd_sc_hd.par |
| 936 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par ${QFLOW_STAGING_$*}/sky130_fd_sc_hdll.par |
| 937 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par ${QFLOW_STAGING_$*}/sky130_fd_sc_hvl.par |
| 938 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par ${QFLOW_STAGING_$*}/sky130_fd_sc_hs.par |
| 939 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par ${QFLOW_STAGING_$*}/sky130_fd_sc_ms.par |
| 940 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par ${QFLOW_STAGING_$*}/sky130_fd_sc_lp.par |
| 941 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par ${QFLOW_STAGING_$*}/sky130_fd_sc_ls.par |
| 942 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par \ |
| 943 | ${QFLOW_STAGING_$*}/sky130_osu_sc_12t_ls.par |
| 944 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par \ |
| 945 | ${QFLOW_STAGING_$*}/sky130_osu_sc_12t_ms.par |
| 946 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par \ |
| 947 | ${QFLOW_STAGING_$*}/sky130_osu_sc_12t_hs.par |
| 948 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par \ |
| 949 | ${QFLOW_STAGING_$*}/sky130_osu_sc_15t_ls.par |
| 950 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par \ |
| 951 | ${QFLOW_STAGING_$*}/sky130_osu_sc_15t_ms.par |
| 952 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par \ |
| 953 | ${QFLOW_STAGING_$*}/sky130_osu_sc_15t_hs.par |
| 954 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par \ |
| 955 | ${QFLOW_STAGING_$*}/sky130_osu_sc_18t_ls.par |
| 956 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par \ |
| 957 | ${QFLOW_STAGING_$*}/sky130_osu_sc_18t_ms.par |
| 958 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par \ |
| 959 | ${QFLOW_STAGING_$*}/sky130_osu_sc_18t_hs.par |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 960 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 961 | netgen-%: netgen/${TECH}_setup.tcl |
| 962 | mkdir -p ${NETGENTOP_STAGING_$*} |
| 963 | mkdir -p ${NETGEN_STAGING_$*} |
| 964 | rm -f ${NETGEN_STAGING_$*}/${SKY130$*}_setup.tcl |
| 965 | rm -f ${NETGEN_STAGING_$*}/setup.tcl |
| 966 | ${CPP} ${SKY130$*_DEFS} netgen/${TECH}_setup.tcl \ |
| 967 | ${NETGEN_STAGING_$*}/${SKY130$*}_setup.tcl |
| 968 | (cd ${NETGEN_STAGING_$*} ; ln -s ${SKY130$*}_setup.tcl setup.tcl) |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 969 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 970 | irsim-%: irsim |
| 971 | mkdir -p ${IRSIMTOP_STAGING_$*} |
| 972 | mkdir -p ${IRSIM_STAGING_$*} |
| 973 | rm -f ${IRSIM_STAGING_$*}/${SKY130$*}_*.prm |
Tim Edwards | 6f01cd2 | 2022-01-17 19:23:53 -0500 | [diff] [blame] | 974 | for corner in ${IRSIM_CORNERS} ; do \ |
Tim Edwards | d7c3a52 | 2022-10-01 17:58:29 -0400 | [diff] [blame] | 975 | cat irsim/header.txt irsim/sky130_$$corner > \ |
| 976 | ${IRSIM_STAGING_$*}/${SKY130$*}_$$corner ; \ |
Tim Edwards | 6f01cd2 | 2022-01-17 19:23:53 -0500 | [diff] [blame] | 977 | done |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 978 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 979 | xcircuit-%: xcircuit/${TECH}.xcircuitrc |
| 980 | rm -rf ${XCIRCUIT_STAGING_$*} |
| 981 | mkdir -p ${XCIRCUITTOP_STAGING_$*} |
| 982 | mkdir -p ${XCIRCUIT_STAGING_$*} |
| 983 | rm -f ${XCIRCUIT_STAGING_$*}/*.lps |
| 984 | rm -f ${XCIRCUIT_STAGING_$*}/${SKY130$*}.xcircuitrc |
| 985 | ${CPP} ${SKY130$*_DEFS} xcircuit/ngspice.lps ${XCIRCUIT_STAGING_$*}/ngspice.lps |
| 986 | ${CPP} ${SKY130$*_DEFS} xcircuit/sky130_fd_pr.lps \ |
| 987 | ${XCIRCUIT_STAGING_$*}/sky130_fd_pr.lps |
| 988 | ${CPP} ${SKY130$*_DEFS} -DHD_SPICE=${HD_SPICE} -DSPIEXT=${SPIEXT} \ |
| 989 | xcircuit/sky130_fd_sc_hd.lps ${XCIRCUIT_STAGING_$*}/sky130_fd_sc_hd.lps |
| 990 | ${CPP} ${SKY130$*_DEFS} xcircuit/${TECH}.xcircuitrc \ |
| 991 | ${XCIRCUIT_STAGING_$*}/${SKY130$*}.xcircuitrc |
Tim Edwards | e4c4409 | 2021-02-12 10:18:56 -0500 | [diff] [blame] | 992 | |
Tim Edwards | 5ed94ff | 2022-06-16 15:07:53 -0400 | [diff] [blame] | 993 | klayout-%: ${KLAYOUT_PATH} |
| 994 | if test "x${KLAYOUT_PATH}" != "x" ; then \ |
| 995 | rm -rf ${KLAYOUT_STAGING_$*} ; \ |
| 996 | mkdir -p ${KLAYOUT_STAGING_$*} ; \ |
| 997 | mkdir -p ${KLAYOUT_STAGING_$*}/tech ; \ |
| 998 | mkdir -p ${KLAYOUT_STAGING_$*}/drc ; \ |
| 999 | mkdir -p ${KLAYOUT_STAGING_$*}/lvs ; \ |
| 1000 | mkdir -p ${KLAYOUT_STAGING_$*}/scripts ; \ |
| 1001 | mkdir -p ${KLAYOUT_STAGING_$*}/pymacros ; \ |
| 1002 | fi |
| 1003 | # Copy lvs and pymacro directories from the repository. Other files |
Tim Edwards | ebfa108 | 2022-11-02 10:11:53 -0400 | [diff] [blame] | 1004 | # are rearranged to the preferred structure. Do not recursively copy |
| 1005 | # the lvs/ directory, as the subdirectory testing/ is huge and |
| 1006 | # nonessential. |
Tim Edwards | 5ed94ff | 2022-06-16 15:07:53 -0400 | [diff] [blame] | 1007 | if test "x${KLAYOUT_PATH}" != "x" ; then \ |
Tim Edwards | ebfa108 | 2022-11-02 10:11:53 -0400 | [diff] [blame] | 1008 | cp -p ${KLAYOUT_PATH}/sky130_tech/tech/sky130/lvs/* ${KLAYOUT_STAGING_$*}/lvs/ ; \ |
Tim Edwards | 5ed94ff | 2022-06-16 15:07:53 -0400 | [diff] [blame] | 1009 | cp -rp ${KLAYOUT_PATH}/sky130_tech/tech/sky130/pymacros/* ${KLAYOUT_STAGING_$*}/pymacros/ ; \ |
| 1010 | cp ${KLAYOUT_PATH}/sky130_tech/tech/sky130/${TECH}.lyp ${KLAYOUT_STAGING_$*}/tech/${SKY130$*}.lyp ; \ |
| 1011 | cp ${KLAYOUT_PATH}/sky130_tech/tech/sky130/${TECH}.lyt ${KLAYOUT_STAGING_$*}/tech/${SKY130$*}.lyt ; \ |
| 1012 | cp -rp ${KLAYOUT_PATH}/scripts/* ${KLAYOUT_STAGING_$*}/scripts/ ; \ |
| 1013 | fi |
Tim Edwards | b622469 | 2022-10-14 12:46:58 -0400 | [diff] [blame] | 1014 | # Copy original DRC deck from open_pdks (is this useful?) |
| 1015 | cp klayout/sky130.lydrc ${KLAYOUT_STAGING_$*}/drc/${SKY130$*}.lydrc |
Tim Edwards | 5ed94ff | 2022-06-16 15:07:53 -0400 | [diff] [blame] | 1016 | # Copy drc directory contents from the Efabless Open MPW precheck repository |
| 1017 | if test "x${PRECHECK_PATH}" != "x" ; then \ |
| 1018 | cp ${PRECHECK_PATH}/checks/tech-files/sky130A_mr.drc ${KLAYOUT_STAGING_$*}/drc/${SKY130$*}_mr.drc ; \ |
| 1019 | cp -rp ${PRECHECK_PATH}/checks/drc_checks/klayout/* ${KLAYOUT_STAGING_$*}/drc/ ; \ |
| 1020 | fi |
| 1021 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1022 | xschem-%: ${XSCHEM_PATH} |
Johan Euphrosine | 7c6ad6e | 2022-02-02 10:30:41 +0900 | [diff] [blame] | 1023 | if test "x${XSCHEM_PATH}" != "x" ; then \ |
| 1024 | rm -rf ${XSCHEM_STAGING_$*} ; \ |
| 1025 | mkdir -p ${XSCHEMTOP_STAGING_$*} ; \ |
| 1026 | mkdir -p ${XSCHEM_STAGING_$*} ; \ |
| 1027 | fi |
Tim Edwards | 5d49867 | 2022-11-02 11:24:26 -0400 | [diff] [blame] | 1028 | # Copy the xschem repository (other than .git, if it exists) |
| 1029 | # then remove the larger of the two example directories |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 1030 | if test "x${XSCHEM_PATH}" != "x" ; then \ |
Johan Euphrosine | 7c6ad6e | 2022-02-02 10:30:41 +0900 | [diff] [blame] | 1031 | cp -rp ${XSCHEM_PATH}/* ${XSCHEM_STAGING_$*} ; \ |
Tim Edwards | 5d49867 | 2022-11-02 11:24:26 -0400 | [diff] [blame] | 1032 | rm -rf ${XSCHEM_STAGING_$*}/decred_hash_macro ; \ |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 1033 | fi |
Tim Edwards | 52af776 | 2022-02-18 13:49:23 -0500 | [diff] [blame] | 1034 | # xschem setup is for sky130A. Fix for the given target variant. |
| 1035 | # Add custom additions to the startup file for open_pdk. |
Johan Euphrosine | 7c6ad6e | 2022-02-02 10:30:41 +0900 | [diff] [blame] | 1036 | if test "x${XSCHEM_PATH}" != "x" ; then \ |
| 1037 | cat ${XSCHEM_PATH}/xschemrc | \ |
Tim Edwards | 52af776 | 2022-02-18 13:49:23 -0500 | [diff] [blame] | 1038 | ${SED} -e "/sky130A/s#sky130A#TECHNAME#" \ |
| 1039 | > ${XSCHEM_STAGING_$*}/xschemrc_source ; \ |
| 1040 | ${CPP} ${SKY130$*_DEFS} ${XSCHEM_STAGING_$*}/xschemrc_source \ |
| 1041 | ${XSCHEM_STAGING_$*}/xschemrc ; \ |
| 1042 | cat ${XSCHEM_PATH}/xschem_verilog_import/xschemrc | \ |
| 1043 | ${SED} -e "/sky130A/s#sky130A#TECHNAME#" \ |
| 1044 | > ${XSCHEM_STAGING_$*}/xschemrc_source ; \ |
| 1045 | ${CPP} ${SKY130$*_DEFS} ${XSCHEM_STAGING_$*}/xschemrc_source \ |
| 1046 | ${XSCHEM_STAGING_$*}/xschem_verilog_import/xschemrc ; \ |
| 1047 | rm -f ${XSCHEM_STAGING_$*}/xschemrc_source ; \ |
| 1048 | cat ./custom/xschem/xschemrc_append >> ${XSCHEM_STAGING_$*}/xschemrc ; \ |
| 1049 | fi |
| 1050 | # In the sky130A variant, remove the reram schematic/symbol and references |
| 1051 | if test "x${XSCHEM_PATH}" != "x" ; then \ |
| 1052 | if test "x$*" == "xA" ; then \ |
Tim Edwards | 7d5df63 | 2022-07-02 17:18:20 -0400 | [diff] [blame] | 1053 | rm -f ${XSCHEM_STAGING_$*}/sky130_tests/test_reram* ; \ |
Tim Edwards | 52af776 | 2022-02-18 13:49:23 -0500 | [diff] [blame] | 1054 | rm -f ${XSCHEM_STAGING_$*}/sky130_tests/tb_reram* ; \ |
| 1055 | rm -f ${XSCHEM_STAGING_$*}/sky130_fd_pr/reram* ; \ |
| 1056 | cat ${XSCHEM_STAGING_$*}/sky130_tests/top.sch | \ |
Tim Edwards | 7d5df63 | 2022-07-02 17:18:20 -0400 | [diff] [blame] | 1057 | ${SED} -e "/^C.*{.*reram.*}.*{.*[^}] *$$/,/.*} *$$/d" \ |
| 1058 | -e "/^C.*{.*reram.*}.*{.*} *$$/d" \ |
Tim Edwards | 52af776 | 2022-02-18 13:49:23 -0500 | [diff] [blame] | 1059 | > ${XSCHEM_STAGING_$*}/temp ; \ |
| 1060 | mv ${XSCHEM_STAGING_$*}/temp ${XSCHEM_STAGING_$*}/sky130_tests/top.sch ; \ |
| 1061 | fi ; \ |
Johan Euphrosine | 7c6ad6e | 2022-02-02 10:30:41 +0900 | [diff] [blame] | 1062 | fi |
Tim Edwards | 476f742 | 2021-12-16 19:59:35 -0500 | [diff] [blame] | 1063 | |
Tim Edwards | 8e80d78 | 2022-03-01 01:29:16 -0500 | [diff] [blame] | 1064 | openlane-%: 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 | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1065 | mkdir -p ${OPENLANETOP_STAGING_$*} |
| 1066 | mkdir -p ${OPENLANE_STAGING_$*} |
| 1067 | rm -rf ${OPENLANE_STAGING_$*}/custom_cells/* |
| 1068 | mkdir -p ${OPENLANE_STAGING_$*}/sky130_fd_sc_hd |
| 1069 | mkdir -p ${OPENLANE_STAGING_$*}/sky130_fd_sc_hs |
| 1070 | mkdir -p ${OPENLANE_STAGING_$*}/sky130_fd_sc_ls |
| 1071 | mkdir -p ${OPENLANE_STAGING_$*}/sky130_fd_sc_ms |
| 1072 | mkdir -p ${OPENLANE_STAGING_$*}/sky130_fd_sc_hdll |
| 1073 | mkdir -p ${OPENLANE_STAGING_$*}/sky130_fd_sc_hvl |
| 1074 | mkdir -p ${OPENLANE_STAGING_$*}/sky130_osu_sc_t18 |
| 1075 | rm -f ${OPENLANE_STAGING_$*}/common_pdn.info |
| 1076 | rm -f ${OPENLANE_STAGING_$*}/config.tcl |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 1077 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1078 | rm -f ${OPENLANE_STAGING_$*}/sky130_fd_sc_hd/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 1079 | done |
| 1080 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1081 | rm -f ${OPENLANE_STAGING_$*}/sky130_fd_sc_hs/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 1082 | done |
| 1083 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1084 | rm -f ${OPENLANE_STAGING_$*}/sky130_fd_sc_hdll/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 1085 | done |
| 1086 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1087 | rm -f ${OPENLANE_STAGING_$*}/sky130_fd_sc_ls/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 1088 | done |
| 1089 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1090 | rm -f ${OPENLANE_STAGING_$*}/sky130_fd_sc_ms/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 1091 | done |
| 1092 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1093 | rm -f ${OPENLANE_STAGING_$*}/sky130_fd_sc_hvl/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 1094 | done |
| 1095 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1096 | rm -f ${OPENLANE_STAGING_$*}/sky130_osu_sc_t18/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 1097 | done |
| 1098 | |
Tim Edwards | 8e80d78 | 2022-03-01 01:29:16 -0500 | [diff] [blame] | 1099 | rm -f ${OPENLANE_STAGING_$*}/rules.openrcx.sky130$*.min.magic |
| 1100 | rm -f ${OPENLANE_STAGING_$*}/rules.openrcx.sky130$*.nom.magic |
| 1101 | rm -f ${OPENLANE_STAGING_$*}/rules.openrcx.sky130$*.max.magic |
| 1102 | |
Donn | 41c0908 | 2022-04-14 22:59:39 +0000 | [diff] [blame] | 1103 | rm -f ${OPENLANE_STAGING_$*}/rules.openrcx.sky130$*.min.spef_extractor |
| 1104 | rm -f ${OPENLANE_STAGING_$*}/rules.openrcx.sky130$*.nom.spef_extractor |
| 1105 | rm -f ${OPENLANE_STAGING_$*}/rules.openrcx.sky130$*.max.spef_extractor |
| 1106 | |
Tim Edwards | ae72c88 | 2022-10-01 11:14:48 -0400 | [diff] [blame] | 1107 | rm -f ${OPENLANE_STAGING_$*}/rules.openrcx.sky130$*.min.calibre |
| 1108 | rm -f ${OPENLANE_STAGING_$*}/rules.openrcx.sky130$*.nom.calibre |
| 1109 | rm -f ${OPENLANE_STAGING_$*}/rules.openrcx.sky130$*.max.calibre |
| 1110 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1111 | cp -r openlane/custom_cells ${OPENLANE_STAGING_$*} |
Donn | e829452 | 2022-07-29 14:40:07 +0200 | [diff] [blame] | 1112 | cp -r openlane/cvc ${OPENLANE_STAGING_$*} |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1113 | ${CPP} ${SKY130$*_DEFS} openlane/config.tcl ${OPENLANE_STAGING_$*}/config.tcl |
Tim Edwards | 8e80d78 | 2022-03-01 01:29:16 -0500 | [diff] [blame] | 1114 | |
| 1115 | ${CPP} ${SKY130$*_DEFS} openlane/rules.openrcx.sky130$*.min.magic \ |
| 1116 | ${OPENLANE_STAGING_$*}/rules.openrcx.sky130$*.min.magic |
| 1117 | ${CPP} ${SKY130$*_DEFS} openlane/rules.openrcx.sky130$*.nom.magic \ |
| 1118 | ${OPENLANE_STAGING_$*}/rules.openrcx.sky130$*.nom.magic |
| 1119 | ${CPP} ${SKY130$*_DEFS} openlane/rules.openrcx.sky130$*.max.magic \ |
| 1120 | ${OPENLANE_STAGING_$*}/rules.openrcx.sky130$*.max.magic |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 1121 | |
Donn | 41c0908 | 2022-04-14 22:59:39 +0000 | [diff] [blame] | 1122 | ${CPP} ${SKY130$*_DEFS} openlane/rules.openrcx.sky130$*.min.spef_extractor \ |
| 1123 | ${OPENLANE_STAGING_$*}/rules.openrcx.sky130$*.min.spef_extractor |
| 1124 | ${CPP} ${SKY130$*_DEFS} openlane/rules.openrcx.sky130$*.nom.spef_extractor \ |
| 1125 | ${OPENLANE_STAGING_$*}/rules.openrcx.sky130$*.nom.spef_extractor |
| 1126 | ${CPP} ${SKY130$*_DEFS} openlane/rules.openrcx.sky130$*.max.spef_extractor \ |
| 1127 | ${OPENLANE_STAGING_$*}/rules.openrcx.sky130$*.max.spef_extractor |
| 1128 | |
Tim Edwards | 50e63b0 | 2022-10-17 14:47:42 -0400 | [diff] [blame] | 1129 | # Only install the calibre-derived rule files if they exist in the source |
| 1130 | if test -f openlane/rules.openrcx.sky130$*.min.calibre ; then \ |
| 1131 | ${CPP} ${SKY130$*_DEFS} openlane/rules.openrcx.sky130$*.min.calibre \ |
| 1132 | ${OPENLANE_STAGING_$*}/rules.openrcx.sky130$*.min.calibre ;\ |
| 1133 | fi |
| 1134 | if test -f openlane/rules.openrcx.sky130$*.nom.calibre ; then \ |
| 1135 | ${CPP} ${SKY130$*_DEFS} openlane/rules.openrcx.sky130$*.nom.calibre \ |
| 1136 | ${OPENLANE_STAGING_$*}/rules.openrcx.sky130$*.nom.calibre ;\ |
| 1137 | fi |
| 1138 | if test -f openlane/rules.openrcx.sky130$*.max.calibre ; then \ |
| 1139 | ${CPP} ${SKY130$*_DEFS} openlane/rules.openrcx.sky130$*.max.calibre \ |
| 1140 | ${OPENLANE_STAGING_$*}/rules.openrcx.sky130$*.max.calibre ;\ |
| 1141 | fi |
Tim Edwards | ae72c88 | 2022-10-01 11:14:48 -0400 | [diff] [blame] | 1142 | |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 1143 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1144 | ${CPP} -quiet ${SKY130$*_DEFS} openlane/sky130_fd_sc_hd/$$file \ |
| 1145 | ${OPENLANE_STAGING_$*}/sky130_fd_sc_hd/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 1146 | done |
| 1147 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1148 | ${CPP} -quiet ${SKY130$*_DEFS} openlane/sky130_fd_sc_hs/$$file \ |
| 1149 | ${OPENLANE_STAGING_$*}/sky130_fd_sc_hs/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 1150 | done |
| 1151 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1152 | ${CPP} -quiet ${SKY130$*_DEFS} openlane/sky130_fd_sc_ms/$$file \ |
| 1153 | ${OPENLANE_STAGING_$*}/sky130_fd_sc_ms/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 1154 | done |
| 1155 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1156 | ${CPP} -quiet ${SKY130$*_DEFS} openlane/sky130_fd_sc_ls/$$file \ |
| 1157 | ${OPENLANE_STAGING_$*}/sky130_fd_sc_ls/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 1158 | done |
| 1159 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1160 | ${CPP} -quiet ${SKY130$*_DEFS} openlane/sky130_fd_sc_hdll/$$file \ |
| 1161 | ${OPENLANE_STAGING_$*}/sky130_fd_sc_hdll/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 1162 | done |
| 1163 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1164 | ${CPP} -quiet ${SKY130$*_DEFS} openlane/sky130_fd_sc_hvl/$$file \ |
| 1165 | ${OPENLANE_STAGING_$*}/sky130_fd_sc_hvl/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 1166 | done |
| 1167 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1168 | ${CPP} -quiet ${SKY130$*_DEFS} openlane/sky130_osu_sc_t18/config.tcl \ |
| 1169 | ${OPENLANE_STAGING_$*}/sky130_osu_sc_t18/config.tcl |
| 1170 | ${CPP} -quiet ${SKY130$*_DEFS} openlane/sky130_osu_sc_t18/tracks.info \ |
| 1171 | ${OPENLANE_STAGING_$*}/sky130_osu_sc_t18/tracks.info |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1172 | |
Tim Edwards | d6c91b4 | 2023-01-04 17:03:58 -0500 | [diff] [blame] | 1173 | vendor-A: primitive-build-A io-build-A sram-build-A sram-space-build-A digital-hd-build-A digital-hvl-build-A digital-hdll-build-A digital-lp-build-A digital-hs-build-A digital-ms-build-A digital-ls-build-A alpha-build-A osu-t12-build-A osu-t15-build-A osu-t18-build-A |
Tim Edwards | 7519dfb | 2022-02-10 11:39:09 -0500 | [diff] [blame] | 1174 | |
Tim Edwards | d6c91b4 | 2023-01-04 17:03:58 -0500 | [diff] [blame] | 1175 | vendor-B: primitive-build-B io-build-B sram-build-B sram-space-build-B digital-hd-build-B digital-hvl-build-B digital-hdll-build-B digital-lp-build-B digital-hs-build-B digital-ms-build-B digital-ls-build-B alpha-build-B osu-t12-build-B osu-t15-build-B osu-t18-build-B |
Tim Edwards | 7519dfb | 2022-02-10 11:39:09 -0500 | [diff] [blame] | 1176 | |
| 1177 | primitive-build-%: |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 1178 | # Build targets conditionally based on what repositories or submodules |
| 1179 | # were selected or initialized. To be done: Allow a library version |
| 1180 | # to be specified that overrides "latest". |
| 1181 | if test -d ${SKYWATER_LIBS_PATH}/sky130_fd_pr/latest/cells ; then \ |
| 1182 | echo "Building primitives library and simulation models" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1183 | make primitive-$*;\ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 1184 | fi |
Tim Edwards | 7519dfb | 2022-02-10 11:39:09 -0500 | [diff] [blame] | 1185 | |
| 1186 | io-build-%: |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 1187 | if test -d ${SKYWATER_LIBS_PATH}/sky130_fd_io/latest/cells ; then \ |
| 1188 | echo "Building padframe I/O libraries" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1189 | make io-$* ;\ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 1190 | fi |
Tim Edwards | 7519dfb | 2022-02-10 11:39:09 -0500 | [diff] [blame] | 1191 | |
| 1192 | digital-hd-build-%: |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 1193 | # This assumes that at least the HD library submodule exists. Also it |
| 1194 | # assumes that the same library version is used for all libraries, which |
| 1195 | # is fine with "latest" but otherwise probably invalid. |
| 1196 | if test -d ${SKYWATER_LIBS_PATH}/sky130_fd_sc_hd/latest/cells ; then \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1197 | echo "Building digital high-density standard cell library" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1198 | make digital-hd-$* ;\ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1199 | fi |
Tim Edwards | 7519dfb | 2022-02-10 11:39:09 -0500 | [diff] [blame] | 1200 | |
| 1201 | digital-hvl-build-%: |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1202 | if test -d ${SKYWATER_LIBS_PATH}/sky130_fd_sc_hvl/latest/cells ; then \ |
| 1203 | echo "Building digital high-voltage standard cell library" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1204 | make digital-hvl-$* ;\ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1205 | fi |
Tim Edwards | 7519dfb | 2022-02-10 11:39:09 -0500 | [diff] [blame] | 1206 | |
| 1207 | digital-hdll-build-%: |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1208 | if test -d ${SKYWATER_LIBS_PATH}/sky130_fd_sc_hdll/latest/cells ; then \ |
| 1209 | echo "Building digital high-density low-leakage standard cell library" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1210 | make digital-hdll-$* ;\ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1211 | fi |
Tim Edwards | 7519dfb | 2022-02-10 11:39:09 -0500 | [diff] [blame] | 1212 | |
| 1213 | digital-lp-build-%: |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1214 | if test -d ${SKYWATER_LIBS_PATH}/sky130_fd_sc_lp/latest/cells ; then \ |
| 1215 | echo "Building digital low-power standard cell library" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1216 | make digital-lp-$* ;\ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1217 | fi |
Tim Edwards | 7519dfb | 2022-02-10 11:39:09 -0500 | [diff] [blame] | 1218 | |
| 1219 | digital-hs-build-%: |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1220 | if test -d ${SKYWATER_LIBS_PATH}/sky130_fd_sc_hs/latest/cells ; then \ |
| 1221 | echo "Building digital high-speed standard cell library" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1222 | make digital-hs-$* ;\ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1223 | fi |
Tim Edwards | 7519dfb | 2022-02-10 11:39:09 -0500 | [diff] [blame] | 1224 | |
| 1225 | digital-ms-build-%: |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1226 | if test -d ${SKYWATER_LIBS_PATH}/sky130_fd_sc_ms/latest/cells ; then \ |
| 1227 | echo "Building digital medium-speed standard cell library" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1228 | make digital-ms-$* ;\ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1229 | fi |
Tim Edwards | 7519dfb | 2022-02-10 11:39:09 -0500 | [diff] [blame] | 1230 | |
| 1231 | digital-ls-build-%: |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1232 | if test -d ${SKYWATER_LIBS_PATH}/sky130_fd_sc_ls/latest/cells ; then \ |
| 1233 | echo "Building digital low-speed standard cell library" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1234 | make digital-ls-$* ;\ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 1235 | fi |
Tim Edwards | 7519dfb | 2022-02-10 11:39:09 -0500 | [diff] [blame] | 1236 | |
| 1237 | alpha-build-%: |
Tim Edwards | e5e43b5 | 2021-09-08 11:46:04 -0400 | [diff] [blame] | 1238 | if test "x${ALPHA_PATH}" != "x" ; then \ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 1239 | echo "Building alphanumeric layout libraries" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1240 | make alpha-$* ;\ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 1241 | fi |
Tim Edwards | 7519dfb | 2022-02-10 11:39:09 -0500 | [diff] [blame] | 1242 | |
| 1243 | sram-build-%: |
Tim Edwards | e5e43b5 | 2021-09-08 11:46:04 -0400 | [diff] [blame] | 1244 | if test "x${SRAM_PATH}" != "x" ; then \ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 1245 | echo "Building SRAM macro library" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1246 | make sram-$* ;\ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 1247 | fi |
Tim Edwards | 7519dfb | 2022-02-10 11:39:09 -0500 | [diff] [blame] | 1248 | |
Tim Edwards | d6c91b4 | 2023-01-04 17:03:58 -0500 | [diff] [blame] | 1249 | sram-space-build-%: |
| 1250 | if test "x${SRAM_SPACE_PATH}" != "x" ; then \ |
| 1251 | echo "Building SRAM build-space library" ;\ |
| 1252 | make sram-space-$* ;\ |
| 1253 | fi |
| 1254 | |
Tim Edwards | 7519dfb | 2022-02-10 11:39:09 -0500 | [diff] [blame] | 1255 | osu-t12-build-%: |
Tim Edwards | e5e43b5 | 2021-09-08 11:46:04 -0400 | [diff] [blame] | 1256 | if test "x${OSU_T12_PATH}" != "x" ; then \ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 1257 | echo "Building OSU 12-track-high standard cell library" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1258 | make osu-t12-$* ;\ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 1259 | fi |
Tim Edwards | 7519dfb | 2022-02-10 11:39:09 -0500 | [diff] [blame] | 1260 | |
| 1261 | osu-t15-build-%: |
Tim Edwards | e5e43b5 | 2021-09-08 11:46:04 -0400 | [diff] [blame] | 1262 | if test "x${OSU_T15_PATH}" != "x" ; then \ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 1263 | echo "Building OSU 15-track-high standard cell library" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1264 | make osu-t15-$* ;\ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 1265 | fi |
Tim Edwards | 7519dfb | 2022-02-10 11:39:09 -0500 | [diff] [blame] | 1266 | |
| 1267 | osu-t18-build-%: |
Tim Edwards | e5e43b5 | 2021-09-08 11:46:04 -0400 | [diff] [blame] | 1268 | if test "x${OSU_T18_PATH}" != "x" ; then \ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 1269 | echo "Building OSU 18-track-high standard cell library" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1270 | make osu-t18-$* ;\ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 1271 | fi |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1272 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1273 | primitive-%: |
Tim Edwards | 106e38b | 2020-09-20 13:07:54 -0400 | [diff] [blame] | 1274 | # Install device subcircuits from vendor files |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1275 | ${STAGE} -source ${SKYWATER_LIBS_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 995c133 | 2020-09-25 15:33:58 -0400 | [diff] [blame] | 1276 | -ngspice sky130_fd_pr/latest/models/* \ |
Tim Edwards | fd20a0a | 2021-08-31 19:58:51 -0400 | [diff] [blame] | 1277 | filter=custom/scripts/rename_models.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1278 | 2>&1 | tee -a ${SKY130$*}_make.log |
Tim 'mithro' Ansell | 3c6913c | 2021-06-13 10:35:33 -0700 | [diff] [blame] | 1279 | # Install device layouts from custom sources |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1280 | ${STAGE} -source ./custom -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 7e29496 | 2021-05-04 20:33:17 -0400 | [diff] [blame] | 1281 | -gds sky130_fd_pr/*.gds \ |
| 1282 | options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1283 | -library primitive sky130_fd_pr 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | 4697a17 | 2021-11-05 22:47:07 -0400 | [diff] [blame] | 1284 | # Install base device library from vendor files. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1285 | ${STAGE} -source ${SKYWATER_LIBS_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 7e29496 | 2021-05-04 20:33:17 -0400 | [diff] [blame] | 1286 | -gds %l/latest/cells/*/*.gds \ |
Tim Edwards | 4697a17 | 2021-11-05 22:47:07 -0400 | [diff] [blame] | 1287 | no-copy=custom/sky130_fd_pr/*.gds \ |
| 1288 | include=custom/sky130_fd_pr/*.gds \ |
Tim Edwards | 7e29496 | 2021-05-04 20:33:17 -0400 | [diff] [blame] | 1289 | compile-only \ |
Tim Edwards | b6e8c7e | 2021-03-30 12:20:15 -0400 | [diff] [blame] | 1290 | options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 106e38b | 2020-09-20 13:07:54 -0400 | [diff] [blame] | 1291 | -lef %l/latest/cells/*/*.magic.lef compile-only \ |
Tim Edwards | bfc8269 | 2020-09-20 21:33:08 -0400 | [diff] [blame] | 1292 | -spice %l/latest/cells/*/*.spice filter=custom/scripts/rename_cells.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1293 | -library primitive sky130_fd_pr 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | e60b486 | 2020-11-23 16:56:52 -0500 | [diff] [blame] | 1294 | # 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] | 1295 | cat ./custom/models/short.spice >> \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1296 | ${STAGING_PATH}/${SKY130$*}/libs.tech/ngspice/sky130_fd_pr__model__r+c.model.spice |
Tim Edwards | e60b486 | 2020-11-23 16:56:52 -0500 | [diff] [blame] | 1297 | # Custom: Add diodes as subcircuits to the r+c models file |
| 1298 | cat ./custom/models/diode.spice >> \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1299 | ${STAGING_PATH}/${SKY130$*}/libs.tech/ngspice/sky130_fd_pr__model__r+c.model.spice |
Tim Edwards | f63ee05 | 2021-04-29 15:13:45 -0400 | [diff] [blame] | 1300 | # Custom: Add resistors as subcircuits to the r+c models file |
| 1301 | cat ./custom/models/resistor.spice >> \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1302 | ${STAGING_PATH}/${SKY130$*}/libs.tech/ngspice/sky130_fd_pr__model__r+c.model.spice |
Tim Edwards | e60b486 | 2020-11-23 16:56:52 -0500 | [diff] [blame] | 1303 | |
Tim Edwards | b94b6c1 | 2022-02-05 16:47:22 -0500 | [diff] [blame] | 1304 | # Custom: Patch the r+c.mrp1monte.spice file to make the generic poly |
| 1305 | # resistor a type "R" device. |
| 1306 | ${PATCH} -p1 -f -d ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 1307 | < custom/patches/sky130_fd_pr_2.patch \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1308 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | f499ad2 | 2021-05-04 16:55:21 -0400 | [diff] [blame] | 1309 | # Custom: Patch the models to remove the substrate pin from the PNP |
| 1310 | # device, which has no independent substrate pin (collector=substrate) |
Tim Edwards | b94b6c1 | 2022-02-05 16:47:22 -0500 | [diff] [blame] | 1311 | ${PATCH} -p4 -f -d ${STAGING_PATH}/${SKY130$*}/libs.ref/${PR_SPICE} \ |
Tim Edwards | f499ad2 | 2021-05-04 16:55:21 -0400 | [diff] [blame] | 1312 | < custom/patches/sky130_fd_pr_3.patch \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1313 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | f63ee05 | 2021-04-29 15:13:45 -0400 | [diff] [blame] | 1314 | # Custom: Patch the ngspice models to add the HV diffusion resistor subcircuits |
Tim Edwards | b94b6c1 | 2022-02-05 16:47:22 -0500 | [diff] [blame] | 1315 | ${PATCH} -p2 -f -d ${STAGING_PATH}/${SKY130$*}/libs.tech/ngspice \ |
Tim Edwards | f63ee05 | 2021-04-29 15:13:45 -0400 | [diff] [blame] | 1316 | < custom/patches/sky130_fd_pr_5.patch \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1317 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | f499ad2 | 2021-05-04 16:55:21 -0400 | [diff] [blame] | 1318 | # Fix up the PNP model file before running the next modification |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1319 | head -15 ${STAGING_PATH}/${SKY130$*}/libs.ref/${PR_SPICE}/sky130_fd_pr__pnp_05v5_W3p40L3p40.model.spice > ${STAGING_PATH}/${SKY130$*}/libs.ref/${PR_SPICE}/temp |
| 1320 | tail -39 ${STAGING_PATH}/${SKY130$*}/libs.ref/${PR_SPICE}/sky130_fd_pr__pnp_05v5_W3p40L3p40.model.spice >> ${STAGING_PATH}/${SKY130$*}/libs.ref/${PR_SPICE}/temp |
| 1321 | mv ${STAGING_PATH}/${SKY130$*}/libs.ref/${PR_SPICE}/temp ${STAGING_PATH}/${SKY130$*}/libs.ref/${PR_SPICE}/sky130_fd_pr__pnp_05v5_W3p40L3p40.model.spice |
Tim Edwards | b0cb087 | 2021-08-27 09:43:55 -0400 | [diff] [blame] | 1322 | # Custom: Add the PNP 3.4x3.4um device model to the includes in "all.spice" |
Tim Edwards | 8b5d694 | 2021-09-08 11:12:50 -0400 | [diff] [blame] | 1323 | ./custom/scripts/fix_spice_includes.py ${EF_FORMAT} \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1324 | ${STAGING_PATH}/${SKY130$*}/libs.tech/ngspice/all.spice \ |
| 1325 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | 1491dd7 | 2022-03-31 08:57:28 -0400 | [diff] [blame] | 1326 | # Custom: Add the PNP 3.4x3.4um device model to the includes in "montecarlo.spice" |
| 1327 | ./custom/scripts/fix_spice_includes2.py ${EF_FORMAT} \ |
| 1328 | ${STAGING_PATH}/${SKY130$*}/libs.tech/ngspice/parameters/montecarlo.spice \ |
| 1329 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | 9fdf5f0 | 2021-05-03 16:15:03 -0400 | [diff] [blame] | 1330 | # Custom: Parse the (commented out) statistics blocks and generate |
| 1331 | # ngspice-compatible monte carlo parameters for mismatch and process |
Tim Edwards | 7325e44 | 2022-03-03 16:51:52 -0500 | [diff] [blame] | 1332 | ./custom/scripts/mismatch_params.py ${EF_FORMAT} -variant=${SKY130$*} \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1333 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | 7325e44 | 2022-03-03 16:51:52 -0500 | [diff] [blame] | 1334 | ./custom/scripts/mismatch_params.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1335 | ${STAGING_PATH}/${SKY130$*}/libs.tech/ngspice \ |
| 1336 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | 7325e44 | 2022-03-03 16:51:52 -0500 | [diff] [blame] | 1337 | ./custom/scripts/process_params.py ${EF_FORMAT} -variant=${SKY130$*} \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1338 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | 8e5afcc | 2022-04-02 20:42:53 -0400 | [diff] [blame] | 1339 | ./custom/scripts/process_params.py \ |
| 1340 | ${STAGING_PATH}/${SKY130$*}/libs.tech/ngspice \ |
| 1341 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | 7325e44 | 2022-03-03 16:51:52 -0500 | [diff] [blame] | 1342 | ./custom/scripts/montecarlo_hack.py -variant=${SKY130$*} \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1343 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | 1c74f85 | 2021-06-09 16:46:50 -0400 | [diff] [blame] | 1344 | # Custom: Change vt to local_vt in one file for Xyce compatibilty |
| 1345 | ./custom/scripts/xyce_hack.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1346 | ${STAGING_PATH}/${SKY130$*}/libs.ref/${PR_SPICE}/sky130_fd_pr__res_iso_pw.model.spice \ |
| 1347 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | c12c795 | 2021-08-26 11:23:42 -0400 | [diff] [blame] | 1348 | # Custom: Remove ACM model parameters from BSIM3 devices |
| 1349 | ./custom/scripts/xyce_hack2.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1350 | ${STAGING_PATH}/${SKY130$*}/libs.ref/${PR_SPICE}/sky130_fd_pr__special_nfet_pass.pm3.spice \ |
| 1351 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | c12c795 | 2021-08-26 11:23:42 -0400 | [diff] [blame] | 1352 | ./custom/scripts/xyce_hack2.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1353 | ${STAGING_PATH}/${SKY130$*}/libs.ref/${PR_SPICE}/sky130_fd_pr__special_pfet_pass.pm3.spice \ |
| 1354 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | c12c795 | 2021-08-26 11:23:42 -0400 | [diff] [blame] | 1355 | ./custom/scripts/xyce_hack2.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1356 | ${STAGING_PATH}/${SKY130$*}/libs.ref/${PR_SPICE}/sky130_fd_pr__special_nfet_latch.pm3.spice \ |
| 1357 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | c12c795 | 2021-08-26 11:23:42 -0400 | [diff] [blame] | 1358 | |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 1359 | # Install custom corrected/enhanced sky130.lib.spice |
| 1360 | cp custom/models/sky130.lib.spice \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1361 | ${STAGING_PATH}/${SKY130$*}/libs.tech/ngspice \ |
| 1362 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | 956e302 | 2021-05-27 20:43:26 -0400 | [diff] [blame] | 1363 | # Custom: Add special device ID layers to bipolar layouts in magic |
| 1364 | # to make the extraction models correct. |
Tim Edwards | 7325e44 | 2022-03-03 16:51:52 -0500 | [diff] [blame] | 1365 | ./custom/scripts/add_bipolar_ids.py ${EF_FORMAT} -variant=${SKY130$*} \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1366 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | 9fdf5f0 | 2021-05-03 16:15:03 -0400 | [diff] [blame] | 1367 | |
Tim Edwards | 10aa9ab | 2021-03-15 17:46:29 -0400 | [diff] [blame] | 1368 | # Custom: Add "spinit" file |
| 1369 | cat ./custom/models/spinit >> \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1370 | ${STAGING_PATH}/${SKY130$*}/libs.tech/ngspice/spinit |
Tim Edwards | 10aa9ab | 2021-03-15 17:46:29 -0400 | [diff] [blame] | 1371 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1372 | io-%: |
Ahmed Ghazy | 59370ab | 2020-10-29 02:04:45 +0200 | [diff] [blame] | 1373 | # Install custom additions to I/O pad library |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1374 | ${STAGE} -source ./custom -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | b063d37 | 2021-11-12 16:15:18 -0500 | [diff] [blame] | 1375 | -verilog %l/verilog/*.v compile-only rename=sky130_ef_io \ |
Ahmed Ghazy | 59370ab | 2020-10-29 02:04:45 +0200 | [diff] [blame] | 1376 | -cdl %l/cdl/*.cdl \ |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1377 | -spice %l/spice/*.spice \ |
Tim Edwards | 89f6ff4 | 2021-12-02 09:48:21 -0500 | [diff] [blame] | 1378 | -lib %l/lib/*.lib \ |
Tim Edwards | 11af192 | 2022-10-27 14:58:52 -0400 | [diff] [blame] | 1379 | -gds %l/gds/*.gds options=custom/scripts/gds_import_io.tcl \ |
Tim Edwards | 002b5dd | 2022-10-29 17:55:04 -0400 | [diff] [blame] | 1380 | -lef %l/lef/*.lef exclude=sky130_fd_io__top_xres4v2.lef,sky130_fd_io__top_power_hvc_wpadv2.lef \ |
Tim Edwards | b063d37 | 2021-11-12 16:15:18 -0500 | [diff] [blame] | 1381 | compile-only rename=sky130_ef_io \ |
Tim Edwards | 002b5dd | 2022-10-29 17:55:04 -0400 | [diff] [blame] | 1382 | -lef %l/lef/sky130_fd_io__top_*.lef \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1383 | -library general sky130_fd_io 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | b5bfca8 | 2022-03-04 11:29:56 -0500 | [diff] [blame] | 1384 | # Copy the GDS file for the GPIOv2 cell, then run the script that fixes it. |
| 1385 | cp ${SKYWATER_LIBS_PATH}/sky130_fd_io/latest/cells/top_gpiov2/sky130_fd_io__top_gpiov2.gds \ |
| 1386 | ${STAGING_PATH}/${SKY130$*}/libs.ref/${IO_GDS} |
| 1387 | ./custom/scripts/fix_gpiov2_gds.py \ |
| 1388 | ${STAGING_PATH}/${SKY130$*}/libs.ref/${IO_GDS}/sky130_fd_io__top_gpiov2.gds |
Tim Edwards | 11af192 | 2022-10-27 14:58:52 -0400 | [diff] [blame] | 1389 | # Copy the GDS file for the HVC power pad, then run the script that fixes it. |
| 1390 | cp ${SKYWATER_LIBS_PATH}/sky130_fd_io/latest/cells/top_power_hvc_wpadv2/sky130_fd_io__top_power_hvc_wpadv2.gds \ |
| 1391 | ${STAGING_PATH}/${SKY130$*}/libs.ref/${IO_GDS} |
| 1392 | ./custom/scripts/fix_vddio_pad_gds.py \ |
| 1393 | ${STAGING_PATH}/${SKY130$*}/libs.ref/${IO_GDS}/sky130_fd_io__top_power_hvc_wpadv2.gds |
| 1394 | |
Tim Edwards | 002b5dd | 2022-10-29 17:55:04 -0400 | [diff] [blame] | 1395 | # Copy the GDS file for the HVC power pad overlay, then run the script that fixes it. |
| 1396 | cp ${SKYWATER_LIBS_PATH}/sky130_fd_io/latest/cells/overlay_vddio_hvc/sky130_fd_io__overlay_vddio_hvc.gds \ |
| 1397 | ${STAGING_PATH}/${SKY130$*}/libs.ref/${IO_GDS} |
| 1398 | ./custom/scripts/fix_vddio_overlay_gds.py \ |
| 1399 | ${STAGING_PATH}/${SKY130$*}/libs.ref/${IO_GDS}/sky130_fd_io__overlay_vddio_hvc.gds |
| 1400 | |
Tim Edwards | 11af192 | 2022-10-27 14:58:52 -0400 | [diff] [blame] | 1401 | # Copy the GDS file for the HVC ground pad, then run the script that fixes it. |
| 1402 | cp ${SKYWATER_LIBS_PATH}/sky130_fd_io/latest/cells/top_ground_hvc_wpad/sky130_fd_io__top_ground_hvc_wpad.gds \ |
| 1403 | ${STAGING_PATH}/${SKY130$*}/libs.ref/${IO_GDS} |
| 1404 | ./custom/scripts/fix_vssio_pad_gds.py \ |
| 1405 | ${STAGING_PATH}/${SKY130$*}/libs.ref/${IO_GDS}/sky130_fd_io__top_ground_hvc_wpad.gds |
| 1406 | |
Tim Edwards | 002b5dd | 2022-10-29 17:55:04 -0400 | [diff] [blame] | 1407 | # Copy the GDS file for the HVC ground pad overlay, then run the script that fixes it. |
| 1408 | cp ${SKYWATER_LIBS_PATH}/sky130_fd_io/latest/cells/overlay_vssio_hvc/sky130_fd_io__overlay_vssio_hvc.gds \ |
| 1409 | ${STAGING_PATH}/${SKY130$*}/libs.ref/${IO_GDS} |
| 1410 | ./custom/scripts/fix_vssio_overlay_gds.py \ |
| 1411 | ${STAGING_PATH}/${SKY130$*}/libs.ref/${IO_GDS}/sky130_fd_io__overlay_vssio_hvc.gds |
| 1412 | |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1413 | # Install SkyWater I/O pad library |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1414 | ${STAGE} -source ${SKYWATER_LIBS_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 1134fbc | 2020-10-12 22:35:42 -0400 | [diff] [blame] | 1415 | -cdl %l/latest/cells/*/*.cdl ignore=topography compile-only \ |
Tim Edwards | 4697a17 | 2021-11-05 22:47:07 -0400 | [diff] [blame] | 1416 | include=custom/sky130_fd_io/cdl/*.cdl \ |
emayecs | cbcb465 | 2021-08-30 21:29:20 -0400 | [diff] [blame] | 1417 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | b063d37 | 2021-11-12 16:15:18 -0500 | [diff] [blame] | 1418 | -lef %l/latest/cells/*/*.lef annotate lefopts=-hide compile-only \ |
Tim Edwards | 002b5dd | 2022-10-29 17:55:04 -0400 | [diff] [blame] | 1419 | filter=custom/scripts/fix_io_lef.py \ |
Tim Edwards | b063d37 | 2021-11-12 16:15:18 -0500 | [diff] [blame] | 1420 | no-copy=sky130_fd_io__top_xres4v2.lef \ |
Tim Edwards | 002b5dd | 2022-10-29 17:55:04 -0400 | [diff] [blame] | 1421 | include=sky130_fd_io__top_xres4v2.lef,sky130_fd_io__top_power_hvc_wpadv2.lef \ |
Tim Edwards | 91ddc9a | 2021-06-24 22:50:30 -0400 | [diff] [blame] | 1422 | exclude=*.magic.lef,sky130_ef_io.lef \ |
emayecs | cbcb465 | 2021-08-30 21:29:20 -0400 | [diff] [blame] | 1423 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | 1134fbc | 2020-10-12 22:35:42 -0400 | [diff] [blame] | 1424 | -doc %l/latest/cells/*/*.pdf \ |
| 1425 | -lib %l/latest/timing/*.lib \ |
| 1426 | -gds %l/latest/cells/*/*.gds compile-only \ |
emayecs | cbcb465 | 2021-08-30 21:29:20 -0400 | [diff] [blame] | 1427 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | bc7b8ac | 2022-10-31 17:35:41 -0400 | [diff] [blame] | 1428 | options=custom/scripts/gds_import_io.tcl \ |
Tim Edwards | 002b5dd | 2022-10-29 17:55:04 -0400 | [diff] [blame] | 1429 | no-copy=sky130_fd_io__top_gpiov2.gds,sky130_fd_io__top_ground_hvc_wpad.gds,sky130_fd_io__top_power_hvc_wpadv2.gds,sky130_fd_io__overlay_vssio_hvc.gds,sky130_fd_io__overlay_vddio_hvc.gds \ |
| 1430 | include=sky130_fd_io__top_gpiov2.gds,sky130_fd_io__top_ground_hvc_wpad.gds,sky130_fd_io__top_power_hvc_wpadv2.gds,sky130_fd_io__overlay_vssio_hvc.gds,sky130_fd_io__overlay_vddio_hvc.gds \ |
Tim Edwards | c979202 | 2021-11-15 17:51:05 -0500 | [diff] [blame] | 1431 | -verilog %l/latest/cells/*/*.*.v \ |
Tim Edwards | b063d37 | 2021-11-12 16:15:18 -0500 | [diff] [blame] | 1432 | -verilog %l/latest/cells/*/*.v exclude=*.*.v,sky130_ef_io.v \ |
Tim Edwards | 1134fbc | 2020-10-12 22:35:42 -0400 | [diff] [blame] | 1433 | compile-only filter=custom/scripts/inc_verilog.py \ |
emayecs | cbcb465 | 2021-08-30 21:29:20 -0400 | [diff] [blame] | 1434 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1435 | -library general sky130_fd_io 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | 1134fbc | 2020-10-12 22:35:42 -0400 | [diff] [blame] | 1436 | # Remove the base verilog files which have already been included into |
| 1437 | # the libraries |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1438 | ${RM} ${STAGING_PATH}/${SKY130$*}/libs.ref/${IO_VERILOG}/*.*.v |
Tim Edwards | f35c607 | 2021-06-15 16:00:27 -0400 | [diff] [blame] | 1439 | # Add a maskhint set for the GPIO pad .mag view to prevent problems writing |
| 1440 | # when writing HVI to GDS during hierarchical adjustments. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1441 | ${ADDPROP} ${STAGING_PATH}/${SKY130$*} sky130_fd_io sky130_fd_io__top_gpiov2 \ |
Tim Edwards | f35c607 | 2021-06-15 16:00:27 -0400 | [diff] [blame] | 1442 | "MASKHINTS_HVI 1346 17198 5828 19224 13700 1890 15920 2360 24 17522 1778 20612" -mag |
Tim Edwards | 5ed94ff | 2022-06-16 15:07:53 -0400 | [diff] [blame] | 1443 | # Run the add_properties.py script to add extraction information to layout |
| 1444 | # cells for which the intended device cannot be extracted. |
| 1445 | ./custom/scripts/add_properties.py ${EF_FORMAT} -variant=${SKY130$*} \ |
| 1446 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | f35c607 | 2021-06-15 16:00:27 -0400 | [diff] [blame] | 1447 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1448 | digital-hd-%: |
Tim Edwards | aac3d1a | 2021-06-15 16:37:10 -0400 | [diff] [blame] | 1449 | # Install custom additions to standard cell libraries |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1450 | ${STAGE} -source ./custom -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | aac3d1a | 2021-06-15 16:37:10 -0400 | [diff] [blame] | 1451 | -gds %l/gds/*.gds options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 126d906 | 2022-07-28 14:38:09 -0400 | [diff] [blame] | 1452 | -lef %l/lef/*.lef compile-only rename=sky130_ef_sc_hd.lef \ |
Tim Edwards | aac3d1a | 2021-06-15 16:37:10 -0400 | [diff] [blame] | 1453 | -verilog %l/verilog/*.v \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1454 | -library digital sky130_fd_sc_hd 2>&1 | tee -a ${SKY130$*}_make.log |
Ahmed Ghazy | a285ff4 | 2020-07-27 17:52:14 +0200 | [diff] [blame] | 1455 | # Install all SkyWater digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1456 | ${STAGE} -source ${SKYWATER_LIBS_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | fb7b41f | 2022-01-18 11:46:30 -0500 | [diff] [blame] | 1457 | -techlef %l/latest/tech/*.tlef filter=custom/scripts/fix_techlef$*.py \ |
Tim Edwards | e75eaa4 | 2022-03-03 22:54:54 -0500 | [diff] [blame] | 1458 | rename=sky130_fd_sc_hd__nom.tlef \ |
Tim Edwards | fd5136b | 2020-07-08 22:57:04 -0400 | [diff] [blame] | 1459 | -spice %l/latest/cells/*/*.spice compile-only \ |
emayecs | cbcb465 | 2021-08-30 21:29:20 -0400 | [diff] [blame] | 1460 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | a56526b | 2022-10-19 13:09:11 -0400 | [diff] [blame] | 1461 | filter=custom/scripts/fix_sparecell_spice.py \ |
Tim Edwards | 99a5cf9 | 2021-05-16 16:42:49 -0400 | [diff] [blame] | 1462 | filter=custom/scripts/fix_device_models.py \ |
Tim Edwards | fd5136b | 2020-07-08 22:57:04 -0400 | [diff] [blame] | 1463 | -cdl %l/latest/cells/*/*.cdl ignore=topography compile-only \ |
Tim Edwards | a56526b | 2022-10-19 13:09:11 -0400 | [diff] [blame] | 1464 | filter=custom/scripts/fix_sparecell_cdl.py \ |
Tim Edwards | 0f76b78 | 2022-10-20 21:35:48 -0400 | [diff] [blame] | 1465 | filter=custom/scripts/fix_serxtors_cdl.py \ |
emayecs | cbcb465 | 2021-08-30 21:29:20 -0400 | [diff] [blame] | 1466 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | b063d37 | 2021-11-12 16:15:18 -0500 | [diff] [blame] | 1467 | -lef %l/latest/cells/*/*.lef \ |
Tim Edwards | 126d906 | 2022-07-28 14:38:09 -0400 | [diff] [blame] | 1468 | exclude=*.magic.lef,sky130_ef_sc_hd.lef lefopts=-toplayer \ |
Tim Edwards | fd17c61 | 2021-12-07 14:27:19 -0500 | [diff] [blame] | 1469 | filter=custom/scripts/fix_digital_lef.py \ |
Tim Edwards | b063d37 | 2021-11-12 16:15:18 -0500 | [diff] [blame] | 1470 | annotate compile-only \ |
emayecs | cbcb465 | 2021-08-30 21:29:20 -0400 | [diff] [blame] | 1471 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | fd5136b | 2020-07-08 22:57:04 -0400 | [diff] [blame] | 1472 | -doc %l/latest/cells/*/*.pdf \ |
Tim Edwards | 7ea4166 | 2021-10-29 18:46:38 -0400 | [diff] [blame] | 1473 | -lib %l/latest/timing/*.lib filter=custom/scripts/add_wireloads.py \ |
Anton Blanchard | 86f9b0c | 2022-04-05 21:07:40 +1000 | [diff] [blame] | 1474 | filter=custom/scripts/fix_default_fanout_load.py \ |
Tim Edwards | 8f6aff1 | 2022-09-20 20:41:51 -0400 | [diff] [blame] | 1475 | filter=custom/scripts/fix_related_bias_pins.py \ |
Tim Edwards | fd5136b | 2020-07-08 22:57:04 -0400 | [diff] [blame] | 1476 | -gds %l/latest/cells/*/*.gds compile-only \ |
Tim Edwards | 4697a17 | 2021-11-05 22:47:07 -0400 | [diff] [blame] | 1477 | no-copy=custom/sky130_fd_sc_hd/gds/sky130_fd*.gds \ |
| 1478 | include=custom/sky130_fd_sc_hd/gds/sky130_ef*.gds \ |
Tim Edwards | b6e8c7e | 2021-03-30 12:20:15 -0400 | [diff] [blame] | 1479 | options=custom/scripts/gds_import_setup.tcl \ |
emayecs | cbcb465 | 2021-08-30 21:29:20 -0400 | [diff] [blame] | 1480 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | 4697a17 | 2021-11-05 22:47:07 -0400 | [diff] [blame] | 1481 | -verilog %l/latest/models/*/*.v \ |
| 1482 | exclude=*.*.v include=custom/sky130_fd_sc_hd/verilog/*.v \ |
| 1483 | compile-only \ |
Tim Edwards | 995c133 | 2020-09-25 15:33:58 -0400 | [diff] [blame] | 1484 | rename=primitives filter=custom/scripts/inc_verilog.py \ |
emayecs | cbcb465 | 2021-08-30 21:29:20 -0400 | [diff] [blame] | 1485 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | 995c133 | 2020-09-25 15:33:58 -0400 | [diff] [blame] | 1486 | -verilog %l/latest/cells/*/*.*.v \ |
Tim Edwards | 217bc1d | 2022-12-02 13:19:46 -0500 | [diff] [blame] | 1487 | filter=custom/scripts/fix_verilog.py \ |
Tim Edwards | 995c133 | 2020-09-25 15:33:58 -0400 | [diff] [blame] | 1488 | -verilog %l/latest/cells/*/*.v exclude=*.*.v,primitives.v \ |
| 1489 | compile-only filter=custom/scripts/inc_verilog.py \ |
emayecs | cbcb465 | 2021-08-30 21:29:20 -0400 | [diff] [blame] | 1490 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1491 | -library digital sky130_fd_sc_hd 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | e75eaa4 | 2022-03-03 22:54:54 -0500 | [diff] [blame] | 1492 | # Create minimum/maximum technology LEF files |
| 1493 | ./custom/scripts/make_minmax_techlef.py ${EF_FORMAT} -variant=${SKY130$*} \ |
| 1494 | -library=hd 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1495 | # Add a maskhint set for the tap cell .mag view to prevent problems writing |
Tim Edwards | 16a9caa | 2021-01-08 13:10:06 -0500 | [diff] [blame] | 1496 | # when writing NSDM and PSDM to GDS during hierarchical adjustments. |
Tim Edwards | 22f014d | 2022-01-26 10:37:03 -0500 | [diff] [blame] | 1497 | ${ADDPROP} ${STAGING_PATH}/${SKY130$*} sky130_fd_sc_hd \ |
| 1498 | sky130_fd_sc_hd__tapvpwrvgnd_1 \ |
Tim Edwards | 772de8c | 2022-01-19 14:02:04 -0500 | [diff] [blame] | 1499 | "MASKHINTS_PSDM 0 38 92 195" -mag |
Tim Edwards | 22f014d | 2022-01-26 10:37:03 -0500 | [diff] [blame] | 1500 | ${ADDPROP} ${STAGING_PATH}/${SKY130$*} sky130_fd_sc_hd \ |
| 1501 | sky130_fd_sc_hd__tapvpwrvgnd_1 \ |
Tim Edwards | 772de8c | 2022-01-19 14:02:04 -0500 | [diff] [blame] | 1502 | "MASKHINTS_NSDM 0 279 92 506" -mag |
Tim Edwards | 22f014d | 2022-01-26 10:37:03 -0500 | [diff] [blame] | 1503 | # Quick solution to extraction issue---connect VNB label pwell to rest |
| 1504 | ${ADDLAYER} ${STAGING_PATH}/${SKY130$*} sky130_fd_sc_hd \ |
| 1505 | sky130_fd_sc_hd__a21bo_1 \ |
| 1506 | pwell "29 17 69 157" -mag |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1507 | # Remove the base verilog files which have already been included into |
| 1508 | # the libraries |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1509 | ${RM} ${STAGING_PATH}/${SKY130$*}/libs.ref/${HD_VERILOG}/*.*.v |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1510 | # Apply extra PDK patches until they get fixed properly in the source |
Tim Edwards | b94b6c1 | 2022-02-05 16:47:22 -0500 | [diff] [blame] | 1511 | ${PATCH} -p1 -f -d ${STAGING_PATH}/${SKY130$*}/libs.ref/${HD_VERILOG} \ |
Tim Edwards | 24f2950 | 2021-10-13 15:49:00 -0400 | [diff] [blame] | 1512 | < custom/patches/hd_wire_syntax.patch \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1513 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1514 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1515 | digital-hdll-%: |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1516 | # Install all SkyWater digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1517 | ${STAGE} -source ${SKYWATER_LIBS_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | fb7b41f | 2022-01-18 11:46:30 -0500 | [diff] [blame] | 1518 | -techlef %l/latest/tech/*.tlef filter=custom/scripts/fix_techlef$*.py \ |
Tim Edwards | e75eaa4 | 2022-03-03 22:54:54 -0500 | [diff] [blame] | 1519 | rename=sky130_fd_sc_hdll__nom.tlef \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1520 | -spice %l/latest/cells/*/*.spice compile-only \ |
| 1521 | sort=../common/sort_pdkfiles.py \ |
| 1522 | filter=custom/scripts/fix_device_models.py \ |
| 1523 | -cdl %l/latest/cells/*/*.cdl ignore=topography compile-only \ |
| 1524 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | b063d37 | 2021-11-12 16:15:18 -0500 | [diff] [blame] | 1525 | -lef %l/latest/cells/*/*.lef annotate compile-only \ |
| 1526 | exclude=*.magic.lef lefopts=-toplayer \ |
Tim Edwards | fd17c61 | 2021-12-07 14:27:19 -0500 | [diff] [blame] | 1527 | filter=custom/scripts/fix_digital_lef.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1528 | sort=../common/sort_pdkfiles.py \ |
| 1529 | -doc %l/latest/cells/*/*.pdf \ |
Anton Blanchard | c189d86 | 2022-04-05 15:40:06 +1000 | [diff] [blame] | 1530 | -lib %l/latest/timing/*.lib filter=custom/scripts/add_wireloads.py \ |
Anton Blanchard | 86f9b0c | 2022-04-05 21:07:40 +1000 | [diff] [blame] | 1531 | filter=custom/scripts/fix_default_fanout_load.py \ |
Tim Edwards | 8f6aff1 | 2022-09-20 20:41:51 -0400 | [diff] [blame] | 1532 | filter=custom/scripts/fix_related_bias_pins.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1533 | -gds %l/latest/cells/*/*.gds compile-only \ |
| 1534 | options=custom/scripts/gds_import_setup.tcl \ |
| 1535 | sort=../common/sort_pdkfiles.py \ |
| 1536 | -verilog %l/latest/models/*/*.v exclude=*.*.v compile-only \ |
| 1537 | rename=primitives filter=custom/scripts/inc_verilog.py \ |
| 1538 | sort=../common/sort_pdkfiles.py \ |
| 1539 | -verilog %l/latest/cells/*/*.*.v \ |
| 1540 | -verilog %l/latest/cells/*/*.v exclude=*.*.v,primitives.v \ |
| 1541 | compile-only filter=custom/scripts/inc_verilog.py \ |
| 1542 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1543 | -library digital sky130_fd_sc_hdll 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | e75eaa4 | 2022-03-03 22:54:54 -0500 | [diff] [blame] | 1544 | # Create minimum/maximum technology LEF files |
| 1545 | ./custom/scripts/make_minmax_techlef.py ${EF_FORMAT} -variant=${SKY130$*} \ |
| 1546 | -library=hdll 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1547 | # Remove the base verilog files which have already been included into |
| 1548 | # the libraries |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1549 | ${RM} ${STAGING_PATH}/${SKY130$*}/libs.ref/${HDLL_VERILOG}/*.*.v |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1550 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1551 | digital-hvl-%: |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1552 | # Install custom additions to standard cell libraries |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1553 | ${STAGE} -source ./custom -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1554 | -gds %l/gds/*.gds options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 11fb930 | 2021-12-28 21:26:02 -0500 | [diff] [blame] | 1555 | -spice %l/spice/*.spice \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1556 | -library digital sky130_fd_sc_hvl 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1557 | # Install all SkyWater digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1558 | ${STAGE} -source ${SKYWATER_LIBS_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | fb7b41f | 2022-01-18 11:46:30 -0500 | [diff] [blame] | 1559 | -techlef %l/latest/tech/*.tlef filter=custom/scripts/fix_techlef$*.py \ |
Tim Edwards | e75eaa4 | 2022-03-03 22:54:54 -0500 | [diff] [blame] | 1560 | rename=sky130_fd_sc_hvl__nom.tlef \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1561 | -spice %l/latest/cells/*/*.spice compile-only \ |
Tim Edwards | 11fb930 | 2021-12-28 21:26:02 -0500 | [diff] [blame] | 1562 | no-copy=custom/sky130_fd_sc_hvl/spice/sky130_fd*.spice \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1563 | sort=../common/sort_pdkfiles.py \ |
| 1564 | filter=custom/scripts/fix_device_models.py \ |
| 1565 | -cdl %l/latest/cells/*/*.cdl ignore=topography compile-only \ |
| 1566 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | b063d37 | 2021-11-12 16:15:18 -0500 | [diff] [blame] | 1567 | -lef %l/latest/cells/*/*.lef annotate compile-only \ |
| 1568 | exclude=*.magic.lef lefopts=-toplayer \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1569 | sort=../common/sort_pdkfiles.py \ |
| 1570 | -doc %l/latest/cells/*/*.pdf \ |
Anton Blanchard | c189d86 | 2022-04-05 15:40:06 +1000 | [diff] [blame] | 1571 | -lib %l/latest/timing/*.lib filter=custom/scripts/add_wireloads.py \ |
Anton Blanchard | 86f9b0c | 2022-04-05 21:07:40 +1000 | [diff] [blame] | 1572 | filter=custom/scripts/fix_default_fanout_load.py \ |
Tim Edwards | 8f6aff1 | 2022-09-20 20:41:51 -0400 | [diff] [blame] | 1573 | filter=custom/scripts/fix_related_bias_pins.py \ |
Tim Edwards | 5becac1 | 2022-09-27 15:01:23 -0400 | [diff] [blame] | 1574 | filter=custom/scripts/fix_mismatched_opcond.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1575 | -gds %l/latest/cells/*/*.gds compile-only \ |
Tim Edwards | 4697a17 | 2021-11-05 22:47:07 -0400 | [diff] [blame] | 1576 | include=custom/sky130_fd_sc_hvl/gds/sky130_ef*.gds \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1577 | options=custom/scripts/gds_import_setup.tcl \ |
| 1578 | sort=../common/sort_pdkfiles.py \ |
| 1579 | -verilog %l/latest/models/*/*.v exclude=*.*.v compile-only \ |
| 1580 | rename=primitives filter=custom/scripts/inc_verilog.py \ |
| 1581 | sort=../common/sort_pdkfiles.py \ |
| 1582 | -verilog %l/latest/cells/*/*.*.v \ |
| 1583 | -verilog %l/latest/cells/*/*.v exclude=*.*.v,primitives.v \ |
| 1584 | compile-only filter=custom/scripts/inc_verilog.py \ |
| 1585 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1586 | -library digital sky130_fd_sc_hvl 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | e75eaa4 | 2022-03-03 22:54:54 -0500 | [diff] [blame] | 1587 | # Create minimum/maximum technology LEF files |
| 1588 | ./custom/scripts/make_minmax_techlef.py ${EF_FORMAT} -variant=${SKY130$*} \ |
| 1589 | -library=hvl 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | f6a94bd | 2021-06-01 11:02:58 -0400 | [diff] [blame] | 1590 | # Add a maskhint to the HVL level shifter to represent the HVI layer as |
| 1591 | # drawn in the GDS, and so eliminate the HVI-to-nwell DRC error. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1592 | ${ADDPROP} ${STAGING_PATH}/${SKY130$*} sky130_fd_sc_hvl sky130_fd_sc_hvl__lsbufhv2lv_1 \ |
Tim Edwards | f6a94bd | 2021-06-01 11:02:58 -0400 | [diff] [blame] | 1593 | "MASKHINTS_HVI 22 34 706 1316" -mag |
Tim Edwards | 995c133 | 2020-09-25 15:33:58 -0400 | [diff] [blame] | 1594 | # Remove the base verilog files which have already been included into |
| 1595 | # the libraries |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1596 | ${RM} ${STAGING_PATH}/${SKY130$*}/libs.ref/${HVL_VERILOG}/*.*.v |
Tim Edwards | f63ee05 | 2021-04-29 15:13:45 -0400 | [diff] [blame] | 1597 | # Custom: Patch the HVL library to correct the resistor device names |
Tim Edwards | b94b6c1 | 2022-02-05 16:47:22 -0500 | [diff] [blame] | 1598 | ${PATCH} -p3 -f -d ${STAGING_PATH}/${SKY130$*}/libs.ref/${HVL_SPICE} \ |
Tim Edwards | 16b050b | 2021-05-17 16:45:34 -0400 | [diff] [blame] | 1599 | < custom/patches/sky130_fd_pr_${HVL_PATCH4}.patch \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1600 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | b94b6c1 | 2022-02-05 16:47:22 -0500 | [diff] [blame] | 1601 | ${PATCH} -p3 -f -d ${STAGING_PATH}/${SKY130$*}/libs.ref/${HVL_CDL} \ |
Tim Edwards | f63ee05 | 2021-04-29 15:13:45 -0400 | [diff] [blame] | 1602 | < custom/patches/sky130_fd_pr_6.patch \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1603 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1604 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1605 | digital-lp-%: |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1606 | # Install all SkyWater digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1607 | ${STAGE} -source ${SKYWATER_LIBS_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | fb7b41f | 2022-01-18 11:46:30 -0500 | [diff] [blame] | 1608 | -techlef %l/latest/tech/*.tlef filter=custom/scripts/fix_techlef$*.py \ |
Tim Edwards | e75eaa4 | 2022-03-03 22:54:54 -0500 | [diff] [blame] | 1609 | rename=sky130_fd_sc_lp__nom.tlef \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1610 | -spice %l/latest/cells/*/*.spice compile-only \ |
| 1611 | sort=../common/sort_pdkfiles.py \ |
| 1612 | filter=custom/scripts/fix_device_models.py \ |
| 1613 | -cdl %l/latest/cells/*/*.cdl ignore=topography compile-only \ |
| 1614 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | b063d37 | 2021-11-12 16:15:18 -0500 | [diff] [blame] | 1615 | -lef %l/latest/cells/*/*.lef annotate compile-only \ |
| 1616 | exclude=*.magic.lef lefopts=-toplayer \ |
Tim Edwards | fd17c61 | 2021-12-07 14:27:19 -0500 | [diff] [blame] | 1617 | filter=custom/scripts/fix_digital_lef.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1618 | sort=../common/sort_pdkfiles.py \ |
| 1619 | -doc %l/latest/cells/*/*.pdf \ |
Anton Blanchard | c189d86 | 2022-04-05 15:40:06 +1000 | [diff] [blame] | 1620 | -lib %l/latest/timing/*.lib filter=custom/scripts/add_wireloads.py \ |
Anton Blanchard | 86f9b0c | 2022-04-05 21:07:40 +1000 | [diff] [blame] | 1621 | filter=custom/scripts/fix_default_fanout_load.py \ |
Tim Edwards | 8f6aff1 | 2022-09-20 20:41:51 -0400 | [diff] [blame] | 1622 | filter=custom/scripts/fix_related_bias_pins.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1623 | -gds %l/latest/cells/*/*.gds compile-only \ |
| 1624 | options=custom/scripts/gds_import_setup.tcl \ |
| 1625 | sort=../common/sort_pdkfiles.py \ |
| 1626 | -verilog %l/latest/models/*/*.v exclude=*.*.v compile-only \ |
| 1627 | rename=primitives filter=custom/scripts/inc_verilog.py \ |
| 1628 | sort=../common/sort_pdkfiles.py \ |
| 1629 | -verilog %l/latest/cells/*/*.*.v \ |
| 1630 | -verilog %l/latest/cells/*/*.v exclude=*.*.v,primitives.v \ |
| 1631 | compile-only filter=custom/scripts/inc_verilog.py \ |
| 1632 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1633 | -library digital sky130_fd_sc_lp 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | e75eaa4 | 2022-03-03 22:54:54 -0500 | [diff] [blame] | 1634 | # Create minimum/maximum technology LEF files |
| 1635 | ./custom/scripts/make_minmax_techlef.py ${EF_FORMAT} -variant=${SKY130$*} \ |
| 1636 | -library=lp 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1637 | # Remove the base verilog files which have already been included into |
| 1638 | # the libraries |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1639 | ${RM} ${STAGING_PATH}/${SKY130$*}/libs.ref/${LP_VERILOG}/*.*.v |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1640 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1641 | digital-hs-%: |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1642 | # Install custom additions to standard cell libraries |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1643 | ${STAGE} -source ./custom -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1644 | -gds %l/gds/*.gds options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1645 | -library digital sky130_fd_sc_hs 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1646 | # Install all SkyWater digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1647 | ${STAGE} -source ${SKYWATER_LIBS_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | fb7b41f | 2022-01-18 11:46:30 -0500 | [diff] [blame] | 1648 | -techlef %l/latest/tech/*.tlef filter=custom/scripts/fix_techlef$*.py \ |
Tim Edwards | e75eaa4 | 2022-03-03 22:54:54 -0500 | [diff] [blame] | 1649 | rename=sky130_fd_sc_hs__nom.tlef \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1650 | -spice %l/latest/cells/*/*.spice compile-only \ |
| 1651 | sort=../common/sort_pdkfiles.py \ |
| 1652 | filter=custom/scripts/fix_device_models.py \ |
| 1653 | -cdl %l/latest/cells/*/*.cdl ignore=topography compile-only \ |
| 1654 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | b063d37 | 2021-11-12 16:15:18 -0500 | [diff] [blame] | 1655 | -lef %l/latest/cells/*/*.lef annotate compile-only \ |
| 1656 | exclude=*.magic.lef lefopts=-toplayer \ |
Tim Edwards | fd17c61 | 2021-12-07 14:27:19 -0500 | [diff] [blame] | 1657 | filter=custom/scripts/fix_digital_lef.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1658 | sort=../common/sort_pdkfiles.py \ |
| 1659 | -doc %l/latest/cells/*/*.pdf \ |
Anton Blanchard | c189d86 | 2022-04-05 15:40:06 +1000 | [diff] [blame] | 1660 | -lib %l/latest/timing/*.lib filter=custom/scripts/add_wireloads.py \ |
Anton Blanchard | 86f9b0c | 2022-04-05 21:07:40 +1000 | [diff] [blame] | 1661 | filter=custom/scripts/fix_default_fanout_load.py \ |
Tim Edwards | 8f6aff1 | 2022-09-20 20:41:51 -0400 | [diff] [blame] | 1662 | filter=custom/scripts/fix_related_bias_pins.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1663 | -gds %l/latest/cells/*/*.gds compile-only \ |
Tim Edwards | 4697a17 | 2021-11-05 22:47:07 -0400 | [diff] [blame] | 1664 | no-copy=custom/sky130_fd_sc_hs/gds/sky130_fd*.gds \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1665 | options=custom/scripts/gds_import_setup.tcl \ |
| 1666 | sort=../common/sort_pdkfiles.py \ |
| 1667 | -verilog %l/latest/models/*/*.v exclude=*.*.v compile-only \ |
| 1668 | rename=primitives filter=custom/scripts/inc_verilog.py \ |
| 1669 | sort=../common/sort_pdkfiles.py \ |
| 1670 | -verilog %l/latest/cells/*/*.*.v \ |
| 1671 | -verilog %l/latest/cells/*/*.v exclude=*.*.v,primitives.v \ |
| 1672 | compile-only filter=custom/scripts/inc_verilog.py \ |
| 1673 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1674 | -library digital sky130_fd_sc_hs 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | e75eaa4 | 2022-03-03 22:54:54 -0500 | [diff] [blame] | 1675 | # Create minimum/maximum technology LEF files |
| 1676 | ./custom/scripts/make_minmax_techlef.py ${EF_FORMAT} -variant=${SKY130$*} \ |
| 1677 | -library=hs 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1678 | # Remove the base verilog files which have already been included into |
| 1679 | # the libraries |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1680 | ${RM} ${STAGING_PATH}/${SKY130$*}/libs.ref/${HS_VERILOG}/*.*.v |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1681 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1682 | digital-ms-%: |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1683 | # Install all SkyWater digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1684 | ${STAGE} -source ${SKYWATER_LIBS_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | fb7b41f | 2022-01-18 11:46:30 -0500 | [diff] [blame] | 1685 | -techlef %l/latest/tech/*.tlef filter=custom/scripts/fix_techlef$*.py \ |
Tim Edwards | e75eaa4 | 2022-03-03 22:54:54 -0500 | [diff] [blame] | 1686 | rename=sky130_fd_sc_ms__nom.tlef \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1687 | -spice %l/latest/cells/*/*.spice compile-only \ |
| 1688 | sort=../common/sort_pdkfiles.py \ |
| 1689 | filter=custom/scripts/fix_device_models.py \ |
| 1690 | -cdl %l/latest/cells/*/*.cdl ignore=topography compile-only \ |
| 1691 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | b063d37 | 2021-11-12 16:15:18 -0500 | [diff] [blame] | 1692 | -lef %l/latest/cells/*/*.lef annotate compile-only \ |
| 1693 | exclude=*.magic.lef lefopts=-toplayer \ |
Tim Edwards | fd17c61 | 2021-12-07 14:27:19 -0500 | [diff] [blame] | 1694 | filter=custom/scripts/fix_digital_lef.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1695 | sort=../common/sort_pdkfiles.py \ |
| 1696 | -doc %l/latest/cells/*/*.pdf \ |
Anton Blanchard | c189d86 | 2022-04-05 15:40:06 +1000 | [diff] [blame] | 1697 | -lib %l/latest/timing/*.lib filter=custom/scripts/add_wireloads.py \ |
Anton Blanchard | 86f9b0c | 2022-04-05 21:07:40 +1000 | [diff] [blame] | 1698 | filter=custom/scripts/fix_default_fanout_load.py \ |
Tim Edwards | 8f6aff1 | 2022-09-20 20:41:51 -0400 | [diff] [blame] | 1699 | filter=custom/scripts/fix_related_bias_pins.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1700 | -gds %l/latest/cells/*/*.gds compile-only \ |
| 1701 | options=custom/scripts/gds_import_setup.tcl \ |
| 1702 | sort=../common/sort_pdkfiles.py \ |
| 1703 | -verilog %l/latest/models/*/*.v exclude=*.*.v compile-only \ |
| 1704 | rename=primitives filter=custom/scripts/inc_verilog.py \ |
| 1705 | sort=../common/sort_pdkfiles.py \ |
| 1706 | -verilog %l/latest/cells/*/*.*.v \ |
| 1707 | -verilog %l/latest/cells/*/*.v exclude=*.*.v,primitives.v \ |
| 1708 | compile-only filter=custom/scripts/inc_verilog.py \ |
| 1709 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1710 | -library digital sky130_fd_sc_ms 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | e75eaa4 | 2022-03-03 22:54:54 -0500 | [diff] [blame] | 1711 | # Create minimum/maximum technology LEF files |
| 1712 | ./custom/scripts/make_minmax_techlef.py ${EF_FORMAT} -variant=${SKY130$*} \ |
| 1713 | -library=ms 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1714 | # Remove the base verilog files which have already been included into |
| 1715 | # the libraries |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1716 | ${RM} ${STAGING_PATH}/${SKY130$*}/libs.ref/${MS_VERILOG}/*.*.v |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1717 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1718 | digital-ls-%: |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1719 | # Install all SkyWater digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1720 | ${STAGE} -source ${SKYWATER_LIBS_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | fb7b41f | 2022-01-18 11:46:30 -0500 | [diff] [blame] | 1721 | -techlef %l/latest/tech/*.tlef filter=custom/scripts/fix_techlef$*.py \ |
Tim Edwards | e75eaa4 | 2022-03-03 22:54:54 -0500 | [diff] [blame] | 1722 | rename=sky130_fd_sc_ls__nom.tlef \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1723 | -spice %l/latest/cells/*/*.spice compile-only \ |
| 1724 | sort=../common/sort_pdkfiles.py \ |
| 1725 | filter=custom/scripts/fix_device_models.py \ |
| 1726 | -cdl %l/latest/cells/*/*.cdl ignore=topography compile-only \ |
| 1727 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | b063d37 | 2021-11-12 16:15:18 -0500 | [diff] [blame] | 1728 | -lef %l/latest/cells/*/*.lef annotate compile-only \ |
| 1729 | exclude=*.magic.lef lefopts=-toplayer \ |
Tim Edwards | b8c95cb | 2021-12-07 14:39:07 -0500 | [diff] [blame] | 1730 | filter=custom/scripts/fix_digital_lef.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1731 | sort=../common/sort_pdkfiles.py \ |
| 1732 | -doc %l/latest/cells/*/*.pdf \ |
Anton Blanchard | c189d86 | 2022-04-05 15:40:06 +1000 | [diff] [blame] | 1733 | -lib %l/latest/timing/*.lib filter=custom/scripts/add_wireloads.py \ |
Anton Blanchard | 86f9b0c | 2022-04-05 21:07:40 +1000 | [diff] [blame] | 1734 | filter=custom/scripts/fix_default_fanout_load.py \ |
Tim Edwards | 8f6aff1 | 2022-09-20 20:41:51 -0400 | [diff] [blame] | 1735 | filter=custom/scripts/fix_related_bias_pins.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1736 | -gds %l/latest/cells/*/*.gds compile-only \ |
| 1737 | options=custom/scripts/gds_import_setup.tcl \ |
| 1738 | sort=../common/sort_pdkfiles.py \ |
| 1739 | -verilog %l/latest/models/*/*.v exclude=*.*.v compile-only \ |
| 1740 | rename=primitives filter=custom/scripts/inc_verilog.py \ |
| 1741 | sort=../common/sort_pdkfiles.py \ |
| 1742 | -verilog %l/latest/cells/*/*.*.v \ |
| 1743 | -verilog %l/latest/cells/*/*.v exclude=*.*.v,primitives.v \ |
| 1744 | compile-only filter=custom/scripts/inc_verilog.py \ |
| 1745 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1746 | -library digital sky130_fd_sc_ls 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | e75eaa4 | 2022-03-03 22:54:54 -0500 | [diff] [blame] | 1747 | # Create minimum/maximum technology LEF files |
| 1748 | ./custom/scripts/make_minmax_techlef.py ${EF_FORMAT} -variant=${SKY130$*} \ |
| 1749 | -library=ls 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1750 | # Remove the base verilog files which have already been included into |
| 1751 | # the libraries |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1752 | ${RM} ${STAGING_PATH}/${SKY130$*}/libs.ref/${LS_VERILOG}/*.*.v |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1753 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1754 | alpha-%: |
Tim Edwards | bcf59aa | 2020-12-17 16:55:13 -0500 | [diff] [blame] | 1755 | # Install alphanumeric library. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1756 | ${STAGE} -source ${ALPHA_PATH}/.. -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 88bd42e | 2020-12-18 15:29:48 -0500 | [diff] [blame] | 1757 | -mag %l/mag/*.mag filter=custom/scripts/text2m5.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1758 | -library general sky130_ml_xx_hd 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1759 | # Install text2mag.py script for alphanumeric library |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1760 | mkdir -p ${STAGING_PATH}/${SKY130$*}/libs.ref/${MLXX_SCRIPTS} |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1761 | cp custom/scripts/text2mag.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1762 | ${STAGING_PATH}/${SKY130$*}/libs.ref/${MLXX_SCRIPTS} |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1763 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1764 | sram-%: |
Tim Edwards | 8b96a1b | 2021-04-27 15:16:26 -0400 | [diff] [blame] | 1765 | # Install SRAM library. NOTE: SRAM macros share some of the same |
| 1766 | # cell names, so use special option script gds_import_sram.tcl |
Tim Edwards | 68fc4e6 | 2021-06-12 22:31:21 -0400 | [diff] [blame] | 1767 | # To do: Add option to process each GDS file individually in magic, |
| 1768 | # instead of all at once. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1769 | ${STAGE} -source ${SRAM_PATH}/.. -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 1770 | -lef %l/*/*.lef \ |
| 1771 | -lib %l/*/*.lib \ |
Tim Edwards | 8b96a1b | 2021-04-27 15:16:26 -0400 | [diff] [blame] | 1772 | -gds %l/*/*.gds options=custom/scripts/gds_import_sram.tcl \ |
D. Mitch Bailey | a23f0b2 | 2021-12-27 08:14:38 -0800 | [diff] [blame] | 1773 | -spice %l/*/*.lvs.sp filter=custom/scripts/sp_to_spice.py \ |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 1774 | -verilog %l/*/*.v \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1775 | -library general sky130_sram_macros 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1776 | |
Tim Edwards | d6c91b4 | 2023-01-04 17:03:58 -0500 | [diff] [blame] | 1777 | sram-space-%: |
| 1778 | # Install SRAM build-space library. |
| 1779 | ${STAGE} -source ${SRAM_SPACE_PATH}/.. -target ${STAGING_PATH}/${SKY130$*} \ |
| 1780 | -gds %l/cells/*/*.gds compile-only \ |
| 1781 | -lef %l/cells/*/*.lef compile-only \ |
| 1782 | -spice %l/cells/*/*.lvs.calibre.spice compile-only \ |
| 1783 | -library general sky130_fd_bd_sram 2>&1 | tee -a ${SKY130$*}_make.log |
| 1784 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1785 | osu-t12-%: |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1786 | # Install OSU T12 hs digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1787 | ${STAGE} -source ${OSU_T12_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 0b8fd2f | 2021-09-14 10:19:16 -0400 | [diff] [blame] | 1788 | -techlef sky130_osu_sc_12T.tlef rename=sky130_osu_sc_12t_hs.tlef \ |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1789 | -spice 12T_hs/cdl/*.spice compile-only exclude=*.*.spice \ |
| 1790 | -lef 12T_hs/lef/*.lef \ |
| 1791 | -lib 12T_hs/lib/*.lib \ |
| 1792 | -gds 12T_hs/gds/*.gds compile-only \ |
| 1793 | options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1794 | -library digital sky130_osu_sc_12t_hs 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1795 | # Install OSU T12 ms digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1796 | ${STAGE} -source ${OSU_T12_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 0b8fd2f | 2021-09-14 10:19:16 -0400 | [diff] [blame] | 1797 | -techlef sky130_osu_sc_12T.tlef rename=sky130_osu_sc_12t_ms.tlef \ |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1798 | -spice 12T_ms/cdl/*.spice compile-only exclude=*.*.spice \ |
| 1799 | -lef 12T_ms/lef/*.lef \ |
| 1800 | -lib 12T_ms/lib/*.lib \ |
| 1801 | -gds 12T_ms/gds/*.gds compile-only \ |
| 1802 | options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1803 | -library digital sky130_osu_sc_12t_ms 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1804 | # Install OSU T12 ls digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1805 | ${STAGE} -source ${OSU_T12_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 0b8fd2f | 2021-09-14 10:19:16 -0400 | [diff] [blame] | 1806 | -techlef sky130_osu_sc_12T.tlef rename=sky130_osu_sc_12t_ls.tlef \ |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1807 | -spice 12T_ls/cdl/*.spice compile-only exclude=*.*.spice \ |
| 1808 | -lef 12T_ls/lef/*.lef \ |
| 1809 | -lib 12T_ls/lib/*.lib \ |
| 1810 | -gds 12T_ls/gds/*.gds compile-only \ |
| 1811 | options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1812 | -library digital sky130_osu_sc_12t_ls 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1813 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1814 | osu-t15-%: |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1815 | # Install OSU T15 hs digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1816 | ${STAGE} -source ${OSU_T15_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 0b8fd2f | 2021-09-14 10:19:16 -0400 | [diff] [blame] | 1817 | -techlef sky130_osu_sc_15T.tlef rename=sky130_osu_sc_15t_hs.tlef \ |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1818 | -spice 15T_hs/cdl/*.spice compile-only exclude=*.*.spice \ |
| 1819 | -lef 15T_hs/lef/*.lef \ |
| 1820 | -lib 15T_hs/lib/*.lib \ |
| 1821 | -gds 15T_hs/gds/*.gds compile-only \ |
| 1822 | options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1823 | -library digital sky130_osu_sc_15t_hs 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1824 | # Install OSU T15 ms digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1825 | ${STAGE} -source ${OSU_T15_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 0b8fd2f | 2021-09-14 10:19:16 -0400 | [diff] [blame] | 1826 | -techlef sky130_osu_sc_15T.tlef rename=sky130_osu_sc_15t_ms.tlef \ |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1827 | -spice 15T_ms/cdl/*.spice compile-only exclude=*.*.spice \ |
| 1828 | -lef 15T_ms/lef/*.lef \ |
| 1829 | -lib 15T_ms/lib/*.lib \ |
| 1830 | -gds 15T_ms/gds/*.gds compile-only \ |
| 1831 | options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1832 | -library digital sky130_osu_sc_15t_ms 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1833 | # Install OSU T15 ls digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1834 | ${STAGE} -source ${OSU_T15_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 0b8fd2f | 2021-09-14 10:19:16 -0400 | [diff] [blame] | 1835 | -techlef sky130_osu_sc_15T.tlef rename=sky130_osu_sc_15t_ls.tlef \ |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1836 | -spice 15T_ls/cdl/*.spice compile-only exclude=*.*.spice \ |
| 1837 | -lef 15T_ls/lef/*.lef \ |
| 1838 | -lib 15T_ls/lib/*.lib \ |
| 1839 | -gds 15T_ls/gds/*.gds compile-only \ |
| 1840 | options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1841 | -library digital sky130_osu_sc_15t_ls 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1842 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1843 | osu-t18-%: |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1844 | # Install OSU T18 hs digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1845 | ${STAGE} -source ${OSU_T18_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 0b8fd2f | 2021-09-14 10:19:16 -0400 | [diff] [blame] | 1846 | -techlef sky130_osu_sc_18T.tlef rename=sky130_osu_sc_18t_hs.tlef \ |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1847 | -spice 18T_hs/cdl/*.spice compile-only exclude=*.*.spice \ |
| 1848 | -lef 18T_hs/lef/*.lef \ |
| 1849 | -lib 18T_hs/lib/*.lib \ |
| 1850 | -gds 18T_hs/gds/*.gds compile-only \ |
| 1851 | options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1852 | -library digital sky130_osu_sc_18t_hs 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1853 | # Install OSU T18 ms digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1854 | ${STAGE} -source ${OSU_T18_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 0b8fd2f | 2021-09-14 10:19:16 -0400 | [diff] [blame] | 1855 | -techlef sky130_osu_sc_18T.tlef rename=sky130_osu_sc_18t_ms.tlef \ |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1856 | -spice 18T_ms/cdl/*.spice compile-only exclude=*.*.spice \ |
| 1857 | -lef 18T_ms/lef/*.lef \ |
| 1858 | -lib 18T_ms/lib/*.lib \ |
| 1859 | -gds 18T_ms/gds/*.gds compile-only \ |
| 1860 | options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1861 | -library digital sky130_osu_sc_18t_ms 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1862 | # Install OSU T18 ls digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1863 | ${STAGE} -source ${OSU_T18_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 0b8fd2f | 2021-09-14 10:19:16 -0400 | [diff] [blame] | 1864 | -techlef sky130_osu_sc_18T.tlef rename=sky130_osu_sc_18t_ls.tlef \ |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1865 | -spice 18T_ls/cdl/*.spice compile-only exclude=*.*.spice \ |
| 1866 | -lef 18T_ls/lef/*.lef \ |
| 1867 | -lib 18T_ls/lib/*.lib \ |
| 1868 | -gds 18T_ls/gds/*.gds compile-only \ |
| 1869 | options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1870 | -library digital sky130_osu_sc_18t_ls 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1871 | |
Tim Edwards | 7fa92fd | 2022-01-19 11:13:51 -0500 | [diff] [blame] | 1872 | install: $(foreach var, ${VARIANTS}, install-$(var)) |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1873 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1874 | install-A: |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 1875 | echo "Starting SKY130 PDK migration on "`date` > ${SKY130A}_install.log |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 1876 | ${INSTALL} \ |
| 1877 | -source ${STAGING_PATH}/${SKY130A} \ |
Tim 'mithro' Ansell | 1957663 | 2021-11-14 17:01:53 -0800 | [diff] [blame] | 1878 | -finalpath ${SHARED_PDKS_PATH}/${SKY130A} \ |
Tim Edwards | b184e85 | 2020-12-04 15:30:05 -0500 | [diff] [blame] | 1879 | -variable PDKPATH \ |
Tim Edwards | 6f01cd2 | 2022-01-17 19:23:53 -0500 | [diff] [blame] | 1880 | -link_from ${DIST_LINK_TARGETS_A} 2>&1 | tee -a ${SKY130A}_install.log |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 1881 | echo "Ended SKY130 PDK migration on "`date` >> ${SKY130A}_install.log |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1882 | |
Tim Edwards | 7016d34 | 2022-03-06 10:30:54 -0500 | [diff] [blame] | 1883 | # NOTE: if DIST_LINK_TARGETS_B points back to the A variant, then the install |
| 1884 | # of B depends on the install of A. Can't think of a way to make the dependency |
| 1885 | # itself depend on the value of DIST_LINK_TARGETS_B, so I'm just forcing the |
| 1886 | # install to always be sequential: install A first, then B. |
| 1887 | |
| 1888 | install-B: install-A |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1889 | echo "Starting SKY130 PDK migration on "`date` > ${SKY130B}_install.log |
| 1890 | ${INSTALL} \ |
| 1891 | -source ${STAGING_PATH}/${SKY130B} \ |
| 1892 | -finalpath ${SHARED_PDKS_PATH}/${SKY130B} \ |
| 1893 | -variable PDKPATH \ |
Tim Edwards | 6f01cd2 | 2022-01-17 19:23:53 -0500 | [diff] [blame] | 1894 | -link_from ${DIST_LINK_TARGETS_B} 2>&1 | tee -a ${SKY130B}_install.log |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1895 | echo "Ended SKY130 PDK migration on "`date` >> ${SKY130B}_install.log |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1896 | |
Tim Edwards | 7fa92fd | 2022-01-19 11:13:51 -0500 | [diff] [blame] | 1897 | uninstall: $(foreach var, ${VARIANTS}, uninstall-$(var)) |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1898 | |
| 1899 | uninstall-A: |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 1900 | echo "Uninstalling SKY130 PDK from ${SHARED_PDKS_PATH}" |
| 1901 | if test "x${SHARED_PDKS_PATH}" != "x" ; then \ |
| 1902 | ${RM} -rf ${SHARED_PDKS_PATH}/${SKY130A} ; \ |
Tim Edwards | 8830dfe | 2021-02-25 11:29:59 -0500 | [diff] [blame] | 1903 | fi |
| 1904 | echo "Finished SKY130 PDK uninstall" |
| 1905 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1906 | uninstall-B: |
| 1907 | echo "Uninstalling SKY130 PDK from ${SHARED_PDKS_PATH}" |
| 1908 | if test "x${SHARED_PDKS_PATH}" != "x" ; then \ |
| 1909 | ${RM} -rf ${SHARED_PDKS_PATH}/${SKY130B} ; \ |
| 1910 | fi |
| 1911 | echo "Finished SKY130 PDK uninstall" |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1912 | |
Tim Edwards | 7fa92fd | 2022-01-19 11:13:51 -0500 | [diff] [blame] | 1913 | clean: $(foreach var, ${VARIANTS}, clean-$(var)) |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1914 | |
| 1915 | clean-A: |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1916 | ${STAGE} -target ${STAGING_PATH}/${SKY130A} -clean |
| 1917 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1918 | clean-B: |
| 1919 | ${STAGE} -target ${STAGING_PATH}/${SKY130B} -clean |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1920 | |
Tim Edwards | 7fa92fd | 2022-01-19 11:13:51 -0500 | [diff] [blame] | 1921 | veryclean: $(foreach var, ${VARIANTS}, veryclean-$(var)) |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1922 | |
| 1923 | veryclean-A: clean-A |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 1924 | ${RM} ${SKY130A}_make.log |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1925 | ${RM} ${SKY130A}_install.log |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 1926 | # Legacy name |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1927 | ${RM} ${SKY130A}_migrate.log |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 1928 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1929 | veryclean-B: clean-B |
| 1930 | ${RM} ${SKY130B}_make.log |
| 1931 | ${RM} ${SKY130B}_install.log |
| 1932 | |
Tim Edwards | 8a4b160 | 2021-08-20 14:05:53 -0400 | [diff] [blame] | 1933 | # Old aliases (retained for compatibility) |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 1934 | install-dist: |
| 1935 | $(warning "'make install-dist' has been replaced with 'make install'") |
| 1936 | make install |
Tim Edwards | 8a4b160 | 2021-08-20 14:05:53 -0400 | [diff] [blame] | 1937 | |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 1938 | install-local: |
| 1939 | $(warning "'make install-local' has been replaced with 'make install'") |
| 1940 | make install |
emayecs | f31fb7a | 2021-08-04 16:27:55 -0400 | [diff] [blame] | 1941 | |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 1942 | uninstall-dist: |
| 1943 | $(warning "'make uninstall-dist' has been replaced with 'make uninstall'") |
| 1944 | make uninstall |
Tim Edwards | 8a4b160 | 2021-08-20 14:05:53 -0400 | [diff] [blame] | 1945 | |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 1946 | uninstall-local: |
| 1947 | $(warning "'make uninstall-local' has been replaced with 'make uninstall'") |
| 1948 | make uninstall |
| 1949 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1950 | install-dist-A: |
| 1951 | $(warning "'make install-dist-A' has been replaced with 'make install'") |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 1952 | make install |
Tim Edwards | 8a4b160 | 2021-08-20 14:05:53 -0400 | [diff] [blame] | 1953 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1954 | install-local-A: |
| 1955 | $(warning "'make install-local-A' has been replaced with 'make install'") |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 1956 | make install |
| 1957 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1958 | uninstall-dist-A: |
| 1959 | $(warning "'make uninstall-dist-A' has been replaced with 'make uninstall'") |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 1960 | make uninstall |
Tim Edwards | 8a4b160 | 2021-08-20 14:05:53 -0400 | [diff] [blame] | 1961 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1962 | uninstall-local-A: |
| 1963 | $(warning "'make uninstall-local-A' has been replaced with 'make uninstall'") |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 1964 | make uninstall |