vcd

0.0.4 • Public • Published

value change dump parser

For dumps from Logic Analyzers, EDA logic simulation tools, etc.

$ npm install vcd

then

var vcd = require('vcd');
 
fs.createReadStream('./file.vcd')
  .pipe(vcd.createStream())
  .on('begin', function (state) {
    // state contains date, variable definitions, etc.
  })
  .on('sample', function (index, changes, last) {
    // index = number of sample
    // changes = hash of changed vars (by name)
    // last = last state of all vars
  })

api

# vcd.createStream( [opts] )
Creates a stream that parses a value-changed dump stream. The following options are possible:

  • rename — Map of var names to renamed var names.
  • ignore — Var names to ignore in sample output.

license

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i vcd

Weekly Downloads

0

Version

0.0.4

License

MIT

Last publish

Collaborators

  • tcr