Aliaksei Chapyzhenka 6ec03a5ca3 ⬆️ dependencies
2024-01-21 21:28:20 -08:00
2022-05-26 11:10:10 -07:00
2023-03-11 19:28:58 -08:00
2020-09-28 00:28:50 -07:00
2023-03-11 19:28:58 -08:00
2023-03-11 19:28:58 -08:00
2022-05-31 18:30:32 -07:00
2021-10-10 20:38:17 -07:00
2019-10-23 13:50:49 -07:00
2023-03-11 19:36:41 -08:00
2022-05-25 22:10:18 -07:00
2024-01-21 21:28:20 -08:00
2022-05-26 11:21:49 -07:00
2023-03-11 19:28:58 -08:00
2022-05-31 18:30:32 -07:00
2023-03-11 19:28:58 -08:00
2023-03-11 19:28:58 -08:00

Linux NAPILinux WASMMacOS NAPIMacOS WASMWindows WASM 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

Build / Test Napi version

npm i
npm run mocha_napi

Build / Test Wasm version

make
npm run mocha_wasm

Test all

npm test

License

MIT LICENSE

Description
No description provided
Readme 7.5 MiB
Languages
C 72.2%
JavaScript 19.5%
Makefile 3.1%
Shell 2.8%
C++ 1.9%
Other 0.4%