Bash Shell Scripts - College of Engineering
Bash Shell Scripts
Writing Bash shell scripts
Bash shell scripts are text files Text files most efficiently built with programming editors (emacs or vi) File must be executable and in search path
chmod 700 my_script PATH environment variable may not include .! An example shell script: #!/bin/bash #My first script echo "Hello World!"
Bash Shell Scripts
Writing Bash shell scripts Compile a Verilog file with vlog #!/bin/bash if [ ! d work ] ; then echo work does not exist, making it vlib work fi if [ ! s adder.v ] ; then vlog adder.v fi work directory must exist before compilation Get scripts via wget, eg: wget
---
Bash Shell Scripts
Writing Bash shell scripts
File attribute checking
#!/bin/bash
if [ ! s junk_dir ] ; then
mkdir junk_dir
fi
Spaces around brackets are needed!
File attribute checking
d
exists and is a directory
e, a file exists
f
exists and is a regular file
s
file exists and is not empty
---
Bash Shell Scripts
Writing Bash shell scripts Compile Verilog then run a simultion #!/bin/bash if [ ! -d "work" ] ; then vlib work fi if [ -s "adder.v" ] ; then vlog adder.v #runs simulation with a do file and no GUI vsim adder -do do.do quiet c else echo verilog file missing fi
---
Bash Shell Scripts
Writing Bash shell scripts vsim command and arguments
vsim entity_name do dofile.do quiet -c -quiet (do not report loading file messages) -c (console mode, no GUI) -do (run vsim from a TCL do file)
+nowarnTFMPC (don't warn about mismatched ports, scary) +nowarnTSCALE (don't warn about timing mismatches) Try vsim help for command line arguements ---
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- bash shell scripts college of engineering
- advanced bash scripting guide linux documentation project
- bash programming introduction how to
- bash2py a bash to python translator university of waterloo
- python scripting with scapy lab manchester metropolitan university
- mo101 python and shell script ensta paris
- linux shell scripting cookbook gutl
- bash reference manual
- bash shell scripting tutorial pennsylvania state university
- introduction to python tutorial and how to make python scripts basic
Related searches
- bash shell commands list
- bash shell tutorial
- running shell scripts in windows
- bash shell built in commands
- bash shell commands
- bash shell execute command
- linux bash shell cheat sheet
- bash shell script cheat sheet
- bash shell script
- download bash shell windows 10
- unix shell scripts examples
- bash shell windows 10