-
Notifications
You must be signed in to change notification settings - Fork 10
52 lines (42 loc) · 1.57 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
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 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 Tensorflow
run: |
pip install pytest numpy tensorflow qkeras
- 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
pip install .
mkdir -p run/work
cd run/work
python -m pytest -s ../param_test.py