Add 'make submodules' to download standard cell libraries

This commit is contained in:
Kane York 2020-07-27 00:30:10 -07:00
parent 3f310bcc26
commit b263195330
No known key found for this signature in database
GPG Key ID: 657F460D20894666
3 changed files with 39 additions and 0 deletions

View File

@ -111,6 +111,16 @@ The SkyWater Open Source PDK aims to contain comprehensive documentation about u
We are excited to see additions to this documentation around using this design kit with new tools and design flows. Please see the `Contributing file <docs/contributing.rst>`_ for information on how to do this.
To download or update to the 'latest' version of all standard cell libraries, and to regenerate the liberty files, clone this repository and run the following commands.
```bash
# Expect a large download! ~7GB at time of writing.
SUBMODULE_VERSION=latest make submodules -j3 || make submodules -j1
# Regenerate liberty files
make timing
```
Support
=======

View File

@ -93,6 +93,16 @@ The SkyWater Open Source PDK aims to contain comprehensive documentation about u
We are excited to see additions to this documentation around using this design kit with new tools and design flows. Please see the `Contributing file <docs/contributing.rst>`_ for information on how to do this.
To download or update to the 'latest' version of all standard cell libraries, and to regenerate the liberty files, clone this repository and run the following commands.
```bash
# Expect a large download! ~7GB at time of writing.
SUBMODULE_VERSION=latest make submodules -j3 || make submodules -j1
# Regenerate liberty files
make timing
```
Support
=======

View File

@ -15,6 +15,25 @@
FULL_VERSION := $(shell git describe --long)
TAG_VERSION := $(firstword $(subst -, ,$(FULL_VERSION)))
SUBMODULE_VERSION ?= latest
ifeq (,$(FULL_VERSION))
$(error "Version value could not be determined. Make sure you fetch the tags.")
endif
submodules: libraries/sky130_fd_sc_hd/$(SUBMODULE_VERSION)/.git libraries/sky130_fd_sc_hdll/$(SUBMODULE_VERSION)/.git libraries/sky130_fd_sc_hs/$(SUBMODULE_VERSION)/.git libraries/sky130_fd_sc_ms/$(SUBMODULE_VERSION)/.git libraries/sky130_fd_sc_ls/$(SUBMODULE_VERSION)/.git
libraries/sky130_fd_sc_hd/%/.git: .gitmodules
git submodule update --init $(@D)
libraries/sky130_fd_sc_hdll/%/.git: .gitmodules
git submodule update --init $(@D)
libraries/sky130_fd_sc_hs/%/.git: .gitmodules
git submodule update --init $(@D)
libraries/sky130_fd_sc_ms/%/.git: .gitmodules
git submodule update --init $(@D)
libraries/sky130_fd_sc_ls/%/.git: .gitmodules
git submodule update --init $(@D)