Skip to main content

Programmatic Interpretations of Cadence Virtuoso Waveform VCSV files

Project description

VCSV Genie

This repo details methods for parsing transient simulation VCSV files from Cadence Virtuoso.

Installation

  1. Clone this repo
git clone https://github.com/FSharp4/vcsvgenie.git
cd vcsvgenie
  1. Build this repo
pip install build
python -m build
  1. Install the repo
pip install -e .
  1. Copy over a vcsv file of your choice, and use vcsvgenie to process the file, extracting propagation delays, printing traces, etc.

Example files can be seen in vcsvgenie/_dev.

Remark: In order for VCSV genie to automatically parse your file for propagations, you need to specify which signals are 'outputs' and which signals are inputs.

  • Signals must be 'outputs' for propagation delay calculations to be performed on them with respect to inputs.
  • Within Virtuoso Schematics/Layouts, these signals may be inputOutput or intermediate.

To specify which signals are inputs/outputs, supply lists of signal names to the input and output constructor arguments for TransientResultSpecification. (See Usage for an example).)

Functionality

VCSV Genie is presently limited to processing VCSV files produced from transient simulaitons in Cadence Virtuoso. Users can:

  • Create pandas dataframes from VCSV files
  • Create $(x, y)$ dataseries of individual waveforms (note that all timestamp $x$ vectors are the same in a VCSV file, and are not uniformly spaced)
  • Create collections of waveforms from specifications (vcsvgenie.transient_waveform.TransientResult)
  • Recognize signal buses using caret notation (i.e., A<3:0>) by specifying the individual signals in the TransientResultSpecification
  • Digitize and tabulate signal bus data

Usage

from pathlib import Path
from pprint import pprint

from vcsvgenie.read import read_vcsv
from vcsvgenie.transient_waveform import TransientResultSpecification, average_propagation_delays_by_category, maximum_propagation_delays_by_category, construct_waveforms

path = Path("example.vcsv")
dataframe, titles = read_vcsv(path)
waveforms = construct_waveforms(dataframe, titles)

specification = TransientResultSpecification(
    inputs = [
        '/A<3>', '/A<2>', '/A<1>', '/A<0', '/B<3>', '/B<2>', '/B<1>', '/B<0>', 'Clk'
    ],
    outputs = ['/z<7>', '/z<6>', '/z<5>', '/z<4>', '/z<3>', '/z<2>', '/z<1>', '/z<0>'],
    clock_period = 1e-9,
    logic_threshold = 0.5 # volts
)

results = specification.interpret(waveforms)
results.find_transitions()
results.find_propagations()

averages = average_propagation_delays_by_category(results.propagations)
pprint(results.propagations)
pprint(averages)

maxima = maximum_propagation_delays_by_category(results.propagations)
pprint(maxima)

results.digitize()
results.resolve_buses()
bus_data = results.tabulate_bus_data()
bus_data.to_csv("bus_data.csv")

results.plot(separate=True)

Dependencies

  • numpy
  • matplotlib
  • pandas
  • (optional): jupyter

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

vcsvgenie-0.4.1.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vcsvgenie-0.4.1-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file vcsvgenie-0.4.1.tar.gz.

File metadata

  • Download URL: vcsvgenie-0.4.1.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for vcsvgenie-0.4.1.tar.gz
Algorithm Hash digest
SHA256 d03b5e198b673340766345cb8e962ac48cc9d03fa9faf7234b8f7a1498858742
MD5 ff9d0759d6d2ad2352ceff3e86a9e8c1
BLAKE2b-256 1b21c7fff85aba0d0d68302cca48bd3fa1d96459e7ac09daae6e0a5ae3fcc72e

See more details on using hashes here.

File details

Details for the file vcsvgenie-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: vcsvgenie-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for vcsvgenie-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 660a3c0c0ee48703c6a53b69e3aa259b15731b38c740b2cfb1b734fe3b84ab83
MD5 4bdf2227f3c2ff57c2680bc3f4eb0f6b
BLAKE2b-256 1455fee2f9cc1c11b61b492e8027cc968becf4dcb0d1922f486c9cb8d9acc27a

See more details on using hashes here.

Supported by

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