I have a huge VCD file that I use in combination with gtkwave to observe certain signal behaviors. I have a list of signals stored into a .txt file which are the ones that I wish to probe. The thing is that by doing the insertion of the signals manually by hand is a painstakingly long process. So my question here is,
Is there a way, given the .txt file to compose a .tcl script that filters and adds the designated signals from the list to the waveform editor?
Well, after scouting on manuals and some
gistsI found here and there seems that there is a load ofgtkwaveinstructions one can use that are listed (most of them) on thegtkwavemanual (Appendix E) here. So in a nutshell all one has to do is to write a.tclscript in the following format:and then invoke the gktwave as:
gtkwave VCD_file.vcd --script=add_waves.tclFurthermore, access to the GUI menu options are viable as well via the following syntax in
tcl: