Check if a signal exist or is connected to anything in Modelsim

Status
Not open for further replies.

emsey

Newbie level 3
Joined
Jun 26, 2014
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
13
Hi all,

In Modelsim, I want to add all the filip-flops Q signal to the wave form. But, before, I want to check if this Q signal is driving anything or it's connected to anything and then add it to the waveform.

something like this:

Code:
if /dut/or1200/mult_mac_reg_12_/Q signal exist then:
       add wave sim:/dut/or1200/mult_mac_reg_12_/Q

The problem is that, if I simply write:
Code:
add wave sim:/dut/or1200/mult_mac_reg_12_/Q
it will be added to the waveform no matter if any wire is connected to this port or not.

Any comment?

Cheers
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…