Skip to content

Commit

Permalink
Merge pull request IHP-GmbH#123 from IHP-GmbH/dev
Browse files Browse the repository at this point in the history
May'24 tape-out release
  • Loading branch information
KrzysztofHerman authored May 28, 2024
2 parents dceb7e6 + f6be0b0 commit 5a42d03
Show file tree
Hide file tree
Showing 401 changed files with 59,289 additions and 8,817 deletions.
41 changes: 41 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
; ==========================================================================
; Copyright 2024 IHP PDK Authors
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; https://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
; SPDX-License-Identifier: Apache-2.0
; ==========================================================================

[flake8]
max-line-length = 120
max-complexity = 18

exclude =
# No need to traverse our git directory
.git,
# There's no value in checking cache directories
__pycache__,
# The conf file is mostly autogenerated, ignore it
docs/source/conf.py,
# The old directory contains Flake8 2.0
old,
# This contains our built documentation
build,
# This contains builds of flake8 that we don't want to check
dist,
.ipynb_checkpoints,
.tox,
extra,
deprecated,
env,
*_env,
*_venv,
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## Environment

- Klayout Version:
- OS/Platform:

## Expected Behavior


## Actual Behavior


## Steps to Reproduce the Problem

1.
2.
3.
4 changes: 4 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Fixes #<issue_number_goes_here>

- [ ] Tests pass
- [ ] Appropriate changes to README are included in PR
35 changes: 35 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#==========================================================================
# Copyright 2024 IHP PDK Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# SPDX-License-Identifier: Apache-2.0
#==========================================================================

name: Python Code Linting

on:
pull_request:
paths:
- 'ihp-sg13g2/libs.tech/klayout/tech/lvs/**'
workflow_dispatch:

jobs:
lint_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Lint with flake8
run: |
make lint_python
98 changes: 98 additions & 0 deletions .github/workflows/lvs_regression.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
#==========================================================================
# Copyright 2024 IHP PDK Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# SPDX-License-Identifier: Apache-2.0
#==========================================================================

name: LVS Regression Testing

# Prevent keeping resources busy when a branch/PR is updated
# https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
pull_request:
paths:
- 'ihp-sg13g2/libs.tech/klayout/tech/lvs/**'
workflow_dispatch:

jobs:
build_lvs-matrix:
runs-on: ubuntu-latest
outputs:
lvs_table: ${{ steps.set-matrix.outputs.lvs_table }}
steps:
- uses: actions/checkout@v4
- id: set-matrix
run: |
cd ihp-sg13g2/libs.tech/klayout/tech/lvs/rule_decks/
lvs_table=`echo '[' ; find -iname '*_extraction.lvs' | awk -F_ '{print $1}' | awk -F/ '{print $2}' | tr '[:lower:]' '[:upper:]' | tr '\n' ','|sed -e 's/^/\"/'| sed -e 's/,$/\"]/'|sed -e 's/,/\", \"/g'`;
lvs_table=`echo $lvs_table | jq -c .`
echo $lvs_table
echo "lvs_table=$lvs_table" >>$GITHUB_OUTPUT
lvs_regression:
needs: build_lvs-matrix
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
part: [lvs]
test: ${{ fromJson(needs.build_lvs-matrix.outputs.lvs_table) }}

name: ${{ matrix.part }} | ${{ matrix.test }}

steps:
- name: Installing Klayout
run: |
sudo apt update -qq -y
wget https://www.klayout.org/downloads/Ubuntu-22/klayout_0.29.0-1_amd64.deb
# The dpkg command will fail complaining about missing dependencies.
sudo dpkg -i ./klayout_0.29.0-1_amd64.deb || true
# The apt install command should install the missing dependencies
# needed by KLayout above and finish the install.
sudo apt install -f -y
# Check that KLayout was successfully installed!
klayout -v
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Testing ${{ matrix.part }} for ${{ matrix.test }}
run: |
make test-"$(python -c 'print("${{ matrix.part }}".upper())')"-${{ matrix.test }}
lvs_regression_cells:
runs-on: ubuntu-latest
steps:
- name: Installing Klayout
run: |
sudo apt update -qq -y
wget https://www.klayout.org/downloads/Ubuntu-22/klayout_0.29.0-1_amd64.deb
# The dpkg command will fail complaining about missing dependencies.
sudo dpkg -i ./klayout_0.29.0-1_amd64.deb || true
# The apt install command should install the missing dependencies
# needed by KLayout above and finish the install.
sudo apt install -f -y
# Check that KLayout was successfully installed!
klayout -v
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Testing LVS for SG13G2 cells
run: |
make test-LVS-cells
170 changes: 170 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,176 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

*.raw
*.spice
*.csv
*.osdi
.DS_Store
*.pyc
*klayoutrc

.vscode/
*.lyrdb
*.lvsdb
unit_tests_*
lvs_run_*
*_extracted.cir
cells_tests_*
4 changes: 4 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
# especially since many employees of one corporation may be contributing.

Alexey Balashov
Amro Tork
Andreas Krinke
Christian Wittke
Daniel Arevalos
Daniel Schultz
Falk Korndoerfer
Farag Elsayed
Gerhard Fischer
Krzysztof Herman
Mario Krattenmacher
Expand Down
Loading

0 comments on commit 5a42d03

Please sign in to comment.