-
Notifications
You must be signed in to change notification settings - Fork 15
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
3 changed files
with
75 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,17 +23,79 @@ jobs: | |
# - name: Run Tiny Tapeout Precheck | ||
# uses: TinyTapeout/tt-gds-action/precheck@tt09 | ||
|
||
#gl_test: | ||
# needs: gds | ||
# runs-on: ubuntu-24.04 | ||
# steps: | ||
# - name: checkout repo | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# submodules: recursive | ||
# | ||
# - name: GL test | ||
# uses: TinyTapeout/tt-gds-action/gl_test@tt09 | ||
gl_test: | ||
needs: gds | ||
runs-on: ubuntu-24.04 | ||
env: | ||
PDK_ROOT: ${{ github.workspace }}/IHP-Open-PDK | ||
TEST_DIR: ${{ github.workspace }}/test | ||
steps: | ||
- name: checkout repo | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Download GDS artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: tt_submission | ||
|
||
- name: install PDK | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: tinytapeout/IHP-Open-PDK | ||
ref: tt | ||
path: IHP-Open-PDK | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Install Python packages | ||
shell: bash | ||
run: pip install -r test/requirements.txt | ||
|
||
- name: Install iverilog | ||
shell: bash | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y bison flex gperf libbz2-dev | ||
git clone https://github.com/steveicarus/iverilog | ||
cd iverilog | ||
git checkout d8c3c51ab1190ed3fb26540d7de6177f83e0e75b | ||
sh autoconf.sh | ||
./configure | ||
make | ||
sudo make install | ||
- name: Run tests | ||
shell: bash | ||
run: | | ||
cp tt_submission/*.v "$TEST_DIR/gate_level_netlist.v" | ||
cd "$TEST_DIR" | ||
rm -f tb.vcd results.xml | ||
make clean | ||
GATES=yes make | ||
# `make` will return success even if the tests fail, so check for failure in results.xml | ||
test -f results.xml | ||
! grep failure results.xml | ||
|
||
- name: Upload VCD | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: gatelevel_test_vcd | ||
path: | | ||
${{ env.TEST_DIR }}/tb.vcd | ||
${{ env.TEST_DIR }}/results.xml | ||
- name: Test Summary | ||
if: always() | ||
uses: test-summary/[email protected] | ||
with: | ||
paths: ${{ env.TEST_DIR }}/results.xml | ||
|
||
viewer: | ||
needs: gds | ||
|
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