cvw/setup.imperas.sh

58 lines
1.5 KiB
Bash
Raw Normal View History

#!/bin/bash
2023-01-19 10:41:11 +00:00
IMP_HASH=56b1479
2023-01-19 10:20:55 +00:00
REPO=davidharrishmc
REPO=eroom1966
git clone https://github.com/${REPO}/riscv-wally -b imperas
2023-01-19 10:20:55 +00:00
cd riscv-wally
WALLY=$(dirname ${BASH_SOURCE[0]:-$0})
export WALLY=$(cd "$WALLY" && pwd)
2023-01-18 13:19:14 +00:00
# clone the Imperas repo
if [ ! -d external ]; then
mkdir -p external
fi
pushd external
if [ ! -f ImperasDV-HMC ]; then
git clone git@github.com:Imperas/ImperasDV-HMC.git
2023-01-18 13:19:14 +00:00
fi
pushd ImperasDV-HMC
2023-01-19 10:41:11 +00:00
git checkout $IMP_HASH
2023-01-18 13:19:14 +00:00
popd
popd
2023-01-19 10:20:55 +00:00
# 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
2023-02-02 22:48:23 +00:00
pushd sim
# With IDV
IMPERAS_TOOLS=$(pwd)/imperas.ic \
OTHERFLAGS="+TRACE2LOG_ENABLE=1 VERBOSE=1" \
2023-01-19 10:20:55 +00:00
TESTDIR=${WALLY}/external/ImperasDV-HMC/tests/riscof/work/riscv-arch-test/rv64i_m/F/src/fadd_b1-01.S \
2023-02-04 12:38:41 +00:00
vsim -c -do "do wally-imperas.do rv64gc"
popd
# notes
# run the pushd external code
#source external/ImperasDV-HMC/Imperas/bin/setup.sh
# setupImperas /home/ross/repos/active-wally/riscv-wally/external/ImperasDV-HMC/Imperas
# env | grep IMPERAS
# export IMPERAS_PERSONALITY=CPUMAN_DV_ASYNC
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 \
2023-02-04 12:38:41 +00:00
vsim -c -do "do wally-imperas.do rv64gc"
# getting library issue.
# try switching to modelsim 2022.01