Main Goals
This package provides OSVVM-specific data models and parsers. The data models can be used as-is or converted to generic
data models of the pyEDAA data model family. This includes parsing OSVVM's *.pro-files and translating them to a
pyEDAA.ProjectModel instance as well as reading OSVVM's reports in
YAML format like test results, alerts or functional coverage.
Frameworks consuming these data models can build higher level features and services on top of these models, while using one parser that's aligned with OSVVM's data formats.
Data Models
Project Description via *.pro-Files
Features:
- Parse OSVVM's
*.profiles including complex TCL code structures like nestedif-statements. - Emulate tool specific TCL variables:
::osvvm::ToolVendor,::osvvm::ToolName::osvvm::ToolNameVersion, ... - Convert the project description stored in one or more
*.profiles to apyEDAA.ProjectModelinstance.
Basic Data Model:
- VHDL source files are accumulated in VHDL libraries.
- The order of source files is preserved in a library.
- Test cases are accumulated in test suites.
- Configuration changes are collected in a context.
- When a new item is added to the model, certain default values or collected configuration values are used to create this new item.
Quick Example
from pathlib import Path
from pyEDAA.OSVVM.Project.TCL import OsvvmProFileProcessor
processor = OsvvmProFileProcessor()
processor.LoadBuildFile(Path("OSVVM/OSVVMLibraries/OsvvmLibraries.pro"))
processor.LoadBuildFile(Path("OSVVM/OSVVMLibraries/RunAllTests.pro"))
project = processor.Context.ToProject("OsvvmLibraries")
for buildName, build in project.Builds.items():
for libraryName, lib in build.Libraries.items():
for file in lib.Files:
...
for testsuiteName, ts in build.Testsuites.items():
for tc in ts.Testcases.values():
...
Testsuite Summary Reports
YAML Report (more details)
from pathlib import Path
from pyEDAA.OSVVM.Build import BuildSummaryDocument
yamlPath = Path("OSVVMLibraries_RunAllTests.yml")
doc = BuildSummaryDocument(yamlPath, analyzeAndConvert=True)
XML Report (Ant+JUnit format - less details)
from pathlib import Path
from pyEDAA.Reports.Unittesting.JUnit import Document as JUnitDocument
junitExampleFile = Path("OSVVMLibraries_RunAllTests.xml")
doc = JUnitDocument(junitExampleFile, analyzeAndConvert=True)
Testcase Summary Reports
Alert and Log Reports
from pathlib import Path
from pyEDAA.OSVVM.AlertLog import Document as AlertLogDocument
path = Path("TbAxi4_BasicReadWrite_alerts.yml")
doc = AlertLogDocument(path, analyzeAndConvert=True)
print(f"{doc.Name}: {doc.AlertCountWarnings}/{doc.AlertCountErrors}/{doc.AlertCountFailures}")
for item in doc:
print(f" {item.Name:<19}: {item.AlertCountWarnings}/{item.AlertCountErrors}/{item.AlertCountFailures}")
print(f"Total errors: {doc.TotalErrors}")
Scoreboard Reports
Functional Coverage Reports
Requirement Reports
Use Cases
- Reading OSVVM's project description from
*.profiles.- Convert to other data or file format.
- Reading OSVVM's reports from
*.yamlfiles.- Convert to other data or file format.
- Investigate reports.
- Merge reports.
Examples
from pathlib import Path
from pyEDAA.OSVVM.Project.TCL import OsvvmProFileProcessor
def main() -> None:
processor = OsvvmProFileProcessor()
processor.LoadProFile(Path("OSVVM/OSVVMLibraries/OsvvmLibraries.pro"))
processor.LoadProFile(Path("OSVVM/OSVVMLibraries/RunAllTests.pro"))
for libraryName, lib in processor.Context.Libraries.items():
print(f"Library: {libraryName} ({len(lib.Files)})")
for file in lib.Files:
print(f" {file.Path}")
print()
for testsuiteName, ts in processor.Context.Testsuites.items():
print(f"Testsuite: {testsuiteName} ({len(ts.Testcases)})")
for tc in ts.Testcases.values():
print(f" {tc.Name}")
Consumers
References
Contributors
- Patrick Lehmann (Maintainer)
- and more...
License
This Python package (source code) is licensed under Apache License 2.0.
The accompanying documentation is licensed under Creative Commons - Attribution 4.0 (CC-BY 4.0).
SPDX-License-Identifier: Apache-2.0
Metadata
Release files for pyEDAA.OSVVM 0.8.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyedaa_osvvm-0.8.1.tar.gz | 48.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyedaa_osvvm-0.8.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 104.1 kB
Release files / pyedaa_osvvm-0.8.1.tar.gz
| Download URL | pyedaa_osvvm-0.8.1.tar.gz |
|---|---|
| Size | 48.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec4c33fe86e69246df9628133bea1d6049de9e6578a19944fc00b5ba0b428c76
|
|
BLAKE2b-256 checksum How to use checksums |
944b601848a45385857b379bcdd5366787b3e22f3f6019e697a856d610b4e2ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / pyedaa_osvvm-0.8.1-py3-none-any.whl
| Download URL | pyedaa_osvvm-0.8.1-py3-none-any.whl |
|---|---|
| Size | 55.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
05521c4e5a729a986ee8fb5a84dead03b14a7a70f1ca1c83d5cc4573a962fb1d
|
|
BLAKE2b-256 checksum How to use checksums |
7cadc4482794a9cf8a69b5594bc3433093c27f57ae0027ebde68b5256636b01a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|