Importing Coverage
PyUCIS reads coverage from several simulator and verification framework formats and converts them all into the same UCIS internal model. Once imported, every tool in PyUCIS works identically regardless of the original source.
Supported Sources
Source |
|
File extension |
Guide |
|---|---|---|---|
Verilator |
|
|
|
cocotb-coverage (XML) |
|
|
|
cocotb-coverage (YAML) |
|
|
|
AVL (JSON) |
|
|
|
UCIS XML |
|
|
— |
UCIS YAML |
|
|
— |
Automatic Format Detection
When working in Python you can let PyUCIS detect the format automatically:
from ucis.format_detection import read_coverage_file
db = read_coverage_file('coverage.xml') # cocotb XML, UCIS XML, or AVL — auto-detected
db = read_coverage_file('coverage.yml') # cocotb YAML or UCIS YAML
db = read_coverage_file('coverage.json') # AVL JSON
From the command line always specify --input-format to be explicit.