1 Invoke Mdoelsim
In order to open Modelsim automatically, it is better to use a shell script to invoke modelsim.
1 #!/bin/bash
2 # ----------------------------------------------------------------------------
3 # invoke ModelSim
4 # ---------------------------------------------------------------------------- if [ $# -eq ]; then
cd '01_Project/02_Project_Name/02_DIGITAL/02_modelsim' # the working path of Modelsim
vsim -gui&
elif [ $ == "-h" ]; then
# questasim doc
evince /Software/AMS/current/questasim/v10.3b/docs/pdfdocs/_bk_questa_sim.pdf &
fi
2 Three types of quotes
1) doubel quotes (“)
Anything enclose in doubel quote removed meaning of that chatracter(except \ and $)
2) single quotes (‘)
Enclosed in single quotes remains unchanged.
3) back quote (`)
To execute command.
$ echo "Today is date"
2 # Today is date
$ echo "Toaday is 'date'"
4 # Today is 'date'
$ echo "Today is `date`"
6 # Today is Fr 10. Jul 13:36:04 CEST 2015