vcd

Parses VCD dumps from Logic Analyzers, EDA logic simulation tools, etc.

Usage no npm install needed!

<script type="module">
  import vcd from 'https://cdn.skypack.dev/vcd';
</script>

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