ThePerfectComputer / FastWaveBackend

A Rust VCD parser intended to be the backend of a Waveform Viewer(built using egui) that supports dynamically loaded rust plugins.
GNU General Public License v3.0
42 stars 5 forks source link

Arrays split into individual signals cause problems #9

Open TheZoq2 opened 1 year ago

TheZoq2 commented 1 year ago

Aparently there are wave files which contain

input0 [0]
input0 [1]
input0 [2]
input0 [3]
...

FWB seems to parse these as several copies of input0, presumably because it assumes there can not be a space in the signal name

See https://gitlab.com/surfer-project/surfer/-/issues/15 for a VCD file with this problem

oscargus commented 1 year ago

The first thing to do is to add the index to the signal (this is what GTKWave does). However, long term, I think it is preferred to merge these into actual single vectors (this is what ModelSim, that generates these VCD-files, does).