Lramseyer / vaporview

VCD Waveform Viewer Extension for VScode
70 stars 2 forks source link

Support Linear, and Stepped render modes #19

Open hongshui3000 opened 3 months ago

hongshui3000 commented 3 months ago

Hope to support the same mode as WaveTrace extension. These modes are useful for viewing waveforms. 1722670841644

Lramseyer commented 3 months ago

I'm going to be honest, I don't actually have any VCD files with analog data in them to test this out ...which is a little ironic considering all of the mixed signal work I do in my day job!

I'll look around at how analog data is stored in a VCD file, and I should be able to add this to VaporView pretty easily!

hongshui3000 commented 3 months ago

It does not necessarily require analog data. For example, in the picture above, it is just the value of a counter, which can form a linear/Stepped waveform.This kind of graph is very useful for finding differences in a large amount of similar data.

Lramseyer commented 3 months ago

OK, so it sounds like you're asking for multi bit waveforms to be viewed as analog data? I should also support 2's compliment while I'm at it.

I'll work on this soon. We just got new silicon back at my day job, so it's been a bit busy on my end!

tafkos commented 1 week ago

https://edaplayground.com/x/sf2W - a simple verilog code to produce VCD with sinewaves "analog signals". Both real and regs are generated.