mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-02 17:55:19 +00:00
Adjusted scripts to use
This commit is contained in:
parent
1d3cd85d59
commit
f2bda069da
@ -9,7 +9,7 @@ use warnings;
|
|||||||
import os;
|
import os;
|
||||||
|
|
||||||
if ($#ARGV != 0) {
|
if ($#ARGV != 0) {
|
||||||
die("Usage: $0 workpath [e.g. $0 ~/riscv-wally/addins/riscv-arch-test/work")
|
die("Usage: $0 workpath [e.g. $0 $WALLY/addins/riscv-arch-test/work")
|
||||||
}
|
}
|
||||||
my $mypath = $ARGV[0];
|
my $mypath = $ARGV[0];
|
||||||
my @dirs = glob($mypath.'/*/*');
|
my @dirs = glob($mypath.'/*/*');
|
||||||
|
@ -21,7 +21,7 @@ hash := $(shell git rev-parse --short HEAD)
|
|||||||
export OUTPUTDIR := runs/$(DESIGN)_$(CONFIG)_$(TECH)nm_$(FREQ)_MHz_$(time)_$(hash)
|
export OUTPUTDIR := runs/$(DESIGN)_$(CONFIG)_$(TECH)nm_$(FREQ)_MHz_$(time)_$(hash)
|
||||||
export SAIFPOWER ?= 0
|
export SAIFPOWER ?= 0
|
||||||
|
|
||||||
CONFIGDIR ?= ~/riscv-wally/pipelined/config
|
CONFIGDIR ?= ${WALLY}/pipelined/config
|
||||||
CONFIGFILES ?= $(shell find $(CONFIGDIR) -name rv*_*)
|
CONFIGFILES ?= $(shell find $(CONFIGDIR) -name rv*_*)
|
||||||
CONFIGFILESTRIM = $(notdir $(CONFIGFILES))
|
CONFIGFILESTRIM = $(notdir $(CONFIGFILES))
|
||||||
print:
|
print:
|
||||||
|
@ -11,21 +11,21 @@ printf "\n\n#####\nStarting tests for $1\n#####\n\n"
|
|||||||
|
|
||||||
if [[ "$2" != "-simonly" ]]
|
if [[ "$2" != "-simonly" ]]
|
||||||
then
|
then
|
||||||
cd ~/riscv-wally/pipelined/testgen/privileged
|
cd $WALLY/pipelined/testgen/privileged
|
||||||
python3 "testgen-$1.py"
|
python3 "testgen-$1.py"
|
||||||
printf "\n\n#####\nRan testgen-$1.py Making...\n#####\n\n\n"
|
printf "\n\n#####\nRan testgen-$1.py Making...\n#####\n\n\n"
|
||||||
|
|
||||||
if [[ "$2" == "-c" ]]
|
if [[ "$2" == "-c" ]]
|
||||||
then
|
then
|
||||||
printf "\n\n###\nWARNING\nThis seems to not be outputting begin_signature at the moment... Probably won't work in modelsim...\n###\n\n\n"
|
printf "\n\n###\nWARNING\nThis seems to not be outputting begin_signature at the moment... Probably won't work in modelsim...\n###\n\n\n"
|
||||||
cd ~/riscv-wally/imperas-riscv-tests/riscv-test-suite/rv64p/src
|
cd $WALLY/imperas-riscv-tests/riscv-test-suite/rv64p/src
|
||||||
riscv64-unknown-elf-gcc -nostdlib -nostartfiles -march=rv64g "WALLY-$1".S -I../../../riscv-test-env -I../../../riscv-test-env/p -I../../../riscv-target/riscvOVPsimPlus -T../../../riscv-test-env/p/link.ld -o "../../../work/rv64p/WALLY-$1.elf"
|
riscv64-unknown-elf-gcc -nostdlib -nostartfiles -march=rv64g "WALLY-$1".S -I../../../riscv-test-env -I../../../riscv-test-env/p -I../../../riscv-target/riscvOVPsimPlus -T../../../riscv-test-env/p/link.ld -o "../../../work/rv64p/WALLY-$1.elf"
|
||||||
cd ~/riscv-wally/imperas-riscv-tests/work/rv64p
|
cd $WALLY/imperas-riscv-tests/work/rv64p
|
||||||
riscv64-unknown-elf-objdump -d "WALLY-$1".elf > "WALLY-$1".elf.objdump
|
riscv64-unknown-elf-objdump -d "WALLY-$1".elf > "WALLY-$1".elf.objdump
|
||||||
|
|
||||||
elif [[ "$2" != "-nosim" ]]
|
elif [[ "$2" != "-nosim" ]]
|
||||||
then
|
then
|
||||||
cd ~/riscv-wally/imperas-riscv-tests
|
cd $WALLY/imperas-riscv-tests
|
||||||
make privileged
|
make privileged
|
||||||
|
|
||||||
exe2memfile.pl work/*/*.elf
|
exe2memfile.pl work/*/*.elf
|
||||||
@ -36,9 +36,9 @@ fi
|
|||||||
if [[ "$2" == "-simonly" ]]
|
if [[ "$2" == "-simonly" ]]
|
||||||
then
|
then
|
||||||
printf "\n\n###\nWARNING\nThis seems to not be outputting begin_signature at the moment... Probably won't work in modelsim...\n###\n\n\n"
|
printf "\n\n###\nWARNING\nThis seems to not be outputting begin_signature at the moment... Probably won't work in modelsim...\n###\n\n\n"
|
||||||
cd ~/riscv-wally/imperas-riscv-tests/riscv-test-suite/rv64p/src
|
cd $WALLY/imperas-riscv-tests/riscv-test-suite/rv64p/src
|
||||||
riscv64-unknown-elf-gcc -nostdlib -nostartfiles -march=rv64g "WALLY-$1".S -I../../../riscv-test-env -I../../../riscv-test-env/p -I../../../riscv-target/riscvOVPsimPlus -T../../../riscv-test-env/p/link.ld -o "../../../work/rv64p/WALLY-$1.elf"
|
riscv64-unknown-elf-gcc -nostdlib -nostartfiles -march=rv64g "WALLY-$1".S -I../../../riscv-test-env -I../../../riscv-test-env/p -I../../../riscv-target/riscvOVPsimPlus -T../../../riscv-test-env/p/link.ld -o "../../../work/rv64p/WALLY-$1.elf"
|
||||||
cd ~/riscv-wally/imperas-riscv-tests/work/rv64p
|
cd $WALLY/imperas-riscv-tests/work/rv64p
|
||||||
riscv64-unknown-elf-objdump -d "WALLY-$1".elf > "WALLY-$1".elf.objdump
|
riscv64-unknown-elf-objdump -d "WALLY-$1".elf > "WALLY-$1".elf.objdump
|
||||||
|
|
||||||
# riscv64-unknown-elf-gcc -nostdlib -nostartfiles -march=rv64g "WALLY-CAUSE".S -I../../../riscv-test-env -I../../../riscv-test-env/p -I../../../riscv-target/riscvOVPsimPlus -T../../../riscv-test-env/p/link.ld -o "../../../work/rv64p/WALLY-CAUSE.elf"
|
# riscv64-unknown-elf-gcc -nostdlib -nostartfiles -march=rv64g "WALLY-CAUSE".S -I../../../riscv-test-env -I../../../riscv-test-env/p -I../../../riscv-target/riscvOVPsimPlus -T../../../riscv-test-env/p/link.ld -o "../../../work/rv64p/WALLY-CAUSE.elf"
|
||||||
@ -48,14 +48,14 @@ fi
|
|||||||
if [[ "$2" == "-sim" || "$2" == "-simonly" ]]
|
if [[ "$2" == "-sim" || "$2" == "-simonly" ]]
|
||||||
then
|
then
|
||||||
printf "\n\n\n#####\nSimulating!\n#####\n\n"
|
printf "\n\n\n#####\nSimulating!\n#####\n\n"
|
||||||
cd ~/riscv-wally/pipelined/regression
|
cd $WALLY/pipelined/regression
|
||||||
vsim -do wally-privileged.do -c
|
vsim -do wally-privileged.do -c
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ~/riscv-wally/pipelined
|
cd $WALLY/pipelined
|
||||||
printf "\n\n\n#####\nDone!\n#####\n\n"
|
printf "\n\n\n#####\nDone!\n#####\n\n"
|
||||||
|
|
||||||
cd ~/riscv-wally/imperas-riscv-tests/work
|
cd $WALLY/imperas-riscv-tests/work
|
||||||
for isa in "rv64p" "rv32p"; do
|
for isa in "rv64p" "rv32p"; do
|
||||||
printf "$isa = '{"
|
printf "$isa = '{"
|
||||||
COMMA=""
|
COMMA=""
|
||||||
@ -71,4 +71,4 @@ for isa in "rv64p" "rv32p"; do
|
|||||||
printf "\n};\n\n"
|
printf "\n};\n\n"
|
||||||
done
|
done
|
||||||
|
|
||||||
cd ~/riscv-wally/pipelined
|
cd $WALLY/pipelined
|
Loading…
Reference in New Issue
Block a user