-
Notifications
You must be signed in to change notification settings - Fork 8
120 lines (98 loc) · 3.25 KB
/
sta.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
name: sta
on:
workflow_dispatch:
push:
# Don't run on project submissions:
branches-ignore:
- projects/tt_um_*
pull_request:
# Don't run on project submissions:
paths-ignore:
- projects/tt_um_*/**
jobs:
sta:
env:
PYTHONIOENCODING: utf-8
PDK_ROOT: /home/runner/pdk
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Load OpenLane environment variables
run: cat .github/config/openlane.txt | tee -a $GITHUB_ENV
- name: Checkout OpenLane 2 repo
uses: actions/checkout@v3
with:
repository: efabless/openlane2
path: openlane2
ref: ${{ env.OPENLANE_TAG }}
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- run: |
pip install -r tt-multiplexer/py/requirements.txt -r tt/requirements.txt -r sta_top/requirements.txt
# Install yosys (required for tt/configure.py)
- name: install oss-cad-suite
uses: YosysHQ/setup-oss-cad-suite@v2
with:
version: '2023-05-27'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Update caravel configuration
run: python ./tt/configure.py --update-shuttle --sta-projects
- uses: cachix/install-nix-action@v20
- uses: cachix/cachix-action@v12
with:
name: openlane
extraPullNames: openlane
- name: Install Sky130 PDK
uses: TinyTapeout/volare-action@v1
with:
pdk_name: sky130
pdk_version: ${{ env.SKY130_PDK_VERSION }}
pdk_root: ${{ env.PDK_ROOT }}
# - name: uncompress gds files
# run: gunzip -v gds/*.gds.gz
- name: Harden tt_ctrl
working-directory: tt-multiplexer/ol2/tt_ctrl
run: nix-shell $GITHUB_WORKSPACE/openlane2/shell.nix --run "python build.py"
- name: Harden tt_mux
working-directory: tt-multiplexer/ol2/tt_mux
run: nix-shell $GITHUB_WORKSPACE/openlane2/shell.nix --run "python build.py"
- name: Copy macros
run: python ./tt/configure.py --copy-macros
- name: Harden tt_top
working-directory: tt-multiplexer/ol2/tt_top
run: nix-shell $GITHUB_WORKSPACE/openlane2/shell.nix --run "python build.py --skip-xor-checks"
- name: Copy final results
run: python ./tt/configure.py --copy-final-results
# setup sta script
- name: setup sta
run: python ./sta_top/toplevel_sta.py ./verilog/gl/user_project_wrapper.v ./spef/user_project_wrapper.spef sta_top/top.sdc
# run sta, create sta.log
- name: run sta
run: ./stadocker.sh
# test
- name: test sta
if: success() || failure()
run: |
! grep VIOLATED sta.log
- name: upload logs
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: STA
path: sta.log
- name: upload macros artifact
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: macros
path: |
gds/*
lef/*
spef/*
verilog/gl/*