-
Notifications
You must be signed in to change notification settings - Fork 5
52 lines (42 loc) · 1.16 KB
/
main.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: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install iverilog
run: |
sudo apt-get update -y
sudo apt-get install iverilog -y
- name: Install yosys
run: |
sudo apt-get install build-essential clang bison flex \
libreadline-dev gawk tcl-dev libffi-dev git \
graphviz xdot pkg-config python3 libboost-system-dev \
libboost-python-dev libboost-filesystem-dev zlib1g-dev
git clone https://github.com/YosysHQ/yosys.git -b yosys-0.36 --depth 1
cd yosys
make
sudo make install
export PATH=/usr/local/bin:$PATH
- name: Install gcc
run: |
sudo apt install gcc
- name: synthesis
run: |
cd validation/
yosys-config --build cg_plugin.so clock_gating_plugin.cc
python3 synth_test.py
- name: validation
run: |
cd validation/
python3 validate.py