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 Vivado Tcl 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)'])
...

Copyright Notice

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: vivado_report_parser-0.5.0.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.3 Linux/6.8.0-48-generic

File hashes

Hashes for vivado_report_parser-0.5.0.tar.gz
Algorithm Hash digest
SHA256 b925766aa34d019bf7d179980dcdc94b9a7be3ee4ed6accd17ae50df1f3f36b2
MD5 77addbcbf221ba5c24642e1cf37731be
BLAKE2b-256 be8af5f60f8c76dda50cb907feba2f6015557d11d902b3f112ebe7bd12bc891f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vivado_report_parser-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f2b55abea32b4b041254028f5def4a817ab567cfd7b9712d4cff45a3e1466545
MD5 2d552f5efbc23b9efbdaafafe122e793
BLAKE2b-256 b4087421d4dc0606b2f942d6d23f5bbb4f41de6155090ad9c9b99e265f566223

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