-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
270 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
ARG BASE_IMAGE | ||
ARG MAGIC_IMAGE | ||
ARG SKYWATER_IMAGE | ||
|
||
FROM ${MAGIC_IMAGE} as magic | ||
FROM ${SKYWATER_IMAGE} as sw | ||
FROM ${BASE_IMAGE} as builder | ||
COPY --from=magic /foss/tools/ /foss/tools/ | ||
COPY --from=sw $PDK_ROOT $PDK_ROOT | ||
|
||
ARG REPO_URL | ||
ARG REPO_COMMIT | ||
ARG NAME | ||
|
||
ADD scripts/dependencies.sh dependencies.sh | ||
RUN bash dependencies.sh | ||
|
||
ADD scripts/install.sh install.sh | ||
RUN bash install.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"args": { | ||
"GIT": "true", | ||
"BASE_IMAGE": "base", | ||
"MAGIC_IMAGE": "magic", | ||
"NAME": "open_pdks", | ||
"REPO_URL": "https://github.com/RTimothyEdwards/open_pdks", | ||
"REPO_COMMIT": "4fd675d208efed93ed984d1e28eb6457da9d3f17", | ||
"SKYWATER_IMAGE": "skywater-pdk" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
|
||
source scl_source enable devtoolset-8 | ||
|
||
magic_version=$(ls /foss/tools/magic/ ) | ||
export PATH=$PATH:/foss/tools/magic/$magic_version/bin/ | ||
|
||
export PDK_ROOT=/foss/pdk | ||
|
||
cd $PDK_ROOT | ||
git clone ${REPO_URL} ${NAME} | ||
cd ${NAME} | ||
git checkout master | ||
git pull | ||
git checkout -qf ${REPO_COMMIT}git clone https://github.com/RTimothyEdwards/open_pdks.git | ||
|
||
./configure --enable-sky130-pdk=$PDK_ROOT/skywater-pdk --enable-alpha-sky130 --enable-xschem-sky130 \ | ||
--enable-sram-sky130 --with-sky130-variants=all --datadir=/foss/ | ||
|
||
make -j$(nproc) | ||
|
||
make install | ||
make -j$(nproc) | ||
make install | ||
|
||
make distclean | ||
|
||
cd $PDK_ROOT | ||
rm -rf skywater-pdk open_pdks | ||
chmod -R 755 $PDK_ROOT | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
ARG BASE_IMAGE | ||
|
||
FROM ${BASE_IMAGE} as builder | ||
|
||
ARG REPO_URL | ||
ARG REPO_COMMIT | ||
|
||
ADD scripts/dependencies.sh dependencies.sh | ||
RUN bash dependencies.sh | ||
|
||
ADD scripts/install.sh install.sh | ||
RUN bash install.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"args": { | ||
"GIT": "false", | ||
"BASE_IMAGE": "base", | ||
"NAME": "pdks-volare", | ||
"REPO_URL": "https://github.com/RTimothyEdwards/open_pdks", | ||
"REPO_COMMIT": "8fe7f760ece2bb49b1c310e60243f0558977dae5" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
python3 -m pip install --upgrade --no-cache-dir volare |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
source scl_source enable devtoolset-8 | ||
|
||
export PDK_ROOT=/foss/pdk | ||
|
||
export LC_ALL=en_US.utf-8 | ||
export LANG=en_US.utf-8 | ||
|
||
volare enable ${REPO_COMMIT} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
ARG BASE_IMAGE | ||
FROM ${BASE_IMAGE} as base | ||
ARG REPO_URL | ||
ARG REPO_COMMIT | ||
ARG NAME | ||
|
||
ENV PDK_ROOT=/foss/pdk | ||
|
||
COPY corners/corners.yml /foss/pdk/corners.yml | ||
COPY corners/make_timing.py /foss/pdk/make_timing.py | ||
|
||
ADD scripts/dependencies.sh dependencies.sh | ||
RUN bash dependencies.sh | ||
|
||
ADD scripts/install.sh install.sh | ||
RUN bash install.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
sky130_fd_sc_hd: | ||
- tt_025C_1v80 | ||
- ff_n40C_1v95 | ||
- ss_100C_1v60 | ||
sky130_fd_sc_hvl: | ||
- tt_025C_3v30 | ||
- tt_025C_3v30_lv1v80 | ||
- ff_n40C_5v50 | ||
- ff_n40C_4v40_lv1v95 | ||
- ss_100C_1v65 | ||
- ss_100C_1v65_lv1v40 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
sky130_fd_sc_hd: | ||
- tt_025C_1v80 | ||
- ff_n40C_1v95 | ||
- ss_100C_1v60 | ||
sky130_fd_sc_hvl: | ||
- tt_025C_3v30 | ||
- tt_025C_3v30_lv1v80 | ||
- ff_n40C_5v50 | ||
- ff_n40C_4v40_lv1v95 | ||
- ss_100C_1v65 | ||
- ss_100C_1v65_lv1v40 | ||
sky130_fd_sc_hs: | ||
- tt_025C_1v80 | ||
- ff_n40C_1v95 | ||
- ss_100C_1v60 | ||
sky130_fd_sc_hdll: | ||
- tt_025C_1v80 | ||
- ff_n40C_1v95 | ||
- ss_100C_1v60 | ||
sky130_fd_sc_ms: | ||
- tt_025C_1v80 | ||
- ff_n40C_1v95 | ||
- ss_100C_1v60 | ||
sky130_fd_sc_ls: | ||
- tt_025C_1v80 | ||
- ff_n40C_1v95 | ||
- ss_100C_1v60 | ||
|
11 changes: 11 additions & 0 deletions
11
images/skywater-pdk.not-included/corners/corners.yml.reduced
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
sky130_fd_sc_hd: | ||
- tt_025C_1v80 | ||
- ff_n40C_1v95 | ||
- ss_100C_1v60 | ||
sky130_fd_sc_hvl: | ||
- tt_025C_3v30 | ||
- tt_025C_3v30_lv1v80 | ||
- ff_n40C_5v50 | ||
- ff_n40C_4v40_lv1v95 | ||
- ss_100C_1v65 | ||
- ss_100C_1v65_lv1v40 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import os | ||
import yaml | ||
import multiprocessing | ||
import subprocess | ||
|
||
if __name__ == "__main__": | ||
corners_str = open("./corners.yml").read() | ||
corners_by_scl = yaml.safe_load(corners_str) | ||
|
||
def make_timing_on_scl(scl: str, *corners): | ||
print(f"Starting on {scl}: {corners}...", flush=True) | ||
subprocess.check_output( | ||
[ | ||
"python3", | ||
"-m", | ||
"skywater_pdk.liberty", | ||
f"libraries/{scl}/latest", | ||
*corners, | ||
] | ||
) | ||
print(f"{scl} done.", flush=True) | ||
|
||
pool = multiprocessing.Pool() | ||
for scl, corners in corners_by_scl.items(): | ||
pool.apply_async(make_timing_on_scl, (scl, *corners)) | ||
pool.close() | ||
pool.join() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"args": { | ||
"GIT": "true", | ||
"BASE_IMAGE": "base", | ||
"NAME": "skywater-pdk", | ||
"REPO_URL": "https://github.com/google/skywater-pdk.git", | ||
"REPO_COMMIT": "5a57f505cd4cd65d10e9f37dd2d259a526bc9bf7" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
python3 -m pip install pyyaml | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
source scl_source enable devtoolset-8 | ||
|
||
mkdir -p $PDK_ROOT | ||
git clone ${REPO_URL} $PDK_ROOT/${NAME}/ | ||
cd $PDK_ROOT/${NAME}/ && \ | ||
git checkout main && \ | ||
git checkout -qf ${REPO_COMMIT} && \ | ||
git submodule update --init libraries/sky130_fd_sc_hd/latest && \ | ||
git submodule update --init libraries/sky130_fd_io/latest && \ | ||
git submodule update --init libraries/sky130_fd_sc_hvl/latest && \ | ||
git submodule update --init libraries/sky130_fd_pr/latest && \ | ||
git submodule update --init libraries/sky130_fd_pr_reram/latest && \ | ||
git submodule update --init libraries/sky130_fd_sc_lp/latest && \ | ||
git submodule update --init libraries/sky130_fd_sc_hs/latest && \ | ||
git submodule update --init libraries/sky130_fd_sc_ms/latest && \ | ||
git submodule update --init libraries/sky130_fd_sc_ls/latest && \ | ||
git submodule update --init libraries/sky130_fd_sc_hdll/latest && \ | ||
git submodule update | ||
|
||
python3 -m pip install -e scripts/python-skywater-pdk | ||
mv $PDK_ROOT/make_timing.py . | ||
mv $PDK_ROOT/corners.yml . | ||
python3 ./make_timing.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.