Skip to main content

fsva (FuseSoc Verification Automation)

Project description

fsva - FuseSoc Verification Automation

Introduction

FuseSoc Verification Automation (fsva) is a tool that aims to automate the verification process of libraries and HDL design projects managed with FuseSoc build tool/system.

fsva in no way duplicates or replaces functionalities provided by the FuseSoc. Colloquially speaking, fsva is a wrapper for FuseSoc, automating the verification process. It simply detects and runs verification targets, and parses verification results.

Why?

The major goal is to easily integrate project/libraries described in FuseSoc into Continuous Integration workflow. FuseSoc is more than good for building and running single targets, however if you want to run multiple verificaiton targets it keeps rebuilding verification frameworks. This particular operation is redundant and time consuming. fsva assumes that verification frameworks (such as UVVM or OSVVM) are already pre-compiled (pre-analyzed) for simulation engines. What is more, fsva extends FuseSoc by parsing verification results.

How it works

fsva scans recursively for .core files and fetches all targets starting with tb_ or ending with _tb. Then it runs these targets calling FuseSoc run command and captures stdout and stderr. By default verification targets are run in parallel. The default number of concurrent processes equals multiprocessing.cpu_count(). All verification results, as well as verification summary, are saved as separate files in a directory, which name reflects the UTC time of a verification process startup. Under the UTC time directory, the cores directories are located. Each core directory contains directories with results for particular verification targets. Example _fsva output directory structure:

_fsva/
└── 2020-07-15_16-31-47
    ├── div_by_3
    │   └── div_by_3_tb
    │       └── output.txt
    ├── gbt_link_checker
    │   ├── checker_tb
    │   │   └── output.txt
    │   ├── generator_1_tb
    │   │   └── output.txt
    │   └── generator_2_tb
    │       └── output.txt
    ├── psl
    │   └── tb_0
    │       ├── ghdl.ghw
    │       ├── ghdl_psl_report.json
    │       └── output.txt
    └── summary

If any extra parsing of the verification results is needed (for example in case of metric driven verification) in the future, it will be based on prefix or suffix indicating verification framework/infrastructure. For instance, for UVVM it will be tb_uvvm_ / _uvvm_tb, respectively for OSVVM it will be tb_osvvm_ / _osvvm_tb.

If FuseSoc supports formal verification targets in the future, they will be fetched based on fv_ prefix or _fv suffix.

Installation

Latest stable version of fsva can be installed from PyPI: pip install --user fsva.

Alternatively, you can clone this repository and run python setup.py install --user.

Usage

Verify project

Execute fsva in project root directory to run all verification targets.

Verify single core or target

You can also run all verification targets for single core: fsva core_name or run specific verification target for specific core fsva core_name target_name. When verifying single core or target, the output is printed on the console. Extra files, such as waveform, PSL reports etc. are placed under _fsva/tmp/{core}/{target}/ path.

Note!

If you use it with UVVM you may need to fix status that is returned when UVVM test bench fails: Integrating UVVM with Continuous Integration - problem with simulators exit status.

MIT License

Copyright (c) 2019 Michał Kruszewski

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fsva-0.0.6.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fsva-0.0.6-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file fsva-0.0.6.tar.gz.

File metadata

  • Download URL: fsva-0.0.6.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for fsva-0.0.6.tar.gz
Algorithm Hash digest
SHA256 208ad244a204989672ec6874ef87014be51791f3e8a6e4f3bd1206a5f7617e87
MD5 a2f3a9a6e1f12da635753742bff1e422
BLAKE2b-256 b63ba8107dc1d5ae37bec5ad24c4940d3c21dee88553e4a711b571e027eace92

See more details on using hashes here.

File details

Details for the file fsva-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: fsva-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for fsva-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6e57fc3500f999e0ea2dc9995ad4b8ce629af800231551ac149f67031b226178
MD5 5af5accbecfeb498d0e6ca4b604defc2
BLAKE2b-256 13551cc802016c48a4d947498d75c9c3135a288c64b206337f73f0cbbe7a2497

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page