Value Change Dump (VCD) parser using llparse
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 definedfinish- end of streamerror- error during parsing process
Change event emitter
inst.change.on(<wireName>, (time, cmd) => {});time-- change timecmd-- 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);npm i
npm run mocha_napi
make
npm run mocha_wasm
npm test
MIT LICENSE