Skip to content

sby Formal Verification #62

sby Formal Verification

sby Formal Verification #62

Workflow file for this run

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