background
After opening the Verdi GUI, we can make some settings we like on Verdi, such as font color and so on, but if we open other waveforms in other directories , these settings will be lost.
So I hope to save these settings and use them directly when opening Verdi next time. This can be done using the method in this article—the -play option in verdi.
command replay file/ -play option
In the Verdi GUI, the operations we perform will be printed out in the verdi console (Tools->Preferences->General->Enable TCL Command Entry) , such as what button is clicked, the signal is dragged, the font setting, etc., basically Any operation that the mouse can perform will have corresponding commands printed out on the verdi console.
If we can directly load these commands, then these operations can be reproduced.
In the " How to Create and Use a Command Replay File " section of the SNPS document "Verdi® and Siloti® Tcl Reference", it is introduced that when opening Verdi, use the -play option to load the command file.
This command file ends with .cmd, and the content inside is what is printed out in the verdi console.
// Load the .cmd file when opening Verdi verdi -play file.cmd
Introduce a few commands
1. import design
debImport -f run.f or debImport "-dbdir" simv.daidir
2. Open the waveform
#wave #Open wave window set wave1 [wvCreateWindow] #Open a fsdb wave file wvOpenFile -win $wave1 verilog.fsdb
3. Other
Other commands can be set in the Verdi GUI interface, and then copy the commands in the Verdi console.
You can also use .rc files to save settings
Of course, if you open Verdi in the original directory, you will see that the previous settings will still be there. This is because the novas.rc file is generated under the directory where Verdi is opened, and some of our configurations will be saved in novas.rc
There are several ways to set up the .rc file as follows:
-
-rcFile command line parameter
verdi -ssf <fsdb filename> -rcFile <filename>
has the highest priority -
NOVAS_RC environment variable
-
./novas.rc
-
$HOME/novas.rc
-
/etc/novas.rc