enjoy-digital / litescope

Small footprint and configurable embedded FPGA logic analyzer
Other
160 stars 38 forks source link

Display FSM states or any number to text in VCD file #18

Open fjullien opened 4 years ago

fjullien commented 4 years ago

GtkWave can display signals values as ASCII. What if litescope uses this option to add a text translation of any signal ? I don't know if it's possible but Litex could generate analyzer.csv with FSM states names. Then litescope would add "virtual signals" with ASCII translation of FSM states.

We could also add a configuration file to litescope with dictionaries of value:name for any signal.

During simulations Migen already does this for FSM:

image