Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc/openlane: improve pdk testing #348

Merged
merged 4 commits into from
Jul 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 39 additions & 12 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:

yosys-linux-py310:
runs-on: [self-hosted, Linux, X64]
container: ubuntu:22.04
container: ubuntu:20.04
env:
PACKAGE: "syn/yosys"
OS_NAME: "linux"
Expand Down Expand Up @@ -334,7 +334,7 @@ jobs:
symbiyosys-linux-py310:
needs: ["yosys-linux-py310"]
runs-on: [self-hosted, Linux, X64]
container: ubuntu:22.04
container: ubuntu:20.04
env:
PACKAGE: "formal/symbiyosys"
OS_NAME: "linux"
Expand Down Expand Up @@ -647,7 +647,7 @@ jobs:
surelog-linux-py310:
needs: ["libunwind", "gperftools"]
runs-on: [self-hosted, Linux, X64]
container: ubuntu:22.04
container: ubuntu:20.04
env:
PACKAGE: "sv-front/surelog"
OS_NAME: "linux"
Expand Down Expand Up @@ -688,7 +688,7 @@ jobs:
surelog-uhdm-linux-py310:
needs: ["libunwind", "gperftools"]
runs-on: [self-hosted, Linux, X64]
container: ubuntu:22.04
container: ubuntu:20.04
env:
PACKAGE: "sv-front/surelog-uhdm"
USE_SYSTEM_GCC_VERSION: "9"
Expand Down Expand Up @@ -728,7 +728,7 @@ jobs:
yosys-uhdm-linux-py310:
needs: ["libunwind", "gperftools"]
runs-on: [self-hosted, Linux, X64]
container: ubuntu:22.04
container: ubuntu:20.04
env:
PACKAGE: "syn/yosys-uhdm"
OS_NAME: "linux"
Expand Down Expand Up @@ -790,7 +790,7 @@ jobs:
verilator-uhdm-linux-py310:
needs: ["gperftools"]
runs-on: [self-hosted, Linux, X64]
container: ubuntu:22.04
container: ubuntu:20.04
env:
PACKAGE: "sim/verilator-uhdm"
OS_NAME: "linux"
Expand Down Expand Up @@ -822,7 +822,7 @@ jobs:
- run: apt -qqy update && apt -qqy install ${{ env.APT_REQUIREMENTS }} libgmp-dev
- uses: ./ci

open_pdks-linux-sky130a:
open_pdks-sky130a-linux:
runs-on: [self-hosted, Linux, X64]
container: ubuntu:20.04
needs: ["magic-linux"]
Expand All @@ -834,7 +834,7 @@ jobs:
- run: apt -qqy update && apt -qqy install ${{ env.APT_REQUIREMENTS }} libxrender1
- uses: ./ci

open_pdks-linux-gf180mcuc:
open_pdks-gf180mcuc-linux:
runs-on: [self-hosted, Linux, X64]
container: ubuntu:20.04
needs: ["magic-linux"]
Expand Down Expand Up @@ -872,7 +872,7 @@ jobs:

openroad-linux-py310:
runs-on: [self-hosted, Linux, X64]
container: ubuntu:22.04
container: ubuntu:20.04
env:
PACKAGE: "pnr/openroad"
OS_NAME: "linux"
Expand All @@ -895,13 +895,40 @@ jobs:
- run: apt -qqy update && apt -qqy install ${{ env.APT_REQUIREMENTS }}
- uses: ./ci

openlane-linux:
needs: ["magic-linux", "netgen-linux", "openroad-linux-py37", "openroad-linux-py38", "openroad-linux-py310", "yosys-linux-py37", "yosys-linux-py38", "yosys-linux-py310", "tcllib-linux"]
openlane-linux-py37:
needs: ["magic-linux", "netgen-linux", "openroad-linux-py37", "yosys-linux-py37", "tcllib-linux", "open_pdks-sky130a-linux", "open_pdks-gf180mcuc-linux"]
runs-on: [self-hosted, Linux, X64]
container: ubuntu:20.04
env:
PACKAGE: "misc/openlane"
OS_NAME: "linux"
PYTHON_VERSION: "3.7"
steps:
- uses: actions/checkout@v3
- run: apt -qqy update && apt -qqy install ${{ env.APT_REQUIREMENTS }} libxrender1
- uses: ./ci

openlane-linux-py38:
needs: ["magic-linux", "netgen-linux", "openroad-linux-py38", "yosys-linux-py38", "tcllib-linux", "open_pdks-sky130a-linux", "open_pdks-gf180mcuc-linux"]
runs-on: [self-hosted, Linux, X64]
container: ubuntu:20.04
env:
PACKAGE: "misc/openlane"
OS_NAME: "linux"
PYTHON_VERSION: "3.8"
steps:
- uses: actions/checkout@v3
- run: apt -qqy update && apt -qqy install ${{ env.APT_REQUIREMENTS }} libxrender1
- uses: ./ci

openlane-linux-py310:
needs: ["magic-linux", "netgen-linux", "openroad-linux-py310", "yosys-linux-py310", "tcllib-linux", "open_pdks-sky130a-linux", "open_pdks-gf180mcuc-linux"]
runs-on: [self-hosted, Linux, X64]
container: ubuntu:20.04
env:
PACKAGE: "misc/openlane"
OS_NAME: "linux"
PYTHON_VERSION: "3.10"
steps:
- uses: actions/checkout@v3
- run: apt -qqy update && apt -qqy install ${{ env.APT_REQUIREMENTS }} libxrender1
Expand Down Expand Up @@ -955,7 +982,7 @@ jobs:

klayout-linux-py310:
runs-on: [self-hosted, Linux, X64]
container: ubuntu:22.04
container: ubuntu:20.04
env:
PACKAGE: "misc/klayout"
OS_NAME: "linux"
Expand Down
8 changes: 7 additions & 1 deletion misc/openlane/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Use `conda-build-prepare` before building for a better version string.
{% set version = '%s_%04i_%s'|format(GIT_DESCRIBE_TAG, GIT_DESCRIBE_NUMBER|int, GIT_DESCRIBE_HASH or 'gUNKNOWN') %}

{% set python_version = PYTHON_VERSION | default('3.7') %}
{% set py_suffix = 'py%s'|format(python_version|replace('.', '')) %}

package:
name: openlane
version: {{ version }}
Expand All @@ -17,7 +20,7 @@ build:
# number: 201803050325
number: {{ environ.get('DATE_NUM') }}
# string: 20180305_0325
string: {{ environ.get('DATE_STR') }}
string: {{ environ.get('DATE_STR') }}_{{ py_suffix }}
script_env:
- CI
- CONDA_OUT
Expand All @@ -33,12 +36,15 @@ requirements:
- pyyaml
- tcllib
- klayout
- python {{ python_version }}

test:
requires:
- open_pdks.sky130a
- open_pdks.gf180mcuc
commands:
- PDK=sky130A STD_CELL_LIBRARY=sky130_fd_sc_hd STD_CELL_LIBRARY_OPT=sky130_fd_sc_hd flow.tcl -design spm
- PDK=gf180mcuC STD_CELL_LIBRARY=gf180mcu_fd_sc_mcu7t5v0 STD_CELL_LIBRARY_OPT=gf180mcu_fd_sc_mcu7t5v0 flow.tcl -design spm

about:
home: https://github.com/The-OpenROAD-Project/OpenLane
Expand Down