wavedrom / zoom

🔍 Zoomable Waveform viewer for the Web
MIT License
43 stars 1 forks source link

Viewfinder #11

Open drom opened 5 years ago

drom commented 5 years ago

Originally posted by @wifasoi in https://github.com/wavedrom/zoom/issues/1#issuecomment-435323819

drom commented 5 years ago

Originally posted by @nturley in https://github.com/wavedrom/zoom/issues/1#issuecomment-435543623

cmarqu commented 5 years ago

In addition to displaying "signal values in decimal, hex, bit string, and line chart", some custom mapping ("conditional formatting") should be possible.

This could be used to map register names to addresses, FSM state names to register values, etc. Cadence SimVision calls this "Mnemonic Maps", and you can define wavetrace colors based on the discrete values (colors for background, foreground, (out)line, text); and display an alternate text (with the C-style format notation to the get the original value into this alternate text).

One step further, and we could display range bands of real number values differently (like "overvoltage" in red, or "positive values in red, negative values in blue"), or map such a value to a color spectrum.

Yet another step further is the "full protocol analyzer" plugin from #10, but I think the simpler conditional formatting functions should be built in.