wavedrom / vcdrom

VCD viewer
https://vc.drom.io
MIT License
78 stars 11 forks source link

[Bug]: Array signal not recognized #35

Closed boluo-O closed 1 year ago

boluo-O commented 1 year ago

here is sample from https://vc.drom.io/?github=Mohammad-Heydariii/Digital-Systems-Lab-Course/main/Lab_project4/modelsim_files/clkdiv2n_tb.vcd

the result is like that 企业微信截图_b3bf61fd-d867-48cd-a03c-90ec529c5a33

Array signal r_nxt is not displayed correctly,there are three signal r_nxt[2],r_nxt[1],r_nxt[0] in clkdiv2n_tb.vcd file, but in the wave form only one r_nxt wave, It seems that the array signal is not recognized

drom commented 1 year ago

Yes, very interesting. ModelSim decided to store r_reg register as 3-bit vector, and r_nxt wire as 3 independent signals. Let me see how To fix it.

drom commented 1 year ago

Please try again with new version.

boluo-O commented 1 year ago

The new version works perfectly! Thanks, this is very helpful to me.