0

I'm using QuestaSim/ModelSim and I would like to automatically rewrite the signal names displayed in the waveform. When my testbench starts, a default command loads all top-level signals into the waveform viewer:

add wave testharness/*

When I rename the added signals, the following commands are created in a waveform save file (*.wdo):

add wave -noupdate -label SerialClock_Wire /iic_controller_tb/testharness/SerialClock_Wire

So a label with a shorter name can be applied to each signal.

I would like to iterate all top-level signals or signals in a given hierarchy and add them to the waveform, while shortening their names (removing the path prefix).

How can I do such iteration and name shortening?

4

1 回答 1

1

在波形窗口的左下角ModelSim,有一个看起来像贝壳的小图标。
单击它会在全名和叶子名称之间切换,这正是您所指的功能。

于 2019-09-27T14:19:21.683 回答