forked from Github_Repos/cvw
Renamed wally-piplined.do to wally.do
This commit is contained in:
parent
3f22b62601
commit
88ef0503fd
@ -22,7 +22,7 @@ PORT_CFLAGS = -g -mabi=$(ABI) -march=$(ARCH) -static -falign-functions=16 \
|
|||||||
all: $(work_dir)/coremark.bare.riscv.elf.memfile
|
all: $(work_dir)/coremark.bare.riscv.elf.memfile
|
||||||
|
|
||||||
run:
|
run:
|
||||||
(cd ../../sim && (time vsim -c -do "do wally-pipelined-batch.do rv$(XLEN)gc coremark" 2>&1 | tee $(work_dir)/coremark.sim.log))
|
(cd ../../sim && (time vsim -c -do "do wally-batch.do rv$(XLEN)gc coremark" 2>&1 | tee $(work_dir)/coremark.sim.log))
|
||||||
cd ../benchmarks/coremark/
|
cd ../benchmarks/coremark/
|
||||||
# KMG: added post processing script to give out branch miss proportion along with other stats to the coremark test
|
# KMG: added post processing script to give out branch miss proportion along with other stats to the coremark test
|
||||||
python3 coremark-postprocess.py
|
python3 coremark-postprocess.py
|
||||||
|
@ -34,7 +34,7 @@ sim: modelsim_build_memfile modelsim_run speed
|
|||||||
|
|
||||||
# launches modelsim to simulate tests on wally
|
# launches modelsim to simulate tests on wally
|
||||||
modelsim_run:
|
modelsim_run:
|
||||||
(cd ../../sim/ && vsim -c -do "do wally-pipelined-batch.do rv32gc embench")
|
(cd ../../sim/ && vsim -c -do "do wally-batch.do rv32gc embench")
|
||||||
cd ../../benchmarks/embench/
|
cd ../../benchmarks/embench/
|
||||||
|
|
||||||
# builds the objdump based on the compiled c elf files
|
# builds the objdump based on the compiled c elf files
|
||||||
|
@ -36,7 +36,7 @@ pushd sim
|
|||||||
IMPERAS_TOOLS=$(pwd)/imperas.ic \
|
IMPERAS_TOOLS=$(pwd)/imperas.ic \
|
||||||
OTHERFLAGS="+TRACE2LOG_ENABLE=1 VERBOSE=1" \
|
OTHERFLAGS="+TRACE2LOG_ENABLE=1 VERBOSE=1" \
|
||||||
TESTDIR=${WALLY}/external/ImperasDV-HMC/tests/riscof/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-imperas.do rv64gc"
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# notes
|
# notes
|
||||||
@ -50,7 +50,7 @@ popd
|
|||||||
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=../../tests/riscof_lee/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-imperas.do rv64gc"
|
||||||
|
|
||||||
|
|
||||||
# getting library issue.
|
# getting library issue.
|
||||||
|
@ -22,7 +22,7 @@ def main():
|
|||||||
break
|
break
|
||||||
checkpoint = checkpointList[0]
|
checkpoint = checkpointList[0]
|
||||||
logFile = logDir+"checkpoint"+str(checkpoint)+".log"
|
logFile = logDir+"checkpoint"+str(checkpoint)+".log"
|
||||||
runCommand="{\nvsim -c <<!\ndo wally-pipelined-batch.do buildroot buildroot /opt/riscv 0 "+str(checkpoint+1)+" "+str(checkpoint)+"\n!\n} | tee "+logFile
|
runCommand="{\nvsim -c <<!\ndo wally-batch.do buildroot buildroot /opt/riscv 0 "+str(checkpoint+1)+" "+str(checkpoint)+"\n!\n} | tee "+logFile
|
||||||
print(runCommand)
|
print(runCommand)
|
||||||
os.system(runCommand)
|
os.system(runCommand)
|
||||||
try:
|
try:
|
||||||
|
@ -50,18 +50,18 @@ def getBuildrootTC(boot):
|
|||||||
MAX_EXPECTED = 246000000 # *** TODO: replace this with a search for the login prompt.
|
MAX_EXPECTED = 246000000 # *** TODO: replace this with a search for the login prompt.
|
||||||
if boot:
|
if boot:
|
||||||
name="buildrootboot"
|
name="buildrootboot"
|
||||||
BRcmd="vsim > {} -c <<!\ndo wally-pipelined.do buildroot buildroot-no-trace $RISCV 0 1 0\n!"
|
BRcmd="vsim > {} -c <<!\ndo wally.do buildroot buildroot-no-trace $RISCV 0 1 0\n!"
|
||||||
BRgrepstr="WallyHostname login:"
|
BRgrepstr="WallyHostname login:"
|
||||||
else:
|
else:
|
||||||
name="buildroot"
|
name="buildroot"
|
||||||
BRcmd="vsim > {} -c <<!\ndo wally-pipelined-batch.do buildroot buildroot $RISCV "+str(INSTR_LIMIT)+" 1 0\n!"
|
BRcmd="vsim > {} -c <<!\ndo wally-batch.do buildroot buildroot $RISCV "+str(INSTR_LIMIT)+" 1 0\n!"
|
||||||
BRgrepstr=str(INSTR_LIMIT)+" instructions"
|
BRgrepstr=str(INSTR_LIMIT)+" instructions"
|
||||||
return TestCase(name,variant="rv64gc",cmd=BRcmd,grepstr=BRgrepstr)
|
return TestCase(name,variant="rv64gc",cmd=BRcmd,grepstr=BRgrepstr)
|
||||||
|
|
||||||
tc = TestCase(
|
tc = TestCase(
|
||||||
name="buildroot-checkpoint",
|
name="buildroot-checkpoint",
|
||||||
variant="rv64gc",
|
variant="rv64gc",
|
||||||
cmd="vsim > {} -c <<!\ndo wally-pipelined-batch.do buildroot buildroot-checkpoint $RISCV 400100000 400000001 400000000\n!", # *** will this work with rv64gc rather than buildroot config?
|
cmd="vsim > {} -c <<!\ndo wally-batch.do buildroot buildroot-checkpoint $RISCV 400100000 400000001 400000000\n!", # *** will this work with rv64gc rather than buildroot config?
|
||||||
grepstr="400100000 instructions")
|
grepstr="400100000 instructions")
|
||||||
configs.append(tc)
|
configs.append(tc)
|
||||||
|
|
||||||
@ -71,7 +71,7 @@ for test in tests64gc:
|
|||||||
tc = TestCase(
|
tc = TestCase(
|
||||||
name=test,
|
name=test,
|
||||||
variant="rv64gc",
|
variant="rv64gc",
|
||||||
cmd="vsim > {} -c <<!\ndo wally-pipelined-batch.do rv64gc "+test+"\n!",
|
cmd="vsim > {} -c <<!\ndo wally-batch.do rv64gc "+test+"\n!",
|
||||||
grepstr="All tests ran without failures")
|
grepstr="All tests ran without failures")
|
||||||
configs.append(tc)
|
configs.append(tc)
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ for test in tests64i:
|
|||||||
tc = TestCase(
|
tc = TestCase(
|
||||||
name=test,
|
name=test,
|
||||||
variant="rv64i",
|
variant="rv64i",
|
||||||
cmd="vsim > {} -c <<!\ndo wally-pipelined-batch.do rv64i "+test+"\n!",
|
cmd="vsim > {} -c <<!\ndo wally-batch.do rv64i "+test+"\n!",
|
||||||
grepstr="All tests ran without failures")
|
grepstr="All tests ran without failures")
|
||||||
configs.append(tc)
|
configs.append(tc)
|
||||||
|
|
||||||
@ -90,7 +90,7 @@ for test in tests32gc:
|
|||||||
tc = TestCase(
|
tc = TestCase(
|
||||||
name=test,
|
name=test,
|
||||||
variant="rv32gc",
|
variant="rv32gc",
|
||||||
cmd="vsim > {} -c <<!\ndo wally-pipelined-batch.do rv32gc "+test+"\n!",
|
cmd="vsim > {} -c <<!\ndo wally-batch.do rv32gc "+test+"\n!",
|
||||||
grepstr="All tests ran without failures")
|
grepstr="All tests ran without failures")
|
||||||
configs.append(tc)
|
configs.append(tc)
|
||||||
|
|
||||||
@ -100,7 +100,7 @@ for test in tests32imc:
|
|||||||
tc = TestCase(
|
tc = TestCase(
|
||||||
name=test,
|
name=test,
|
||||||
variant="rv32imc",
|
variant="rv32imc",
|
||||||
cmd="vsim > {} -c <<!\ndo wally-pipelined-batch.do rv32imc "+test+"\n!",
|
cmd="vsim > {} -c <<!\ndo wally-batch.do rv32imc "+test+"\n!",
|
||||||
grepstr="All tests ran without failures")
|
grepstr="All tests ran without failures")
|
||||||
configs.append(tc)
|
configs.append(tc)
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ for test in tests32i:
|
|||||||
tc = TestCase(
|
tc = TestCase(
|
||||||
name=test,
|
name=test,
|
||||||
variant="rv32i",
|
variant="rv32i",
|
||||||
cmd="vsim > {} -c <<!\ndo wally-pipelined-batch.do rv32i "+test+"\n!",
|
cmd="vsim > {} -c <<!\ndo wally-batch.do rv32i "+test+"\n!",
|
||||||
grepstr="All tests ran without failures")
|
grepstr="All tests ran without failures")
|
||||||
configs.append(tc)
|
configs.append(tc)
|
||||||
|
|
||||||
@ -119,7 +119,7 @@ for test in tests32e:
|
|||||||
tc = TestCase(
|
tc = TestCase(
|
||||||
name=test,
|
name=test,
|
||||||
variant="rv32e",
|
variant="rv32e",
|
||||||
cmd="vsim > {} -c <<!\ndo wally-pipelined-batch.do rv32e "+test+"\n!",
|
cmd="vsim > {} -c <<!\ndo wally-batch.do rv32e "+test+"\n!",
|
||||||
grepstr="All tests ran without failures")
|
grepstr="All tests ran without failures")
|
||||||
configs.append(tc)
|
configs.append(tc)
|
||||||
|
|
||||||
@ -128,7 +128,7 @@ for test in ahbTests:
|
|||||||
tc = TestCase(
|
tc = TestCase(
|
||||||
name="ram_latency_" + test[0] + "_burst_en_" + test[1],
|
name="ram_latency_" + test[0] + "_burst_en_" + test[1],
|
||||||
variant="ahb",
|
variant="ahb",
|
||||||
cmd="vsim > {} -c <<!\ndo wally-pipelined-batch.do rv64gc ahb "+test[0]+" "+test[1]+"\n!",
|
cmd="vsim > {} -c <<!\ndo wally-batch.do rv64gc ahb "+test[0]+" "+test[1]+"\n!",
|
||||||
grepstr="All tests ran without failures")
|
grepstr="All tests ran without failures")
|
||||||
configs.append(tc)
|
configs.append(tc)
|
||||||
|
|
||||||
|
@ -17,6 +17,6 @@ for t in $ALL; do
|
|||||||
echo "Running test ${TESTDIR} -> ${OUTDIR} :: ${OUTLOG}"
|
echo "Running test ${TESTDIR} -> ${OUTDIR} :: ${OUTLOG}"
|
||||||
|
|
||||||
mkdir -p ${OUTDIR}
|
mkdir -p ${OUTDIR}
|
||||||
vsim -c -do "do wally-pipelined-imperas.do rv64gc"
|
vsim -c -do "do wally-imperas.do rv64gc"
|
||||||
mv transcript ${OUTLOG}
|
mv transcript ${OUTLOG}
|
||||||
done
|
done
|
||||||
|
@ -30,4 +30,4 @@ echo "INSTR_LIMIT = ${INSTR_LIMIT}"
|
|||||||
echo "INSTR_WAVEON = ${INSTR_WAVEON}"
|
echo "INSTR_WAVEON = ${INSTR_WAVEON}"
|
||||||
echo "CHECKPOINT = ${CHECKPOINT}"
|
echo "CHECKPOINT = ${CHECKPOINT}"
|
||||||
|
|
||||||
vsim -do "do ./wally-pipelined.do buildroot buildroot $RISCV $INSTR_LIMIT $INSTR_WAVEON $CHECKPOINT"
|
vsim -do "do ./wally.do buildroot buildroot $RISCV $INSTR_LIMIT $INSTR_WAVEON $CHECKPOINT"
|
||||||
|
@ -32,5 +32,5 @@ echo "CHECKPOINT = ${CHECKPOINT}"
|
|||||||
|
|
||||||
# *** change config from buildroot to rv64gc
|
# *** change config from buildroot to rv64gc
|
||||||
vsim -c <<!
|
vsim -c <<!
|
||||||
do wally-pipelined-batch.do buildroot buildroot-no-trace $RISCV $INSTR_LIMIT $INSTR_WAVEON $CHECKPOINT
|
do wally-batch.do buildroot buildroot-no-trace $RISCV $INSTR_LIMIT $INSTR_WAVEON $CHECKPOINT
|
||||||
!
|
!
|
||||||
|
@ -29,4 +29,4 @@
|
|||||||
IMPERAS_TOOLS=$(pwd)/imperas.ic \
|
IMPERAS_TOOLS=$(pwd)/imperas.ic \
|
||||||
OTHERFLAGS="+TRACE2LOG_ENABLE=1 VERBOSE=1" \
|
OTHERFLAGS="+TRACE2LOG_ENABLE=1 VERBOSE=1" \
|
||||||
TESTDIR=${WALLY}/external/ImperasDV-HMC/tests/riscof/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-imperas.do rv64gc"
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
vsim -do "do wally-pipelined.do rv64gc arch64d"
|
vsim -do "do wally.do rv64gc arch64d"
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
vsim -c -do "do wally-pipelined-batch.do rv32gc wally32priv"
|
vsim -c -do "do wally-batch.do rv32gc wally32priv"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# wally-pipelined.do
|
# testfloat.do
|
||||||
#
|
#
|
||||||
# Modification by Oklahoma State University & Harvey Mudd College
|
# Modification by Oklahoma State University & Harvey Mudd College
|
||||||
# Use with Testbench
|
# Use with Testbench
|
||||||
@ -7,14 +7,7 @@
|
|||||||
#
|
#
|
||||||
# Takes 1:10 to run RV64IC tests using gui
|
# Takes 1:10 to run RV64IC tests using gui
|
||||||
|
|
||||||
# run with vsim -do "do wally-pipelined.do rv64ic riscvarchtest-64m"
|
# run with vsim -do "do wally.do rv64ic riscvarchtest-64m"
|
||||||
|
|
||||||
# Use this wally-pipelined.do file to run this example.
|
|
||||||
# Either bring up ModelSim and type the following at the "ModelSim>" prompt:
|
|
||||||
# do wally-pipelined.do
|
|
||||||
# or, to run from a shell, type the following at the shell prompt:
|
|
||||||
# vsim -do wally-pipelined.do -c
|
|
||||||
# (omit the "-c" to see the GUI while running from the shell)
|
|
||||||
|
|
||||||
onbreak {resume}
|
onbreak {resume}
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# wally-pipelined-batch.do
|
# wally-batch.do
|
||||||
|
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
|
||||||
#
|
#
|
||||||
# Modification by Oklahoma State University & Harvey Mudd College
|
# Modification by Oklahoma State University & Harvey Mudd College
|
||||||
# Use with Testbench
|
# Use with Testbench
|
||||||
@ -7,14 +8,14 @@
|
|||||||
#
|
#
|
||||||
# Takes 1:10 to run RV64IC tests using gui
|
# Takes 1:10 to run RV64IC tests using gui
|
||||||
|
|
||||||
# Usage: do wally-pipelined-batch.do <config> <testcases>
|
# Usage: do wally-batch.do <config> <testcases>
|
||||||
# Example: do wally-pipelined-batch.do rv32imc imperas-32i
|
# Example: do wally-batch.do rv32imc imperas-32i
|
||||||
|
|
||||||
# Use this wally-pipelined-batch.do file to run this example.
|
# Use this wally-batch.do file to run this example.
|
||||||
# Either bring up ModelSim and type the following at the "ModelSim>" prompt:
|
# Either bring up ModelSim and type the following at the "ModelSim>" prompt:
|
||||||
# do wally-pipelined-batch.do
|
# do wally-batch.do
|
||||||
# or, to run from a shell, type the following at the shell prompt:
|
# or, to run from a shell, type the following at the shell prompt:
|
||||||
# vsim -do wally-pipelined-batch.do -c
|
# vsim -do wally-batch.do -c
|
||||||
# (omit the "-c" to see the GUI while running from the shell)
|
# (omit the "-c" to see the GUI while running from the shell)
|
||||||
|
|
||||||
onbreak {resume}
|
onbreak {resume}
|
||||||
@ -91,9 +92,9 @@ if {$2 eq "buildroot" || $2 eq "buildroot-checkpoint"} {
|
|||||||
# power off -r /dut/core/*
|
# power off -r /dut/core/*
|
||||||
}
|
}
|
||||||
|
|
||||||
#coverage report -file wally-pipelined-coverage.txt
|
#coverage report -file wally-coverage.txt
|
||||||
# These aren't doing anything helpful
|
# These aren't doing anything helpful
|
||||||
#coverage report -memory
|
#coverage report -memory
|
||||||
#profile report -calltree -file wally-pipelined-calltree.rpt -cutoff 2
|
#profile report -calltree -file wally-calltree.rpt -cutoff 2
|
||||||
#power report -all -bsaif power.saif
|
#power report -all -bsaif power.saif
|
||||||
quit
|
quit
|
@ -1,4 +1,5 @@
|
|||||||
# wally-pipelined.do
|
# wally.do
|
||||||
|
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
|
||||||
#
|
#
|
||||||
# Modification by Oklahoma State University & Harvey Mudd College
|
# Modification by Oklahoma State University & Harvey Mudd College
|
||||||
# Use with Testbench
|
# Use with Testbench
|
||||||
@ -7,15 +8,6 @@
|
|||||||
#
|
#
|
||||||
# Takes 1:10 to run RV64IC tests using gui
|
# Takes 1:10 to run RV64IC tests using gui
|
||||||
|
|
||||||
# run with vsim -do "do wally-pipelined.do rv64ic riscvarchtest-64m"
|
|
||||||
|
|
||||||
# Use this wally-pipelined.do file to run this example.
|
|
||||||
# Either bring up ModelSim and type the following at the "ModelSim>" prompt:
|
|
||||||
# do wally-pipelined.do
|
|
||||||
# or, to run from a shell, type the following at the shell prompt:
|
|
||||||
# vsim -do wally-pipelined.do -c
|
|
||||||
# (omit the "-c" to see the GUI while running from the shell)
|
|
||||||
|
|
||||||
onbreak {resume}
|
onbreak {resume}
|
||||||
|
|
||||||
# create library
|
# create library
|
@ -1,4 +1,5 @@
|
|||||||
# wally-pipelined.do
|
# wally.do
|
||||||
|
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
|
||||||
#
|
#
|
||||||
# Modification by Oklahoma State University & Harvey Mudd College
|
# Modification by Oklahoma State University & Harvey Mudd College
|
||||||
# Use with Testbench
|
# Use with Testbench
|
||||||
@ -7,15 +8,6 @@
|
|||||||
#
|
#
|
||||||
# Takes 1:10 to run RV64IC tests using gui
|
# Takes 1:10 to run RV64IC tests using gui
|
||||||
|
|
||||||
# run with vsim -do "do wally-pipelined.do rv64ic riscvarchtest-64m"
|
|
||||||
|
|
||||||
# Use this wally-pipelined.do file to run this example.
|
|
||||||
# Either bring up ModelSim and type the following at the "ModelSim>" prompt:
|
|
||||||
# do wally-pipelined.do
|
|
||||||
# or, to run from a shell, type the following at the shell prompt:
|
|
||||||
# vsim -do wally-pipelined.do -c
|
|
||||||
# (omit the "-c" to see the GUI while running from the shell)
|
|
||||||
|
|
||||||
onbreak {resume}
|
onbreak {resume}
|
||||||
|
|
||||||
# create library
|
# create library
|
@ -1,4 +1,5 @@
|
|||||||
# wally-pipelined.do
|
# wally.do
|
||||||
|
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
|
||||||
#
|
#
|
||||||
# Modification by Oklahoma State University & Harvey Mudd College
|
# Modification by Oklahoma State University & Harvey Mudd College
|
||||||
# Use with Testbench
|
# Use with Testbench
|
||||||
@ -11,9 +12,9 @@
|
|||||||
|
|
||||||
# Use this wally-pipelined.do file to run this example.
|
# Use this wally-pipelined.do file to run this example.
|
||||||
# Either bring up ModelSim and type the following at the "ModelSim>" prompt:
|
# Either bring up ModelSim and type the following at the "ModelSim>" prompt:
|
||||||
# do wally-pipelined.do
|
# do wally.do
|
||||||
# or, to run from a shell, type the following at the shell prompt:
|
# or, to run from a shell, type the following at the shell prompt:
|
||||||
# vsim -do wally-pipelined.do -c
|
# vsim -do wally.do -c
|
||||||
# (omit the "-c" to see the GUI while running from the shell)
|
# (omit the "-c" to see the GUI while running from the shell)
|
||||||
|
|
||||||
onbreak {resume}
|
onbreak {resume}
|
Loading…
Reference in New Issue
Block a user