Skip to content

Commit 2a0992e

Browse files
authored
Merge pull request #41 from fvutils/mballance/conversion
Enhance support for conversion between formats
2 parents 27442a0 + 0947c24 commit 2a0992e

99 files changed

Lines changed: 11662 additions & 406 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CONVERSION_PLAN.md

Lines changed: 692 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,34 @@ pyucis convert --input-format vltcov coverage.dat --out coverage.xml
182182

183183
See documentation for complete import examples and supported formats.
184184

185+
## Supported Formats
186+
187+
PyUCIS supports bi-directional conversion between formats using the UCIS data model as the common representation. Conversion is lossy for formats that do not support all UCIS features; a warning is emitted for each unsupported construct (use `--strict` to turn warnings into errors).
188+
189+
| Format | Key | Read | Write | Functional Cov | Code Cov | Toggle Cov | Lossless |
190+
|--------|-----|:----:|:-----:|:--------------:|:--------:|:----------:|:--------:|
191+
| UCIS XML | `xml` ||||| - | near |
192+
| UCIS YAML | `yaml` |||| - | - | - |
193+
| SQLite | `sqlite` |||||| **** |
194+
| LCOV | `lcov` | - || - || - | - |
195+
| cocotb YAML | `cocotb-yaml` |||| - | - | - |
196+
| cocotb XML | `cocotb-xml` |||| - | - | - |
197+
| AVL JSON | `avl-json` |||| - | - | - |
198+
| Verilator | `vltcov` ||| - ||| - |
199+
200+
**Conversion CLI:**
201+
202+
```bash
203+
# Convert with warnings on unsupported constructs (default)
204+
pyucis convert --input-format xml --output-format yaml input.xml -o output.yaml
205+
206+
# Strict mode: fail on any unsupported construct
207+
pyucis convert --input-format xml --output-format lcov --strict input.xml -o output.lcov
208+
209+
# Show a summary of warnings after conversion
210+
pyucis convert --input-format xml --output-format cocotb-yaml --warn-summary input.xml -o out.yml
211+
```
212+
185213
## Documentation
186214

187215
- [MCP Server Documentation](MCP_SERVER.md)

UCIS_COVERAGE_GAP_ANALYSIS.md

Lines changed: 830 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)