This repository has been archived by the owner on Jan 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from mithro/actions.yml
run-drc-for-cell-gds-using-magic: Add action.yml
- Loading branch information
Showing
18 changed files
with
284 additions
and
21 deletions.
There are no files selected for viewing
73 changes: 73 additions & 0 deletions
73
.github/workflows/test-docker-image-run-drc-for-cell-gds-using-magic.yml
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,73 @@ | ||
# Copyright 2021 Google LLC | ||
# | ||
# 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: Test Docker Image for Run DRC for cell GDS (using Magic) Action | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
pull_request: | ||
|
||
|
||
permissions: | ||
contents: read | ||
|
||
|
||
jobs: | ||
|
||
test: | ||
name: Basic Test | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Check tests/action-local/action.yml is up to date | ||
run: | | ||
cd run-drc-for-cell-gds-using-magic | ||
make ./tests/action-local/action.yml | ||
git diff --exit-code --color=always ./tests/action-local/action.yml | ||
- uses: ./run-drc-for-cell-gds-using-magic/tests/action-local | ||
name: Clean cells should pass. | ||
with: | ||
top: ./run-drc-for-cell-gds-using-magic/tests/clean | ||
|
||
- uses: ./run-drc-for-cell-gds-using-magic/tests/action-local | ||
name: Broken cells is filtered (--known-bad). | ||
with: | ||
top: ./run-drc-for-cell-gds-using-magic/tests/broken | ||
known-bad: sky130_fd_sc_hd__clkdlybuf4s15_1 | ||
|
||
- uses: ./run-drc-for-cell-gds-using-magic/tests/action-local | ||
name: Broken cells is filtered (--match-cells). | ||
with: | ||
top: ./run-drc-for-cell-gds-using-magic/tests/broken | ||
match-cell-directories: clean_cell | ||
|
||
- uses: ./run-drc-for-cell-gds-using-magic/tests/action-local | ||
name: Broken cells should fail. | ||
id: broken-should-fail | ||
continue-on-error: true | ||
with: | ||
top: ./run-drc-for-cell-gds-using-magic/tests/broken | ||
|
||
- name: Error on success | ||
if: steps.broken-should-fail.outcome != 'failure' | ||
run: | ||
echo "The action should have failed!" | ||
exit 1 |
48 changes: 48 additions & 0 deletions
48
run-drc-for-cell-gds-using-magic/.update-test-action-local.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Copyright 2020 SkyWater 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 | ||
|
||
import pathlib | ||
|
||
__dir__ = pathlib.Path(__file__).parent.resolve() | ||
|
||
src_action_yml = __dir__ / 'action.yml' | ||
dst_action_yml = (__dir__ / 'tests' / 'action-local' / 'action.yml').resolve() | ||
|
||
print('Base action.yml file at:', src_action_yml) | ||
print('Test action.yml file at:', dst_action_yml) | ||
|
||
with open(src_action_yml) as f: | ||
action_data = f.read() | ||
|
||
name = 'run-drc-for-cell-gds-using-magic' | ||
action_data = action_data.replace( | ||
f'image: docker://gcr.io/skywater-pdk/actions/{name}:main', | ||
'image: ../../Dockerfile', | ||
) | ||
|
||
action_data = action_data.replace( | ||
'\nname:', | ||
""" | ||
# WARNING! Don't modify this file, modify the base `action.yml` file and then | ||
# run `make tests/action-local/action.yml`. | ||
name:""") | ||
|
||
with open(dst_action_yml, 'w') as f: | ||
f.write(action_data) |
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,52 @@ | ||
# Copyright 2020 SkyWater 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: run-drc-for-cell-gds-using-magic | ||
description: >- | ||
This GitHub action runs Design Rule Checks on all GDS files inside the /cells | ||
directory. | ||
inputs: | ||
top: | ||
description: >- | ||
What directory to run the check inside. | ||
default: . | ||
acceptable-errors-file: | ||
description: >- | ||
A file containing a list of newline-delimited acceptable DRC errors. | ||
default: /dev/null | ||
match-cell-directories: | ||
description: >- | ||
A regex that will match cell names to be checked. | ||
default: ^.*$ | ||
known-bad: | ||
description: >- | ||
Common separated list of known bad cells that should be ignored. | ||
default: | ||
|
||
|
||
runs: | ||
using: 'docker' | ||
image: docker://gcr.io/skywater-pdk/actions/run-drc-for-cell-gds-using-magic:main | ||
args: | ||
- --top | ||
- ${{ inputs.top }} | ||
- --acceptable-errors-file | ||
- ${{ inputs.acceptable-errors-file }} | ||
- --match-cell-directories | ||
- ${{ inputs.match-cell-directories }} | ||
- --known-bad | ||
- ${{ inputs.known-bad }} |
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
55 changes: 55 additions & 0 deletions
55
run-drc-for-cell-gds-using-magic/tests/action-local/action.yml
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,55 @@ | ||
# Copyright 2020 SkyWater 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 | ||
|
||
# WARNING! Don't modify this file, modify the base `action.yml` file and then | ||
# run `make tests/action-local/action.yml`. | ||
|
||
name: run-drc-for-cell-gds-using-magic | ||
description: >- | ||
This GitHub action runs Design Rule Checks on all GDS files inside the /cells | ||
directory. | ||
inputs: | ||
top: | ||
description: >- | ||
What directory to run the check inside. | ||
default: . | ||
acceptable-errors-file: | ||
description: >- | ||
A file containing a list of newline-delimited acceptable DRC errors. | ||
default: /dev/null | ||
match-cell-directories: | ||
description: >- | ||
A regex that will match cell names to be checked. | ||
default: ^.*$ | ||
known-bad: | ||
description: >- | ||
Common separated list of known bad cells that should be ignored. | ||
default: | ||
|
||
|
||
runs: | ||
using: 'docker' | ||
image: ../../Dockerfile | ||
args: | ||
- --top | ||
- ${{ inputs.top }} | ||
- --acceptable-errors-file | ||
- ${{ inputs.acceptable-errors-file }} | ||
- --match-cell-directories | ||
- ${{ inputs.match-cell-directories }} | ||
- --known-bad | ||
- ${{ inputs.known-bad }} |
1 change: 1 addition & 0 deletions
1
run-drc-for-cell-gds-using-magic/tests/broken/cells/allowed_drc_errors
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 @@ | ||
../../clean/cells/allowed_drc_errors |
Binary file added
BIN
+6.13 KB
...-cell-gds-using-magic/tests/broken/cells/broken_cell/sky130_fd_sc_hd__clkdlybuf4s15_1.gds
Binary file not shown.
Binary file added
BIN
+6.57 KB
...-cell-gds-using-magic/tests/broken/cells/broken_cell/sky130_fd_sc_hd__clkdlybuf4s15_2.gds
Binary file not shown.
Binary file added
BIN
+6.34 KB
run-drc-for-cell-gds-using-magic/tests/broken/cells/clean_cell/sky130_fd_sc_hd__a211o_1.gds
Binary file not shown.
Binary file added
BIN
+6.55 KB
run-drc-for-cell-gds-using-magic/tests/broken/cells/clean_cell/sky130_fd_sc_hd__a211o_2.gds
Binary file not shown.
Binary file added
BIN
+8.99 KB
run-drc-for-cell-gds-using-magic/tests/broken/cells/clean_cell/sky130_fd_sc_hd__a211o_4.gds
Binary file not shown.
Binary file added
BIN
+8.63 KB
run-drc-for-cell-gds-using-magic/tests/clean/cells/a2111o/sky130_fd_sc_hd__a2111o_1.gds
Binary file not shown.
Binary file added
BIN
+8.99 KB
run-drc-for-cell-gds-using-magic/tests/clean/cells/a2111o/sky130_fd_sc_hd__a2111o_2.gds
Binary file not shown.
Binary file added
BIN
+12.2 KB
run-drc-for-cell-gds-using-magic/tests/clean/cells/a2111o/sky130_fd_sc_hd__a2111o_4.gds
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
run-drc-for-cell-gds-using-magic/tests/clean/cells/allowed_drc_errors
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 @@ | ||
All nwells must contain metal-connected N+ taps (nwell.4) | ||
P-diff distance to N-tap must be < 15.0um (LU.3) | ||
N-diff distance to P-tap must be < 15.0um (LU.2) |