Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

VCS manual and scripting in linux

Status
Not open for further replies.

kumarpals

Newbie level 4
Joined
May 30, 2009
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,328
online links for vcs manual and installation in linux ..Vcs for system verilog simulation
 

I am working on network on chip .. language is sv and i want to run my programs in linux

I have a reference called netmaker wiki "http://www-dyn.cl.cam.ac.uk/~rdm34/wiki/index.php?title=Main_Page"

We have only vlog(mentor graphics) at lab and not vcs .
in netmaker they have given script for vcs compiler .. i want to change it for vlog

I have attached script for vcs

Added after 1 minutes:

code for vcs script

#!/bin/bash
#/////////////////////////////////////////////////////////
#
# Simple wrapper to invoke the Synopsys VCS simulator
#
# vt sim[.f] "extra-command-line-arguments-for-vcs"
#
# e.g.
# vt uniform-random
#
#/////////////////////////////////////////////////////////
#
# Robert Mullins, rdm34@cl.cam.ac.uk
#

CC=gcc

LOCAL="cl.cam.ac.uk"
DOMAIN=`hostname -d`
NETMAKER_ROOT="/home/palaniappan/netmaker"
INC="$NETMAKER_ROOT/lib"

echo "** INC=$INC"


# ------------------------------------------------
# Test required commands are available
# ------------------------------------------------
for CMD in vlog $CC whoami; do
type $CMD &> /dev/null

if [ $? != "0" ]; then
echo "Error: The command '$CMD' is required and is not in your path"
exit 1
fi

done

# ------------------------------------------------
# Cambridge Local stuff
# ------------------------------------------------
# VCS library issue?
if [ "$DOMAIN" = "$LOCAL" ]; then
syslib="/usr/groups/ecad2003/lib/ctype-info.a"
fi

# ------------------------------------------------
# Compiled source cached in /tmp/USERNAME+RANDOM_NUM
# ------------------------------------------------
TMP=/tmp/`whoami`.$RANDOM
mkdir -p $TMP

echo "** TMP=$TMP"

MOD=$1
extra=$2

# ------------------------------------------------
# Look for .f file (with or without .f extension)
# ------------------------------------------------
if [ "$MOD" = "--help" ]; then
echo ""
echo "Usage: vt simfiles.f"
echo ""
echo "Specify a file containing a list of your SystemVerilog design files and a testbench"
echo ""
exit 1
fi

if [ "$MOD" = "" ]; then
echo "Error: You need to specify a .f file"
exit 1
fi

if [ -f $MOD.f ]; then
MOD=$MOD.f
else
if [ -f $MOD ]; then
MOD=$MOD
else
MOD=${MOD%.*}
echo "File '$MOD.f' does not exist"
exit 1
fi
fi

echo "** CC=$CC"
echo "** Ready to go....."
echo "----------------------------------"
echo "VLOG"
echo "---------------------------------"

# -ntb_opts check : report error when there is an out-of-bound array access
# -xzcheck nofalseneg : check no conditional expression is X or Z
# +vcs+boundscheck : reading/writing undeclared bit is an error
# +v2k \

vlog \
+incdir+$INC \
+libext++.v+.sv \
+libverbose \
-sv \
+neg_tchk +overlap \
-q +nowarnTFMPC \
-cc $CC \
-ld $CC \
-syslib $syslib \
+lint=all,noTFIPC,noVCDE \
+vlog+lic+wait \
-CFLAGS "-I$VLOG_HOME/`vlog -platform`/include" \
-f $MOD \
-o $TMP/simv \
-Mupdate -Mdir=$TMP/shared/ -l $TMP/vlog.log \
-R \
+error+200 +sdfverbose \
$2

echo "** Removing temp. directory: $TMP"
rm -rf $TMP

pl help me change options for vlog
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top