Value Change Dump ([VCD](https://en.wikipedia.org/wiki/Value_change_dump)) parser using [llparse](https://github.com/nodejs/llparse) based on [wavedrom](https://github.com/wavedrom/vcd). ## Prepare 1. [Install emcc compiler](https://kirigaya.cn/blog/article?seq=55) 2. clone https://github.com/Digital-EDA/digital-vcd-parser ## 构建 ```bash source $EMCC_HOME/emsdk_env.sh # 只需要运行一次 npm install browserify terser node-gyp -g # 只需要运行一次 npm i # 构建左推解析器代码(每次修改 ./bin/build.js 都需要重新运行) node bin/build.js # build make -j 12 ``` 生成 : - `./out/vcd.js` - `./out/vcd.wasm` 部署代码: ```bash # 将生成的 wasm 通过 浏览器化和特殊处理后部署到 render 项目中 source deploy.sh /mnt/c/Users/11934/Project/Digital-IDE/digital-vcd-render ``` ## Test After first building, run following ```bash npm run test ``` note: don't run `browserify` if you want to test. ## Deploy to web ```bash source deploy.sh /path/to/digital-vcd-render ``` ## Usage Only stream of Uint8 is supported as input. e.g. we want to parse a certain `*.vcd` read in browser-like environment. Mount vcd to window in your `index.html`: ```html