Assuming the main test bench is labeled as 'top_entity_tb', the following methodologies can be applied
First method
Requires using the ModelSim GUI. Needs steps listed below
- Go to top level testbench hierarchy (in the Sim tab)
- Search for the instantiation of DUT. Using the description posted with the question, it should look like to something like this: top_entity_tb\top_entity
- Right click on the entity of interest
- Choose Add Wave in the options (Alternatively, Ctrl+W shortcut can be used)
- The transcript window should then show something like this:
add wave -position insertpoint {sim:/top_entity_tb/top_entity/\sec_tier/third_tier/ /*}
. Notice that this command has multiple features (it uses curly brackets and it requires a space between the name of the group and the '/*' symbols)
Second method
Add waveforms group directly into *.DO macro
Use expression shown below
add wave -group THIRD_TIER {sim:/top_entity_tb/top_entity/\sec_tier/third_tier /*}
Once again, the curly brackets and the space at the end are required in the command.
Note: Just found out that the '-position insertpoint' choice described in the previous method (GUI-based) is not needed.