Merge pull request #135 from riking/patch-1
Add 'make submodules' to download standard cell libraries
This commit is contained in:
commit
183c8201eb
10
README.rst
10
README.rst
|
@ -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.
|
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
|
Support
|
||||||
=======
|
=======
|
||||||
|
|
||||||
|
|
|
@ -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.
|
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
|
Support
|
||||||
=======
|
=======
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,25 @@
|
||||||
FULL_VERSION := $(shell git describe --long)
|
FULL_VERSION := $(shell git describe --long)
|
||||||
TAG_VERSION := $(firstword $(subst -, ,$(FULL_VERSION)))
|
TAG_VERSION := $(firstword $(subst -, ,$(FULL_VERSION)))
|
||||||
|
|
||||||
|
SUBMODULE_VERSION ?= latest
|
||||||
|
|
||||||
ifeq (,$(FULL_VERSION))
|
ifeq (,$(FULL_VERSION))
|
||||||
$(error "Version value could not be determined. Make sure you fetch the tags.")
|
$(error "Version value could not be determined. Make sure you fetch the tags.")
|
||||||
endif
|
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)
|
||||||
|
|
Loading…
Reference in New Issue