run.sh adapted for mac
This commit is contained in:
16
run.sh
Executable file
16
run.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: $0 <module>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
module="${1#./}"
|
||||
module="${module#/}"
|
||||
module="${module%/}"
|
||||
|
||||
iverilog -o "./$module/$module.vvp" "./$module/${module}_tb.v" || exit 1
|
||||
|
||||
vvp "./$module/$module.vvp" || exit 1
|
||||
|
||||
surfer "./$module/$module.vcd"
|
||||
Reference in New Issue
Block a user