generated from mattvenn/wokwi-verilog-gds-test
-
-
Notifications
You must be signed in to change notification settings - Fork 1
80 lines (68 loc) · 2.17 KB
/
wokwi.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
name: wokwi
# either manually started, or on a schedule
on: [ push, workflow_dispatch ]
jobs:
wokwi:
env:
OPENLANE_TAG: 2022.02.23_02.50.41
OPENLANE_IMAGE_NAME: efabless/openlane:$(OPENLANE_TAG)
OPENLANE_ROOT: /home/runner/openlane
PDK_ROOT: /home/runner/pdk
PDK: sky130A
# ubuntu
runs-on: ubuntu-latest
steps:
# need the repo checked out
- name: checkout repo
uses: actions/checkout@v2
# caching version seems broken atm
- name: setup python
uses: actions/setup-python@v2
with:
python-version: '3.7.7' # install the python version needed
# python deps from reqirements file, use a marketplace action
- name: Install Python dependencies
uses: py-actions/py-dependency-install@v2
with:
path: "requirements.txt"
- uses: actions/checkout@v2
with:
repository: s-holst/GDS2WebGL
path: GDS2WebGL
# build PDK and fetch OpenLane
- name: pdk & caravel
run: |
cd $HOME
git clone https://github.com/efabless/caravel_user_project.git -b mpw-6c
cd caravel_user_project
make setup
# fetch the Verilog from Wokwi API
- name: fetch Verilog
run: make fetch
# run the 'harden' rule in the Makefile to use OpenLane to build the GDS
- name: make GDS
run: make harden
# for debugging, show all the files
- name: show files
run: find runs/wokwi/results
# make the SVG
- name: create svg
run: python view.py
# make html gds viewer with GDS2WebGL
- name: GDS2WebGL
run: |
cd GDS2WebGL
python3 gds2webgl.py -i ../runs/wokwi/results/final/gds/*gds -o ../gds.html
# archive the gds and some other important files
- name: Archive files
uses: actions/upload-artifact@v2
with:
# path depends on the tag and the module name
name: GDS
path: |
src/*
runs/wokwi/results/final/*
runs/wokwi/reports/final_summary_report.csv
runs/wokwi/reports/synthesis/1-synthesis.stat.rpt.strategy4
gds_render.svg
gds.html