vcd
v0.0.4
Published
Parses VCD dumps from Logic Analyzers, EDA logic simulation tools, etc.
Downloads
6
Readme
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