oppstar-vcd-stream

0.15.4 • Public • Published

NPM version

Value Change Dump (VCD) parser using llparse

Usage

Install

npm i vcd-stream
make wasm

Require

let vcd = require('vcd-stream');

Create parser writable stream instance

let inst = vcd.parser();

General event emitter

inst.on(<eventName>, () => {});

Events:

  • $enddefinitions - when all modules/wires are defined
  • finish - end of stream
  • error - error during parsing process

Change event emitter

inst.change.on(<wireName>, (time, cmd) => {});
  • time -- change time
  • cmd -- change type

Info object

let info = inst.info;
  • info.status - ('declaration'|'simulation')
  • info.wires - hierarchy object of modules and wires

Pipe data into the instance

myStream.pipe(inst);

Test

npm i
npm test

License

MIT LICENSE

Readme

Keywords

Package Sidebar

Install

npm i oppstar-vcd-stream

Weekly Downloads

1

Version

0.15.4

License

MIT

Unpacked Size

310 kB

Total Files

18

Last publish

Collaborators

  • cychang988