Click on the "Toggle leaf name ⇔ full name" icon in the group of icons located in the lower left corner of the Wave window.
For more information, see the FAQ below and the PDF linked to the FAQ.
[FAQ]
How do you display only the leaf name instead of the full path signal name in the ModelSim-Altera wave window?
https://community.altera.com/kb/knowledge-base/how-do-you-display-only-the-leaf-name-instead-of-the-full-path-signal-name-in-th/339572
It is also possible to set the value of the hierarchy to be displayed from the menu.
If the Wave window is docking to the GUI, the menu is as follows.
1. activate the Wave window and then select Wave menu > Wave Preferences
2. in the Display tab of the Wave Window Preferences dialog box > Display Signal Path
⇒ change this value (set to 0 for full path display )
If the Wave window is undocked in the GUI, select Tools menu > Wave Preferences.
--------------------
Category: Simulation
Tools: ModelSim*
Device: -