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.3.0.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

vivado_report_parser-0.3.0-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vivado_report_parser-0.3.0.tar.gz
  • Upload date:
  • Size: 17.5 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.3.0.tar.gz
Algorithm Hash digest
SHA256 29fac4950f38353c1af62bc3394534c5749ac715eefef5f1fbcda3553e473914
MD5 40cd9324311b6f490c206f381166f564
BLAKE2b-256 80d9eb65529286f58eb3293610e327eb58acebce560cc7a846c95e1d31c4deef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vivado_report_parser-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92442aa8dd5579b7711283a197b7b4ccde2a5f860165d2994089eced5c2e4e96
MD5 136c125236cd2d105672187c8c83f109
BLAKE2b-256 7dde5f457b5037190b9041de48c62f86819d63abc4d1a3847baad44d1e32405e

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