sby Formal Verification #41
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: sby Formal Verification | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 0' # weekly | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get latest sby sources | |
uses: actions/checkout@v3 | |
with: | |
repository: YosysHQ/sby | |
- name: Setup test environment | |
uses: YosysHQ/setup-oss-cad-suite@v1 | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
uses: ghdl/setup-ghdl-ci@nightly | |
with: | |
backend: llvm | |
- run: | | |
ghdl --version | |
$GHDL --version | |
- name: formal verification | |
run: | | |
cd formal/ && sby --yosys "yosys -m ghdl" -f display_timings.sby | |
- name: check results | |
run: | | |
cd formal/ && var=$(cat display_timings_task_induction/display_timings_task_induction.xml | grep -o -E 'failures.{0,3}' | head -1 | cut -f2- -d\") | |
if [ $var = 0 ]; then exit 0; else exit 1; fi |