mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-23 21:14:37 +00:00
customer commands
This commit is contained in:
parent
8dea3491a3
commit
f9b14ccdc5
@ -1,11 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Imperas Environment to setup Wally"
|
||||
REPO=davidharrishmc
|
||||
REPO=eroom1966
|
||||
git clone https://github.com/${REPO}/riscv-wally -b imperas
|
||||
|
||||
# Path to Wally repository
|
||||
cd riscv-wally
|
||||
WALLY=$(dirname ${BASH_SOURCE[0]:-$0})
|
||||
export WALLY=$(cd "$WALLY" && pwd)
|
||||
echo \$WALLY set to ${WALLY}
|
||||
|
||||
# clone the Imperas repo
|
||||
if [ ! -d external ]; then
|
||||
@ -16,24 +17,23 @@ pushd external
|
||||
git clone https://github.com/Imperas/ImperasDV-HMC
|
||||
fi
|
||||
pushd ImperasDV-HMC
|
||||
git checkout 0c2f365
|
||||
git checkout fac563d
|
||||
popd
|
||||
popd
|
||||
|
||||
isetup -dv ${WALLY}/external/ImperasDV-HMC/Imperas
|
||||
# Setup Imperas
|
||||
source ${WALLY}/external/ImperasDV-HMC/Imperas/bin/setup.sh
|
||||
setupImperas ${WALLY}/external/ImperasDV-HMC/Imperas
|
||||
export IMPERAS_PERSONALITY=CPUMAN_DV_ASYNC
|
||||
|
||||
# setup QUESTA (Imperas only command, YMMV)
|
||||
svsetup -questa
|
||||
|
||||
pushd pipelined/regression
|
||||
# With IDV
|
||||
IMPERAS_TOOLS=$(pwd)/imperas.ic \
|
||||
OTHERFLAGS="+TRACE2LOG_ENABLE=1 VERBOSE=1" \
|
||||
TESTDIR=../../tests/riscof_lee/work/riscv-arch-test/rv64i_m/F/src/fadd_b1-01.S \
|
||||
TESTDIR=${WALLY}/external/ImperasDV-HMC/tests/riscof/work/riscv-arch-test/rv64i_m/F/src/fadd_b1-01.S \
|
||||
vsim -c -do "do wally-pipelined-imperas.do rv64gc"
|
||||
|
||||
# Without IDV
|
||||
IMPERAS_TOOLS=$(pwd)/imperas.ic \
|
||||
OTHERFLAGS="+TRACE2LOG_ENABLE=1 VERBOSE=1" \
|
||||
TESTDIR=../../tests/riscof_lee/work/riscv-arch-test/rv64i_m/F/src/fadd_b1-01.S \
|
||||
vsim -c -do "do wally-pipelined-imperas-no-idv.do rv64gc"
|
||||
popd
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user