Merge pull request #16 from dineshannayya/main #91
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
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 |