Skip to main content

A Python library for parsing Vivado report files.

Project description

vivado-report-parser

This Python library provides functions for parsing Vivado report files into Python objects. Currently, it only supports "tables-style" reports like those generated by the report_power and report_utilization commands.

The package comes with a script called parse-vivado-report that reads from a given report file (or stdin) and outputs a JSON representation of the data.

Documentation is provided in the docstrings of each module and function.

Installation

$ pip install vivado-report-parser

Example Usage

CLI

$ parse-vivado-report power.rpt -d power.rpt.json

or

$ ... | parse-vivado-report -d power.rpt.json

Library

from vivado_report_parser import parse_metadata, parse_vivado_report

with open('power.rpt', 'r') as f:
  file_content = f.read()

metadata = parse_metadata(file_content)
data = parse_vivado_report(file_content)

print(data['Summary']['Total On-Chip Power (W)'])
...

Disclaimer

Copyright 2024 Jesse Looney

All the files in this repository are part of vivado-report-parser.

vivado-report-parser is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

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

vivado_report_parser-0.4.0.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

vivado_report_parser-0.4.0-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file vivado_report_parser-0.4.0.tar.gz.

File metadata

  • Download URL: vivado_report_parser-0.4.0.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.9.3-76060903-generic

File hashes

Hashes for vivado_report_parser-0.4.0.tar.gz
Algorithm Hash digest
SHA256 2e412a4bd7ae7e9638fa1fa97cbb2412aecc648d93317d26dcc1ecadf7b247d4
MD5 00645d978acf91146cbfe2e0a5cea62f
BLAKE2b-256 3241a1875b76c67b9191123173c889fe8dcc0064382943fcdec195aee67671fa

See more details on using hashes here.

File details

Details for the file vivado_report_parser-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vivado_report_parser-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 961b6a27785882bbbaa6d97eee4e56160b0224ca3db7cd02fcde903f5703a82a
MD5 473dc4f896dd09dfe4bf7b761910c411
BLAKE2b-256 e6b369cf970e3c1d006b752e6e19fd8dd4087f76924274b1a90c6370d29b8eeb

See more details on using hashes here.

Supported by

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