sby Formal Verification #69
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 synchronous_fifo.sby | |
- name: check results | |
run: | | |
var=$(cat formal/synchronous_fifo_task_bmc/synchronous_fifo_task_bmc.xml | grep -o -E 'failures.{0,3}' | head -1 | cut -f2- -d\") | |
if [ $var = 0 ]; then exit 0; else exit 1; fi |