Sep 19, 2017 #1 A alexis57 Newbie Joined Mar 15, 2017 Messages 3 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 20 Hi, I think there is a lack of documentation for what I want to do. I am using Modelsim SE 10.5 and I would like to add waves/signals from my design automatically depending on the name. For example I'd like to add every signal of every instance that contains `fifo`. The `find` command with `/*/*..` may work but I need to know how deep each instance is and it's not possible to add wave from the find command. For now, what I am doing: Adding everything `add wave -r /` Saving in a `wave.do` Using linux shell with `cat wave.do | grep fifo > newwave.do` but it's not efficient and I'll get also the signals/nets naming `fifo`. **I guess it's possible directly with Tcl but how ?** I couldn't find the `Tcl object` that contains the whole compiled project. I was surprised that this is not documented because it's very useful when the design is big. Thank you very much.
Hi, I think there is a lack of documentation for what I want to do. I am using Modelsim SE 10.5 and I would like to add waves/signals from my design automatically depending on the name. For example I'd like to add every signal of every instance that contains `fifo`. The `find` command with `/*/*..` may work but I need to know how deep each instance is and it's not possible to add wave from the find command. For now, what I am doing: Adding everything `add wave -r /` Saving in a `wave.do` Using linux shell with `cat wave.do | grep fifo > newwave.do` but it's not efficient and I'll get also the signals/nets naming `fifo`. **I guess it's possible directly with Tcl but how ?** I couldn't find the `Tcl object` that contains the whole compiled project. I was surprised that this is not documented because it's very useful when the design is big. Thank you very much.
Sep 19, 2017 #2 T TrickyDicky Advanced Member level 7 Joined Jun 7, 2010 Messages 7,110 Helped 2,081 Reputation 4,181 Reaction score 2,047 Trophy points 1,393 Activity points 39,769 refering to the "add wave" command and section on wildcard characters in the modelsim command reference manual, this will probably do it: add wave -recursive fifo/*
refering to the "add wave" command and section on wildcard characters in the modelsim command reference manual, this will probably do it: add wave -recursive fifo/*
Sep 19, 2017 #3 A alexis57 Newbie Joined Mar 15, 2017 Messages 3 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 20 Yes I have tried this but it didn't work. add wave -recursive fifo/* # (vish-4014) No objects found matching 'fifo/*'. Click to expand... Same for: add wave -recursive fifo*/* add wave -recursive *fifo/* add wave -recursive *fifo*/* Click to expand... But `add wave -noupdate -radix hexadecimal /top_instance/group_instance/scfifo_instance/*` works, this means there are FIFOs. Thank you TrickyDicky.
Yes I have tried this but it didn't work. add wave -recursive fifo/* # (vish-4014) No objects found matching 'fifo/*'. Click to expand... Same for: add wave -recursive fifo*/* add wave -recursive *fifo/* add wave -recursive *fifo*/* Click to expand... But `add wave -noupdate -radix hexadecimal /top_instance/group_instance/scfifo_instance/*` works, this means there are FIFOs. Thank you TrickyDicky.