Search when a specific signal has a specific value in Modelsim using tcl

I am trying to speed up debugging. In a large track, I am looking for specific signal values. Im using QuestaSim 10.0b under Linux.

I already found out that this can be done in Modelsim / QuestaSim with the following command

searchlog -expr { stream == 'h20 } 0

Unfortunately, this also corresponds to the signal "stream" when it has the value "XX", but I want it to correspond to 0x20. How can I make sure that it matches only a hexadecimal value, but not an undefined value?

+4
source share
1 answer

After much searching and trying, I found the following solution.

searchlog -expr { stream == 'h20 && ! stream'hasX } 0

, , , "X", .

.

+3

All Articles