-
Notifications
You must be signed in to change notification settings - Fork 10
99 lines (80 loc) · 3.13 KB
/
verify.yml
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
name: Verify
on: [push]
jobs:
verify-with-verilator:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache modules
id: cache-verify
uses: actions/cache@v3
env:
cache-name: cache-verify
with:
path: ~/.verify
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Verilator
run: |
sudo apt-get install --only-upgrade python3
sudo apt-get install git help2man perl python3 make autoconf g++ flex bison ccache libunwind-dev
sudo apt-get install libgoogle-perftools-dev numactl #perl-doc
sudo apt-get install libfl2 # Ubuntu only (ignore if gives error)
sudo apt-get install libfl-dev # Ubuntu only (ignore if gives error)
# sudo apt-get install zlibc zlib1g zlib1g-dev # Ubuntu only (ignore if gives error)
git clone https://github.com/abarajithan11/verilator-compiled
cd verilator-compiled
tar -C ${HOME} -xzf verilator.tar.gz
- name: Install DeepSoCFlow
run: |
pip install .
- name: Verify Full Design
run: |
export VERILATOR_ROOT=${HOME}/verilator
export PATH=${VERILATOR_ROOT}/bin:${PATH}
export PYMTL_VERILATOR_INCLUDE_DIR=${VERILATOR_ROOT}/share/verilator/include
verilator --version
mkdir -p run/work
cd run/work
python -m pytest -s ../param_test.py
# resnet50:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Cache modules
# id: cache-verify
# uses: actions/cache@v3
# env:
# cache-name: cache-verify
# with:
# path: ~/.verify
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-build-${{ env.cache-name }}-
# ${{ runner.os }}-build-
# ${{ runner.os }}-
# - name: Install Verilator
# run: |
# sudo apt-get install git help2man perl python3 make autoconf g++ flex bison ccache libunwind-dev
# sudo apt-get install libgoogle-perftools-dev numactl #perl-doc
# sudo apt-get install libfl2 # Ubuntu only (ignore if gives error)
# sudo apt-get install libfl-dev # Ubuntu only (ignore if gives error)
# # sudo apt-get install zlibc zlib1g zlib1g-dev # Ubuntu only (ignore if gives error)
# git clone https://github.com/abarajithan11/verilator-compiled
# cd verilator-compiled
# tar -C ${HOME} -xzf verilator.tar.gz
# - name: Install DeepSoCFlow
# run: |
# pip install .
# - name: Verify Full Design
# run: |
# export VERILATOR_ROOT=${HOME}/verilator
# export PATH=${VERILATOR_ROOT}/bin:${PATH}
# export PYMTL_VERILATOR_INCLUDE_DIR=${VERILATOR_ROOT}/share/verilator/include
# verilator --version
# mkdir -p run/work_resnet
# cd run/work_resnet
# python ../resnet_50.py