Skip to content

sby Formal Verification #37

sby Formal Verification

sby Formal Verification #37

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 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