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:
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: