finished implementation #2
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
#========================================================================= | |
# run_test.yml | |
#========================================================================= | |
name: Run Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
null | |
jobs: | |
sim: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install verilator | |
run: | | |
wget --progress=dot:giga https://github.com/cornell-ece2300/github-actions-prebuild/raw/main/github-actions-verilator-5.026.tar.gz | |
tar -C ${HOME} -xzf github-actions-verilator-5.026.tar.gz | |
echo "${HOME}/verilator/bin" >> $GITHUB_PATH | |
echo "PKG_CONFIG_PATH=${HOME}/verilator/share/pkgconfig:${PKG_CONFIG_PATH}" >> $GITHUB_ENV | |
- name: Check verilator | |
run: | | |
which verilator | |
verilator --version | |
pkg-config --modversion verilator | |
pkg-config --cflags verilator | |
- name: Install iverilog | |
run: | | |
wget --progress=dot:giga https://github.com/cornell-ece2300/github-actions-prebuild/raw/main/github-actions-iverilog-12.0.tar.gz | |
tar -C ${HOME} -xzf github-actions-iverilog-12.0.tar.gz | |
echo "${HOME}/iverilog/bin" >> $GITHUB_PATH | |
- name: Check iverilog | |
run: | | |
which iverilog | |
iverilog -V | |
- name: Run sim tests | |
timeout-minutes: 10 | |
run: | | |
verilator -Wall --lint-only PairTripleDetector.v | |
iverilog -Wall -g2012 -o PairTripleDetector_test \ | |
PairTripleDetector_test.v \ | |
PairTripleDetector.v | |
./PairTripleDetector_test +verbose=-1 | tee PairTripleDetector_test.log | |
grep "*** PASSED ***" PairTripleDetector_test.log |