Parses VCD dumps from Logic Analyzers, EDA logic simulation tools, etc.
npm install vcdFor dumps from Logic Analyzers, EDA logic simulation tools, etc.
```
$ npm install vcd
then
`js
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
})
``
# 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.
MIT