forked from wanderingnail/AXI_DMA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
37 lines (30 loc) · 749 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#! /bin/sh
set -o errexit
set -o nounset
set -o xtrace
SHOW_WAVE=${SHOW_WAVE:-"false"}
WAVE_SBIN=wave.sbin
WAVE_LXT=wave.vcd
BUILD_DIR=build
GFLAGS="-S ../gtkw.tcl"
mkdir -p $BUILD_DIR
cd $BUILD_DIR
# Simulation
for TB in `ls ../sim/tb*.v`
do
iverilog -v -g2012 -Wall -Winfloop -o $WAVE_SBIN -I ../rtl -y ../rtl $TB
vvp -v -N -lxt2 $WAVE_SBIN
done
gtkwave DMAC.vcd
# if [ "$SHOW_WAVE" = "true" ]; then
# GTKWAVE_PID=`pgrep gtkwave || echo "none"`
# if [ "$GTKWAVE_PID" != "none" ]; then
# pkill gtkwave
# fi
# OS=`uname -s`
# if [ "$OS" = "Darwin" ]; then
# /Applications/gtkwave.app/Contents/Resources/bin/gtkwave $GFLAGS $WAVE_LXT &
# else
# gtkwave $GFLAGS $WAVE_LXT &
# fi
# fi