mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Merge branch 'imperas' of github.com:davidharrishmc/riscv-wally into imperas
This commit is contained in:
commit
87c1f285c1
1
.gitignore
vendored
1
.gitignore
vendored
@ -127,3 +127,4 @@ tests/custom/*/*/*.memfile
|
|||||||
tests/custom/crt0/*.a
|
tests/custom/crt0/*.a
|
||||||
/pipelined/regression/sd_model.log
|
/pipelined/regression/sd_model.log
|
||||||
external
|
external
|
||||||
|
pipelined/regression/results
|
||||||
|
22
pipelined/regression/run-imperasdv-tests.bash
Executable file
22
pipelined/regression/run-imperasdv-tests.bash
Executable file
@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -d results ]; then
|
||||||
|
rm -rf results
|
||||||
|
fi
|
||||||
|
mkdir -p results
|
||||||
|
|
||||||
|
ALL=$(find ${WALLY}/external/ImperasDV-HMC/tests/riscof/work/riscv-arch-test/rv64i_m -name "ref" -type d)
|
||||||
|
|
||||||
|
export IMPERAS_TOOLS=$(pwd)/imperas.ic
|
||||||
|
export OTHERFLAGS="+TRACE2LOG_ENABLE=1 VERBOSE=1"
|
||||||
|
|
||||||
|
for t in $ALL; do
|
||||||
|
export TESTDIR=$(dirname ${t})
|
||||||
|
OUTLOG=$(echo ${TESTDIR} | sed "s|${WALLY}/external/ImperasDV-HMC/tests/riscof/work|results|").log
|
||||||
|
OUTDIR=$(dirname ${OUTLOG})
|
||||||
|
echo "Running test ${TESTDIR} -> ${OUTDIR} :: ${OUTLOG}"
|
||||||
|
|
||||||
|
mkdir -p ${OUTDIR}
|
||||||
|
vsim -c -do "do wally-pipelined-imperas.do rv64gc"
|
||||||
|
mv transcript ${OUTLOG}
|
||||||
|
done
|
@ -1,11 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "Imperas Environment to setup Wally"
|
IMP_HASH=56b1479
|
||||||
|
|
||||||
# Path to Wally repository
|
REPO=davidharrishmc
|
||||||
|
REPO=eroom1966
|
||||||
|
git clone https://github.com/${REPO}/riscv-wally -b imperas
|
||||||
|
|
||||||
|
cd riscv-wally
|
||||||
WALLY=$(dirname ${BASH_SOURCE[0]:-$0})
|
WALLY=$(dirname ${BASH_SOURCE[0]:-$0})
|
||||||
export WALLY=$(cd "$WALLY" && pwd)
|
export WALLY=$(cd "$WALLY" && pwd)
|
||||||
echo \$WALLY set to ${WALLY}
|
|
||||||
|
|
||||||
# clone the Imperas repo
|
# clone the Imperas repo
|
||||||
if [ ! -d external ]; then
|
if [ ! -d external ]; then
|
||||||
@ -16,25 +19,24 @@ pushd external
|
|||||||
git clone git@github.com:Imperas/ImperasDV-HMC.git
|
git clone git@github.com:Imperas/ImperasDV-HMC.git
|
||||||
fi
|
fi
|
||||||
pushd ImperasDV-HMC
|
pushd ImperasDV-HMC
|
||||||
git checkout 0c2f365
|
git checkout $IMP_HASH
|
||||||
popd
|
popd
|
||||||
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
|
svsetup -questa
|
||||||
|
|
||||||
pushd pipelined/regression
|
pushd pipelined/regression
|
||||||
# With IDV
|
# With IDV
|
||||||
IMPERAS_TOOLS=$(pwd)/imperas.ic \
|
IMPERAS_TOOLS=$(pwd)/imperas.ic \
|
||||||
OTHERFLAGS="+TRACE2LOG_ENABLE=1 VERBOSE=1" \
|
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"
|
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
|
popd
|
||||||
|
|
||||||
# notes
|
# notes
|
||||||
|
Loading…
Reference in New Issue
Block a user