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 | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 84 | # External (third-party) libraries and tool setups are the following (disabled |
| 85 | # by default): |
| 86 | # |
| 87 | # --enable-sram-sky130[=<path>] |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 88 | # If enabled, install the sky130_sram_macros library from |
| 89 | # efabless on github. If <path> is not specified, then |
| 90 | # the SRAM library will be cloned from the repository and |
| 91 | # installed. |
| 92 | # |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 93 | # --enable-osu-t12-sky130[=<path>] |
| 94 | # If enabled, install the sky130_osu_sc_t12 libraries from |
| 95 | # foss-eda-tools on googlesource. If <path> is not |
| 96 | # specified, then the OSU standard cell library will be |
| 97 | # clones from the repository and installed. |
| 98 | # |
| 99 | # --enable-osu-t15-sky130[=<path>] |
| 100 | # If enabled, install the sky130_osu_sc_t15 libraries from |
| 101 | # foss-eda-tools on googlesource. If <path> is not |
| 102 | # specified, then the OSU standard cell library will be |
| 103 | # clones from the repository and installed. |
| 104 | # |
| 105 | # --enable-osu-t18-sky130[=<path>] |
| 106 | # If enabled, install the sky130_osu_sc_t18 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 | # |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 111 | # The variables below are substituted from the configuration options: |
| 112 | # |
Tim Edwards | 6f01cd2 | 2022-01-17 19:23:53 -0500 | [diff] [blame] | 113 | # SKYWATER_PATH: Points to vendor sources |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 114 | # EF_STYLE: 1 for efabless style, 0 otherwise |
Tim Edwards | 6f01cd2 | 2022-01-17 19:23:53 -0500 | [diff] [blame] | 115 | # LINK_TARGETS_A: If "source", link back to source when possible |
Tim Edwards | 7fa92fd | 2022-01-19 11:13:51 -0500 | [diff] [blame] | 116 | # ENABLED_VARIANTS: If not "all", then compile/install only the specified variants |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 117 | # |
| 118 | # Run "make" to stage the PDK for tool setup and vendor libraries |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 119 | # |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 120 | # Run "make install" to install all staged files. |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 121 | # |
| 122 | # Run "make clean" to remove all staging files. |
| 123 | # |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 124 | # Run "make veryclean" to remove all staging and make.log files. |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 125 | # |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 126 | # For the sake of simplicity, the "standard" installation can be done |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 127 | # with the usual |
| 128 | # |
| 129 | # make |
| 130 | # make install |
| 131 | # make clean |
| 132 | # |
| 133 | #-------------------------------------------------------------------- |
| 134 | # This Makefile contains bash-isms |
Tim 'mithro' Ansell | 5652756 | 2021-11-23 09:37:07 -0800 | [diff] [blame] | 135 | SHELL := /bin/bash |
| 136 | export SHELL |
| 137 | # We use pipes to save output to files, without pipefail they will always be |
| 138 | # seen by make as having succeeded. |
| 139 | SHELLOPTS := pipefail |
| 140 | export SHELLOPTS |
Tristan Gingold | a585431 | 2020-10-15 18:28:16 +0200 | [diff] [blame] | 141 | MV = mv |
Tim Edwards | 5a623ff | 2021-04-30 16:30:52 -0400 | [diff] [blame] | 142 | SED = @SED@ |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 143 | |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 144 | prefix = @prefix@ |
| 145 | datarootdir = @datarootdir@ |
| 146 | datadir = @datadir@ |
| 147 | |
Tim Edwards | f04c421 | 2021-03-18 10:12:16 -0400 | [diff] [blame] | 148 | # Use git revision if this is a cloned repo; otherwise get the revision |
| 149 | # from the VERSION file in the directory above. |
| 150 | GITREV = $(shell git describe --long) |
| 151 | ifeq (${GITREV},) |
| 152 | REVISION = $(shell cat ../VERSION) |
| 153 | else |
| 154 | REVISION = ${GITREV} |
| 155 | endif |
| 156 | TECH = sky130 |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 157 | |
Tim Edwards | aac3d1a | 2021-06-15 16:37:10 -0400 | [diff] [blame] | 158 | # The run-time environment uses PDKPATH to override the PDK location, |
| 159 | # so prevent that from happening during PDK install. |
| 160 | unexport PDKPATH |
| 161 | |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 162 | # If EF_STYLE is set to 1, then efabless naming conventions are |
| 163 | # used, otherwise the generic naming conventions are used. |
| 164 | # Mainly, the hierarchy of library names and file types is reversed |
| 165 | # (e.g., sky130_fd_sc_hd/lef vs. lef/sky130_fd_sc_hd). |
| 166 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 167 | # EF_STYLE = 0 | 1 |
| 168 | EF_STYLE = @EF_STYLE@ |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 169 | |
| 170 | # Normally it's fine to keep the staging path in a local directory, |
| 171 | # although /tmp or a dedicated staging area are also fine, as long |
| 172 | # as the install process can write to the path. |
| 173 | |
Tim Edwards | 1ffd99c | 2021-08-20 16:27:43 -0400 | [diff] [blame] | 174 | STAGING_PATH = $(shell pwd) |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 175 | |
mrg | bea9d87 | 2021-11-08 13:43:42 -0800 | [diff] [blame] | 176 | SHARED_PDKS_PATH ?= $(datadir)/pdk |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 177 | |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 178 | # If LINK_TARGETS is set to "none", then files are copied |
| 179 | # from the SkyWater sources to the target. If set to "source", |
| 180 | # symbolic links are made in the target directories pointing |
| 181 | # back to the SkyWater sources. If set to the name of another |
| 182 | # PDK (e.g, "sky130A"), then symbolic links are made to the |
| 183 | # same files in that PDK, where they exist, and are copied |
| 184 | # from source, where they don't. |
Tim Edwards | 6f01cd2 | 2022-01-17 19:23:53 -0500 | [diff] [blame] | 185 | # |
| 186 | # Behavior is to let the link targets for variant A follow the |
| 187 | # configuration option. Link targets for variant B will always |
| 188 | # be the files of variant A (which may end up being symbolic |
| 189 | # links to symbolic links if "source" was chosen for link-targets |
| 190 | # in the configuration). |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 191 | |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 192 | # LINK_TARGETS = source | none | sky130A |
Tim Edwards | 6f01cd2 | 2022-01-17 19:23:53 -0500 | [diff] [blame] | 193 | LINK_TARGETS_A = @SKY130_LINK_TARGETS@ |
| 194 | LINK_TARGETS_B = sky130A |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 195 | |
Tim Edwards | 7fa92fd | 2022-01-19 11:13:51 -0500 | [diff] [blame] | 196 | # ENABLED_VARIANTS = all | A | B |
| 197 | ENABLED_VARIANTS = @SKY130_ENABLED_VARIANTS@ |
| 198 | ifeq (${ENABLED_VARIANTS},) |
| 199 | VARIANTS += A B |
| 200 | else |
| 201 | ifeq (${ENABLED_VARIANTS}, all) |
| 202 | VARIANTS += A B |
| 203 | else |
| 204 | VARIANTS += ${ENABLED_VARIANTS} |
| 205 | endif |
| 206 | endif |
| 207 | |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 208 | # Paths: |
| 209 | |
agorararmard | 3ee5f11 | 2021-02-03 19:49:09 +0200 | [diff] [blame] | 210 | # Path to skywater_pdk |
Tim Edwards | 7cbaaba | 2020-08-05 12:19:18 -0400 | [diff] [blame] | 211 | SKYWATER_PATH = @SKY130_SOURCE_PATH@ |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 212 | ifneq ($(SKYWATER_PATH),) |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 213 | SKYWATER_LIBS_PATH = ${SKYWATER_PATH}/libraries |
| 214 | else |
| 215 | SKYWATER_LIBS_PATH = |
Tim Edwards | 66e53e5 | 2021-01-24 21:21:36 -0500 | [diff] [blame] | 216 | endif |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 217 | |
Tim Edwards | bcf59aa | 2020-12-17 16:55:13 -0500 | [diff] [blame] | 218 | # Path to independent library sources (to be added to configuration options). |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 219 | ALPHA_PATH = @SKY130_ML_XX_HD_PATH@ |
| 220 | XSCHEM_PATH = @XSCHEM_SKY130_PATH@ |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 221 | SRAM_PATH = @SKY130_SRAM_MACROS_PATH@ |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 222 | OSU_T12_PATH = @SKY130_OSU_T12_PATH@ |
| 223 | OSU_T15_PATH = @SKY130_OSU_T15_PATH@ |
| 224 | OSU_T18_PATH = @SKY130_OSU_T18_PATH@ |
Tim Edwards | bcf59aa | 2020-12-17 16:55:13 -0500 | [diff] [blame] | 225 | |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 226 | PDK_URL = https://github.com/google/skywater-pdk |
Tim Edwards | 8877f8f | 2021-06-10 21:35:36 -0400 | [diff] [blame] | 227 | ALPHA_URL = https://github.com/PaulSchulz/sky130_pschulz_xx_hd |
| 228 | XSCHEM_URL = https://github.com/StefanSchippers/xschem_sky130 |
| 229 | SRAM_URL = https://github.com/efabless/sky130_sram_macros |
Tim Edwards | 8877f8f | 2021-06-10 21:35:36 -0400 | [diff] [blame] | 230 | OSU_T12_URL = https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_osu_sc_t12 |
| 231 | OSU_T15_URL = https://foss-eda-tools.googlesource.com/skywater-pdk/libs/sky130_osu_sc_t15 |
| 232 | 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] | 233 | |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 234 | # NOTE: Install destination is the git repository of the technology platform. |
| 235 | # Once updated in git, the git project can be distributed to all hosts. |
| 236 | # |
| 237 | ifeq (${EF_STYLE}, 1) |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 238 | CONFIG_DIR = .ef-config |
| 239 | REV_DIR = ${REVISION} |
| 240 | else |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 241 | CONFIG_DIR = .config |
| 242 | REV_DIR = . |
| 243 | endif |
| 244 | |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 245 | # EF process nodes created from the master sources |
| 246 | SKY130A = sky130A |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 247 | SKY130B = sky130B |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 248 | |
Tim Edwards | 6f01cd2 | 2022-01-17 19:23:53 -0500 | [diff] [blame] | 249 | DIST_LINK_TARGETS_A = ${LINK_TARGETS_A} |
| 250 | DIST_LINK_TARGETS_B = ${SHARED_PDKS_PATH}/${LINK_TARGETS_B} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 251 | |
| 252 | # Basic definitions for each EF process node |
| 253 | SKY130A_DEFS = -DTECHNAME=sky130A -DREVISION=${REVISION} |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 254 | SKY130B_DEFS = -DTECHNAME=sky130B -DREVISION=${REVISION} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 255 | |
| 256 | # Module definitions for each process node |
| 257 | # (Note that MOS is default and therefore not used anywhere) |
Tim Edwards | 0a0272b | 2020-07-28 14:40:10 -0400 | [diff] [blame] | 258 | SKY130A_DEFS += -DMETAL5 -DMIM -DREDISTRIBUTION |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 259 | SKY130B_DEFS += -DMETAL5 -DMIM -DREDISTRIBUTION |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 260 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 261 | # NOTE: ReRAM support is what distinguishes variant B from variant A. |
| 262 | SKY130B_DEFS += -DRERAM |
Tim Edwards | 33e6598 | 2021-11-24 22:35:04 -0500 | [diff] [blame] | 263 | |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 264 | # Add staging path |
| 265 | SKY130A_DEFS += -DSTAGING_PATH=${STAGING_PATH} |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 266 | SKY130B_DEFS += -DSTAGING_PATH=${STAGING_PATH} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 267 | |
Tim Edwards | 5d450d5 | 2022-01-22 15:31:32 -0500 | [diff] [blame] | 268 | # Get the timestamp of the open_pdks commit to use for stamping layouts. |
| 269 | OPEN_PDKS_TIMESTAMP = $(shell git log -1 --format="%ad" --date=raw | cut -d' ' -f1) |
| 270 | TIMESTAMP_OPT = -timestamp ${OPEN_PDKS_TIMESTAMP} |
| 271 | |
Tim Edwards | 8877f8f | 2021-06-10 21:35:36 -0400 | [diff] [blame] | 272 | # Record commit numbers for the nodeinfo.json file |
| 273 | OPEN_PDKS_COMMIT = $(shell git rev-parse HEAD) |
| 274 | ifeq (${OPEN_PDKS_COMMIT},) |
| 275 | COMMIT_DEFS = -DOPEN_PDKS_COMMIT=${REVISION} |
| 276 | else |
| 277 | COMMIT_DEFS = -DOPEN_PDKS_COMMIT=${OPEN_PDKS_COMMIT} |
| 278 | endif |
| 279 | ifeq (${ALPHA_PATH},) |
| 280 | COMMIT_DEFS += -DALPHA_COMMIT="unknown" |
| 281 | else |
| 282 | COMMIT_DEFS += -DALPHA_COMMIT=$(shell cd ${ALPHA_PATH} ; git rev-parse HEAD) |
| 283 | endif |
| 284 | ifeq (${SRAM_PATH},) |
| 285 | COMMIT_DEFS += -DSRAM_COMMIT="unknown" |
| 286 | else |
| 287 | COMMIT_DEFS += -DSRAM_COMMIT=$(shell cd ${SRAM_PATH} ; git rev-parse HEAD) |
| 288 | endif |
Tim Edwards | 8877f8f | 2021-06-10 21:35:36 -0400 | [diff] [blame] | 289 | ifeq (${OSU_T12_PATH},) |
| 290 | COMMIT_DEFS += -DOSU_T12_COMMIT="unknown" |
| 291 | else |
| 292 | COMMIT_DEFS += -DOSU_T12_COMMIT=$(shell cd ${OSU_T12_PATH} ; git rev-parse HEAD) |
| 293 | endif |
| 294 | ifeq (${OSU_T15_PATH},) |
| 295 | COMMIT_DEFS += -DOSU_T15_COMMIT="unknown" |
| 296 | else |
| 297 | COMMIT_DEFS += -DOSU_T15_COMMIT=$(shell cd ${OSU_T15_PATH} ; git rev-parse HEAD) |
| 298 | endif |
| 299 | ifeq (${OSU_T18_PATH},) |
| 300 | COMMIT_DEFS += -DOSU_T18_COMMIT="unknown" |
| 301 | else |
| 302 | COMMIT_DEFS += -DOSU_T18_COMMIT=$(shell cd ${OSU_T18_PATH} ; git rev-parse HEAD) |
| 303 | endif |
| 304 | ifeq (${SKYWATER_PATH},) |
| 305 | COMMIT_DEFS += -DFD_PR_COMMIT="unknown" |
| 306 | COMMIT_DEFS += -DFD_IO_COMMIT="unknown" |
| 307 | COMMIT_DEFS += -DFD_SC_HD_COMMIT="unknown" |
| 308 | COMMIT_DEFS += -DFD_SC_HDLL_COMMIT="unknown" |
| 309 | COMMIT_DEFS += -DFD_SC_HVL_COMMIT="unknown" |
| 310 | COMMIT_DEFS += -DFD_SC_HS_COMMIT="unknown" |
| 311 | COMMIT_DEFS += -DFD_SC_MS_COMMIT="unknown" |
| 312 | COMMIT_DEFS += -DFD_SC_LS_COMMIT="unknown" |
| 313 | COMMIT_DEFS += -DFD_SC_LP_COMMIT="unknown" |
| 314 | else |
Tim Edwards | 02b3c79 | 2021-09-08 22:25:13 -0400 | [diff] [blame] | 315 | ifeq ($(wildcard ${SKYWATER_PATH}/libraries/sky130_fd_pr/latest/cells),) |
| 316 | COMMIT_DEFS += -DFD_PR_COMMIT="unknown" |
| 317 | else |
| 318 | COMMIT_DEFS += -DFD_PR_COMMIT=$(shell cd ${SKYWATER_PATH} ; git rev-parse @:libraries/sky130_fd_pr/latest) |
| 319 | endif |
| 320 | ifeq ($(wildcard ${SKYWATER_PATH}/libraries/sky130_fd_io/latest/cells),) |
| 321 | COMMIT_DEFS += -DFD_IO_COMMIT="unknown" |
| 322 | else |
| 323 | COMMIT_DEFS += -DFD_IO_COMMIT=$(shell cd ${SKYWATER_PATH} ; git rev-parse @:libraries/sky130_fd_io/latest) |
| 324 | endif |
Tim Edwards | 9309039 | 2021-09-09 17:21:49 -0400 | [diff] [blame] | 325 | ifeq ($(wildcard ${SKYWATER_PATH}/libraries/sky130_fd_sc_hd/latest/cells),) |
Tim Edwards | 02b3c79 | 2021-09-08 22:25:13 -0400 | [diff] [blame] | 326 | COMMIT_DEFS += -DFD_SC_HD_COMMIT="unknown" |
| 327 | else |
| 328 | COMMIT_DEFS += -DFD_SC_HD_COMMIT=$(shell cd ${SKYWATER_PATH} ; git rev-parse @:libraries/sky130_fd_sc_hd/latest) |
| 329 | endif |
Tim Edwards | 9309039 | 2021-09-09 17:21:49 -0400 | [diff] [blame] | 330 | ifeq ($(wildcard ${SKYWATER_PATH}/libraries/sky130_fd_sc_hdll/latest/cells),) |
Tim Edwards | 02b3c79 | 2021-09-08 22:25:13 -0400 | [diff] [blame] | 331 | COMMIT_DEFS += -DFD_SC_HDLL_COMMIT="unknown" |
| 332 | else |
| 333 | COMMIT_DEFS += -DFD_SC_HDLL_COMMIT=$(shell cd ${SKYWATER_PATH} ; git rev-parse @:libraries/sky130_fd_sc_hdll/latest) |
| 334 | endif |
Tim Edwards | 9309039 | 2021-09-09 17:21:49 -0400 | [diff] [blame] | 335 | ifeq ($(wildcard ${SKYWATER_PATH}/libraries/sky130_fd_sc_hvl/latest/cells),) |
Tim Edwards | 02b3c79 | 2021-09-08 22:25:13 -0400 | [diff] [blame] | 336 | COMMIT_DEFS += -DFD_SC_HVL_COMMIT="unknown" |
| 337 | else |
| 338 | COMMIT_DEFS += -DFD_SC_HVL_COMMIT=$(shell cd ${SKYWATER_PATH} ; git rev-parse @:libraries/sky130_fd_sc_hvl/latest) |
| 339 | endif |
Tim Edwards | 9309039 | 2021-09-09 17:21:49 -0400 | [diff] [blame] | 340 | ifeq ($(wildcard ${SKYWATER_PATH}/libraries/sky130_fd_sc_hs/latest/cells),) |
Tim Edwards | 02b3c79 | 2021-09-08 22:25:13 -0400 | [diff] [blame] | 341 | COMMIT_DEFS += -DFD_SC_HS_COMMIT="unknown" |
| 342 | else |
| 343 | COMMIT_DEFS += -DFD_SC_HS_COMMIT=$(shell cd ${SKYWATER_PATH} ; git rev-parse @:libraries/sky130_fd_sc_hs/latest) |
| 344 | endif |
Tim Edwards | 9309039 | 2021-09-09 17:21:49 -0400 | [diff] [blame] | 345 | ifeq ($(wildcard ${SKYWATER_PATH}/libraries/sky130_fd_sc_ms/latest/cells),) |
Tim Edwards | 02b3c79 | 2021-09-08 22:25:13 -0400 | [diff] [blame] | 346 | COMMIT_DEFS += -DFD_SC_MS_COMMIT="unknown" |
| 347 | else |
| 348 | COMMIT_DEFS += -DFD_SC_MS_COMMIT=$(shell cd ${SKYWATER_PATH} ; git rev-parse @:libraries/sky130_fd_sc_ms/latest) |
| 349 | endif |
Tim Edwards | 9309039 | 2021-09-09 17:21:49 -0400 | [diff] [blame] | 350 | ifeq ($(wildcard ${SKYWATER_PATH}/libraries/sky130_fd_sc_ls/latest/cells),) |
Tim Edwards | 02b3c79 | 2021-09-08 22:25:13 -0400 | [diff] [blame] | 351 | COMMIT_DEFS += -DFD_SC_LS_COMMIT="unknown" |
| 352 | else |
| 353 | COMMIT_DEFS += -DFD_SC_LS_COMMIT=$(shell cd ${SKYWATER_PATH} ; git rev-parse @:libraries/sky130_fd_sc_ls/latest) |
| 354 | endif |
Tim Edwards | 9309039 | 2021-09-09 17:21:49 -0400 | [diff] [blame] | 355 | ifeq ($(wildcard ${SKYWATER_PATH}/libraries/sky130_fd_sc_lp/latest/cells),) |
Tim Edwards | 02b3c79 | 2021-09-08 22:25:13 -0400 | [diff] [blame] | 356 | COMMIT_DEFS += -DFD_SC_LP_COMMIT="unknown" |
| 357 | else |
| 358 | COMMIT_DEFS += -DFD_SC_LP_COMMIT=$(shell cd ${SKYWATER_PATH} ; git rev-parse @:libraries/sky130_fd_sc_lp/latest) |
| 359 | endif |
Tim Edwards | 8877f8f | 2021-06-10 21:35:36 -0400 | [diff] [blame] | 360 | endif |
Tim Edwards | 7d07616 | 2021-06-24 11:43:30 -0400 | [diff] [blame] | 361 | COMMIT_DEFS += -DMAGIC_VERSION=$(shell magic -dnull -noconsole --version) |
| 362 | COMMIT_DEFS += -DOPEN_PDKS_VERSION=$(shell cat ../VERSION) |
Tim Edwards | 8877f8f | 2021-06-10 21:35:36 -0400 | [diff] [blame] | 363 | |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 364 | ifeq (${EF_STYLE}, 1) |
| 365 | EF_FORMAT = -ef_format |
| 366 | SKY130A_DEFS += -DEF_FORMAT |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 367 | SKY130B_DEFS += -DEF_FORMAT |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 368 | else |
| 369 | EF_FORMAT = -std_format |
| 370 | endif |
| 371 | |
| 372 | MAGICTOP = libs.tech/magic |
| 373 | NETGENTOP = libs.tech/netgen |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 374 | IRSIMTOP = libs.tech/irsim |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 375 | QFLOWTOP = libs.tech/qflow |
| 376 | KLAYOUTTOP = libs.tech/klayout |
| 377 | OPENLANETOP = libs.tech/openlane |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 378 | XSCHEMTOP = libs.tech/xschem |
Tim Edwards | e4c4409 | 2021-02-12 10:18:56 -0500 | [diff] [blame] | 379 | XCIRCUITTOP = libs.tech/xcircuit |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 380 | NGSPICETOP = libs.tech/ngspice |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 381 | |
| 382 | ifeq (${EF_STYLE}, 1) |
| 383 | MAGICPATH = ${MAGICTOP}/${REVISION} |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 384 | MAGICCURRENT = ${MAGICTOP}/current |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 385 | else |
| 386 | MAGICPATH = ${MAGICTOP} |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 387 | MAGICCURRENT = ${MAGICTOP} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 388 | endif |
| 389 | |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 390 | # 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] | 391 | NETGENPATH = ${NETGENTOP} |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 392 | IRSIMPATH = ${IRSIMTOP} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 393 | QFLOWPATH = ${QFLOWTOP} |
| 394 | KLAYOUTPATH = ${KLAYOUTTOP} |
| 395 | OPENLANEPATH = ${OPENLANETOP} |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 396 | XSCHEMPATH = ${XSCHEMTOP} |
Tim Edwards | e4c4409 | 2021-02-12 10:18:56 -0500 | [diff] [blame] | 397 | XCIRCUITPATH = ${XCIRCUITTOP} |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 398 | NGSPICEPATH = ${NGSPICETOP} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 399 | |
| 400 | MAGICTOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${MAGICTOP} |
| 401 | NETGENTOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${NETGENTOP} |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 402 | IRSIMTOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${IRSIMTOP} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 403 | QFLOWTOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${QFLOWTOP} |
| 404 | KLAYOUTTOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${KLAYOUTTOP} |
| 405 | OPENLANETOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${OPENLANETOP} |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 406 | XSCHEMTOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${XSCHEMTOP} |
Tim Edwards | e4c4409 | 2021-02-12 10:18:56 -0500 | [diff] [blame] | 407 | XCIRCUITTOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${XCIRCUITTOP} |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 408 | NGSPICETOP_STAGING_A = ${STAGING_PATH}/${SKY130A}/${NGSPICETOP} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 409 | |
| 410 | MAGIC_STAGING_A = ${STAGING_PATH}/${SKY130A}/${MAGICPATH} |
| 411 | NETGEN_STAGING_A = ${STAGING_PATH}/${SKY130A}/${NETGENPATH} |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 412 | IRSIM_STAGING_A = ${STAGING_PATH}/${SKY130A}/${IRSIMPATH} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 413 | QFLOW_STAGING_A = ${STAGING_PATH}/${SKY130A}/${QFLOWPATH} |
| 414 | KLAYOUT_STAGING_A = ${STAGING_PATH}/${SKY130A}/${KLAYOUTPATH} |
| 415 | OPENLANE_STAGING_A = ${STAGING_PATH}/${SKY130A}/${OPENLANEPATH} |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 416 | XSCHEM_STAGING_A = ${STAGING_PATH}/${SKY130A}/${XSCHEMPATH} |
Tim Edwards | e4c4409 | 2021-02-12 10:18:56 -0500 | [diff] [blame] | 417 | XCIRCUIT_STAGING_A = ${STAGING_PATH}/${SKY130A}/${XCIRCUITPATH} |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 418 | NGSPICE_STAGING_A = ${STAGING_PATH}/${SKY130A}/${NGSPICEPATH} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 419 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 420 | MAGICTOP_STAGING_B = ${STAGING_PATH}/${SKY130B}/${MAGICTOP} |
| 421 | NETGENTOP_STAGING_B = ${STAGING_PATH}/${SKY130B}/${NETGENTOP} |
| 422 | IRSIMTOP_STAGING_B = ${STAGING_PATH}/${SKY130B}/${IRSIMTOP} |
| 423 | QFLOWTOP_STAGING_B = ${STAGING_PATH}/${SKY130B}/${QFLOWTOP} |
| 424 | KLAYOUTTOP_STAGING_B = ${STAGING_PATH}/${SKY130B}/${KLAYOUTTOP} |
| 425 | OPENLANETOP_STAGING_B = ${STAGING_PATH}/${SKY130B}/${OPENLANETOP} |
| 426 | XSCHEMTOP_STAGING_B = ${STAGING_PATH}/${SKY130B}/${XSCHEMTOP} |
| 427 | XCIRCUITTOP_STAGING_B = ${STAGING_PATH}/${SKY130B}/${XCIRCUITTOP} |
| 428 | NGSPICETOP_STAGING_B = ${STAGING_PATH}/${SKY130B}/${NGSPICETOP} |
| 429 | |
| 430 | MAGIC_STAGING_B = ${STAGING_PATH}/${SKY130B}/${MAGICPATH} |
| 431 | NETGEN_STAGING_B = ${STAGING_PATH}/${SKY130B}/${NETGENPATH} |
| 432 | IRSIM_STAGING_B = ${STAGING_PATH}/${SKY130B}/${IRSIMPATH} |
| 433 | QFLOW_STAGING_B = ${STAGING_PATH}/${SKY130B}/${QFLOWPATH} |
| 434 | KLAYOUT_STAGING_B = ${STAGING_PATH}/${SKY130B}/${KLAYOUTPATH} |
| 435 | OPENLANE_STAGING_B = ${STAGING_PATH}/${SKY130B}/${OPENLANEPATH} |
| 436 | XSCHEM_STAGING_B = ${STAGING_PATH}/${SKY130B}/${XSCHEMPATH} |
| 437 | XCIRCUIT_STAGING_B = ${STAGING_PATH}/${SKY130B}/${XCIRCUITPATH} |
| 438 | NGSPICE_STAGING_B = ${STAGING_PATH}/${SKY130B}/${NGSPICEPATH} |
| 439 | |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 440 | SKY130A_DEFS += -DMAGIC_CURRENT=${MAGICCURRENT} |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 441 | SKY130B_DEFS += -DMAGIC_CURRENT=${MAGICCURRENT} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 442 | |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 443 | # Openlane has a number of files that are common to all digital |
| 444 | # standard cell libraries, so these are collected in one definition |
| 445 | # here: |
agorararmard | 2ca4602 | 2021-02-11 21:43:51 +0200 | [diff] [blame] | 446 | OPENLANE_COMMON = config.tcl tracks.info no_synth.cells drc_exclude.cells |
manarabdelaty | 2ecac4f | 2021-03-08 15:23:12 +0200 | [diff] [blame] | 447 | 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] | 448 | |
Tim Edwards | 6f01cd2 | 2022-01-17 19:23:53 -0500 | [diff] [blame] | 449 | # Corners defined in IRSIM parameter files (this should be wild-carded!) |
| 450 | IRSIM_CORNERS = 1v62_27 1v62_n40 1v62_n5 1v80_125 1v80_27 1v80_n40 1v80_n5 1v98_125 1v98_27 1v98_n40 1v98_n5 |
| 451 | |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 452 | # Where cpp syntax is followed, this is equivalent to cpp, but it does not |
| 453 | # mangle non-C source files under the belief that they are actually C code. |
| 454 | CPP = ../common/preproc.py |
| 455 | |
| 456 | # The following script in the ../common directory does most of the work of |
| 457 | # copying or linking the foundry vendor files to the target directory. |
Tim Edwards | 5d450d5 | 2022-01-22 15:31:32 -0500 | [diff] [blame] | 458 | STAGE = set -f ; ../common/foundry_install.py ${EF_FORMAT} ${TIMESTAMP_OPT} |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 459 | ifneq ($(DESTDIR), ) |
Tim 'mithro' Ansell | 1957663 | 2021-11-14 17:01:53 -0800 | [diff] [blame] | 460 | INSTALL = ../common/staging_install.py -writeto $(DESTDIR) ${EF_FORMAT} |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 461 | else |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 462 | INSTALL = ../common/staging_install.py ${EF_FORMAT} |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 463 | endif |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 464 | |
| 465 | # 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] | 466 | ADDPROP = ../common/insert_property.py ${EF_FORMAT} |
Tim Edwards | 22f014d | 2022-01-26 10:37:03 -0500 | [diff] [blame^] | 467 | ADDLAYER = ../common/insert_layer.py ${EF_FORMAT} |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 468 | |
| 469 | # List the EDA tools to install local setup files for |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 470 | TOOLS = |
Tim Edwards | ccaea72 | 2020-12-24 10:59:42 -0500 | [diff] [blame] | 471 | |
| 472 | # KLAYOUT_DISABLED = 0 | 1 |
| 473 | KLAYOUT_DISABLED = @KLAYOUT_DISABLED@ |
| 474 | ifneq (${KLAYOUT_DISABLED}, 1) |
| 475 | TOOLS += klayout |
| 476 | endif |
| 477 | |
| 478 | # OPENLANE_DISABLED = 0 | 1 |
| 479 | OPENLANE_DISABLED = @OPENLANE_DISABLED@ |
| 480 | ifneq (${OPENLANE_DISABLED}, 1) |
| 481 | TOOLS += openlane |
| 482 | endif |
| 483 | |
| 484 | # QFLOW_DISABLED = 0 | 1 |
| 485 | QFLOW_DISABLED = @QFLOW_DISABLED@ |
| 486 | ifneq (${QFLOW_DISABLED}, 1) |
| 487 | TOOLS += qflow |
| 488 | endif |
| 489 | |
| 490 | # MAGIC_DISABLED = 0 | 1 |
| 491 | MAGIC_DISABLED = @MAGIC_DISABLED@ |
| 492 | ifneq (${MAGIC_DISABLED}, 1) |
| 493 | TOOLS += magic |
| 494 | endif |
| 495 | |
| 496 | # NETGEN_DISABLED = 0 | 1 |
| 497 | NETGEN_DISABLED = @NETGEN_DISABLED@ |
| 498 | ifneq (${NETGEN_DISABLED}, 1) |
| 499 | TOOLS += netgen |
| 500 | endif |
| 501 | |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 502 | # IRSIM_DISABLED = 0 | 1 |
| 503 | IRSIM_DISABLED = @IRSIM_DISABLED@ |
| 504 | ifneq (${IRSIM_DISABLED}, 1) |
| 505 | TOOLS += irsim |
| 506 | endif |
| 507 | |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 508 | # XSCHEM_DISABLED = 0 | 1 |
| 509 | XSCHEM_DISABLED = @XSCHEM_DISABLED@ |
| 510 | ifneq (${XSCHEM_DISABLED}, 1) |
| 511 | TOOLS += xschem |
| 512 | endif |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 513 | |
Tim Edwards | e4c4409 | 2021-02-12 10:18:56 -0500 | [diff] [blame] | 514 | # XCIRCUIT_DISABLED = 0 | 1 |
| 515 | XCIRCUIT_DISABLED = @XCIRCUIT_DISABLED@ |
| 516 | ifneq (${XCIRCUIT_DISABLED}, 1) |
| 517 | TOOLS += xcircuit |
| 518 | endif |
| 519 | |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 520 | # These definitions depend on the setting of EF_STYLE |
| 521 | ifeq (${EF_STYLE}, 1) |
| 522 | IO_VERILOG = verilog/sky130_fd_io |
| 523 | HD_VERILOG = verilog/sky130_fd_sc_hd |
| 524 | HDLL_VERILOG = verilog/sky130_fd_sc_hdll |
| 525 | HVL_VERILOG = verilog/sky130_fd_sc_hvl |
| 526 | HS_VERILOG = verilog/sky130_fd_sc_hs |
| 527 | MS_VERILOG = verilog/sky130_fd_sc_ms |
| 528 | LS_VERILOG = verilog/sky130_fd_sc_ls |
| 529 | LP_VERILOG = verilog/sky130_fd_sc_lp |
| 530 | HD_TECHLEF = techLEF/sky130_fd_sc_hd |
| 531 | HDLL_TECHLEF = techLEF/sky130_fd_sc_hdll |
| 532 | MLXX_SCRIPTS = scripts/sky130_ml_xx_hd |
| 533 | PR_SPICE = spi/sky130_fd_pr |
Tim Edwards | f63ee05 | 2021-04-29 15:13:45 -0400 | [diff] [blame] | 534 | HVL_SPICE = spi/sky130_fd_sc_hvl |
Tim Edwards | 97274fd | 2021-07-13 15:15:03 -0400 | [diff] [blame] | 535 | HD_SPICE = spi/sky130_fd_sc_hd |
Tim Edwards | 16b050b | 2021-05-17 16:45:34 -0400 | [diff] [blame] | 536 | HVL_PATCH4 = 4b |
Tim Edwards | f63ee05 | 2021-04-29 15:13:45 -0400 | [diff] [blame] | 537 | HVL_CDL = cdl/sky130_fd_sc_hvl |
Tim Edwards | 12f00a0 | 2021-09-09 10:40:57 -0400 | [diff] [blame] | 538 | SPIEXT = spi |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 539 | else |
| 540 | IO_VERILOG = sky130_fd_io/verilog |
| 541 | HD_VERILOG = sky130_fd_sc_hd/verilog |
| 542 | HDLL_VERILOG = sky130_fd_sc_hdll/verilog |
| 543 | HVL_VERILOG = sky130_fd_sc_hvl/verilog |
| 544 | HS_VERILOG = sky130_fd_sc_hs/verilog |
| 545 | MS_VERILOG = sky130_fd_sc_ms/verilog |
| 546 | LS_VERILOG = sky130_fd_sc_ls/verilog |
| 547 | LP_VERILOG = sky130_fd_sc_lp/verilog |
| 548 | HD_TECHLEF = sky130_fd_sc_hd/techlef |
| 549 | HDLL_TECHLEF = sky130_fd_sc_hdll/techlef |
| 550 | MLXX_SCRIPTS = sky130_ml_xx_hd/scripts |
| 551 | PR_SPICE = sky130_fd_pr/spice |
Tim Edwards | f63ee05 | 2021-04-29 15:13:45 -0400 | [diff] [blame] | 552 | HVL_SPICE = sky130_fd_sc_hvl/spice |
Tim Edwards | 97274fd | 2021-07-13 15:15:03 -0400 | [diff] [blame] | 553 | HD_SPICE = sky130_fd_sc_hd/spice |
Tim Edwards | 16b050b | 2021-05-17 16:45:34 -0400 | [diff] [blame] | 554 | HVL_PATCH4 = 4 |
Tim Edwards | f63ee05 | 2021-04-29 15:13:45 -0400 | [diff] [blame] | 555 | HVL_CDL = sky130_fd_sc_hvl/cdl |
Tim Edwards | 12f00a0 | 2021-09-09 10:40:57 -0400 | [diff] [blame] | 556 | SPIEXT = spice |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 557 | endif |
| 558 | |
Tim Edwards | 7fa92fd | 2022-01-19 11:13:51 -0500 | [diff] [blame] | 559 | all: $(foreach var, ${VARIANTS}, all-$(var)) |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 560 | |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 561 | # Handle prerequisites (fetch and install the PDK and requested libraries) |
Tim Edwards | 0b8fd2f | 2021-09-14 10:19:16 -0400 | [diff] [blame] | 562 | prerequisites: pdk-repo alpha-repo xschem-repo sram-repo osu-t12-repo osu-t15-repo osu-t18-repo |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 563 | |
| 564 | pdk-repo: |
| 565 | if test "x${SKYWATER_PATH}" != "x" ; then \ |
| 566 | if test -d "${SKYWATER_PATH}" ; then \ |
| 567 | echo "Using existing installation of SkyWater PDK from ${SKYWATER_PATH}" ; \ |
| 568 | else \ |
| 569 | echo "Downloading SkyWater PDK from ${PDK_URL}" ; \ |
| 570 | custom/scripts/pdk_download.sh ${PDK_URL} ${SKYWATER_PATH} ; \ |
| 571 | fi ; \ |
| 572 | fi |
| 573 | |
| 574 | alpha-repo: |
| 575 | if test "x${ALPHA_PATH}" != "x" ; then \ |
| 576 | if test -d "${ALPHA_PATH}" ; then \ |
| 577 | echo "Using existing installation of alphanumeric library from ${ALPHA_PATH}" ; \ |
| 578 | else \ |
| 579 | echo "Downloading alphanumeric library from ${ALPHA_URL}" ; \ |
| 580 | ../scripts/download.sh ${ALPHA_URL} ${ALPHA_PATH} ; \ |
| 581 | fi ; \ |
| 582 | fi |
| 583 | |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 584 | sram-repo: |
| 585 | if test "x${SRAM_PATH}" != "x" ; then \ |
| 586 | if test -d "${SRAM_PATH}" ; then \ |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 587 | echo "Using existing installation of SRAM macro library from ${SRAM_PATH}" ; \ |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 588 | else \ |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 589 | echo "Downloading SRAM macro library from ${SRAM_URL}" ; \ |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 590 | ../scripts/download.sh ${SRAM_URL} ${SRAM_PATH} ; \ |
| 591 | fi ; \ |
| 592 | fi |
| 593 | |
| 594 | xschem-repo: |
| 595 | if test "x${XSCHEM_PATH}" != "x" ; then \ |
| 596 | if test -d "${XSCHEM_PATH}" ; then \ |
| 597 | echo "Using existing installation of xschem setup from ${XSCHEM_PATH}" ; \ |
| 598 | else \ |
| 599 | echo "Downloading xschem setup from ${XSCHEM_URL}" ; \ |
| 600 | ../scripts/download.sh ${XSCHEM_URL} ${XSCHEM_PATH} ; \ |
| 601 | fi ; \ |
| 602 | fi |
| 603 | |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 604 | osu-t12-repo: |
| 605 | if test "x${OSU_T12_PATH}" != "x" ; then \ |
| 606 | if test -d "${OSU_T12_PATH}" ; then \ |
| 607 | echo "Using existing installation of OSU T12 standard cell library from ${OSU_T12_PATH}" ; \ |
| 608 | else \ |
| 609 | echo "Downloading OSU standard T12 cell library from ${OSU_T12_URL}" ; \ |
| 610 | ../scripts/download.sh ${OSU_T12_URL} ${OSU_T12_PATH} 0 ; \ |
| 611 | fi ; \ |
| 612 | fi |
| 613 | |
| 614 | osu-t15-repo: |
| 615 | if test "x${OSU_T15_PATH}" != "x" ; then \ |
| 616 | if test -d "${OSU_T15_PATH}" ; then \ |
| 617 | echo "Using existing installation of OSU T15 standard cell library from ${OSU_T15_PATH}" ; \ |
| 618 | else \ |
| 619 | echo "Downloading OSU standard T15 cell library from ${OSU_T15_URL}" ; \ |
| 620 | ../scripts/download.sh ${OSU_T15_URL} ${OSU_T15_PATH} 0 ; \ |
| 621 | fi ; \ |
| 622 | fi |
| 623 | |
| 624 | osu-t18-repo: |
| 625 | if test "x${OSU_T18_PATH}" != "x" ; then \ |
| 626 | if test -d "${OSU_T18_PATH}" ; then \ |
| 627 | echo "Using existing installation of OSU T18 standard cell library from ${OSU_T18_PATH}" ; \ |
| 628 | else \ |
| 629 | echo "Downloading OSU standard T18 cell library from ${OSU_T18_URL}" ; \ |
| 630 | ../scripts/download.sh ${OSU_T18_URL} ${OSU_T18_PATH} 0 ; \ |
| 631 | fi ; \ |
| 632 | fi |
| 633 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 634 | all-%: prerequisites |
| 635 | echo "Starting sky130$* PDK staging on "`date` > ${SKY130$*}_make.log |
| 636 | ${MAKE} general-$* |
| 637 | ${MAKE} tools-$* |
| 638 | ${MAKE} vendor-$* |
| 639 | echo "Ended sky130$* PDK staging on "`date` >> ${SKY130$*}_make.log |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 640 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 641 | general-%: ${TECH}.json |
| 642 | mkdir -p ${STAGING_PATH}/${SKY130$*}/${CONFIG_DIR} |
| 643 | rm -f ${STAGING_PATH}/${SKY130$*}/${CONFIG_DIR}/nodeinfo.json |
| 644 | ${CPP} ${SKY130$*_DEFS} ${COMMIT_DEFS} ${TECH}.json \ |
| 645 | ${STAGING_PATH}/${SKY130$*}/${CONFIG_DIR}/nodeinfo.json |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 646 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 647 | tools-A: $(addsuffix -A, $(TOOLS)) |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 648 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 649 | tools-B: $(addsuffix -B, $(TOOLS)) |
| 650 | |
| 651 | magic-%: magic/${TECH}.tech magic/${TECH}gds.tech magic/${TECH}.magicrc magic/${TECH}.tcl |
| 652 | mkdir -p ${MAGICTOP_STAGING_$*} |
| 653 | mkdir -p ${MAGIC_STAGING_$*} |
| 654 | rm -f ${MAGICTOP_STAGING_$*}/current |
| 655 | rm -f ${MAGIC_STAGING_$*}/${SKY130$*}.tech |
| 656 | rm -f ${MAGIC_STAGING_$*}/${SKY130$*}-GDS.tech |
| 657 | rm -f ${MAGIC_STAGING_$*}/${SKY130$*}.tcl |
| 658 | rm -f ${MAGIC_STAGING_$*}/${SKY130$*}-BindKeys |
| 659 | rm -f ${MAGIC_STAGING_$*}/magicrc |
Tim Edwards | 4db522f | 2021-05-04 13:34:40 -0400 | [diff] [blame] | 660 | if test "${EF_STYLE}" == "1" ; then \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 661 | (cd ${MAGICTOP_STAGING_$*} ; ln -s ${REV_DIR} current) ; \ |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 662 | fi |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 663 | cp -rp custom/scripts/seal_ring_generator ${MAGIC_STAGING_$*}/. |
| 664 | cp -rp custom/scripts/bump_bond_generator ${MAGIC_STAGING_$*}/. |
| 665 | cp custom/scripts/generate_fill.py ${MAGIC_STAGING_$*}/. |
| 666 | cp custom/scripts/check_density.py ${MAGIC_STAGING_$*}/. |
| 667 | cp custom/scripts/run_standard_drc.py ${MAGIC_STAGING_$*}/. |
| 668 | cp custom/scripts/check_antenna.py ${MAGIC_STAGING_$*}/. |
| 669 | ${CPP} ${SKY130$*_DEFS} magic/${TECH}.tech ${MAGIC_STAGING_$*}/${SKY130$*}.tech |
| 670 | ${CPP} ${SKY130$*_DEFS} magic/${TECH}gds.tech ${MAGIC_STAGING_$*}/${SKY130$*}-GDS.tech |
| 671 | ${CPP} ${SKY130$*_DEFS} magic/${TECH}.magicrc ${MAGIC_STAGING_$*}/${SKY130$*}.magicrc |
| 672 | ${CPP} ${SKY130$*_DEFS} ../common/pdk.bindkeys ${MAGIC_STAGING_$*}/${SKY130$*}-BindKeys |
| 673 | ${CPP} ${SKY130$*_DEFS} magic/${TECH}.tcl ${MAGIC_STAGING_$*}/${SKY130$*}.tcl |
| 674 | ${CPP} ${SKY130$*_DEFS} ../common/pdk.tcl >> ${MAGIC_STAGING_$*}/${SKY130$*}.tcl |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 675 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 676 | qflow-%: qflow/${TECH}.sh qflow/${TECH}.par |
| 677 | mkdir -p ${QFLOWTOP_STAGING_$*} |
| 678 | mkdir -p ${QFLOW_STAGING_$*} |
| 679 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_hd.sh |
| 680 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_hd.par |
| 681 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_hdll.sh |
| 682 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_hdll.par |
| 683 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_hs.sh |
| 684 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_hs.par |
| 685 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_hvl.sh |
| 686 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_hvl.par |
| 687 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_ls.sh |
| 688 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_ls.par |
| 689 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_lp.sh |
| 690 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_lp.par |
| 691 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_ms.sh |
| 692 | rm -f ${QFLOW_STAGING_$*}/sky130_fd_sc_ms.par |
| 693 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_12t_ls.sh |
| 694 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_12t_ls.par |
| 695 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_12t_ms.sh |
| 696 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_12t_ms.par |
| 697 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_12t_hs.sh |
| 698 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_12t_hs.par |
| 699 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_15t_ls.sh |
| 700 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_15t_ls.par |
| 701 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_15t_ms.sh |
| 702 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_15t_ms.par |
| 703 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_15t_hs.sh |
| 704 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_15t_hs.par |
| 705 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_18t_ls.sh |
| 706 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_18t_ls.par |
| 707 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_18t_ms.sh |
| 708 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_18t_ms.par |
| 709 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_18t_hs.sh |
| 710 | rm -f ${QFLOW_STAGING_$*}/sky130_osu_sc_18t_hs.par |
| 711 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_fd_sc_hd -DVOLTAGE=1v95 \ |
| 712 | qflow/${TECH}.sh ${QFLOW_STAGING_$*}/sky130_fd_sc_hd.sh |
| 713 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_fd_sc_hdll -DVOLTAGE=1v95 \ |
| 714 | qflow/${TECH}.sh ${QFLOW_STAGING_$*}/sky130_fd_sc_hdll.sh |
| 715 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_fd_sc_hvl -DVOLTAGE=4v95 \ |
| 716 | qflow/${TECH}.sh ${QFLOW_STAGING_$*}/sky130_fd_sc_hvl.sh |
| 717 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_fd_sc_hs -DVOLTAGE=1v95 \ |
| 718 | qflow/${TECH}.sh ${QFLOW_STAGING_$*}/sky130_fd_sc_hs.sh |
| 719 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_fd_sc_lp -DVOLTAGE=1v95 \ |
| 720 | qflow/${TECH}.sh ${QFLOW_STAGING_$*}/sky130_fd_sc_lp.sh |
| 721 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_fd_sc_ls -DVOLTAGE=1v95 \ |
| 722 | qflow/${TECH}.sh ${QFLOW_STAGING_$*}/sky130_fd_sc_ls.sh |
| 723 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_fd_sc_ms -DVOLTAGE=1v95 \ |
| 724 | qflow/${TECH}.sh ${QFLOW_STAGING_$*}/sky130_fd_sc_ms.sh |
| 725 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_osu_sc_12t_ls qflow/sky130osu.sh \ |
| 726 | ${QFLOW_STAGING_$*}/sky130_osu_sc_12t_ls.sh |
| 727 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_osu_sc_12t_ms qflow/sky130osu.sh \ |
| 728 | ${QFLOW_STAGING_$*}/sky130_osu_sc_12t_ms.sh |
| 729 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_osu_sc_12t_hs qflow/sky130osu.sh \ |
| 730 | ${QFLOW_STAGING_$*}/sky130_osu_sc_12t_hs.sh |
| 731 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_osu_sc_15t_ls qflow/sky130osu.sh \ |
| 732 | ${QFLOW_STAGING_$*}/sky130_osu_sc_15t_ls.sh |
| 733 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_osu_sc_15t_ms qflow/sky130osu.sh \ |
| 734 | ${QFLOW_STAGING_$*}/sky130_osu_sc_15t_ms.sh |
| 735 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_osu_sc_15t_hs qflow/sky130osu.sh \ |
| 736 | ${QFLOW_STAGING_$*}/sky130_osu_sc_15t_hs.sh |
| 737 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_osu_sc_18t_ls qflow/sky130osu.sh \ |
| 738 | ${QFLOW_STAGING_$*}/sky130_osu_sc_18t_ls.sh |
| 739 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_osu_sc_18t_ms qflow/sky130osu.sh \ |
| 740 | ${QFLOW_STAGING_$*}/sky130_osu_sc_18t_ms.sh |
| 741 | ${CPP} ${SKY130$*_DEFS} -DLIBRARY=sky130_osu_sc_18t_hs qflow/sky130osu.sh \ |
| 742 | ${QFLOW_STAGING_$*}/sky130_osu_sc_18t_hs.sh |
| 743 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par ${QFLOW_STAGING_$*}/sky130_fd_sc_hd.par |
| 744 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par ${QFLOW_STAGING_$*}/sky130_fd_sc_hdll.par |
| 745 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par ${QFLOW_STAGING_$*}/sky130_fd_sc_hvl.par |
| 746 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par ${QFLOW_STAGING_$*}/sky130_fd_sc_hs.par |
| 747 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par ${QFLOW_STAGING_$*}/sky130_fd_sc_ms.par |
| 748 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par ${QFLOW_STAGING_$*}/sky130_fd_sc_lp.par |
| 749 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par ${QFLOW_STAGING_$*}/sky130_fd_sc_ls.par |
| 750 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par \ |
| 751 | ${QFLOW_STAGING_$*}/sky130_osu_sc_12t_ls.par |
| 752 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par \ |
| 753 | ${QFLOW_STAGING_$*}/sky130_osu_sc_12t_ms.par |
| 754 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par \ |
| 755 | ${QFLOW_STAGING_$*}/sky130_osu_sc_12t_hs.par |
| 756 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par \ |
| 757 | ${QFLOW_STAGING_$*}/sky130_osu_sc_15t_ls.par |
| 758 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par \ |
| 759 | ${QFLOW_STAGING_$*}/sky130_osu_sc_15t_ms.par |
| 760 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par \ |
| 761 | ${QFLOW_STAGING_$*}/sky130_osu_sc_15t_hs.par |
| 762 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par \ |
| 763 | ${QFLOW_STAGING_$*}/sky130_osu_sc_18t_ls.par |
| 764 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par \ |
| 765 | ${QFLOW_STAGING_$*}/sky130_osu_sc_18t_ms.par |
| 766 | ${CPP} ${SKY130$*_DEFS} qflow/${TECH}.par \ |
| 767 | ${QFLOW_STAGING_$*}/sky130_osu_sc_18t_hs.par |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 768 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 769 | netgen-%: netgen/${TECH}_setup.tcl |
| 770 | mkdir -p ${NETGENTOP_STAGING_$*} |
| 771 | mkdir -p ${NETGEN_STAGING_$*} |
| 772 | rm -f ${NETGEN_STAGING_$*}/${SKY130$*}_setup.tcl |
| 773 | rm -f ${NETGEN_STAGING_$*}/setup.tcl |
| 774 | ${CPP} ${SKY130$*_DEFS} netgen/${TECH}_setup.tcl \ |
| 775 | ${NETGEN_STAGING_$*}/${SKY130$*}_setup.tcl |
| 776 | (cd ${NETGEN_STAGING_$*} ; ln -s ${SKY130$*}_setup.tcl setup.tcl) |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 777 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 778 | irsim-%: irsim |
| 779 | mkdir -p ${IRSIMTOP_STAGING_$*} |
| 780 | mkdir -p ${IRSIM_STAGING_$*} |
| 781 | rm -f ${IRSIM_STAGING_$*}/${SKY130$*}_*.prm |
Tim Edwards | 6f01cd2 | 2022-01-17 19:23:53 -0500 | [diff] [blame] | 782 | for corner in ${IRSIM_CORNERS} ; do \ |
| 783 | cp irsim/sky130A_$$corner.prm \ |
| 784 | ${IRSIM_STAGING_$*}/${SKY130$*}_$$corner.prm ; \ |
| 785 | done |
Tim Edwards | 367711e | 2021-01-27 10:35:12 -0500 | [diff] [blame] | 786 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 787 | klayout-%: klayout/${TECH}.lyp klayout/${TECH}.lyt |
| 788 | mkdir -p ${KLAYOUTTOP_STAGING_$*} |
| 789 | mkdir -p ${KLAYOUT_STAGING_$*} |
| 790 | rm -f ${KLAYOUT_STAGING_$*}/${SKY130$*}.lyp |
| 791 | rm -f ${KLAYOUT_STAGING_$*}/${SKY130$*}.lyt |
| 792 | ${CPP} -utf8 ${SKY130$*_DEFS} klayout/${TECH}.lyp \ |
| 793 | ${KLAYOUT_STAGING_$*}/${SKY130$*}.lyp |
| 794 | ${CPP} -utf8 ${SKY130$*_DEFS} klayout/${TECH}.lyt \ |
| 795 | ${KLAYOUT_STAGING_$*}/${SKY130$*}.lyt |
| 796 | ${CPP} -utf8 ${SKY130$*_DEFS} klayout/${TECH}.lydrc \ |
| 797 | ${KLAYOUT_STAGING_$*}/${SKY130$*}.lydrc |
| 798 | #./custom/scripts/gen_run_drc.py -l ${KLAYOUT_STAGING_$*}/${SKY130$*}.lydrc \ |
| 799 | # -o ${KLAYOUT_STAGING_$*}/${SKY130$*}.drc |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 800 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 801 | xcircuit-%: xcircuit/${TECH}.xcircuitrc |
| 802 | rm -rf ${XCIRCUIT_STAGING_$*} |
| 803 | mkdir -p ${XCIRCUITTOP_STAGING_$*} |
| 804 | mkdir -p ${XCIRCUIT_STAGING_$*} |
| 805 | rm -f ${XCIRCUIT_STAGING_$*}/*.lps |
| 806 | rm -f ${XCIRCUIT_STAGING_$*}/${SKY130$*}.xcircuitrc |
| 807 | ${CPP} ${SKY130$*_DEFS} xcircuit/ngspice.lps ${XCIRCUIT_STAGING_$*}/ngspice.lps |
| 808 | ${CPP} ${SKY130$*_DEFS} xcircuit/sky130_fd_pr.lps \ |
| 809 | ${XCIRCUIT_STAGING_$*}/sky130_fd_pr.lps |
| 810 | ${CPP} ${SKY130$*_DEFS} -DHD_SPICE=${HD_SPICE} -DSPIEXT=${SPIEXT} \ |
| 811 | xcircuit/sky130_fd_sc_hd.lps ${XCIRCUIT_STAGING_$*}/sky130_fd_sc_hd.lps |
| 812 | ${CPP} ${SKY130$*_DEFS} xcircuit/${TECH}.xcircuitrc \ |
| 813 | ${XCIRCUIT_STAGING_$*}/${SKY130$*}.xcircuitrc |
Tim Edwards | e4c4409 | 2021-02-12 10:18:56 -0500 | [diff] [blame] | 814 | |
Tim Edwards | 476f742 | 2021-12-16 19:59:35 -0500 | [diff] [blame] | 815 | |
| 816 | |
| 817 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 818 | xschem-%: ${XSCHEM_PATH} |
| 819 | rm -rf ${XSCHEM_STAGING_$*} |
| 820 | mkdir -p ${XSCHEMTOP_STAGING_$*} |
| 821 | mkdir -p ${XSCHEM_STAGING_$*} |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 822 | # Copy the entire repository (other than .git, if it exists) |
| 823 | if test "x${XSCHEM_PATH}" != "x" ; then \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 824 | cp -rp ${XSCHEM_PATH}/* ${XSCHEM_STAGING_$*} ; \ |
Tim Edwards | 1168a8b | 2021-02-10 22:06:54 -0500 | [diff] [blame] | 825 | fi |
Tim Edwards | 503d53e | 2021-07-19 21:33:34 -0400 | [diff] [blame] | 826 | |
| 827 | #add the correct libraries into the test files |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 828 | for file in ${XSCHEM_STAGING_$*}/sky130_tests/* ; do \ |
Tim Edwards | 476f742 | 2021-12-16 19:59:35 -0500 | [diff] [blame] | 829 | ${SED} -i '/.include $$\:\:SKYWATER_MODELS/d' $$file ; \ |
| 830 | grep -zl 'sky130.lib.spice' $$file || ${SED} -z 's|format="tcleval( @value )"\nvalue="|format="tcleval( @value )"\nvalue="\n.lib $$\:\:SKYWATER_MODELS/sky130.lib.spice tt |' -i $$file ; \ |
Tim Edwards | 503d53e | 2021-07-19 21:33:34 -0400 | [diff] [blame] | 831 | done |
| 832 | |
Tim Edwards | 9a17fca | 2021-02-11 17:44:04 -0500 | [diff] [blame] | 833 | # Re-copy the xschemrc, with one change to add the PDK install path as |
| 834 | # a component of XSCHEM_LIBRARY_PATH |
| 835 | cat ${XSCHEM_PATH}/xschemrc | \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 836 | ${SED} -e "/PWD/aappend XSCHEM_LIBRARY_PATH :${XSCHEM_STAGING_$*}" | \ |
Tim Edwards | 476f742 | 2021-12-16 19:59:35 -0500 | [diff] [blame] | 837 | ${SED} -e '/netlist_dir/aset netlist_dir $$env(PWD)' | \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 838 | ${SED} -e "/SKYWATER_MODELS/s#~/pdks/sky130$*/libs.tech/ngspice#${NGSPICE_STAGING_$*}#" | \ |
| 839 | ${SED} -e "/SKYWATER_STDCELLS/s#~/pdks/sky130$*/libs.ref/sky130_fd_sc_hd/spice#${STAGING_PATH}/${SKY130$*}/libs.ref/${HD_SPICE}#" \ |
| 840 | > ${XSCHEM_STAGING_$*}/xschemrc |
Tim Edwards | 476f742 | 2021-12-16 19:59:35 -0500 | [diff] [blame] | 841 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 842 | openlane-%: openlane/config.tcl openlane/rcx_rules.info 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 |
| 843 | mkdir -p ${OPENLANETOP_STAGING_$*} |
| 844 | mkdir -p ${OPENLANE_STAGING_$*} |
| 845 | rm -rf ${OPENLANE_STAGING_$*}/custom_cells/* |
| 846 | mkdir -p ${OPENLANE_STAGING_$*}/sky130_fd_sc_hd |
| 847 | mkdir -p ${OPENLANE_STAGING_$*}/sky130_fd_sc_hs |
| 848 | mkdir -p ${OPENLANE_STAGING_$*}/sky130_fd_sc_ls |
| 849 | mkdir -p ${OPENLANE_STAGING_$*}/sky130_fd_sc_ms |
| 850 | mkdir -p ${OPENLANE_STAGING_$*}/sky130_fd_sc_hdll |
| 851 | mkdir -p ${OPENLANE_STAGING_$*}/sky130_fd_sc_hvl |
| 852 | mkdir -p ${OPENLANE_STAGING_$*}/sky130_osu_sc_t18 |
| 853 | rm -f ${OPENLANE_STAGING_$*}/common_pdn.info |
| 854 | rm -f ${OPENLANE_STAGING_$*}/config.tcl |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 855 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 856 | rm -f ${OPENLANE_STAGING_$*}/sky130_fd_sc_hd/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 857 | done |
| 858 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 859 | rm -f ${OPENLANE_STAGING_$*}/sky130_fd_sc_hs/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 860 | done |
| 861 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 862 | rm -f ${OPENLANE_STAGING_$*}/sky130_fd_sc_hdll/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 863 | done |
| 864 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 865 | rm -f ${OPENLANE_STAGING_$*}/sky130_fd_sc_ls/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 866 | done |
| 867 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 868 | rm -f ${OPENLANE_STAGING_$*}/sky130_fd_sc_ms/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 869 | done |
| 870 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 871 | rm -f ${OPENLANE_STAGING_$*}/sky130_fd_sc_hvl/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 872 | done |
| 873 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 874 | rm -f ${OPENLANE_STAGING_$*}/sky130_osu_sc_t18/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 875 | done |
| 876 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 877 | cp -r openlane/custom_cells ${OPENLANE_STAGING_$*} |
| 878 | ${CPP} ${SKY130$*_DEFS} openlane/config.tcl ${OPENLANE_STAGING_$*}/config.tcl |
| 879 | ${CPP} ${SKY130$*_DEFS} openlane/rcx_rules.info ${OPENLANE_STAGING_$*}/rcx_rules.info |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 880 | |
| 881 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 882 | ${CPP} -quiet ${SKY130$*_DEFS} openlane/sky130_fd_sc_hd/$$file \ |
| 883 | ${OPENLANE_STAGING_$*}/sky130_fd_sc_hd/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 884 | done |
| 885 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 886 | ${CPP} -quiet ${SKY130$*_DEFS} openlane/sky130_fd_sc_hs/$$file \ |
| 887 | ${OPENLANE_STAGING_$*}/sky130_fd_sc_hs/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 888 | done |
| 889 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 890 | ${CPP} -quiet ${SKY130$*_DEFS} openlane/sky130_fd_sc_ms/$$file \ |
| 891 | ${OPENLANE_STAGING_$*}/sky130_fd_sc_ms/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 892 | done |
| 893 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 894 | ${CPP} -quiet ${SKY130$*_DEFS} openlane/sky130_fd_sc_ls/$$file \ |
| 895 | ${OPENLANE_STAGING_$*}/sky130_fd_sc_ls/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 896 | done |
| 897 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 898 | ${CPP} -quiet ${SKY130$*_DEFS} openlane/sky130_fd_sc_hdll/$$file \ |
| 899 | ${OPENLANE_STAGING_$*}/sky130_fd_sc_hdll/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 900 | done |
| 901 | for file in ${OPENLANE_COMMON} ; do \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 902 | ${CPP} -quiet ${SKY130$*_DEFS} openlane/sky130_fd_sc_hvl/$$file \ |
| 903 | ${OPENLANE_STAGING_$*}/sky130_fd_sc_hvl/$$file ; \ |
Tim Edwards | f8c7eb8 | 2021-02-10 09:07:54 -0500 | [diff] [blame] | 904 | done |
| 905 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 906 | ${CPP} -quiet ${SKY130$*_DEFS} openlane/sky130_osu_sc_t18/config.tcl \ |
| 907 | ${OPENLANE_STAGING_$*}/sky130_osu_sc_t18/config.tcl |
| 908 | ${CPP} -quiet ${SKY130$*_DEFS} openlane/sky130_osu_sc_t18/tracks.info \ |
| 909 | ${OPENLANE_STAGING_$*}/sky130_osu_sc_t18/tracks.info |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 910 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 911 | vendor-%: |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 912 | # Build targets conditionally based on what repositories or submodules |
| 913 | # were selected or initialized. To be done: Allow a library version |
| 914 | # to be specified that overrides "latest". |
| 915 | if test -d ${SKYWATER_LIBS_PATH}/sky130_fd_pr/latest/cells ; then \ |
| 916 | echo "Building primitives library and simulation models" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 917 | make primitive-$*;\ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 918 | fi |
| 919 | if test -d ${SKYWATER_LIBS_PATH}/sky130_fd_io/latest/cells ; then \ |
| 920 | echo "Building padframe I/O libraries" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 921 | make io-$* ;\ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 922 | fi |
| 923 | # This assumes that at least the HD library submodule exists. Also it |
| 924 | # assumes that the same library version is used for all libraries, which |
| 925 | # is fine with "latest" but otherwise probably invalid. |
| 926 | 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] | 927 | echo "Building digital high-density standard cell library" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 928 | make digital-hd-$* ;\ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 929 | fi |
| 930 | if test -d ${SKYWATER_LIBS_PATH}/sky130_fd_sc_hvl/latest/cells ; then \ |
| 931 | echo "Building digital high-voltage standard cell library" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 932 | make digital-hvl-$* ;\ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 933 | fi |
| 934 | if test -d ${SKYWATER_LIBS_PATH}/sky130_fd_sc_hdll/latest/cells ; then \ |
| 935 | echo "Building digital high-density low-leakage standard cell library" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 936 | make digital-hdll-$* ;\ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 937 | fi |
| 938 | if test -d ${SKYWATER_LIBS_PATH}/sky130_fd_sc_lp/latest/cells ; then \ |
| 939 | echo "Building digital low-power standard cell library" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 940 | make digital-lp-$* ;\ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 941 | fi |
| 942 | if test -d ${SKYWATER_LIBS_PATH}/sky130_fd_sc_hs/latest/cells ; then \ |
| 943 | echo "Building digital high-speed standard cell library" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 944 | make digital-hs-$* ;\ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 945 | fi |
| 946 | if test -d ${SKYWATER_LIBS_PATH}/sky130_fd_sc_ms/latest/cells ; then \ |
| 947 | echo "Building digital medium-speed standard cell library" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 948 | make digital-ms-$* ;\ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 949 | fi |
| 950 | if test -d ${SKYWATER_LIBS_PATH}/sky130_fd_sc_ls/latest/cells ; then \ |
| 951 | echo "Building digital low-speed standard cell library" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 952 | make digital-ls-$* ;\ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 953 | fi |
Tim Edwards | e5e43b5 | 2021-09-08 11:46:04 -0400 | [diff] [blame] | 954 | if test "x${ALPHA_PATH}" != "x" ; then \ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 955 | echo "Building alphanumeric layout libraries" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 956 | make alpha-$* ;\ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 957 | fi |
Tim Edwards | e5e43b5 | 2021-09-08 11:46:04 -0400 | [diff] [blame] | 958 | if test "x${SRAM_PATH}" != "x" ; then \ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 959 | echo "Building SRAM macro library" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 960 | make sram-$* ;\ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 961 | fi |
Tim Edwards | e5e43b5 | 2021-09-08 11:46:04 -0400 | [diff] [blame] | 962 | if test "x${OSU_T12_PATH}" != "x" ; then \ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 963 | echo "Building OSU 12-track-high standard cell library" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 964 | make osu-t12-$* ;\ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 965 | fi |
Tim Edwards | e5e43b5 | 2021-09-08 11:46:04 -0400 | [diff] [blame] | 966 | if test "x${OSU_T15_PATH}" != "x" ; then \ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 967 | echo "Building OSU 15-track-high standard cell library" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 968 | make osu-t15-$* ;\ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 969 | fi |
Tim Edwards | e5e43b5 | 2021-09-08 11:46:04 -0400 | [diff] [blame] | 970 | if test "x${OSU_T18_PATH}" != "x" ; then \ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 971 | echo "Building OSU 18-track-high standard cell library" ;\ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 972 | make osu-t18-$* ;\ |
Tim Edwards | daad106 | 2021-05-19 10:51:27 -0400 | [diff] [blame] | 973 | fi |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 974 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 975 | primitive-%: |
Tim Edwards | 106e38b | 2020-09-20 13:07:54 -0400 | [diff] [blame] | 976 | # Install device subcircuits from vendor files |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 977 | ${STAGE} -source ${SKYWATER_LIBS_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 995c133 | 2020-09-25 15:33:58 -0400 | [diff] [blame] | 978 | -ngspice sky130_fd_pr/latest/models/* \ |
Tim Edwards | fd20a0a | 2021-08-31 19:58:51 -0400 | [diff] [blame] | 979 | filter=custom/scripts/rename_models.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 980 | 2>&1 | tee -a ${SKY130$*}_make.log |
Tim 'mithro' Ansell | 3c6913c | 2021-06-13 10:35:33 -0700 | [diff] [blame] | 981 | # Install device layouts from custom sources |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 982 | ${STAGE} -source ./custom -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 7e29496 | 2021-05-04 20:33:17 -0400 | [diff] [blame] | 983 | -gds sky130_fd_pr/*.gds \ |
| 984 | options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 985 | -library primitive sky130_fd_pr 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | 4697a17 | 2021-11-05 22:47:07 -0400 | [diff] [blame] | 986 | # Install base device library from vendor files. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 987 | ${STAGE} -source ${SKYWATER_LIBS_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 7e29496 | 2021-05-04 20:33:17 -0400 | [diff] [blame] | 988 | -gds %l/latest/cells/*/*.gds \ |
Tim Edwards | 4697a17 | 2021-11-05 22:47:07 -0400 | [diff] [blame] | 989 | no-copy=custom/sky130_fd_pr/*.gds \ |
| 990 | include=custom/sky130_fd_pr/*.gds \ |
Tim Edwards | 7e29496 | 2021-05-04 20:33:17 -0400 | [diff] [blame] | 991 | compile-only \ |
Tim Edwards | b6e8c7e | 2021-03-30 12:20:15 -0400 | [diff] [blame] | 992 | options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 106e38b | 2020-09-20 13:07:54 -0400 | [diff] [blame] | 993 | -cdl %l/latest/cells/*/*.cdl compile-only \ |
| 994 | -lef %l/latest/cells/*/*.magic.lef compile-only \ |
Tim Edwards | bfc8269 | 2020-09-20 21:33:08 -0400 | [diff] [blame] | 995 | -spice %l/latest/cells/*/*.spice filter=custom/scripts/rename_cells.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 996 | -library primitive sky130_fd_pr 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | e60b486 | 2020-11-23 16:56:52 -0500 | [diff] [blame] | 997 | # 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] | 998 | cat ./custom/models/short.spice >> \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 999 | ${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] | 1000 | # Custom: Add diodes as subcircuits to the r+c models file |
| 1001 | cat ./custom/models/diode.spice >> \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1002 | ${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] | 1003 | # Custom: Add resistors as subcircuits to the r+c models file |
| 1004 | cat ./custom/models/resistor.spice >> \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1005 | ${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] | 1006 | |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 1007 | # Custom: Patch the models to work around ngspice issue with the relative |
| 1008 | # order of the "nf" and "mult" parameters. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1009 | patch -p4 -f -d ${STAGING_PATH}/${SKY130$*}/libs.ref/${PR_SPICE} \ |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 1010 | < custom/patches/sky130_fd_pr.patch \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1011 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
| 1012 | patch -p1 -f -d ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 25972f8 | 2021-04-27 21:45:58 -0400 | [diff] [blame] | 1013 | < custom/patches/sky130_fd_pr_2.patch \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1014 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | f499ad2 | 2021-05-04 16:55:21 -0400 | [diff] [blame] | 1015 | # Custom: Patch the models to remove the substrate pin from the PNP |
| 1016 | # device, which has no independent substrate pin (collector=substrate) |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1017 | patch -p4 -f -d ${STAGING_PATH}/${SKY130$*}/libs.ref/${PR_SPICE} \ |
Tim Edwards | f499ad2 | 2021-05-04 16:55:21 -0400 | [diff] [blame] | 1018 | < custom/patches/sky130_fd_pr_3.patch \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1019 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | f63ee05 | 2021-04-29 15:13:45 -0400 | [diff] [blame] | 1020 | # Custom: Patch the ngspice models to add the HV diffusion resistor subcircuits |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1021 | patch -p2 -f -d ${STAGING_PATH}/${SKY130$*}/libs.tech/ngspice \ |
Tim Edwards | f63ee05 | 2021-04-29 15:13:45 -0400 | [diff] [blame] | 1022 | < custom/patches/sky130_fd_pr_5.patch \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1023 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | f499ad2 | 2021-05-04 16:55:21 -0400 | [diff] [blame] | 1024 | # Fix up the PNP model file before running the next modification |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1025 | 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 |
| 1026 | 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 |
| 1027 | 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] | 1028 | # 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] | 1029 | ./custom/scripts/fix_spice_includes.py ${EF_FORMAT} \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1030 | ${STAGING_PATH}/${SKY130$*}/libs.tech/ngspice/all.spice \ |
| 1031 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | 9fdf5f0 | 2021-05-03 16:15:03 -0400 | [diff] [blame] | 1032 | # Custom: Parse the (commented out) statistics blocks and generate |
| 1033 | # ngspice-compatible monte carlo parameters for mismatch and process |
Tim Edwards | 8b5d694 | 2021-09-08 11:12:50 -0400 | [diff] [blame] | 1034 | ./custom/scripts/mismatch_params.py ${EF_FORMAT} \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1035 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | 8b5d694 | 2021-09-08 11:12:50 -0400 | [diff] [blame] | 1036 | ./custom/scripts/mismatch_params.py ${EF_FORMAT} \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1037 | ${STAGING_PATH}/${SKY130$*}/libs.tech/ngspice \ |
| 1038 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | 00bfca5 | 2021-05-04 10:48:46 -0400 | [diff] [blame] | 1039 | ./custom/scripts/process_params.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1040 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | 33ce97a | 2021-05-24 20:51:28 -0400 | [diff] [blame] | 1041 | ./custom/scripts/montecarlo_hack.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1042 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | 1c74f85 | 2021-06-09 16:46:50 -0400 | [diff] [blame] | 1043 | # Custom: Change vt to local_vt in one file for Xyce compatibilty |
| 1044 | ./custom/scripts/xyce_hack.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1045 | ${STAGING_PATH}/${SKY130$*}/libs.ref/${PR_SPICE}/sky130_fd_pr__res_iso_pw.model.spice \ |
| 1046 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | c12c795 | 2021-08-26 11:23:42 -0400 | [diff] [blame] | 1047 | # Custom: Remove ACM model parameters from BSIM3 devices |
| 1048 | ./custom/scripts/xyce_hack2.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1049 | ${STAGING_PATH}/${SKY130$*}/libs.ref/${PR_SPICE}/sky130_fd_pr__special_nfet_pass.pm3.spice \ |
| 1050 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | c12c795 | 2021-08-26 11:23:42 -0400 | [diff] [blame] | 1051 | ./custom/scripts/xyce_hack2.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1052 | ${STAGING_PATH}/${SKY130$*}/libs.ref/${PR_SPICE}/sky130_fd_pr__special_pfet_pass.pm3.spice \ |
| 1053 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | c12c795 | 2021-08-26 11:23:42 -0400 | [diff] [blame] | 1054 | ./custom/scripts/xyce_hack2.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1055 | ${STAGING_PATH}/${SKY130$*}/libs.ref/${PR_SPICE}/sky130_fd_pr__special_nfet_latch.pm3.spice \ |
| 1056 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | c12c795 | 2021-08-26 11:23:42 -0400 | [diff] [blame] | 1057 | |
Tim Edwards | 3c8f63a | 2021-09-14 11:05:48 -0400 | [diff] [blame] | 1058 | # Install custom corrected/enhanced sky130.lib.spice |
| 1059 | cp custom/models/sky130.lib.spice \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1060 | ${STAGING_PATH}/${SKY130$*}/libs.tech/ngspice \ |
| 1061 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | 956e302 | 2021-05-27 20:43:26 -0400 | [diff] [blame] | 1062 | # Custom: Add special device ID layers to bipolar layouts in magic |
| 1063 | # to make the extraction models correct. |
Tim Edwards | 8b5d694 | 2021-09-08 11:12:50 -0400 | [diff] [blame] | 1064 | ./custom/scripts/add_bipolar_ids.py ${EF_FORMAT} \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1065 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | 9fdf5f0 | 2021-05-03 16:15:03 -0400 | [diff] [blame] | 1066 | |
Tim Edwards | 10aa9ab | 2021-03-15 17:46:29 -0400 | [diff] [blame] | 1067 | # Custom: Add "spinit" file |
| 1068 | cat ./custom/models/spinit >> \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1069 | ${STAGING_PATH}/${SKY130$*}/libs.tech/ngspice/spinit |
Tim Edwards | 10aa9ab | 2021-03-15 17:46:29 -0400 | [diff] [blame] | 1070 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1071 | io-%: |
Ahmed Ghazy | 59370ab | 2020-10-29 02:04:45 +0200 | [diff] [blame] | 1072 | # Install custom additions to I/O pad library |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1073 | ${STAGE} -source ./custom -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | b063d37 | 2021-11-12 16:15:18 -0500 | [diff] [blame] | 1074 | -verilog %l/verilog/*.v compile-only rename=sky130_ef_io \ |
Ahmed Ghazy | 59370ab | 2020-10-29 02:04:45 +0200 | [diff] [blame] | 1075 | -cdl %l/cdl/*.cdl \ |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1076 | -spice %l/spice/*.spice \ |
Tim Edwards | 89f6ff4 | 2021-12-02 09:48:21 -0500 | [diff] [blame] | 1077 | -lib %l/lib/*.lib \ |
Tim Edwards | b6e8c7e | 2021-03-30 12:20:15 -0400 | [diff] [blame] | 1078 | -gds %l/gds/*.gds options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | b063d37 | 2021-11-12 16:15:18 -0500 | [diff] [blame] | 1079 | -lef %l/lef/*.lef exclude=sky130_fd_io__top_xres4v2.lef \ |
| 1080 | compile-only rename=sky130_ef_io \ |
| 1081 | -lef %l/lef/sky130_fd_io__top_xres4v2.lef \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1082 | -library general sky130_fd_io 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1083 | # Install SkyWater I/O pad library |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1084 | ${STAGE} -source ${SKYWATER_LIBS_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 1134fbc | 2020-10-12 22:35:42 -0400 | [diff] [blame] | 1085 | -cdl %l/latest/cells/*/*.cdl ignore=topography compile-only \ |
Tim Edwards | 4697a17 | 2021-11-05 22:47:07 -0400 | [diff] [blame] | 1086 | include=custom/sky130_fd_io/cdl/*.cdl \ |
emayecs | cbcb465 | 2021-08-30 21:29:20 -0400 | [diff] [blame] | 1087 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | b063d37 | 2021-11-12 16:15:18 -0500 | [diff] [blame] | 1088 | -lef %l/latest/cells/*/*.lef annotate lefopts=-hide compile-only \ |
| 1089 | no-copy=sky130_fd_io__top_xres4v2.lef \ |
| 1090 | include=sky130_fd_io__top_xres4v2.lef \ |
Tim Edwards | 91ddc9a | 2021-06-24 22:50:30 -0400 | [diff] [blame] | 1091 | exclude=*.magic.lef,sky130_ef_io.lef \ |
emayecs | cbcb465 | 2021-08-30 21:29:20 -0400 | [diff] [blame] | 1092 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | 1134fbc | 2020-10-12 22:35:42 -0400 | [diff] [blame] | 1093 | -doc %l/latest/cells/*/*.pdf \ |
| 1094 | -lib %l/latest/timing/*.lib \ |
| 1095 | -gds %l/latest/cells/*/*.gds compile-only \ |
emayecs | cbcb465 | 2021-08-30 21:29:20 -0400 | [diff] [blame] | 1096 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | 26ab496 | 2021-01-03 14:22:54 -0500 | [diff] [blame] | 1097 | options=custom/scripts/sky130_fd_io_import.tcl \ |
Tim Edwards | c979202 | 2021-11-15 17:51:05 -0500 | [diff] [blame] | 1098 | -verilog %l/latest/cells/*/*.*.v \ |
Tim Edwards | b063d37 | 2021-11-12 16:15:18 -0500 | [diff] [blame] | 1099 | -verilog %l/latest/cells/*/*.v exclude=*.*.v,sky130_ef_io.v \ |
Tim Edwards | 1134fbc | 2020-10-12 22:35:42 -0400 | [diff] [blame] | 1100 | compile-only filter=custom/scripts/inc_verilog.py \ |
emayecs | cbcb465 | 2021-08-30 21:29:20 -0400 | [diff] [blame] | 1101 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1102 | -library general sky130_fd_io 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | 1134fbc | 2020-10-12 22:35:42 -0400 | [diff] [blame] | 1103 | # Remove the base verilog files which have already been included into |
| 1104 | # the libraries |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1105 | ${RM} ${STAGING_PATH}/${SKY130$*}/libs.ref/${IO_VERILOG}/*.*.v |
Tim Edwards | f35c607 | 2021-06-15 16:00:27 -0400 | [diff] [blame] | 1106 | # Add a maskhint set for the GPIO pad .mag view to prevent problems writing |
| 1107 | # when writing HVI to GDS during hierarchical adjustments. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1108 | ${ADDPROP} ${STAGING_PATH}/${SKY130$*} sky130_fd_io sky130_fd_io__top_gpiov2 \ |
Tim Edwards | f35c607 | 2021-06-15 16:00:27 -0400 | [diff] [blame] | 1109 | "MASKHINTS_HVI 1346 17198 5828 19224 13700 1890 15920 2360 24 17522 1778 20612" -mag |
| 1110 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1111 | digital-hd-%: |
Tim Edwards | aac3d1a | 2021-06-15 16:37:10 -0400 | [diff] [blame] | 1112 | # Install custom additions to standard cell libraries |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1113 | ${STAGE} -source ./custom -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | aac3d1a | 2021-06-15 16:37:10 -0400 | [diff] [blame] | 1114 | -gds %l/gds/*.gds options=custom/scripts/gds_import_setup.tcl \ |
| 1115 | -lef %l/lef/*.lef \ |
| 1116 | -verilog %l/verilog/*.v \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1117 | -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] | 1118 | # Install all SkyWater digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1119 | ${STAGE} -source ${SKYWATER_LIBS_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | fb7b41f | 2022-01-18 11:46:30 -0500 | [diff] [blame] | 1120 | -techlef %l/latest/tech/*.tlef filter=custom/scripts/fix_techlef$*.py \ |
Tim Edwards | fd5136b | 2020-07-08 22:57:04 -0400 | [diff] [blame] | 1121 | -spice %l/latest/cells/*/*.spice compile-only \ |
emayecs | cbcb465 | 2021-08-30 21:29:20 -0400 | [diff] [blame] | 1122 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | 99a5cf9 | 2021-05-16 16:42:49 -0400 | [diff] [blame] | 1123 | filter=custom/scripts/fix_device_models.py \ |
Tim Edwards | fd5136b | 2020-07-08 22:57:04 -0400 | [diff] [blame] | 1124 | -cdl %l/latest/cells/*/*.cdl ignore=topography compile-only \ |
emayecs | cbcb465 | 2021-08-30 21:29:20 -0400 | [diff] [blame] | 1125 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | b063d37 | 2021-11-12 16:15:18 -0500 | [diff] [blame] | 1126 | -lef %l/latest/cells/*/*.lef \ |
| 1127 | exclude=*.magic.lef lefopts=-toplayer \ |
Tim Edwards | 4697a17 | 2021-11-05 22:47:07 -0400 | [diff] [blame] | 1128 | include=custom/sky130_fd_sc_hd/lef/sky130_ef*.lef \ |
Tim Edwards | fd17c61 | 2021-12-07 14:27:19 -0500 | [diff] [blame] | 1129 | filter=custom/scripts/fix_digital_lef.py \ |
Tim Edwards | b063d37 | 2021-11-12 16:15:18 -0500 | [diff] [blame] | 1130 | annotate compile-only \ |
emayecs | cbcb465 | 2021-08-30 21:29:20 -0400 | [diff] [blame] | 1131 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | fd5136b | 2020-07-08 22:57:04 -0400 | [diff] [blame] | 1132 | -doc %l/latest/cells/*/*.pdf \ |
Tim Edwards | 7ea4166 | 2021-10-29 18:46:38 -0400 | [diff] [blame] | 1133 | -lib %l/latest/timing/*.lib filter=custom/scripts/add_wireloads.py \ |
Tim Edwards | fd5136b | 2020-07-08 22:57:04 -0400 | [diff] [blame] | 1134 | -gds %l/latest/cells/*/*.gds compile-only \ |
Tim Edwards | 4697a17 | 2021-11-05 22:47:07 -0400 | [diff] [blame] | 1135 | no-copy=custom/sky130_fd_sc_hd/gds/sky130_fd*.gds \ |
| 1136 | include=custom/sky130_fd_sc_hd/gds/sky130_ef*.gds \ |
Tim Edwards | b6e8c7e | 2021-03-30 12:20:15 -0400 | [diff] [blame] | 1137 | options=custom/scripts/gds_import_setup.tcl \ |
emayecs | cbcb465 | 2021-08-30 21:29:20 -0400 | [diff] [blame] | 1138 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | 4697a17 | 2021-11-05 22:47:07 -0400 | [diff] [blame] | 1139 | -verilog %l/latest/models/*/*.v \ |
| 1140 | exclude=*.*.v include=custom/sky130_fd_sc_hd/verilog/*.v \ |
| 1141 | compile-only \ |
Tim Edwards | 995c133 | 2020-09-25 15:33:58 -0400 | [diff] [blame] | 1142 | rename=primitives filter=custom/scripts/inc_verilog.py \ |
emayecs | cbcb465 | 2021-08-30 21:29:20 -0400 | [diff] [blame] | 1143 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | 995c133 | 2020-09-25 15:33:58 -0400 | [diff] [blame] | 1144 | -verilog %l/latest/cells/*/*.*.v \ |
| 1145 | -verilog %l/latest/cells/*/*.v exclude=*.*.v,primitives.v \ |
| 1146 | compile-only filter=custom/scripts/inc_verilog.py \ |
emayecs | cbcb465 | 2021-08-30 21:29:20 -0400 | [diff] [blame] | 1147 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1148 | -library digital sky130_fd_sc_hd 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1149 | # 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] | 1150 | # when writing NSDM and PSDM to GDS during hierarchical adjustments. |
Tim Edwards | 22f014d | 2022-01-26 10:37:03 -0500 | [diff] [blame^] | 1151 | ${ADDPROP} ${STAGING_PATH}/${SKY130$*} sky130_fd_sc_hd \ |
| 1152 | sky130_fd_sc_hd__tapvpwrvgnd_1 \ |
Tim Edwards | 772de8c | 2022-01-19 14:02:04 -0500 | [diff] [blame] | 1153 | "MASKHINTS_PSDM 0 38 92 195" -mag |
Tim Edwards | 22f014d | 2022-01-26 10:37:03 -0500 | [diff] [blame^] | 1154 | ${ADDPROP} ${STAGING_PATH}/${SKY130$*} sky130_fd_sc_hd \ |
| 1155 | sky130_fd_sc_hd__tapvpwrvgnd_1 \ |
Tim Edwards | 772de8c | 2022-01-19 14:02:04 -0500 | [diff] [blame] | 1156 | "MASKHINTS_NSDM 0 279 92 506" -mag |
Tim Edwards | 22f014d | 2022-01-26 10:37:03 -0500 | [diff] [blame^] | 1157 | # Quick solution to extraction issue---connect VNB label pwell to rest |
| 1158 | ${ADDLAYER} ${STAGING_PATH}/${SKY130$*} sky130_fd_sc_hd \ |
| 1159 | sky130_fd_sc_hd__a21bo_1 \ |
| 1160 | pwell "29 17 69 157" -mag |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1161 | # Remove the base verilog files which have already been included into |
| 1162 | # the libraries |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1163 | ${RM} ${STAGING_PATH}/${SKY130$*}/libs.ref/${HD_VERILOG}/*.*.v |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1164 | # Apply extra PDK patches until they get fixed properly in the source |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1165 | patch -p1 -f -d ${STAGING_PATH}/${SKY130$*}/libs.ref/${HD_TECHLEF} \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1166 | < custom/patches/hd_minenclosed.squeaky.patch \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1167 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
| 1168 | patch -p1 -f -d ${STAGING_PATH}/${SKY130$*}/libs.ref/${HD_VERILOG} \ |
Tim Edwards | 24f2950 | 2021-10-13 15:49:00 -0400 | [diff] [blame] | 1169 | < custom/patches/hd_wire_syntax.patch \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1170 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1171 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1172 | digital-hdll-%: |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1173 | # Install all SkyWater digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1174 | ${STAGE} -source ${SKYWATER_LIBS_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | fb7b41f | 2022-01-18 11:46:30 -0500 | [diff] [blame] | 1175 | -techlef %l/latest/tech/*.tlef filter=custom/scripts/fix_techlef$*.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1176 | -spice %l/latest/cells/*/*.spice compile-only \ |
| 1177 | sort=../common/sort_pdkfiles.py \ |
| 1178 | filter=custom/scripts/fix_device_models.py \ |
| 1179 | -cdl %l/latest/cells/*/*.cdl ignore=topography compile-only \ |
| 1180 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | b063d37 | 2021-11-12 16:15:18 -0500 | [diff] [blame] | 1181 | -lef %l/latest/cells/*/*.lef annotate compile-only \ |
| 1182 | exclude=*.magic.lef lefopts=-toplayer \ |
Tim Edwards | fd17c61 | 2021-12-07 14:27:19 -0500 | [diff] [blame] | 1183 | filter=custom/scripts/fix_digital_lef.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1184 | sort=../common/sort_pdkfiles.py \ |
| 1185 | -doc %l/latest/cells/*/*.pdf \ |
Tim Edwards | 7ea4166 | 2021-10-29 18:46:38 -0400 | [diff] [blame] | 1186 | -lib %l/latest/timing/*.lib custom/scripts/add_wireloads.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1187 | -gds %l/latest/cells/*/*.gds compile-only \ |
| 1188 | options=custom/scripts/gds_import_setup.tcl \ |
| 1189 | sort=../common/sort_pdkfiles.py \ |
| 1190 | -verilog %l/latest/models/*/*.v exclude=*.*.v compile-only \ |
| 1191 | rename=primitives filter=custom/scripts/inc_verilog.py \ |
| 1192 | sort=../common/sort_pdkfiles.py \ |
| 1193 | -verilog %l/latest/cells/*/*.*.v \ |
| 1194 | -verilog %l/latest/cells/*/*.v exclude=*.*.v,primitives.v \ |
| 1195 | compile-only filter=custom/scripts/inc_verilog.py \ |
| 1196 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1197 | -library digital sky130_fd_sc_hdll 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1198 | # Remove the base verilog files which have already been included into |
| 1199 | # the libraries |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1200 | ${RM} ${STAGING_PATH}/${SKY130$*}/libs.ref/${HDLL_VERILOG}/*.*.v |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1201 | # Apply extra PDK patches until they get fixed properly in the source |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1202 | patch -p1 -f -d ${STAGING_PATH}/${SKY130$*}/libs.ref/${HDLL_TECHLEF} \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1203 | < custom/patches/hdll_minenclosed.squeaky.patch \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1204 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1205 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1206 | digital-hvl-%: |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1207 | # Install custom additions to standard cell libraries |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1208 | ${STAGE} -source ./custom -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1209 | -gds %l/gds/*.gds options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 11fb930 | 2021-12-28 21:26:02 -0500 | [diff] [blame] | 1210 | -spice %l/spice/*.spice \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1211 | -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] | 1212 | # Install all SkyWater digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1213 | ${STAGE} -source ${SKYWATER_LIBS_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | fb7b41f | 2022-01-18 11:46:30 -0500 | [diff] [blame] | 1214 | -techlef %l/latest/tech/*.tlef filter=custom/scripts/fix_techlef$*.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1215 | -spice %l/latest/cells/*/*.spice compile-only \ |
Tim Edwards | 11fb930 | 2021-12-28 21:26:02 -0500 | [diff] [blame] | 1216 | no-copy=custom/sky130_fd_sc_hvl/spice/sky130_fd*.spice \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1217 | sort=../common/sort_pdkfiles.py \ |
| 1218 | filter=custom/scripts/fix_device_models.py \ |
| 1219 | -cdl %l/latest/cells/*/*.cdl ignore=topography compile-only \ |
| 1220 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | b063d37 | 2021-11-12 16:15:18 -0500 | [diff] [blame] | 1221 | -lef %l/latest/cells/*/*.lef annotate compile-only \ |
| 1222 | exclude=*.magic.lef lefopts=-toplayer \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1223 | sort=../common/sort_pdkfiles.py \ |
| 1224 | -doc %l/latest/cells/*/*.pdf \ |
Tim Edwards | 7ea4166 | 2021-10-29 18:46:38 -0400 | [diff] [blame] | 1225 | -lib %l/latest/timing/*.lib custom/scripts/add_wireloads.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1226 | -gds %l/latest/cells/*/*.gds compile-only \ |
Tim Edwards | 4697a17 | 2021-11-05 22:47:07 -0400 | [diff] [blame] | 1227 | include=custom/sky130_fd_sc_hvl/gds/sky130_ef*.gds \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1228 | options=custom/scripts/gds_import_setup.tcl \ |
| 1229 | sort=../common/sort_pdkfiles.py \ |
| 1230 | -verilog %l/latest/models/*/*.v exclude=*.*.v compile-only \ |
| 1231 | rename=primitives filter=custom/scripts/inc_verilog.py \ |
| 1232 | sort=../common/sort_pdkfiles.py \ |
| 1233 | -verilog %l/latest/cells/*/*.*.v \ |
| 1234 | -verilog %l/latest/cells/*/*.v exclude=*.*.v,primitives.v \ |
| 1235 | compile-only filter=custom/scripts/inc_verilog.py \ |
| 1236 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1237 | -library digital sky130_fd_sc_hvl 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | f6a94bd | 2021-06-01 11:02:58 -0400 | [diff] [blame] | 1238 | # Add a maskhint to the HVL level shifter to represent the HVI layer as |
| 1239 | # 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] | 1240 | ${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] | 1241 | "MASKHINTS_HVI 22 34 706 1316" -mag |
Tim Edwards | 995c133 | 2020-09-25 15:33:58 -0400 | [diff] [blame] | 1242 | # Remove the base verilog files which have already been included into |
| 1243 | # the libraries |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1244 | ${RM} ${STAGING_PATH}/${SKY130$*}/libs.ref/${HVL_VERILOG}/*.*.v |
Tim Edwards | f63ee05 | 2021-04-29 15:13:45 -0400 | [diff] [blame] | 1245 | # Custom: Patch the HVL library to correct the resistor device names |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1246 | patch -p3 -f -d ${STAGING_PATH}/${SKY130$*}/libs.ref/${HVL_SPICE} \ |
Tim Edwards | 16b050b | 2021-05-17 16:45:34 -0400 | [diff] [blame] | 1247 | < custom/patches/sky130_fd_pr_${HVL_PATCH4}.patch \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1248 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
| 1249 | patch -p3 -f -d ${STAGING_PATH}/${SKY130$*}/libs.ref/${HVL_CDL} \ |
Tim Edwards | f63ee05 | 2021-04-29 15:13:45 -0400 | [diff] [blame] | 1250 | < custom/patches/sky130_fd_pr_6.patch \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1251 | 2>&1 | tee -a ${SKY130$*}_make.log || true |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1252 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1253 | digital-lp-%: |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1254 | # Install all SkyWater digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1255 | ${STAGE} -source ${SKYWATER_LIBS_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | fb7b41f | 2022-01-18 11:46:30 -0500 | [diff] [blame] | 1256 | -techlef %l/latest/tech/*.tlef filter=custom/scripts/fix_techlef$*.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1257 | -spice %l/latest/cells/*/*.spice compile-only \ |
| 1258 | sort=../common/sort_pdkfiles.py \ |
| 1259 | filter=custom/scripts/fix_device_models.py \ |
| 1260 | -cdl %l/latest/cells/*/*.cdl ignore=topography compile-only \ |
| 1261 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | b063d37 | 2021-11-12 16:15:18 -0500 | [diff] [blame] | 1262 | -lef %l/latest/cells/*/*.lef annotate compile-only \ |
| 1263 | exclude=*.magic.lef lefopts=-toplayer \ |
Tim Edwards | fd17c61 | 2021-12-07 14:27:19 -0500 | [diff] [blame] | 1264 | filter=custom/scripts/fix_digital_lef.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1265 | sort=../common/sort_pdkfiles.py \ |
| 1266 | -doc %l/latest/cells/*/*.pdf \ |
Tim Edwards | 7ea4166 | 2021-10-29 18:46:38 -0400 | [diff] [blame] | 1267 | -lib %l/latest/timing/*.lib custom/scripts/add_wireloads.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1268 | -gds %l/latest/cells/*/*.gds compile-only \ |
| 1269 | options=custom/scripts/gds_import_setup.tcl \ |
| 1270 | sort=../common/sort_pdkfiles.py \ |
| 1271 | -verilog %l/latest/models/*/*.v exclude=*.*.v compile-only \ |
| 1272 | rename=primitives filter=custom/scripts/inc_verilog.py \ |
| 1273 | sort=../common/sort_pdkfiles.py \ |
| 1274 | -verilog %l/latest/cells/*/*.*.v \ |
| 1275 | -verilog %l/latest/cells/*/*.v exclude=*.*.v,primitives.v \ |
| 1276 | compile-only filter=custom/scripts/inc_verilog.py \ |
| 1277 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1278 | -library digital sky130_fd_sc_lp 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1279 | # Remove the base verilog files which have already been included into |
| 1280 | # the libraries |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1281 | ${RM} ${STAGING_PATH}/${SKY130$*}/libs.ref/${LP_VERILOG}/*.*.v |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1282 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1283 | digital-hs-%: |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1284 | # Install custom additions to standard cell libraries |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1285 | ${STAGE} -source ./custom -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1286 | -gds %l/gds/*.gds options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1287 | -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] | 1288 | # Install all SkyWater digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1289 | ${STAGE} -source ${SKYWATER_LIBS_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | fb7b41f | 2022-01-18 11:46:30 -0500 | [diff] [blame] | 1290 | -techlef %l/latest/tech/*.tlef filter=custom/scripts/fix_techlef$*.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1291 | -spice %l/latest/cells/*/*.spice compile-only \ |
| 1292 | sort=../common/sort_pdkfiles.py \ |
| 1293 | filter=custom/scripts/fix_device_models.py \ |
| 1294 | -cdl %l/latest/cells/*/*.cdl ignore=topography compile-only \ |
| 1295 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | b063d37 | 2021-11-12 16:15:18 -0500 | [diff] [blame] | 1296 | -lef %l/latest/cells/*/*.lef annotate compile-only \ |
| 1297 | exclude=*.magic.lef lefopts=-toplayer \ |
Tim Edwards | fd17c61 | 2021-12-07 14:27:19 -0500 | [diff] [blame] | 1298 | filter=custom/scripts/fix_digital_lef.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1299 | sort=../common/sort_pdkfiles.py \ |
| 1300 | -doc %l/latest/cells/*/*.pdf \ |
Tim Edwards | 7ea4166 | 2021-10-29 18:46:38 -0400 | [diff] [blame] | 1301 | -lib %l/latest/timing/*.lib custom/scripts/add_wireloads.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1302 | -gds %l/latest/cells/*/*.gds compile-only \ |
Tim Edwards | 4697a17 | 2021-11-05 22:47:07 -0400 | [diff] [blame] | 1303 | no-copy=custom/sky130_fd_sc_hs/gds/sky130_fd*.gds \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1304 | options=custom/scripts/gds_import_setup.tcl \ |
| 1305 | sort=../common/sort_pdkfiles.py \ |
| 1306 | -verilog %l/latest/models/*/*.v exclude=*.*.v compile-only \ |
| 1307 | rename=primitives filter=custom/scripts/inc_verilog.py \ |
| 1308 | sort=../common/sort_pdkfiles.py \ |
| 1309 | -verilog %l/latest/cells/*/*.*.v \ |
| 1310 | -verilog %l/latest/cells/*/*.v exclude=*.*.v,primitives.v \ |
| 1311 | compile-only filter=custom/scripts/inc_verilog.py \ |
| 1312 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1313 | -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] | 1314 | # Remove the base verilog files which have already been included into |
| 1315 | # the libraries |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1316 | ${RM} ${STAGING_PATH}/${SKY130$*}/libs.ref/${HS_VERILOG}/*.*.v |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1317 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1318 | digital-ms-%: |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1319 | # Install all SkyWater digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1320 | ${STAGE} -source ${SKYWATER_LIBS_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | fb7b41f | 2022-01-18 11:46:30 -0500 | [diff] [blame] | 1321 | -techlef %l/latest/tech/*.tlef filter=custom/scripts/fix_techlef$*.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1322 | -spice %l/latest/cells/*/*.spice compile-only \ |
| 1323 | sort=../common/sort_pdkfiles.py \ |
| 1324 | filter=custom/scripts/fix_device_models.py \ |
| 1325 | -cdl %l/latest/cells/*/*.cdl ignore=topography compile-only \ |
| 1326 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | b063d37 | 2021-11-12 16:15:18 -0500 | [diff] [blame] | 1327 | -lef %l/latest/cells/*/*.lef annotate compile-only \ |
| 1328 | exclude=*.magic.lef lefopts=-toplayer \ |
Tim Edwards | fd17c61 | 2021-12-07 14:27:19 -0500 | [diff] [blame] | 1329 | filter=custom/scripts/fix_digital_lef.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1330 | sort=../common/sort_pdkfiles.py \ |
| 1331 | -doc %l/latest/cells/*/*.pdf \ |
Tim Edwards | 7ea4166 | 2021-10-29 18:46:38 -0400 | [diff] [blame] | 1332 | -lib %l/latest/timing/*.lib custom/scripts/add_wireloads.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1333 | -gds %l/latest/cells/*/*.gds compile-only \ |
| 1334 | options=custom/scripts/gds_import_setup.tcl \ |
| 1335 | sort=../common/sort_pdkfiles.py \ |
| 1336 | -verilog %l/latest/models/*/*.v exclude=*.*.v compile-only \ |
| 1337 | rename=primitives filter=custom/scripts/inc_verilog.py \ |
| 1338 | sort=../common/sort_pdkfiles.py \ |
| 1339 | -verilog %l/latest/cells/*/*.*.v \ |
| 1340 | -verilog %l/latest/cells/*/*.v exclude=*.*.v,primitives.v \ |
| 1341 | compile-only filter=custom/scripts/inc_verilog.py \ |
| 1342 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1343 | -library digital sky130_fd_sc_ms 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1344 | # Remove the base verilog files which have already been included into |
| 1345 | # the libraries |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1346 | ${RM} ${STAGING_PATH}/${SKY130$*}/libs.ref/${MS_VERILOG}/*.*.v |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1347 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1348 | digital-ls-%: |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1349 | # Install all SkyWater digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1350 | ${STAGE} -source ${SKYWATER_LIBS_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | fb7b41f | 2022-01-18 11:46:30 -0500 | [diff] [blame] | 1351 | -techlef %l/latest/tech/*.tlef filter=custom/scripts/fix_techlef$*.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1352 | -spice %l/latest/cells/*/*.spice compile-only \ |
| 1353 | sort=../common/sort_pdkfiles.py \ |
| 1354 | filter=custom/scripts/fix_device_models.py \ |
| 1355 | -cdl %l/latest/cells/*/*.cdl ignore=topography compile-only \ |
| 1356 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | b063d37 | 2021-11-12 16:15:18 -0500 | [diff] [blame] | 1357 | -lef %l/latest/cells/*/*.lef annotate compile-only \ |
| 1358 | exclude=*.magic.lef lefopts=-toplayer \ |
Tim Edwards | b8c95cb | 2021-12-07 14:39:07 -0500 | [diff] [blame] | 1359 | filter=custom/scripts/fix_digital_lef.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1360 | sort=../common/sort_pdkfiles.py \ |
| 1361 | -doc %l/latest/cells/*/*.pdf \ |
Tim Edwards | 7ea4166 | 2021-10-29 18:46:38 -0400 | [diff] [blame] | 1362 | -lib %l/latest/timing/*.lib custom/scripts/add_wireloads.py \ |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1363 | -gds %l/latest/cells/*/*.gds compile-only \ |
| 1364 | options=custom/scripts/gds_import_setup.tcl \ |
| 1365 | sort=../common/sort_pdkfiles.py \ |
| 1366 | -verilog %l/latest/models/*/*.v exclude=*.*.v compile-only \ |
| 1367 | rename=primitives filter=custom/scripts/inc_verilog.py \ |
| 1368 | sort=../common/sort_pdkfiles.py \ |
| 1369 | -verilog %l/latest/cells/*/*.*.v \ |
| 1370 | -verilog %l/latest/cells/*/*.v exclude=*.*.v,primitives.v \ |
| 1371 | compile-only filter=custom/scripts/inc_verilog.py \ |
| 1372 | sort=../common/sort_pdkfiles.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1373 | -library digital sky130_fd_sc_ls 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1374 | # Remove the base verilog files which have already been included into |
| 1375 | # the libraries |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1376 | ${RM} ${STAGING_PATH}/${SKY130$*}/libs.ref/${LS_VERILOG}/*.*.v |
Tim Edwards | f1b28a0 | 2021-09-08 13:56:44 -0400 | [diff] [blame] | 1377 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1378 | alpha-%: |
Tim Edwards | bcf59aa | 2020-12-17 16:55:13 -0500 | [diff] [blame] | 1379 | # Install alphanumeric library. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1380 | ${STAGE} -source ${ALPHA_PATH}/.. -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 88bd42e | 2020-12-18 15:29:48 -0500 | [diff] [blame] | 1381 | -mag %l/mag/*.mag filter=custom/scripts/text2m5.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1382 | -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] | 1383 | # Install text2mag.py script for alphanumeric library |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1384 | mkdir -p ${STAGING_PATH}/${SKY130$*}/libs.ref/${MLXX_SCRIPTS} |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1385 | cp custom/scripts/text2mag.py \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1386 | ${STAGING_PATH}/${SKY130$*}/libs.ref/${MLXX_SCRIPTS} |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1387 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1388 | sram-%: |
Tim Edwards | 8b96a1b | 2021-04-27 15:16:26 -0400 | [diff] [blame] | 1389 | # Install SRAM library. NOTE: SRAM macros share some of the same |
| 1390 | # cell names, so use special option script gds_import_sram.tcl |
Tim Edwards | 68fc4e6 | 2021-06-12 22:31:21 -0400 | [diff] [blame] | 1391 | # To do: Add option to process each GDS file individually in magic, |
| 1392 | # instead of all at once. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1393 | ${STAGE} -source ${SRAM_PATH}/.. -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 1394 | -lef %l/*/*.lef \ |
| 1395 | -lib %l/*/*.lib \ |
Tim Edwards | 8b96a1b | 2021-04-27 15:16:26 -0400 | [diff] [blame] | 1396 | -gds %l/*/*.gds options=custom/scripts/gds_import_sram.tcl \ |
D. Mitch Bailey | a23f0b2 | 2021-12-27 08:14:38 -0800 | [diff] [blame] | 1397 | -spice %l/*/*.lvs.sp filter=custom/scripts/sp_to_spice.py \ |
Tim Edwards | cfe970c | 2021-02-26 14:35:51 -0500 | [diff] [blame] | 1398 | -verilog %l/*/*.v \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1399 | -library general sky130_sram_macros 2>&1 | tee -a ${SKY130$*}_make.log |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1400 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1401 | osu-t12-%: |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1402 | # Install OSU T12 hs digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1403 | ${STAGE} -source ${OSU_T12_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 0b8fd2f | 2021-09-14 10:19:16 -0400 | [diff] [blame] | 1404 | -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] | 1405 | -spice 12T_hs/cdl/*.spice compile-only exclude=*.*.spice \ |
| 1406 | -lef 12T_hs/lef/*.lef \ |
| 1407 | -lib 12T_hs/lib/*.lib \ |
| 1408 | -gds 12T_hs/gds/*.gds compile-only \ |
| 1409 | options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1410 | -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] | 1411 | # Install OSU T12 ms digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1412 | ${STAGE} -source ${OSU_T12_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 0b8fd2f | 2021-09-14 10:19:16 -0400 | [diff] [blame] | 1413 | -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] | 1414 | -spice 12T_ms/cdl/*.spice compile-only exclude=*.*.spice \ |
| 1415 | -lef 12T_ms/lef/*.lef \ |
| 1416 | -lib 12T_ms/lib/*.lib \ |
| 1417 | -gds 12T_ms/gds/*.gds compile-only \ |
| 1418 | options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1419 | -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] | 1420 | # Install OSU T12 ls digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1421 | ${STAGE} -source ${OSU_T12_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 0b8fd2f | 2021-09-14 10:19:16 -0400 | [diff] [blame] | 1422 | -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] | 1423 | -spice 12T_ls/cdl/*.spice compile-only exclude=*.*.spice \ |
| 1424 | -lef 12T_ls/lef/*.lef \ |
| 1425 | -lib 12T_ls/lib/*.lib \ |
| 1426 | -gds 12T_ls/gds/*.gds compile-only \ |
| 1427 | options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1428 | -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] | 1429 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1430 | osu-t15-%: |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1431 | # Install OSU T15 hs digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1432 | ${STAGE} -source ${OSU_T15_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 0b8fd2f | 2021-09-14 10:19:16 -0400 | [diff] [blame] | 1433 | -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] | 1434 | -spice 15T_hs/cdl/*.spice compile-only exclude=*.*.spice \ |
| 1435 | -lef 15T_hs/lef/*.lef \ |
| 1436 | -lib 15T_hs/lib/*.lib \ |
| 1437 | -gds 15T_hs/gds/*.gds compile-only \ |
| 1438 | options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1439 | -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] | 1440 | # Install OSU T15 ms digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1441 | ${STAGE} -source ${OSU_T15_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 0b8fd2f | 2021-09-14 10:19:16 -0400 | [diff] [blame] | 1442 | -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] | 1443 | -spice 15T_ms/cdl/*.spice compile-only exclude=*.*.spice \ |
| 1444 | -lef 15T_ms/lef/*.lef \ |
| 1445 | -lib 15T_ms/lib/*.lib \ |
| 1446 | -gds 15T_ms/gds/*.gds compile-only \ |
| 1447 | options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1448 | -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] | 1449 | # Install OSU T15 ls digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1450 | ${STAGE} -source ${OSU_T15_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 0b8fd2f | 2021-09-14 10:19:16 -0400 | [diff] [blame] | 1451 | -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] | 1452 | -spice 15T_ls/cdl/*.spice compile-only exclude=*.*.spice \ |
| 1453 | -lef 15T_ls/lef/*.lef \ |
| 1454 | -lib 15T_ls/lib/*.lib \ |
| 1455 | -gds 15T_ls/gds/*.gds compile-only \ |
| 1456 | options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1457 | -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] | 1458 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1459 | osu-t18-%: |
Tim Edwards | cdfec5e | 2021-04-22 20:59:13 -0400 | [diff] [blame] | 1460 | # Install OSU T18 hs digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1461 | ${STAGE} -source ${OSU_T18_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 0b8fd2f | 2021-09-14 10:19:16 -0400 | [diff] [blame] | 1462 | -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] | 1463 | -spice 18T_hs/cdl/*.spice compile-only exclude=*.*.spice \ |
| 1464 | -lef 18T_hs/lef/*.lef \ |
| 1465 | -lib 18T_hs/lib/*.lib \ |
| 1466 | -gds 18T_hs/gds/*.gds compile-only \ |
| 1467 | options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1468 | -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] | 1469 | # Install OSU T18 ms digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1470 | ${STAGE} -source ${OSU_T18_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 0b8fd2f | 2021-09-14 10:19:16 -0400 | [diff] [blame] | 1471 | -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] | 1472 | -spice 18T_ms/cdl/*.spice compile-only exclude=*.*.spice \ |
| 1473 | -lef 18T_ms/lef/*.lef \ |
| 1474 | -lib 18T_ms/lib/*.lib \ |
| 1475 | -gds 18T_ms/gds/*.gds compile-only \ |
| 1476 | options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1477 | -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] | 1478 | # Install OSU T18 ls digital standard cells. |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1479 | ${STAGE} -source ${OSU_T18_PATH} -target ${STAGING_PATH}/${SKY130$*} \ |
Tim Edwards | 0b8fd2f | 2021-09-14 10:19:16 -0400 | [diff] [blame] | 1480 | -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] | 1481 | -spice 18T_ls/cdl/*.spice compile-only exclude=*.*.spice \ |
| 1482 | -lef 18T_ls/lef/*.lef \ |
| 1483 | -lib 18T_ls/lib/*.lib \ |
| 1484 | -gds 18T_ls/gds/*.gds compile-only \ |
| 1485 | options=custom/scripts/gds_import_setup.tcl \ |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1486 | -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] | 1487 | |
Tim Edwards | 7fa92fd | 2022-01-19 11:13:51 -0500 | [diff] [blame] | 1488 | install: $(foreach var, ${VARIANTS}, install-$(var)) |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1489 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1490 | install-A: |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 1491 | echo "Starting SKY130 PDK migration on "`date` > ${SKY130A}_install.log |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 1492 | ${INSTALL} \ |
| 1493 | -source ${STAGING_PATH}/${SKY130A} \ |
Tim 'mithro' Ansell | 1957663 | 2021-11-14 17:01:53 -0800 | [diff] [blame] | 1494 | -finalpath ${SHARED_PDKS_PATH}/${SKY130A} \ |
Tim Edwards | b184e85 | 2020-12-04 15:30:05 -0500 | [diff] [blame] | 1495 | -variable PDKPATH \ |
Tim Edwards | 6f01cd2 | 2022-01-17 19:23:53 -0500 | [diff] [blame] | 1496 | -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] | 1497 | echo "Ended SKY130 PDK migration on "`date` >> ${SKY130A}_install.log |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1498 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1499 | install-B: |
| 1500 | echo "Starting SKY130 PDK migration on "`date` > ${SKY130B}_install.log |
| 1501 | ${INSTALL} \ |
| 1502 | -source ${STAGING_PATH}/${SKY130B} \ |
| 1503 | -finalpath ${SHARED_PDKS_PATH}/${SKY130B} \ |
| 1504 | -variable PDKPATH \ |
Tim Edwards | 6f01cd2 | 2022-01-17 19:23:53 -0500 | [diff] [blame] | 1505 | -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] | 1506 | echo "Ended SKY130 PDK migration on "`date` >> ${SKY130B}_install.log |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1507 | |
Tim Edwards | 7fa92fd | 2022-01-19 11:13:51 -0500 | [diff] [blame] | 1508 | uninstall: $(foreach var, ${VARIANTS}, uninstall-$(var)) |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1509 | |
| 1510 | uninstall-A: |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 1511 | echo "Uninstalling SKY130 PDK from ${SHARED_PDKS_PATH}" |
| 1512 | if test "x${SHARED_PDKS_PATH}" != "x" ; then \ |
| 1513 | ${RM} -rf ${SHARED_PDKS_PATH}/${SKY130A} ; \ |
Tim Edwards | 8830dfe | 2021-02-25 11:29:59 -0500 | [diff] [blame] | 1514 | fi |
| 1515 | echo "Finished SKY130 PDK uninstall" |
| 1516 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1517 | uninstall-B: |
| 1518 | echo "Uninstalling SKY130 PDK from ${SHARED_PDKS_PATH}" |
| 1519 | if test "x${SHARED_PDKS_PATH}" != "x" ; then \ |
| 1520 | ${RM} -rf ${SHARED_PDKS_PATH}/${SKY130B} ; \ |
| 1521 | fi |
| 1522 | echo "Finished SKY130 PDK uninstall" |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1523 | |
Tim Edwards | 7fa92fd | 2022-01-19 11:13:51 -0500 | [diff] [blame] | 1524 | clean: $(foreach var, ${VARIANTS}, clean-$(var)) |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1525 | |
| 1526 | clean-A: |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1527 | ${STAGE} -target ${STAGING_PATH}/${SKY130A} -clean |
| 1528 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1529 | clean-B: |
| 1530 | ${STAGE} -target ${STAGING_PATH}/${SKY130B} -clean |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1531 | |
Tim Edwards | 7fa92fd | 2022-01-19 11:13:51 -0500 | [diff] [blame] | 1532 | veryclean: $(foreach var, ${VARIANTS}, veryclean-$(var)) |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1533 | |
| 1534 | veryclean-A: clean-A |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 1535 | ${RM} ${SKY130A}_make.log |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1536 | ${RM} ${SKY130A}_install.log |
Tim Edwards | 9134eed | 2021-02-13 14:42:59 -0500 | [diff] [blame] | 1537 | # Legacy name |
Tim Edwards | 55f4d0e | 2020-07-05 15:41:02 -0400 | [diff] [blame] | 1538 | ${RM} ${SKY130A}_migrate.log |
Tim Edwards | 6ee1153 | 2021-02-11 12:29:33 -0500 | [diff] [blame] | 1539 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1540 | veryclean-B: clean-B |
| 1541 | ${RM} ${SKY130B}_make.log |
| 1542 | ${RM} ${SKY130B}_install.log |
| 1543 | |
Tim Edwards | 8a4b160 | 2021-08-20 14:05:53 -0400 | [diff] [blame] | 1544 | # Old aliases (retained for compatibility) |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 1545 | install-dist: |
| 1546 | $(warning "'make install-dist' has been replaced with 'make install'") |
| 1547 | make install |
Tim Edwards | 8a4b160 | 2021-08-20 14:05:53 -0400 | [diff] [blame] | 1548 | |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 1549 | install-local: |
| 1550 | $(warning "'make install-local' has been replaced with 'make install'") |
| 1551 | make install |
emayecs | f31fb7a | 2021-08-04 16:27:55 -0400 | [diff] [blame] | 1552 | |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 1553 | uninstall-dist: |
| 1554 | $(warning "'make uninstall-dist' has been replaced with 'make uninstall'") |
| 1555 | make uninstall |
Tim Edwards | 8a4b160 | 2021-08-20 14:05:53 -0400 | [diff] [blame] | 1556 | |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 1557 | uninstall-local: |
| 1558 | $(warning "'make uninstall-local' has been replaced with 'make uninstall'") |
| 1559 | make uninstall |
| 1560 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1561 | install-dist-A: |
| 1562 | $(warning "'make install-dist-A' has been replaced with 'make install'") |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 1563 | make install |
Tim Edwards | 8a4b160 | 2021-08-20 14:05:53 -0400 | [diff] [blame] | 1564 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1565 | install-local-A: |
| 1566 | $(warning "'make install-local-A' has been replaced with 'make install'") |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 1567 | make install |
| 1568 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1569 | uninstall-dist-A: |
| 1570 | $(warning "'make uninstall-dist-A' has been replaced with 'make uninstall'") |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 1571 | make uninstall |
Tim Edwards | 8a4b160 | 2021-08-20 14:05:53 -0400 | [diff] [blame] | 1572 | |
Tim Edwards | 58b1a92 | 2022-01-17 15:55:42 -0500 | [diff] [blame] | 1573 | uninstall-local-A: |
| 1574 | $(warning "'make uninstall-local-A' has been replaced with 'make uninstall'") |
Tim Edwards | 44e7efa | 2021-08-20 13:20:55 -0400 | [diff] [blame] | 1575 | make uninstall |