在modelsim中使用debussy保存仿真波形

仿真时需要在vsim中加-pli参数

#!/bin/bash

if [ $# != 1 ]; then
cat <<EOF
No Argument is passed
Usage: ./make.sh \$tc_name
EOF
exit
fi

LOG_FILE=./log/${1}.log
WAVE_FILE=./wave/${1}.fsdb
TEST_FILE=../tc/test_seq_${1}.v
if [ ! -e $TEST_FILE ]; then
echo “file $TEST_FILE does not exist”
exit
fi

if [ -e work ]; then
rm -rf work
fi
vlib work
vmap work work

export rtl_path=../../../design/rtl
export sim_path=../env
RTL_FILE=$sim_path/file.lst
VER_FILE=$rtl_path/file.lst

DEBUSSY_PATH=../../../../../Novas/Debussy
DEBUSSY_PLL=$DEBUSSY_PATH/share/PLI/modelsim_pli/WINNT/novas.dll

echo “****************************************************************”
echo “***** Pattern 1 *****”
echo “***** $TEST_FILE *****”
echo “****************************************************************”

rm -f test_seq.v
cp $TEST_FILE test_seq.v
vlog -sv -novopt -work work +incdir+./ \
-f $RTL_FILE -f $VER_FILE
vsim -c -novopt -pli $DEBUSSY_PLL -l $LOG_FILE \
+FSDB_FILE=$WAVE_FILE \
work.A1test -do do.tcl

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s