mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Merge pull request #710 from davidharrishmc/dev
Reorganized regression to support multiple simulations
This commit is contained in:
commit
0a13cdf1d1
12
.gitignore
vendored
12
.gitignore
vendored
@ -46,7 +46,6 @@ linux/buildroot
|
|||||||
linux/testvector-generation/boottrace.S
|
linux/testvector-generation/boottrace.S
|
||||||
linux/testvector-generation/boottrace_disasm.log
|
linux/testvector-generation/boottrace_disasm.log
|
||||||
sim/slack-notifier/slack-webhook-url.txt
|
sim/slack-notifier/slack-webhook-url.txt
|
||||||
sim/logs
|
|
||||||
fpga/generator/IP
|
fpga/generator/IP
|
||||||
fpga/generator/vivado.*
|
fpga/generator/vivado.*
|
||||||
fpga/generator/.Xil/*
|
fpga/generator/.Xil/*
|
||||||
@ -89,7 +88,6 @@ synthDC/hdl
|
|||||||
sim/power.saif
|
sim/power.saif
|
||||||
tests/fp/vectors/*.tv
|
tests/fp/vectors/*.tv
|
||||||
synthDC/Summary.csv
|
synthDC/Summary.csv
|
||||||
sim/wkdir
|
|
||||||
tests/custom/work
|
tests/custom/work
|
||||||
tests/custom/*/*/*.list
|
tests/custom/*/*/*.list
|
||||||
tests/custom/*/*/*.elf
|
tests/custom/*/*/*.elf
|
||||||
@ -112,8 +110,6 @@ tests/wally-riscv-arch-test/riscv-test-suite/rv*i_m/I/src/*.S
|
|||||||
tests/wally-riscv-arch-test/riscv-test-suite/rv*i_m/I/Makefrag
|
tests/wally-riscv-arch-test/riscv-test-suite/rv*i_m/I/Makefrag
|
||||||
sim/branch_BP_GSHARE10.log
|
sim/branch_BP_GSHARE10.log
|
||||||
sim/branch_BP_GSHARE16.log
|
sim/branch_BP_GSHARE16.log
|
||||||
sim/cov/
|
|
||||||
sim/covhtmlreport/
|
|
||||||
sim/imperas.log
|
sim/imperas.log
|
||||||
sim/results-error/
|
sim/results-error/
|
||||||
sim/test1.rep
|
sim/test1.rep
|
||||||
@ -186,3 +182,11 @@ sim/branch/*
|
|||||||
sim/obj_dir
|
sim/obj_dir
|
||||||
examples/verilog/fulladder/obj_dir
|
examples/verilog/fulladder/obj_dir
|
||||||
config/deriv
|
config/deriv
|
||||||
|
sim/questa/cov
|
||||||
|
sim/questa/covhtmlreport/
|
||||||
|
sim/questa/logs
|
||||||
|
sim/questa/wkdir
|
||||||
|
sim/verilator/logs
|
||||||
|
sim/verilator/wkdir
|
||||||
|
sim/vcs/logs
|
||||||
|
sim/vcs/wkdir
|
||||||
|
4
Makefile
4
Makefile
@ -48,10 +48,12 @@ imperasdv_cov:
|
|||||||
vcover report -details -html sim/riscv.ucdb
|
vcover report -details -html sim/riscv.ucdb
|
||||||
|
|
||||||
funcovreg:
|
funcovreg:
|
||||||
iter-elf.bash --search ${WALLY}/tests/riscof/work/wally-riscv-arch-test/rv64i_m --cover
|
#iter-elf.bash --search ${WALLY}/tests/riscof/work/wally-riscv-arch-test/rv64i_m --cover
|
||||||
#iter-elf.bash --search ${WALLY}/tests/riscof/work/wally-riscv-arch-test/rv64i_m/I --cover
|
#iter-elf.bash --search ${WALLY}/tests/riscof/work/wally-riscv-arch-test/rv64i_m/I --cover
|
||||||
#iter-elf.bash --search ${WALLY}/tests/riscof/work/wally-riscv-arch-test/rv64i_m/privilege --cover
|
#iter-elf.bash --search ${WALLY}/tests/riscof/work/wally-riscv-arch-test/rv64i_m/privilege --cover
|
||||||
#iter-elf.bash --search ${WALLY}/tests/riscof/work/wally-riscv-arch-test/rv64i_m/Q --cover
|
#iter-elf.bash --search ${WALLY}/tests/riscof/work/wally-riscv-arch-test/rv64i_m/Q --cover
|
||||||
|
rm -f ${WALLY}/tests/riscof/work/riscv-arch-test/rv64i_m/*/src/*/dut/my.elf
|
||||||
|
iter-elf.bash --search ${WALLY}/tests/riscof/work/riscv-arch-test/rv64i_m/I --cover
|
||||||
vcover report -details -html sim/riscv.ucdb
|
vcover report -details -html sim/riscv.ucdb
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
|
@ -21,7 +21,7 @@ if [ "$1" == "-nightly" ]; then
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
configs=(rv32e rv64gc rv32gc rv32imc rv32i rv64i div_2_1i_rv64gc ) # add fdqh_rv64gc when working
|
configs=(rv32e rv64gc rv32gc rv32imc rv32i rv64i ) # add fdqh_rv64gc when working
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for config in ${configs[@]}; do
|
for config in ${configs[@]}; do
|
402
bin/regression-wally
Executable file
402
bin/regression-wally
Executable file
@ -0,0 +1,402 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
##################################
|
||||||
|
#
|
||||||
|
# regression-wally
|
||||||
|
# David_Harris@Hmc.edu 25 January 2021
|
||||||
|
# Modified by Jarred Allen <jaallen@g.hmc.edu>
|
||||||
|
#
|
||||||
|
# Run a regression with multiple configurations in parallel and exit with
|
||||||
|
# non-zero status code if an error happened, as well as printing human-readable
|
||||||
|
# output.
|
||||||
|
#
|
||||||
|
##################################
|
||||||
|
import sys,os,shutil
|
||||||
|
import multiprocessing
|
||||||
|
#import os
|
||||||
|
from collections import namedtuple
|
||||||
|
from multiprocessing import Pool, TimeoutError
|
||||||
|
|
||||||
|
##################################
|
||||||
|
# Define lists of configurations and tests to run on each configuration
|
||||||
|
##################################
|
||||||
|
|
||||||
|
# The tests are a list with one element for each configuration
|
||||||
|
# The element consists of the configuration name, a list of test suites to run,
|
||||||
|
# optionally a string to pass to the simulator, and optionally a nonstandard grep string to check for success
|
||||||
|
|
||||||
|
INSTR_LIMIT = 1000000 # multiple of 100000; 4M is interesting because it gets into the kernel and enabling VM
|
||||||
|
tests = [
|
||||||
|
["rv32e", ["arch32e"]],
|
||||||
|
["rv32i", ["arch32i"]],
|
||||||
|
["rv32imc", ["arch32i", "arch32c", "arch32m", "wally32periph"]],
|
||||||
|
["rv32gc", ["arch32f", "arch32d", "arch32f_fma", "arch32d_fma", "arch32f_divsqrt", "arch32d_divsqrt",
|
||||||
|
"arch32i", "arch32priv", "arch32c", "arch32m", "arch32a", "arch32zifencei", "arch32zicond",
|
||||||
|
"arch32zba", "arch32zbb", "arch32zbc", "arch32zbs", "arch32zfh", "arch32zfh_fma",
|
||||||
|
"arch32zfh_divsqrt", "arch32zfaf", "wally32a", "wally32priv", "wally32periph",
|
||||||
|
"arch32zbkb", "arch32zbkc", "arch32zbkx", "arch32zknd", "arch32zkne", "arch32zknh"]], # "arch32zcb", "arch32zfad",
|
||||||
|
["rv64i", ["arch64i"]],
|
||||||
|
["buildroot", ["buildroot"], [f"+INSTR_LIMIT={INSTR_LIMIT}"], str(INSTR_LIMIT)+" instructions"]
|
||||||
|
]
|
||||||
|
|
||||||
|
# Separate out floating-point tests for RV64 to speed up coverage
|
||||||
|
tests64gc_nofp = [
|
||||||
|
["rv64gc", ["coverage64gc", "arch64i", "arch64priv", "arch64c", "arch64m",
|
||||||
|
"arch64zifencei", "arch64zicond", "arch64a", "wally64a", "wally64periph", "wally64priv",
|
||||||
|
"arch64zbkb", "arch64zbkc", "arch64zbkx", "arch64zknd", "arch64zkne", "arch64zknh",
|
||||||
|
"arch64zba", "arch64zbb", "arch64zbc", "arch64zbs"]] # add when working: "arch64zcb", "arch64zicboz"
|
||||||
|
]
|
||||||
|
|
||||||
|
tests64gc_fp = [
|
||||||
|
["rv64gc", ["arch64f", "arch64d", "arch64zfh",
|
||||||
|
"arch64f_fma", "arch64d_fma", "arch64zfh_fma",
|
||||||
|
"arch64f_divsqrt", "arch64d_divsqrt", "arch64zfh_divsqrt",
|
||||||
|
"arch64zfaf", "arch64zfad"]]
|
||||||
|
]
|
||||||
|
|
||||||
|
derivconfigtests = [
|
||||||
|
# memory system
|
||||||
|
["tlb2_rv32gc", ["wally32priv"]],
|
||||||
|
["tlb16_rv32gc", ["wally32priv"]],
|
||||||
|
["tlb2_rv64gc", ["wally64priv"]],
|
||||||
|
["tlb16_rv64gc", ["wally64priv"]],
|
||||||
|
["way_1_4096_512_rv32gc", ["arch32i"]],
|
||||||
|
["way_2_4096_512_rv32gc", ["arch32i"]],
|
||||||
|
["way_8_4096_512_rv32gc", ["arch32i"]],
|
||||||
|
["way_4_2048_512_rv32gc", ["arch32i"]],
|
||||||
|
["way_4_4096_256_rv32gc", ["arch32i"]],
|
||||||
|
["way_1_4096_512_rv64gc", ["arch64i"]],
|
||||||
|
["way_2_4096_512_rv64gc", ["arch64i"]],
|
||||||
|
["way_8_4096_512_rv64gc", ["arch64i"]],
|
||||||
|
["way_4_2048_512_rv64gc", ["arch64i"]],
|
||||||
|
["way_4_4096_256_rv64gc", ["arch64i"]],
|
||||||
|
["way_4_4096_1024_rv64gc", ["arch64i"]],
|
||||||
|
["ram_0_0_rv64gc", ["ahb64"]],
|
||||||
|
["ram_1_0_rv64gc", ["ahb64"]],
|
||||||
|
["ram_1_1_rv64gc", ["ahb64"]],
|
||||||
|
["ram_2_0_rv64gc", ["ahb64"]],
|
||||||
|
["ram_2_1_rv64gc", ["ahb64"]],
|
||||||
|
# RV32 cacheless designs will not work unless DTIM supports FLEN > XLEN. This support is not planned.
|
||||||
|
# ["nodcache_rv32gc", ["ahb32"]],
|
||||||
|
# ["nocache_rv32gc", ["ahb32"]],
|
||||||
|
["noicache_rv32gc", ["ahb32"]],
|
||||||
|
["noicache_rv64gc", ["ahb64"]],
|
||||||
|
["nodcache_rv64gc", ["ahb64"]],
|
||||||
|
["nocache_rv64gc", ["ahb64"]],
|
||||||
|
|
||||||
|
### add misaligned tests
|
||||||
|
|
||||||
|
# fp/int divider permutations
|
||||||
|
["div_2_1_rv32gc", ["arch32f_divsqrt", "arch32d_divsqrt", "arch32m"]],
|
||||||
|
["div_2_1i_rv32gc", ["arch32f_divsqrt", "arch32d_divsqrt", "arch32m"]],
|
||||||
|
["div_2_2_rv32gc", ["arch32f_divsqrt", "arch32d_divsqrt", "arch32m"]],
|
||||||
|
["div_2_2i_rv32gc", ["arch32f_divsqrt", "arch32d_divsqrt", "arch32m"]],
|
||||||
|
["div_2_4_rv32gc", ["arch32f_divsqrt", "arch32d_divsqrt", "arch32m"]],
|
||||||
|
["div_2_4i_rv32gc", ["arch32f_divsqrt", "arch32d_divsqrt", "arch32m"]],
|
||||||
|
["div_4_1_rv32gc", ["arch32f_divsqrt", "arch32d_divsqrt", "arch32m"]],
|
||||||
|
["div_4_1i_rv32gc", ["arch32f_divsqrt", "arch32d_divsqrt", "arch32m"]],
|
||||||
|
["div_4_2_rv32gc", ["arch32f_divsqrt", "arch32d_divsqrt", "arch32m"]],
|
||||||
|
["div_4_2i_rv32gc", ["arch32f_divsqrt", "arch32d_divsqrt", "arch32m"]],
|
||||||
|
["div_4_4_rv32gc", ["arch32f_divsqrt", "arch32d_divsqrt", "arch32m"]],
|
||||||
|
["div_4_4i_rv32gc", ["arch32f_divsqrt", "arch32d_divsqrt", "arch32m"]],
|
||||||
|
["div_2_1_rv64gc", ["arch64f_divsqrt", "arch64d_divsqrt", "arch64m"]],
|
||||||
|
["div_2_1i_rv64gc", ["arch64f_divsqrt", "arch64d_divsqrt", "arch64m"]],
|
||||||
|
["div_2_2_rv64gc", ["arch64f_divsqrt", "arch64d_divsqrt", "arch64m"]],
|
||||||
|
["div_2_2i_rv64gc", ["arch64f_divsqrt", "arch64d_divsqrt", "arch64m"]],
|
||||||
|
["div_2_4_rv64gc", ["arch64f_divsqrt", "arch64d_divsqrt", "arch64m"]],
|
||||||
|
["div_2_4i_rv64gc", ["arch64f_divsqrt", "arch64d_divsqrt", "arch64m"]],
|
||||||
|
["div_4_1_rv64gc", ["arch64f_divsqrt", "arch64d_divsqrt", "arch64m"]],
|
||||||
|
["div_4_1i_rv64gc", ["arch64f_divsqrt", "arch64d_divsqrt", "arch64m"]],
|
||||||
|
["div_4_2_rv64gc", ["arch64f_divsqrt", "arch64d_divsqrt", "arch64m"]],
|
||||||
|
["div_4_2i_rv64gc", ["arch64f_divsqrt", "arch64d_divsqrt", "arch64m"]],
|
||||||
|
["div_4_4_rv64gc", ["arch64f_divsqrt", "arch64d_divsqrt", "arch64m"]],
|
||||||
|
["div_4_4i_rv64gc", ["arch64f_divsqrt", "arch64d_divsqrt", "arch64m"]],
|
||||||
|
|
||||||
|
# fpu permutations
|
||||||
|
["f_rv32gc", ["arch32f", "arch32f_divsqrt", "arch32f_fma"]],
|
||||||
|
["fh_rv32gc", ["arch32f", "arch32f_divsqrt", "arch32f_fma", "arch32zfh", "arch32zfh_divsqrt"]],
|
||||||
|
["fdh_rv32gc", ["arch32f", "arch32f_divsqrt", "arch32f_fma", "arch32d", "arch32d_divsqrt", "arch32d_fma", "arch32zfh", "arch32zfh_divsqrt"]],
|
||||||
|
["fdq_rv32gc", ["arch32f", "arch32f_divsqrt", "arch32f_fma", "arch32d", "arch32d_divsqrt", "arch32d_fma", "arch32i"]],
|
||||||
|
["fdqh_rv32gc", ["arch32f", "arch32f_divsqrt", "arch32f_fma", "arch32d", "arch32d_divsqrt", "arch32d_fma", "arch32zfh", "arch32zfh_divsqrt", "arch32i"]],
|
||||||
|
["f_rv64gc", ["arch64f", "arch64f_divsqrt", "arch64f_fma"]],
|
||||||
|
["fh_rv64gc", ["arch64f", "arch64f_divsqrt", "arch64f_fma", "arch64zfh", "arch64zfh_divsqrt"]],
|
||||||
|
["fdh_rv64gc", ["arch64f", "arch64f_divsqrt", "arch64f_fma", "arch64d", "arch64d_divsqrt", "arch64d_fma", "arch64zfh", "arch64zfh_divsqrt"]],
|
||||||
|
["fdq_rv64gc", ["arch64f", "arch64f_divsqrt", "arch64f_fma", "arch64d", "arch64d_divsqrt", "arch64d_fma", "arch64i"]],
|
||||||
|
["fdqh_rv64gc", ["arch64f", "arch64f_divsqrt", "arch64f_fma", "arch64d", "arch64d_divsqrt", "arch64d_fma", "arch64zfh", "arch64zfh_divsqrt", "arch64i", "wally64q"]],
|
||||||
|
]
|
||||||
|
|
||||||
|
bpredtests = [
|
||||||
|
["bpred_TWOBIT_6_16_10_0_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_TWOBIT_8_16_10_0_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_TWOBIT_10_16_10_0_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_TWOBIT_12_16_10_0_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_TWOBIT_14_16_10_0_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_TWOBIT_16_16_10_0_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_TWOBIT_6_16_10_1_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_TWOBIT_8_16_10_1_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_TWOBIT_10_16_10_1_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_TWOBIT_12_16_10_1_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_TWOBIT_14_16_10_1_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_TWOBIT_16_16_10_1_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
|
||||||
|
["bpred_GSHARE_6_16_10_0_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_GSHARE_6_16_10_1_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_GSHARE_8_16_10_0_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_GSHARE_8_16_10_1_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_GSHARE_10_16_10_0_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_GSHARE_10_16_10_1_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_GSHARE_12_16_10_0_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_GSHARE_12_16_10_1_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_GSHARE_14_16_10_0_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_GSHARE_14_16_10_1_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_GSHARE_16_16_10_0_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_GSHARE_16_16_10_1_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
|
||||||
|
# btb
|
||||||
|
["bpred_GSHARE_10_16_6_0_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_GSHARE_10_16_6_1_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_GSHARE_10_16_8_0_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_GSHARE_10_16_8_1_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_GSHARE_10_16_12_0_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_GSHARE_10_16_12_1_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
|
||||||
|
# ras
|
||||||
|
["bpred_GSHARE_10_2_10_0_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_GSHARE_10_2_10_1_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_GSHARE_10_3_10_0_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_GSHARE_10_3_10_1_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_GSHARE_10_4_10_0_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_GSHARE_10_4_10_1_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_GSHARE_10_6_10_0_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_GSHARE_10_6_10_1_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_GSHARE_10_10_10_0_rv32gc", ["embench"], "-GPrintHPMCounters=1"],
|
||||||
|
["bpred_GSHARE_10_10_10_1_rv32gc", ["embench"], "-GPrintHPMCounters=1"]
|
||||||
|
]
|
||||||
|
|
||||||
|
##################################
|
||||||
|
# Data Types & Functions
|
||||||
|
##################################
|
||||||
|
|
||||||
|
TestCase = namedtuple("TestCase", ['name', 'variant', 'cmd', 'grepstr'])
|
||||||
|
# name: the name of this test configuration (used in printing human-readable
|
||||||
|
# output and picking logfile names)
|
||||||
|
# cmd: the command to run to test (should include the logfile as '{}', and
|
||||||
|
# the command needs to write to that file)
|
||||||
|
# grepstr: the string to grep through the log file for. The test succeeds iff
|
||||||
|
# grep finds that string in the logfile (is used by grep, so it may
|
||||||
|
# be any pattern grep accepts, see `man 1 grep` for more info).
|
||||||
|
|
||||||
|
class bcolors:
|
||||||
|
HEADER = '\033[95m'
|
||||||
|
OKBLUE = '\033[94m'
|
||||||
|
OKCYAN = '\033[96m'
|
||||||
|
OKGREEN = '\033[92m'
|
||||||
|
WARNING = '\033[93m'
|
||||||
|
FAIL = '\033[91m'
|
||||||
|
ENDC = '\033[0m'
|
||||||
|
BOLD = '\033[1m'
|
||||||
|
UNDERLINE = '\033[4m'
|
||||||
|
|
||||||
|
def addTests(tests, sim):
|
||||||
|
for test in tests:
|
||||||
|
config = test[0];
|
||||||
|
suites = test[1];
|
||||||
|
if (len(test) >= 3):
|
||||||
|
args = " --args " + " ".join(test[2])
|
||||||
|
else:
|
||||||
|
args = ""
|
||||||
|
if (len(test) >= 4):
|
||||||
|
gs = test[3]
|
||||||
|
else:
|
||||||
|
gs = "All tests ran without failures"
|
||||||
|
cmdPrefix="wsim --sim " + sim + " " + config
|
||||||
|
for t in suites:
|
||||||
|
tc = TestCase(
|
||||||
|
name=t,
|
||||||
|
variant=config,
|
||||||
|
cmd=cmdPrefix + " " + t + args,
|
||||||
|
grepstr=gs)
|
||||||
|
configs.append(tc)
|
||||||
|
|
||||||
|
def search_log_for_text(text, logfile):
|
||||||
|
"""Search through the given log file for text, returning True if it is found or False if it is not"""
|
||||||
|
grepcmd = "grep -e '%s' '%s' > /dev/null" % (text, logfile)
|
||||||
|
# print(" search_log_for_text invoking %s" % grepcmd)
|
||||||
|
return os.system(grepcmd) == 0
|
||||||
|
|
||||||
|
def run_test_case(config):
|
||||||
|
"""Run the given test case, and return 0 if the test suceeds and 1 if it fails"""
|
||||||
|
logname = WALLY + "/sim/questa/logs/"+config.variant+"_"+config.name+".log" ### *** fix hardwiring to questa log
|
||||||
|
#cmd = config.cmd + " > " + logname
|
||||||
|
if ("lint-wally" in config.cmd):
|
||||||
|
cmd = config.cmd + " | tee " + logname
|
||||||
|
else:
|
||||||
|
cmd = config.cmd + " > " + logname
|
||||||
|
os.chdir(regressionDir)
|
||||||
|
# print(" run_test_case invoking %s" % cmd)
|
||||||
|
os.system(cmd)
|
||||||
|
if search_log_for_text(config.grepstr, logname):
|
||||||
|
print(f"{bcolors.OKGREEN}%s_%s: Success{bcolors.ENDC}" % (config.variant, config.name))
|
||||||
|
return 0
|
||||||
|
else:
|
||||||
|
print(f"{bcolors.FAIL}%s_%s: Failures detected in output{bcolors.ENDC}" % (config.variant, config.name))
|
||||||
|
print(" Check %s" % logname)
|
||||||
|
return 1
|
||||||
|
|
||||||
|
##################################
|
||||||
|
# Main body
|
||||||
|
##################################
|
||||||
|
|
||||||
|
regressionDir = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
os.chdir(regressionDir)
|
||||||
|
|
||||||
|
WALLY = os.environ.get('WALLY')
|
||||||
|
|
||||||
|
coveragesim = "questa" # Questa is required for code/functional coverage
|
||||||
|
defaultsim = "questa" # Default simulator for all other tests; change to Verilator when flow is ready
|
||||||
|
|
||||||
|
coverage = '-coverage' in sys.argv
|
||||||
|
fp = '-fp' in sys.argv
|
||||||
|
nightly = '-nightly' in sys.argv
|
||||||
|
testfloat = '-testfloat' in sys.argv
|
||||||
|
|
||||||
|
if (nightly):
|
||||||
|
nightMode = "-nightly";
|
||||||
|
sims = ["questa", "verilator", "vcs"]
|
||||||
|
else:
|
||||||
|
nightMode = "";
|
||||||
|
sims = [defaultsim]
|
||||||
|
|
||||||
|
if (coverage): # only run RV64GC tests in coverage mode
|
||||||
|
coverStr = '-coverage'
|
||||||
|
else:
|
||||||
|
coverStr = ''
|
||||||
|
|
||||||
|
|
||||||
|
# Run Lint
|
||||||
|
configs = [
|
||||||
|
TestCase(
|
||||||
|
name="lints",
|
||||||
|
variant="all",
|
||||||
|
cmd="lint-wally " + nightMode,
|
||||||
|
grepstr="lints run with no errors or warnings"
|
||||||
|
)
|
||||||
|
]
|
||||||
|
|
||||||
|
if (coverage): # only run RV64GC tests on Questa in coverage mode
|
||||||
|
addTests(tests64gc_nofp, "questa")
|
||||||
|
if (fp):
|
||||||
|
addTests(tests64gc_fp, "questa")
|
||||||
|
else:
|
||||||
|
for sim in sims:
|
||||||
|
addTests(tests, sim)
|
||||||
|
addTests(tests64gc_nofp, sim)
|
||||||
|
addTests(tests64gc_fp, sim)
|
||||||
|
# run derivative configurations in nightly regression
|
||||||
|
if (nightly):
|
||||||
|
addTests(derivconfigtests, defaultsim)
|
||||||
|
|
||||||
|
# testfloat tests
|
||||||
|
if (testfloat):
|
||||||
|
configs = []
|
||||||
|
testfloatconfigs = [
|
||||||
|
"fdh_ieee_div_2_1_rv32gc", "fdh_ieee_div_2_1_rv64gc", "fdh_ieee_div_2_2_rv32gc",
|
||||||
|
"fdh_ieee_div_2_2_rv64gc", "fdh_ieee_div_2_4_rv32gc", "fdh_ieee_div_2_4_rv64gc",
|
||||||
|
"fdh_ieee_div_4_1_rv32gc", "fdh_ieee_div_4_1_rv64gc", "fdh_ieee_div_4_2_rv32gc",
|
||||||
|
"fdh_ieee_div_4_2_rv64gc", "fdh_ieee_div_4_4_rv32gc", "fdh_ieee_div_4_4_rv64gc",
|
||||||
|
"fd_ieee_div_2_1_rv32gc", "fd_ieee_div_2_1_rv64gc", "fd_ieee_div_2_2_rv32gc",
|
||||||
|
"fd_ieee_div_2_2_rv64gc", "fd_ieee_div_2_4_rv32gc", "fd_ieee_div_2_4_rv64gc",
|
||||||
|
"fd_ieee_div_4_1_rv32gc", "fd_ieee_div_4_1_rv64gc", "fd_ieee_div_4_2_rv32gc",
|
||||||
|
"fd_ieee_div_4_2_rv64gc", "fd_ieee_div_4_4_rv32gc", "fd_ieee_div_4_4_rv64gc",
|
||||||
|
"fdqh_ieee_div_2_1_rv32gc", "fdqh_ieee_div_2_1_rv64gc", "fdqh_ieee_div_2_2_rv32gc",
|
||||||
|
"fdqh_ieee_div_2_2_rv64gc", "fdqh_ieee_div_2_4_rv32gc", "fdqh_ieee_div_2_4_rv64gc",
|
||||||
|
"fdqh_ieee_div_4_1_rv32gc", "fdqh_ieee_div_4_1_rv64gc", "fdqh_ieee_div_4_2_rv32gc",
|
||||||
|
"fdqh_ieee_div_4_2_rv64gc", "fdqh_ieee_div_4_4_rv32gc", "fdqh_ieee_div_4_4_rv64gc",
|
||||||
|
"fdq_ieee_div_2_1_rv32gc", "fdq_ieee_div_2_1_rv64gc", "fdq_ieee_div_2_2_rv32gc",
|
||||||
|
"fdq_ieee_div_2_2_rv64gc", "fdq_ieee_div_2_4_rv32gc", "fdq_ieee_div_2_4_rv64gc",
|
||||||
|
"fdq_ieee_div_4_1_rv32gc", "fdq_ieee_div_4_1_rv64gc", "fdq_ieee_div_4_2_rv32gc",
|
||||||
|
"fdq_ieee_div_4_2_rv64gc", "fdq_ieee_div_4_4_rv32gc", "fdq_ieee_div_4_4_rv64gc",
|
||||||
|
"fh_ieee_div_2_1_rv32gc", "fh_ieee_div_2_1_rv64gc", "fh_ieee_div_2_2_rv32gc",
|
||||||
|
"fh_ieee_div_2_2_rv64gc", "fh_ieee_div_2_4_rv32gc", "fh_ieee_div_2_4_rv64gc",
|
||||||
|
"fh_ieee_div_4_1_rv32gc", "fh_ieee_div_4_1_rv64gc", "fh_ieee_div_4_2_rv32gc",
|
||||||
|
"fh_ieee_div_4_2_rv64gc", "fh_ieee_div_4_4_rv32gc", "fh_ieee_div_4_4_rv64gc",
|
||||||
|
"f_ieee_div_2_1_rv32gc", "f_ieee_div_2_1_rv64gc", "f_ieee_div_2_2_rv32gc",
|
||||||
|
"f_ieee_div_2_2_rv64gc", "f_ieee_div_2_4_rv32gc", "f_ieee_div_2_4_rv64gc",
|
||||||
|
"f_ieee_div_4_1_rv32gc", "f_ieee_div_4_1_rv64gc", "f_ieee_div_4_2_rv32gc",
|
||||||
|
"f_ieee_div_4_2_rv64gc", "f_ieee_div_4_4_rv32gc", "f_ieee_div_4_4_rv64gc"
|
||||||
|
]
|
||||||
|
for config in testfloatconfigs:
|
||||||
|
# div test case
|
||||||
|
tests = ["div", "sqrt"]
|
||||||
|
if ("ieee" in config):
|
||||||
|
tests.append("cvtint")
|
||||||
|
tests.append("cvtfp")
|
||||||
|
for test in tests:
|
||||||
|
tc = TestCase(
|
||||||
|
name=test,
|
||||||
|
variant=config,
|
||||||
|
cmd="wsim --tb testbench_fp --sim questa " + config + " " + test,
|
||||||
|
grepstr="All Tests completed with 0 errors")
|
||||||
|
configs.append(tc)
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
"""Run the tests and count the failures"""
|
||||||
|
global configs, coverage
|
||||||
|
os.chdir(regressionDir)
|
||||||
|
for d in ["questa/logs", "questa/wkdir", "verilator/logs", "verilator/wkdir", "vcs/logs", "vcs/wkdir"]:
|
||||||
|
try:
|
||||||
|
os.mkdir(d)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
|
if '-makeTests' in sys.argv:
|
||||||
|
os.chdir(regressionDir)
|
||||||
|
os.system('./make-tests.sh | tee ./logs/make-tests.log')
|
||||||
|
|
||||||
|
if '-all' in sys.argv:
|
||||||
|
TIMEOUT_DUR = 30*7200 # seconds
|
||||||
|
#configs.append(getBuildrootTC(boot=True))
|
||||||
|
elif '-buildroot' in sys.argv:
|
||||||
|
TIMEOUT_DUR = 30*7200 # seconds
|
||||||
|
#configs=[getBuildrootTC(boot=True)]
|
||||||
|
elif '-coverage' in sys.argv:
|
||||||
|
TIMEOUT_DUR = 20*60 # seconds
|
||||||
|
# Presently don't run buildroot because it has a different config and can't be merged with the rv64gc coverage.
|
||||||
|
# Also it is slow to run.
|
||||||
|
# configs.append(getBuildrootTC(boot=False))
|
||||||
|
os.system('rm -f cov/*.ucdb')
|
||||||
|
elif '-nightly' in sys.argv:
|
||||||
|
TIMEOUT_DUR = 60*1440 # 1 day
|
||||||
|
#configs.append(getBuildrootTC(boot=False))
|
||||||
|
elif '-testfloat' in sys.argv:
|
||||||
|
TIMEOUT_DUR = 60*60 # seconds
|
||||||
|
else:
|
||||||
|
TIMEOUT_DUR = 10*60 # seconds
|
||||||
|
#configs.append(getBuildrootTC(boot=False))
|
||||||
|
|
||||||
|
# Scale the number of concurrent processes to the number of test cases, but
|
||||||
|
# max out at a limited number of concurrent processes to not overwhelm the system
|
||||||
|
with Pool(processes=min(len(configs),multiprocessing.cpu_count())) as pool:
|
||||||
|
num_fail = 0
|
||||||
|
results = {}
|
||||||
|
for config in configs:
|
||||||
|
results[config] = pool.apply_async(run_test_case,(config,))
|
||||||
|
for (config,result) in results.items():
|
||||||
|
try:
|
||||||
|
num_fail+=result.get(timeout=TIMEOUT_DUR)
|
||||||
|
except TimeoutError:
|
||||||
|
num_fail+=1
|
||||||
|
print(f"{bcolors.FAIL}%s_%s: Timeout - runtime exceeded %d seconds{bcolors.ENDC}" % (config.variant, config.name, TIMEOUT_DUR))
|
||||||
|
|
||||||
|
# Coverage report
|
||||||
|
if coverage:
|
||||||
|
os.system('make coverage')
|
||||||
|
# Count the number of failures
|
||||||
|
if num_fail:
|
||||||
|
print(f"{bcolors.FAIL}Regression failed with %s failed configurations{bcolors.ENDC}" % num_fail)
|
||||||
|
else:
|
||||||
|
print(f"{bcolors.OKGREEN}SUCCESS! All tests ran without failures{bcolors.ENDC}")
|
||||||
|
return num_fail
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
exit(main())
|
60
bin/wsim
Executable file
60
bin/wsim
Executable file
@ -0,0 +1,60 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
#
|
||||||
|
# wsim
|
||||||
|
# David_Harris@hmc.edu 5 April 2024
|
||||||
|
# Invoke a Wally simulation for a desired configuration and test suite or ELF on the specified simulator
|
||||||
|
# usage: wsim CONFIG TESTSUITE [-s/--sim SIMULATOR] [-g/--gui]
|
||||||
|
# example: wsim rv64gc arch64i
|
||||||
|
# example: wsim rv64gc tests/riscof/work/riscv-arch-test/rv64i_m/I/src/ref/ref.elf
|
||||||
|
# example: wsim rv32i arch32i -s verilator
|
||||||
|
# example: wsim fdqh_ieee_rv64gc add -t testbench_fp # run TestFloat
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
|
||||||
|
|
||||||
|
import argparse
|
||||||
|
import os
|
||||||
|
|
||||||
|
# Parse arguments
|
||||||
|
parser = argparse.ArgumentParser()
|
||||||
|
parser.add_argument("config", help="Configuration file")
|
||||||
|
parser.add_argument("testsuite", help="Test suite or ELF file")
|
||||||
|
parser.add_argument("--sim", "-s", help="Simulator", choices=["questa", "verilator", "vcs"], default="questa")
|
||||||
|
parser.add_argument("--tb", "-t", help="Testbench", choices=["testbench", "testbench_fp"], default="testbench")
|
||||||
|
parser.add_argument("--gui", "-g", help="Simulate with GUI", action="store_true")
|
||||||
|
parser.add_argument("--coverage", "-c", help="Code & Functional Coverage", action="store_true")
|
||||||
|
parser.add_argument("--args", "-a", help="Optional arguments passed to simulator via $value$plusargs", default="")
|
||||||
|
args = parser.parse_args()
|
||||||
|
print("Config=" + args.config + " tests=" + args.testsuite + " sim=" + args.sim + " gui=" + str(args.gui) + " args='" + args.args + "'")
|
||||||
|
|
||||||
|
# Validate arguments
|
||||||
|
if (args.gui):
|
||||||
|
if (args.sim != "questa"):
|
||||||
|
print("GUI option only supported for Questa")
|
||||||
|
exit(1)
|
||||||
|
|
||||||
|
if (args.coverage):
|
||||||
|
if (args.sim != "questa"):
|
||||||
|
print("Coverage option only available for Questa")
|
||||||
|
exit(1)
|
||||||
|
|
||||||
|
# Launch selected simulator
|
||||||
|
cd = "cd $WALLY/sim/" +args.sim
|
||||||
|
if (args.sim == "questa"):
|
||||||
|
if (args.tb == "testbench_fp"):
|
||||||
|
args.args = " -GTEST=" + args.testsuite + " " + args.args
|
||||||
|
# cmd = "do wally.do " + args.config + " " + args.testsuite + " " + args.tb + " " + " -GTEST=" + args.testsuite + " " + args.args
|
||||||
|
# else:
|
||||||
|
# cmd = "do wally.do " + args.config + " " + args.testsuite + " " + args.tb + " " + args.args
|
||||||
|
cmd = "do wally.do " + args.config + " " + args.testsuite + " " + args.tb + " " + args.args
|
||||||
|
if (args.coverage):
|
||||||
|
cmd += " -coverage"
|
||||||
|
if (args.gui): # launch Questa with GUI; add +acc to keep variables accessible
|
||||||
|
cmd = cd + "; vsim -do \"" + cmd + " +acc\""
|
||||||
|
else: # launch Questa in batch mode
|
||||||
|
cmd = cd + "; vsim -c -do \"" + cmd + "\""
|
||||||
|
print("Running Questa with command: " + cmd)
|
||||||
|
os.system(cmd)
|
||||||
|
elif (args.sim == "verilator"):
|
||||||
|
print("Running Verilator on %s %s", args.config, args.testsuite)
|
||||||
|
elif (args.sim == "vcs"):
|
||||||
|
print("Running VCS on %s %s", args.config, args.testsuite)
|
@ -1,357 +0,0 @@
|
|||||||
onerror {resume}
|
|
||||||
quietly virtual function -install /testbench/dut/core/lsu -env /testbench/dut/core/lsu/bus { &{/testbench/dut/core/lsu/LSUHTRANS[1], /testbench/dut/core/lsu/LSUHADDR }} test
|
|
||||||
quietly WaveActivateNextPane {} 0
|
|
||||||
add wave -noupdate /testbench/clk
|
|
||||||
add wave -noupdate /testbench/reset
|
|
||||||
add wave -noupdate /testbench/dut/core/priv/priv/SATP_REGW
|
|
||||||
add wave -noupdate -group Testbench /testbench/reset_ext
|
|
||||||
add wave -noupdate -group Testbench -radix unsigned /testbench/InstrCountW
|
|
||||||
add wave -noupdate -group Testbench -radix unsigned /testbench/AttemptedInstructionCount
|
|
||||||
add wave -noupdate -group Testbench -radix decimal /testbench/interruptInstrCount
|
|
||||||
add wave -noupdate -group Testbench /testbench/interruptCauseVal
|
|
||||||
add wave -noupdate -group Testbench /testbench/interruptEpcVal
|
|
||||||
add wave -noupdate -group Testbench /testbench/interruptTVal
|
|
||||||
add wave -noupdate -group Testbench /testbench/interruptDesc
|
|
||||||
add wave -noupdate -expand -group HDU -expand -group hazards /testbench/dut/core/hzu/RetM
|
|
||||||
add wave -noupdate -expand -group HDU -expand -group hazards -color Pink /testbench/dut/core/hzu/TrapM
|
|
||||||
add wave -noupdate -expand -group HDU -expand -group hazards /testbench/dut/core/priv/priv/InterruptM
|
|
||||||
add wave -noupdate -expand -group HDU -expand -group hazards /testbench/dut/core/hzu/LoadStallD
|
|
||||||
add wave -noupdate -expand -group HDU -expand -group hazards /testbench/dut/core/hzu/LSUStallM
|
|
||||||
add wave -noupdate -expand -group HDU -expand -group hazards /testbench/dut/core/hzu/DivBusyE
|
|
||||||
add wave -noupdate -expand -group HDU -group traps /testbench/dut/core/priv/priv/trap/ExceptionM
|
|
||||||
add wave -noupdate -expand -group HDU -group traps /testbench/dut/core/priv/priv/trap/InstrMisalignedFaultM
|
|
||||||
add wave -noupdate -expand -group HDU -group traps /testbench/dut/core/priv/priv/trap/InstrAccessFaultM
|
|
||||||
add wave -noupdate -expand -group HDU -group traps /testbench/dut/core/priv/priv/trap/IllegalInstrFaultM
|
|
||||||
add wave -noupdate -expand -group HDU -group traps /testbench/dut/core/priv/priv/trap/LoadAccessFaultM
|
|
||||||
add wave -noupdate -expand -group HDU -group traps /testbench/dut/core/priv/priv/trap/StoreAmoMisalignedFaultM
|
|
||||||
add wave -noupdate -expand -group HDU -group traps /testbench/dut/core/priv/priv/trap/InstrPageFaultM
|
|
||||||
add wave -noupdate -expand -group HDU -group traps /testbench/dut/core/priv/priv/trap/LoadPageFaultM
|
|
||||||
add wave -noupdate -expand -group HDU -group traps /testbench/dut/core/priv/priv/trap/StoreAmoPageFaultM
|
|
||||||
add wave -noupdate -expand -group HDU -group traps /testbench/dut/core/priv/priv/trap/BreakpointFaultM
|
|
||||||
add wave -noupdate -expand -group HDU -group traps /testbench/dut/core/priv/priv/trap/EcallFaultM
|
|
||||||
add wave -noupdate -expand -group HDU -group traps /testbench/dut/core/priv/priv/trap/LoadMisalignedFaultM
|
|
||||||
add wave -noupdate -expand -group HDU -group traps /testbench/dut/core/priv/priv/trap/StoreAmoAccessFaultM
|
|
||||||
add wave -noupdate -expand -group HDU -expand -group Flush -color Yellow /testbench/dut/core/FlushD
|
|
||||||
add wave -noupdate -expand -group HDU -expand -group Flush -color Yellow /testbench/dut/core/FlushE
|
|
||||||
add wave -noupdate -expand -group HDU -expand -group Flush -color Yellow /testbench/dut/core/FlushM
|
|
||||||
add wave -noupdate -expand -group HDU -expand -group Flush -color Yellow /testbench/dut/core/FlushW
|
|
||||||
add wave -noupdate -expand -group HDU -group Stall -color Orange /testbench/dut/core/StallF
|
|
||||||
add wave -noupdate -expand -group HDU -group Stall -color Orange /testbench/dut/core/StallD
|
|
||||||
add wave -noupdate -expand -group HDU -group Stall -color Orange /testbench/dut/core/StallE
|
|
||||||
add wave -noupdate -expand -group HDU -group Stall -color Orange /testbench/dut/core/StallM
|
|
||||||
add wave -noupdate -expand -group HDU -group Stall -color Orange /testbench/dut/core/StallW
|
|
||||||
add wave -noupdate -group {instruction pipeline} /testbench/InstrFName
|
|
||||||
add wave -noupdate -group {instruction pipeline} /testbench/dut/core/ifu/InstrD
|
|
||||||
add wave -noupdate -group {instruction pipeline} /testbench/dut/core/ifu/InstrE
|
|
||||||
add wave -noupdate -group {instruction pipeline} /testbench/dut/core/ifu/InstrM
|
|
||||||
add wave -noupdate -group {Decode Stage} /testbench/dut/core/ifu/PCD
|
|
||||||
add wave -noupdate -group {Decode Stage} /testbench/dut/core/ifu/InstrD
|
|
||||||
add wave -noupdate -group {Decode Stage} /testbench/InstrDName
|
|
||||||
add wave -noupdate -group {Decode Stage} /testbench/dut/core/ieu/c/InstrValidD
|
|
||||||
add wave -noupdate -group {Decode Stage} /testbench/dut/core/ieu/c/RegWriteD
|
|
||||||
add wave -noupdate -group {Decode Stage} /testbench/dut/core/ieu/dp/RdD
|
|
||||||
add wave -noupdate -group {Decode Stage} /testbench/dut/core/ieu/dp/Rs1D
|
|
||||||
add wave -noupdate -group {Decode Stage} /testbench/dut/core/ieu/dp/Rs2D
|
|
||||||
add wave -noupdate -group {Execution Stage} /testbench/dut/core/ifu/PCE
|
|
||||||
add wave -noupdate -group {Execution Stage} /testbench/ExpectedPCE
|
|
||||||
add wave -noupdate -group {Execution Stage} /testbench/dut/core/ifu/InstrE
|
|
||||||
add wave -noupdate -group {Execution Stage} /testbench/InstrEName
|
|
||||||
add wave -noupdate -group {Execution Stage} /testbench/dut/core/ieu/c/InstrValidE
|
|
||||||
add wave -noupdate -group {Execution Stage} /testbench/textE
|
|
||||||
add wave -noupdate -group {Execution Stage} -color {Cornflower Blue} /testbench/FunctionName/FunctionName
|
|
||||||
add wave -noupdate -expand -group {Memory Stage} /testbench/checkInstrM
|
|
||||||
add wave -noupdate -expand -group {Memory Stage} /testbench/dut/core/PCM
|
|
||||||
add wave -noupdate -expand -group {Memory Stage} /testbench/ExpectedPCM
|
|
||||||
add wave -noupdate -expand -group {Memory Stage} /testbench/dut/core/InstrM
|
|
||||||
add wave -noupdate -expand -group {Memory Stage} /testbench/InstrMName
|
|
||||||
add wave -noupdate -expand -group {Memory Stage} /testbench/textM
|
|
||||||
add wave -noupdate -expand -group {Memory Stage} /testbench/dut/core/lsu/IEUAdrM
|
|
||||||
add wave -noupdate -group {WriteBack stage} /testbench/checkInstrW
|
|
||||||
add wave -noupdate -group {WriteBack stage} /testbench/InstrValidW
|
|
||||||
add wave -noupdate -group {WriteBack stage} /testbench/PCW
|
|
||||||
add wave -noupdate -group {WriteBack stage} /testbench/ExpectedPCW
|
|
||||||
add wave -noupdate -group {WriteBack stage} /testbench/InstrW
|
|
||||||
add wave -noupdate -group {WriteBack stage} /testbench/InstrWName
|
|
||||||
add wave -noupdate -group {WriteBack stage} /testbench/textW
|
|
||||||
add wave -noupdate -group Bpred -group {branch update selection inputs} -divider {class check}
|
|
||||||
add wave -noupdate -group Bpred -expand -group prediction /testbench/dut/core/ifu/bpred/bpred/Predictor/DirPredictor/PCNextF
|
|
||||||
add wave -noupdate -group Bpred -expand -group prediction /testbench/dut/core/ifu/bpred/bpred/RASPCF
|
|
||||||
add wave -noupdate -group Bpred -expand -group prediction -expand -group ex /testbench/dut/core/ifu/bpred/bpred/PCSrcE
|
|
||||||
add wave -noupdate -group Bpred -expand -group update -expand -group direction /testbench/dut/core/ifu/bpred/bpred/Predictor/DirPredictor/PCE
|
|
||||||
add wave -noupdate -group PCS /testbench/dut/core/ifu/PCNextF
|
|
||||||
add wave -noupdate -group PCS /testbench/dut/core/ifu/PCD
|
|
||||||
add wave -noupdate -group PCS /testbench/dut/core/PCE
|
|
||||||
add wave -noupdate -group PCS /testbench/dut/core/PCM
|
|
||||||
add wave -noupdate -group PCS /testbench/PCW
|
|
||||||
add wave -noupdate -group {PCNext Generation} /testbench/dut/core/ifu/PCNextF
|
|
||||||
add wave -noupdate -group {PCNext Generation} /testbench/dut/core/ifu/PCF
|
|
||||||
add wave -noupdate -group {PCNext Generation} /testbench/dut/core/ifu/PCPlus2or4F
|
|
||||||
add wave -noupdate -group RegFile -expand /testbench/dut/core/ieu/dp/regf/rf
|
|
||||||
add wave -noupdate -group RegFile /testbench/dut/core/ieu/dp/regf/a1
|
|
||||||
add wave -noupdate -group RegFile /testbench/dut/core/ieu/dp/regf/a2
|
|
||||||
add wave -noupdate -group RegFile /testbench/dut/core/ieu/dp/regf/a3
|
|
||||||
add wave -noupdate -group RegFile /testbench/dut/core/ieu/dp/regf/rd1
|
|
||||||
add wave -noupdate -group RegFile /testbench/dut/core/ieu/dp/regf/rd2
|
|
||||||
add wave -noupdate -group RegFile /testbench/dut/core/ieu/dp/regf/we3
|
|
||||||
add wave -noupdate -group RegFile /testbench/dut/core/ieu/dp/regf/wd3
|
|
||||||
add wave -noupdate -group RegFile -group {write regfile mux} /testbench/dut/core/ieu/dp/ReadDataW
|
|
||||||
add wave -noupdate -group RegFile -group {write regfile mux} /testbench/dut/core/ieu/dp/CSRReadValW
|
|
||||||
add wave -noupdate -group RegFile -group {write regfile mux} /testbench/dut/core/ieu/dp/ResultSrcW
|
|
||||||
add wave -noupdate -group RegFile -group {write regfile mux} /testbench/dut/core/ieu/dp/ResultW
|
|
||||||
add wave -noupdate -group alu /testbench/dut/core/ieu/dp/alu/A
|
|
||||||
add wave -noupdate -group alu /testbench/dut/core/ieu/dp/alu/B
|
|
||||||
add wave -noupdate -group alu -divider internals
|
|
||||||
add wave -noupdate -group Forward /testbench/dut/core/ieu/fw/Rs1D
|
|
||||||
add wave -noupdate -group Forward /testbench/dut/core/ieu/fw/Rs2D
|
|
||||||
add wave -noupdate -group Forward /testbench/dut/core/ieu/fw/Rs1E
|
|
||||||
add wave -noupdate -group Forward /testbench/dut/core/ieu/fw/Rs2E
|
|
||||||
add wave -noupdate -group Forward /testbench/dut/core/ieu/fw/RdE
|
|
||||||
add wave -noupdate -group Forward /testbench/dut/core/ieu/fw/RdM
|
|
||||||
add wave -noupdate -group Forward /testbench/dut/core/ieu/fw/RdW
|
|
||||||
add wave -noupdate -group Forward /testbench/dut/core/ieu/fw/MemReadE
|
|
||||||
add wave -noupdate -group Forward /testbench/dut/core/ieu/fw/RegWriteM
|
|
||||||
add wave -noupdate -group Forward /testbench/dut/core/ieu/fw/RegWriteW
|
|
||||||
add wave -noupdate -group Forward -color Thistle /testbench/dut/core/ieu/fw/ForwardAE
|
|
||||||
add wave -noupdate -group Forward -color Thistle /testbench/dut/core/ieu/fw/ForwardBE
|
|
||||||
add wave -noupdate -group Forward -color Thistle /testbench/dut/core/ieu/fw/LoadStallD
|
|
||||||
add wave -noupdate -group {alu execution stage} /testbench/dut/core/ieu/dp/ALUResultE
|
|
||||||
add wave -noupdate -group {alu execution stage} /testbench/dut/core/ieu/dp/SrcAE
|
|
||||||
add wave -noupdate -group {alu execution stage} /testbench/dut/core/ieu/dp/SrcBE
|
|
||||||
add wave -noupdate -group ifu -expand -group icache -color Gold /testbench/dut/core/ifu/bus/icache/icache/cachefsm/CurrState
|
|
||||||
add wave -noupdate -group ifu -expand -group icache /testbench/dut/core/ifu/ITLBMissF
|
|
||||||
add wave -noupdate -group ifu -expand -group icache /testbench/dut/core/ifu/bus/icache/icache/SelAdr
|
|
||||||
add wave -noupdate -group ifu -expand -group icache /testbench/dut/core/ifu/PCNextF
|
|
||||||
add wave -noupdate -group ifu -expand -group icache /testbench/dut/core/ifu/PCPF
|
|
||||||
add wave -noupdate -group ifu -expand -group icache -expand -group {fsm out and control} /testbench/dut/core/ifu/bus/icache/icache/HitWay
|
|
||||||
add wave -noupdate -group ifu -expand -group icache -expand -group {fsm out and control} /testbench/dut/core/ifu/ICacheStallF
|
|
||||||
add wave -noupdate -group ifu -expand -group icache -expand -group memory /testbench/dut/core/ifu/bus/icache/icache/CacheBusAdr
|
|
||||||
add wave -noupdate -group ifu -expand -group icache -expand -group memory /testbench/dut/core/ifu/bus/icache/icache/cachefsm/CacheBusAck
|
|
||||||
add wave -noupdate -group ifu -expand -group itlb /testbench/dut/core/ifu/immu/immu/TLBWrite
|
|
||||||
add wave -noupdate -group ifu -expand -group itlb /testbench/dut/core/ifu/ITLBMissF
|
|
||||||
add wave -noupdate -group ifu -expand -group itlb /testbench/dut/core/ifu/immu/immu/PhysicalAddress
|
|
||||||
add wave -noupdate -group lsu /testbench/dut/core/lsu/IEUAdrM
|
|
||||||
add wave -noupdate -group lsu /testbench/dut/core/lsu/PAdrM
|
|
||||||
add wave -noupdate -group lsu /testbench/dut/core/lsu/SelHPTW
|
|
||||||
add wave -noupdate -group lsu /testbench/dut/core/lsu/LSUStallM
|
|
||||||
add wave -noupdate -group lsu /testbench/dut/core/lsu/ReadDataWordMuxM
|
|
||||||
add wave -noupdate -group lsu /testbench/dut/core/lsu/ReadDataM
|
|
||||||
add wave -noupdate -group lsu /testbench/dut/core/lsu/WriteDataM
|
|
||||||
add wave -noupdate -group lsu -group bus /testbench/dut/core/lsu/BusStall
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -color Gold /testbench/dut/core/lsu/bus/dcache/dcache/cachefsm/CurrState
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache /testbench/dut/core/lsu/bus/dcache/dcache/HitWay
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache /testbench/dut/core/lsu/bus/dcache/dcache/SetValid
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache /testbench/dut/core/lsu/bus/dcache/dcache/SetDirty
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache /testbench/dut/core/lsu/bus/dcache/dcache/SelAdr
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache /testbench/dut/core/lsu/IEUAdrE
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache /testbench/dut/core/lsu/IEUAdrM
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[0]/ClearDirtyWay}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[0]/Dirty}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -expand -group flush /testbench/dut/core/lsu/bus/dcache/dcache/NextFlushAdr
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -expand -group flush -radix hexadecimal /testbench/dut/core/lsu/bus/dcache/dcache/FlushAdr
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -expand -group flush /testbench/dut/core/lsu/bus/dcache/dcache/LineDirty
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -expand -group flush /testbench/dut/core/lsu/bus/dcache/dcache/FlushWay
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -expand -group flush /testbench/dut/core/lsu/bus/dcache/dcache/FlushWay
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -expand -group flush /testbench/dut/core/lsu/bus/dcache/dcache/SetDirty
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -expand -group flush /testbench/dut/core/lsu/bus/dcache/dcache/ClearDirty
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -expand -group flush /testbench/dut/core/lsu/bus/dcache/dcache/CacheBusAdr
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -expand -group flush /testbench/dut/core/lsu/CacheableM
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} /testbench/dut/core/lsu/bus/dcache/dcache/ClearDirty
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way0 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[0]/SelectedWriteWordEn}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way0 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[0]/SetValidWay}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way0 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[0]/SetDirtyWay}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way0 -label TAG {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[0]/CacheTagMem/RAM}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way0 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[0]/DirtyBits}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way0 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[0]/ValidBits}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way0 -expand -group Way0Word0 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[0]/word[0]/CacheDataMem/RAM}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way0 -expand -group Way0Word1 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[0]/word[1]/CacheDataMem/RAM}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way0 -expand -group Way0Word2 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[0]/word[2]/CacheDataMem/RAM}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way0 -expand -group Way0Word3 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[0]/word[3]/CacheDataMem/RAM}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way1 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[1]/SelectedWriteWordEn}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way1 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[1]/SetValidWay}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way1 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[1]/SetDirtyWay}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way1 -label TAG {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[1]/CacheTagMem/RAM}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way1 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[1]/DirtyBits}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way1 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[1]/ValidBits}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way1 -expand -group Way1Word0 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[1]/word[0]/CacheDataMem/RAM}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way1 -expand -group Way1Word1 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[1]/word[1]/CacheDataMem/RAM}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way1 -expand -group Way1Word2 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[1]/word[2]/CacheDataMem/RAM}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way1 -expand -group Way1Word3 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[1]/word[3]/CacheDataMem/RAM}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way2 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[2]/SelectedWriteWordEn}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way2 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[2]/SetValidWay}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way2 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[2]/SetDirtyWay}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way2 -label TAG {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[2]/CacheTagMem/RAM}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way2 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[2]/DirtyBits}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way2 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[2]/ValidBits}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way2 -expand -group Way2Word0 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[2]/word[0]/CacheDataMem/RAM}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way2 -expand -group Way2Word1 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[2]/word[1]/CacheDataMem/RAM}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way2 -expand -group Way2Word2 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[2]/word[2]/CacheDataMem/RAM}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group way2 -expand -group Way2Word3 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[2]/word[3]/CacheDataMem/RAM}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -expand -group way3 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[3]/SelectedWriteWordEn}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -expand -group way3 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[3]/SetValidWay}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -expand -group way3 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[3]/CacheTagMem/RAM[2]}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -expand -group way3 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[3]/ValidBits[2]}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -expand -group way3 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[3]/DirtyBits[2]}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -expand -group way3 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[3]/SetDirtyWay}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -expand -group way3 -label TAG {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[3]/CacheTagMem/RAM}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -expand -group way3 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[3]/DirtyBits}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -expand -group way3 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[3]/ValidBits}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -expand -group way3 -expand -group Way3Word0 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[3]/word[0]/CacheDataMem/RAM}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -expand -group way3 -expand -group Way3Word0 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[3]/word[0]/CacheDataMem/RAM}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -expand -group way3 -expand -group Way3Word1 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[3]/word[1]/CacheDataMem/RAM}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -expand -group way3 -expand -group Way3Word1 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[3]/word[1]/CacheDataMem/RAM}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -expand -group way3 -expand -group Way3Word2 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[3]/word[2]/CacheDataMem/RAM}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -expand -group way3 -expand -group Way3Word2 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[3]/word[2]/CacheDataMem/RAM}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -expand -group way3 -expand -group Way3Word3 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[3]/word[3]/CacheDataMem/RAM}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -expand -group way3 -expand -group Way3Word3 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[3]/word[3]/CacheDataMem/RAM}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group valid/dirty /testbench/dut/core/lsu/bus/dcache/dcache/SetValid
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group valid/dirty /testbench/dut/core/lsu/bus/dcache/dcache/ClearValid
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group valid/dirty /testbench/dut/core/lsu/bus/dcache/dcache/SetDirty
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM writes} -group valid/dirty /testbench/dut/core/lsu/bus/dcache/dcache/ClearDirty
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM read} -group way0 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[0]/HitWay}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM read} -group way0 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[0]/Dirty}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM read} -group way0 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[0]/ReadTag}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM read} -group way1 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[1]/HitWay}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM read} -group way1 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[1]/Dirty}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM read} -group way1 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[1]/ReadTag}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM read} -group way2 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[2]/HitWay}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM read} -group way2 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[2]/Dirty}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM read} -group way2 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[2]/ReadTag}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM read} -expand -group way3 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[3]/HitWay}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM read} -expand -group way3 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[3]/Dirty}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM read} -expand -group way3 {/testbench/dut/core/lsu/bus/dcache/dcache/CacheWays[3]/ReadTag}
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group {Cache SRAM read} /testbench/dut/core/lsu/bus/dcache/dcache/HitWay
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -expand -group Victim /testbench/dut/core/lsu/bus/dcache/dcache/VictimWay
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -expand -group {CPU side} /testbench/dut/core/lsu/bus/dcache/dcache/PAdr
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -expand -group {CPU side} /testbench/dut/core/lsu/bus/dcache/dcache/FlushCache
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -expand -group {CPU side} /testbench/dut/core/lsu/bus/dcache/dcache/CacheStall
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -expand -group {CPU side} /testbench/dut/core/lsu/ReadDataWordM
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group status /testbench/dut/core/lsu/bus/dcache/dcache/HitWay
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -group status -color {Medium Orchid} /testbench/dut/core/lsu/bus/dcache/dcache/CacheHit
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache -expand -group {Memory Side} /testbench/dut/core/lsu/bus/dcache/dcache/CacheBusAck
|
|
||||||
add wave -noupdate -group lsu -expand -group dcache /testbench/dut/core/lsu/bus/dcache/dcache/FlushWay
|
|
||||||
add wave -noupdate -group lsu -group dtlb /testbench/dut/core/lsu/dmmu/dmmu/tlb/tlb/VAdr
|
|
||||||
add wave -noupdate -group lsu -group dtlb /testbench/dut/core/lsu/dmmu/dmmu/tlb/tlb/tlbcontrol/EffectivePrivilegeMode
|
|
||||||
add wave -noupdate -group lsu -group dtlb /testbench/dut/core/lsu/dmmu/dmmu/tlb/tlb/PTE
|
|
||||||
add wave -noupdate -group lsu -group dtlb /testbench/dut/core/lsu/dmmu/dmmu/tlb/tlb/HitPageType
|
|
||||||
add wave -noupdate -group lsu -group dtlb /testbench/dut/core/lsu/dmmu/dmmu/tlb/tlb/tlbcontrol/Translate
|
|
||||||
add wave -noupdate -group lsu -group dtlb /testbench/dut/core/lsu/dmmu/dmmu/tlb/tlb/tlbcontrol/DisableTranslation
|
|
||||||
add wave -noupdate -group lsu -group dtlb /testbench/dut/core/lsu/dmmu/dmmu/TLBMiss
|
|
||||||
add wave -noupdate -group lsu -group dtlb /testbench/dut/core/lsu/dmmu/dmmu/TLBHit
|
|
||||||
add wave -noupdate -group lsu -group dtlb /testbench/dut/core/lsu/dmmu/dmmu/PhysicalAddress
|
|
||||||
add wave -noupdate -group lsu -group dtlb -expand -group Status /testbench/dut/core/lsu/dmmu/dmmu/tlb/tlb/tlbcontrol/PTE_D
|
|
||||||
add wave -noupdate -group lsu -group dtlb -expand -group Status /testbench/dut/core/lsu/dmmu/dmmu/tlb/tlb/tlbcontrol/PTE_A
|
|
||||||
add wave -noupdate -group lsu -group dtlb -expand -group Status /testbench/dut/core/lsu/dmmu/dmmu/tlb/tlb/tlbcontrol/PTE_U
|
|
||||||
add wave -noupdate -group lsu -group dtlb -expand -group Status /testbench/dut/core/lsu/dmmu/dmmu/tlb/tlb/tlbcontrol/PTE_X
|
|
||||||
add wave -noupdate -group lsu -group dtlb -expand -group Status /testbench/dut/core/lsu/dmmu/dmmu/tlb/tlb/tlbcontrol/PTE_W
|
|
||||||
add wave -noupdate -group lsu -group dtlb -expand -group Status /testbench/dut/core/lsu/dmmu/dmmu/tlb/tlb/tlbcontrol/PTE_R
|
|
||||||
add wave -noupdate -group lsu -group dtlb -expand -group Status /testbench/dut/core/lsu/dmmu/dmmu/tlb/tlb/tlbcontrol/PTE_V
|
|
||||||
add wave -noupdate -group lsu -group dtlb -expand -group Status /testbench/dut/core/lsu/dmmu/dmmu/tlb/tlb/tlbcontrol/ImproperPrivilege
|
|
||||||
add wave -noupdate -group lsu -group dtlb -expand -group Status /testbench/dut/core/lsu/dmmu/dmmu/tlb/tlb/tlbcontrol/Misaligned
|
|
||||||
add wave -noupdate -group lsu -group dtlb -expand -group Status /testbench/dut/core/lsu/dmmu/dmmu/tlb/tlb/tlbcontrol/dtlb/InvalidRead
|
|
||||||
add wave -noupdate -group lsu -group dtlb -expand -group Status /testbench/dut/core/lsu/dmmu/dmmu/tlb/tlb/tlbcontrol/dtlb/InvalidWrite
|
|
||||||
add wave -noupdate -group lsu -group dtlb -group faults /testbench/dut/core/lsu/dmmu/dmmu/TLBPageFault
|
|
||||||
add wave -noupdate -group lsu -group dtlb -group faults /testbench/dut/core/lsu/dmmu/dmmu/LoadAccessFaultM
|
|
||||||
add wave -noupdate -group lsu -group dtlb -group faults /testbench/dut/core/lsu/dmmu/dmmu/StoreAmoAccessFaultM
|
|
||||||
add wave -noupdate -group lsu -group dtlb /testbench/dut/core/lsu/dmmu/dmmu/tlb/tlb/TLBPAdr
|
|
||||||
add wave -noupdate -group lsu -group dtlb -group write /testbench/dut/core/lsu/dmmu/dmmu/tlb/tlb/PTE
|
|
||||||
add wave -noupdate -group lsu -group dtlb -group write /testbench/dut/core/lsu/dmmu/dmmu/tlb/tlb/PageTypeWriteVal
|
|
||||||
add wave -noupdate -group lsu -group dtlb -group write /testbench/dut/core/lsu/dmmu/dmmu/tlb/tlb/TLBWrite
|
|
||||||
add wave -noupdate -group lsu -group pma /testbench/dut/core/lsu/dmmu/dmmu/pmachecker/PhysicalAddress
|
|
||||||
add wave -noupdate -group lsu -group pma /testbench/dut/core/lsu/dmmu/dmmu/pmachecker/SelRegions
|
|
||||||
add wave -noupdate -group lsu -group pma /testbench/dut/core/lsu/dmmu/dmmu/Cacheable
|
|
||||||
add wave -noupdate -group lsu -group pma /testbench/dut/core/lsu/dmmu/dmmu/Idempotent
|
|
||||||
add wave -noupdate -group lsu -group pma /testbench/dut/core/lsu/dmmu/dmmu/pmachecker/PMAAccessFault
|
|
||||||
add wave -noupdate -group lsu -group pma /testbench/dut/core/lsu/dmmu/dmmu/PMAInstrAccessFaultF
|
|
||||||
add wave -noupdate -group lsu -group pma /testbench/dut/core/lsu/dmmu/dmmu/PMALoadAccessFaultM
|
|
||||||
add wave -noupdate -group lsu -group pma /testbench/dut/core/lsu/dmmu/dmmu/PMAStoreAmoAccessFaultM
|
|
||||||
add wave -noupdate -group lsu -group pmp /testbench/dut/core/lsu/dmmu/dmmu/PMPInstrAccessFaultF
|
|
||||||
add wave -noupdate -group lsu -group pmp /testbench/dut/core/lsu/dmmu/dmmu/PMPLoadAccessFaultM
|
|
||||||
add wave -noupdate -group lsu -group pmp /testbench/dut/core/lsu/dmmu/dmmu/PMPStoreAmoAccessFaultM
|
|
||||||
add wave -noupdate -group AHB /testbench/dut/core/ebu/ebu/HCLK
|
|
||||||
add wave -noupdate -group AHB /testbench/dut/core/ebu/ebu/HRESETn
|
|
||||||
add wave -noupdate -group AHB /testbench/dut/core/ebu/ebu/HREADY
|
|
||||||
add wave -noupdate -group AHB /testbench/dut/core/ebu/ebu/HRESP
|
|
||||||
add wave -noupdate -group AHB /testbench/dut/core/ebu/ebu/HADDR
|
|
||||||
add wave -noupdate -group AHB /testbench/dut/core/ebu/ebu/HWDATA
|
|
||||||
add wave -noupdate -group AHB /testbench/dut/core/ebu/ebu/HWRITE
|
|
||||||
add wave -noupdate -group AHB /testbench/dut/core/ebu/ebu/HSIZE
|
|
||||||
add wave -noupdate -group AHB /testbench/dut/core/ebu/ebu/HBURST
|
|
||||||
add wave -noupdate -group AHB /testbench/dut/core/ebu/ebu/HPROT
|
|
||||||
add wave -noupdate -group AHB /testbench/dut/core/ebu/ebu/HTRANS
|
|
||||||
add wave -noupdate -group AHB /testbench/dut/core/ebu/ebu/HMASTLOCK
|
|
||||||
add wave -noupdate -group itlb /testbench/dut/core/ifu/immu/immu/TLBWrite
|
|
||||||
add wave -noupdate -group itlb /testbench/dut/core/ifu/ITLBMissF
|
|
||||||
add wave -noupdate -group itlb /testbench/dut/core/ifu/immu/immu/PhysicalAddress
|
|
||||||
add wave -noupdate -group itlb /testbench/dut/core/ifu/immu/immu/PMAInstrAccessFaultF
|
|
||||||
add wave -noupdate -group plic /testbench/dut/uncore/uncore/plic/plic/UARTIntr
|
|
||||||
add wave -noupdate -group plic /testbench/dut/uncore/uncore/plic/plic/GPIOIntr
|
|
||||||
add wave -noupdate -group GPIO /testbench/dut/uncore/uncore/gpio/gpio/GPIOIntr
|
|
||||||
add wave -noupdate -group CLINT /testbench/dut/uncore/uncore/clint/clint/MTIME
|
|
||||||
add wave -noupdate -group CLINT /testbench/dut/uncore/uncore/clint/clint/MTIMECMP
|
|
||||||
add wave -noupdate -group uart /testbench/dut/uncore/uncore/uart/uart/SIN
|
|
||||||
add wave -noupdate -group uart /testbench/dut/uncore/uncore/uart/uart/DSRb
|
|
||||||
add wave -noupdate -group uart /testbench/dut/uncore/uncore/uart/uart/DCDb
|
|
||||||
add wave -noupdate -group uart /testbench/dut/uncore/uncore/uart/uart/CTSb
|
|
||||||
add wave -noupdate -group uart /testbench/dut/uncore/uncore/uart/uart/RIb
|
|
||||||
add wave -noupdate -group uart -expand -group outputs /testbench/dut/uncore/uncore/uart/uart/SOUT
|
|
||||||
add wave -noupdate -group uart -expand -group outputs /testbench/dut/uncore/uncore/uart/uart/RTSb
|
|
||||||
add wave -noupdate -group uart -expand -group outputs /testbench/dut/uncore/uncore/uart/uart/DTRb
|
|
||||||
add wave -noupdate -group uart -expand -group outputs /testbench/dut/uncore/uncore/uart/uart/OUT1b
|
|
||||||
add wave -noupdate -group uart -expand -group outputs /testbench/dut/uncore/uncore/uart/uart/OUT2b
|
|
||||||
add wave -noupdate -group uart -expand -group outputs /testbench/dut/uncore/uncore/uart/uart/INTR
|
|
||||||
add wave -noupdate -group uart -expand -group outputs /testbench/dut/uncore/uncore/uart/uart/TXRDYb
|
|
||||||
add wave -noupdate -group uart -expand -group outputs /testbench/dut/uncore/uncore/uart/uart/RXRDYb
|
|
||||||
add wave -noupdate -group {debug trace} -expand -group mem -color Yellow /testbench/dut/core/FlushW
|
|
||||||
add wave -noupdate -group {debug trace} -expand -group mem /testbench/checkInstrM
|
|
||||||
add wave -noupdate -group {debug trace} -expand -group mem /testbench/dut/core/PCM
|
|
||||||
add wave -noupdate -group {debug trace} -expand -group mem /testbench/ExpectedPCM
|
|
||||||
add wave -noupdate -group {debug trace} -expand -group mem /testbench/textM
|
|
||||||
add wave -noupdate -group {debug trace} -expand -group mem -color Brown /testbench/dut/core/hzu/TrapM
|
|
||||||
add wave -noupdate -group {debug trace} -expand -group wb /testbench/checkInstrW
|
|
||||||
add wave -noupdate -group {debug trace} -expand -group wb /testbench/PCW
|
|
||||||
add wave -noupdate -group {debug trace} -expand -group wb /testbench/ExpectedPCW
|
|
||||||
add wave -noupdate -group {debug trace} -expand -group wb /testbench/TrapW
|
|
||||||
add wave -noupdate -group {debug trace} -expand -group wb /testbench/textW
|
|
||||||
add wave -noupdate -group {Performance Counters} -label MCYCLE -radix unsigned {/testbench/dut/core/priv/priv/csr/counters/counters/HPMCOUNTER_REGW[0]}
|
|
||||||
add wave -noupdate -group {Performance Counters} -label MINSTRET -radix unsigned {/testbench/dut/core/priv/priv/csr/counters/counters/HPMCOUNTER_REGW[2]}
|
|
||||||
add wave -noupdate -group {Performance Counters} -label {LOAD STORE HAZARD} -radix unsigned {/testbench/dut/core/priv/priv/csr/counters/counters/HPMCOUNTER_REGW[3]}
|
|
||||||
add wave -noupdate -group {Performance Counters} -expand -group BRP -label {BP DIRECTION WRONG} -radix unsigned {/testbench/dut/core/priv/priv/csr/counters/counters/HPMCOUNTER_REGW[4]}
|
|
||||||
add wave -noupdate -group {Performance Counters} -expand -group BRP -label {BP INSTRUCTION} -radix unsigned {/testbench/dut/core/priv/priv/csr/counters/counters/HPMCOUNTER_REGW[5]}
|
|
||||||
add wave -noupdate -group {Performance Counters} -expand -group BRP -label {BTA/JTA WRONG} -radix unsigned {/testbench/dut/core/priv/priv/csr/counters/counters/HPMCOUNTER_REGW[6]}
|
|
||||||
add wave -noupdate -group {Performance Counters} -expand -group BRP -label {JAL(R) INSTRUCTION} -radix unsigned {/testbench/dut/core/priv/priv/csr/counters/counters/HPMCOUNTER_REGW[7]}
|
|
||||||
add wave -noupdate -group {Performance Counters} -expand -group BRP -label {RAS WRONG} -radix unsigned {/testbench/dut/core/priv/priv/csr/counters/counters/HPMCOUNTER_REGW[8]}
|
|
||||||
add wave -noupdate -group {Performance Counters} -expand -group BRP -label {RETURN INSTRUCTION} -radix unsigned {/testbench/dut/core/priv/priv/csr/counters/counters/HPMCOUNTER_REGW[9]}
|
|
||||||
add wave -noupdate -group {Performance Counters} -expand -group BRP -label {BP CLASS WRONG} -radix unsigned {/testbench/dut/core/priv/priv/csr/counters/counters/HPMCOUNTER_REGW[10]}
|
|
||||||
add wave -noupdate -group {Performance Counters} -expand -group ICACHE -label {ICACHE ACCESS} -radix unsigned {/testbench/dut/core/priv/priv/csr/counters/counters/HPMCOUNTER_REGW[13]}
|
|
||||||
add wave -noupdate -group {Performance Counters} -expand -group ICACHE -label {ICACHE MISS} -radix unsigned {/testbench/dut/core/priv/priv/csr/counters/counters/HPMCOUNTER_REGW[14]}
|
|
||||||
add wave -noupdate -group {Performance Counters} -expand -group DCACHE -label {DCACHE ACCESS} -radix unsigned {/testbench/dut/core/priv/priv/csr/counters/counters/HPMCOUNTER_REGW[11]}
|
|
||||||
add wave -noupdate -group {Performance Counters} -expand -group DCACHE -label {DCACHE MISS} -radix unsigned {/testbench/dut/core/priv/priv/csr/counters/counters/HPMCOUNTER_REGW[12]}
|
|
||||||
add wave -noupdate /testbench/dut/core/lsu/test
|
|
||||||
add wave -noupdate {/testbench/dut/core/lsu/LSUHTRANS[1]}
|
|
||||||
add wave -noupdate /testbench/dut/core/lsu/LSUHADDR
|
|
||||||
add wave -noupdate /testbench/dut/core/lsu/LSUHTRANS
|
|
||||||
add wave -noupdate /testbench/dut/core/lsu/HRDATA
|
|
||||||
add wave -noupdate /testbench/dut/core/lsu/LSUHWDATA
|
|
||||||
add wave -noupdate /testbench/dut/core/lsu/LSUHWRITE
|
|
||||||
add wave -noupdate /testbench/dut/core/lsu/bus/dcache/dcache/CacheBusAck
|
|
||||||
add wave -noupdate /testbench/dut/core/lsu/bus/dcache/dcache/ClearDirty
|
|
||||||
add wave -noupdate /testbench/dut/core/lsu/bus/dcache/dcache/ClearDirty
|
|
||||||
add wave -noupdate /testbench/dut/core/priv/priv/PrivilegeModeW
|
|
||||||
TreeUpdate [SetDefaultTree]
|
|
||||||
WaveRestoreCursors {{invalid oad data} {15916799 ns} 1} {{original store} {4919493 ns} 1} {{correct load data} {165196425 ns} 0} {{Cursor 4} {165662196 ns} 1} {{Cursor 5} {165196436 ns} 1}
|
|
||||||
quietly wave cursor active 3
|
|
||||||
configure wave -namecolwidth 250
|
|
||||||
configure wave -valuecolwidth 314
|
|
||||||
configure wave -justifyvalue left
|
|
||||||
configure wave -signalnamewidth 1
|
|
||||||
configure wave -snapdistance 10
|
|
||||||
configure wave -datasetprefix 0
|
|
||||||
configure wave -rowmargin 4
|
|
||||||
configure wave -childrowmargin 2
|
|
||||||
configure wave -gridoffset 0
|
|
||||||
configure wave -gridperiod 1
|
|
||||||
configure wave -griddelta 40
|
|
||||||
configure wave -timeline 0
|
|
||||||
configure wave -timelineunits ns
|
|
||||||
update
|
|
||||||
WaveRestoreZoom {165196205 ns} {165196487 ns}
|
|
2
sim/questa/coverage
Executable file
2
sim/questa/coverage
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
# recompile coverage tests and run coverage including them
|
||||||
|
pushd $WALLY/tests/coverage; make; popd; ./regression-wally -coverage
|
@ -28,6 +28,10 @@
|
|||||||
# This file should be a last resort. It's preferable to put
|
# This file should be a last resort. It's preferable to put
|
||||||
# // coverage off
|
# // coverage off
|
||||||
# statements inline with the code whenever possible.
|
# statements inline with the code whenever possible.
|
||||||
|
|
||||||
|
set WALLY $::env(WALLY)
|
||||||
|
set SRC ${WALLY}/src
|
||||||
|
|
||||||
# a hack to describe coverage exclusions without hardcoding linenumbers:
|
# a hack to describe coverage exclusions without hardcoding linenumbers:
|
||||||
do GetLineNum.do
|
do GetLineNum.do
|
||||||
|
|
||||||
@ -44,13 +48,13 @@ coverage exclude -scope /dut/core/fpu/fpu/fdivsqrt/fdivsqrtfsm -ftrans state DON
|
|||||||
# which won't happen while the divider is busy.
|
# which won't happen while the divider is busy.
|
||||||
coverage exclude -scope /dut/core/fpu/fpu/fdivsqrt/fdivsqrtfsm -ftrans state BUSY->IDLE
|
coverage exclude -scope /dut/core/fpu/fpu/fdivsqrt/fdivsqrtfsm -ftrans state BUSY->IDLE
|
||||||
# All Memory-stage stalls have resolved by time fdivsqrt finishes regular operation in this configuration, so can't test StallM
|
# All Memory-stage stalls have resolved by time fdivsqrt finishes regular operation in this configuration, so can't test StallM
|
||||||
coverage exclude -scope /dut/core/fpu/fpu/fdivsqrt/fdivsqrtfsm -linerange [GetLineNum ../src/fpu/fdivsqrt/fdivsqrtfsm.sv "exclusion-tag: fdivsqrtfsm stallm"] -item b 1
|
coverage exclude -scope /dut/core/fpu/fpu/fdivsqrt/fdivsqrtfsm -linerange [GetLineNum ${SRC}/fpu/fdivsqrt/fdivsqrtfsm.sv "exclusion-tag: fdivsqrtfsm stallm"] -item b 1
|
||||||
coverage exclude -scope /dut/core/fpu/fpu/fdivsqrt/fdivsqrtfsm -linerange [GetLineNum ../src/fpu/fdivsqrt/fdivsqrtfsm.sv "exclusion-tag: fdivsqrtfsm stallm"] -item s 1
|
coverage exclude -scope /dut/core/fpu/fpu/fdivsqrt/fdivsqrtfsm -linerange [GetLineNum ${SRC}/fpu/fdivsqrt/fdivsqrtfsm.sv "exclusion-tag: fdivsqrtfsm stallm"] -item s 1
|
||||||
# Division by zero never sets sticky/guard/overflow/round to cause inexact or underflow result, but check out of paranoia
|
# Division by zero never sets sticky/guard/overflow/round to cause inexact or underflow result, but check out of paranoia
|
||||||
coverage exclude -scope /dut/core/fpu/fpu/postprocess/flags -linerange [GetLineNum ../src/fpu/postproc/flags.sv "assign FpInexact"] -item e 1 -fecexprrow 15
|
coverage exclude -scope /dut/core/fpu/fpu/postprocess/flags -linerange [GetLineNum ${SRC}/fpu/postproc/flags.sv "assign FpInexact"] -item e 1 -fecexprrow 15
|
||||||
coverage exclude -scope /dut/core/fpu/fpu/postprocess/flags -linerange [GetLineNum ../src/fpu/postproc/flags.sv "assign Underflow"] -item e 1 -fecexprrow 22
|
coverage exclude -scope /dut/core/fpu/fpu/postprocess/flags -linerange [GetLineNum ${SRC}/fpu/postproc/flags.sv "assign Underflow"] -item e 1 -fecexprrow 22
|
||||||
# Convert int to fp will never underflow
|
# Convert int to fp will never underflow
|
||||||
coverage exclude -scope /dut/core/fpu/fpu/postprocess/cvtshiftcalc -linerange [GetLineNum ../src/fpu/postproc/cvtshiftcalc.sv "assign CvtResUf"] -item e 1 -fecexprrow 4
|
coverage exclude -scope /dut/core/fpu/fpu/postprocess/cvtshiftcalc -linerange [GetLineNum ${SRC}/fpu/postproc/cvtshiftcalc.sv "assign CvtResUf"] -item e 1 -fecexprrow 4
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# Cache Exclusions
|
# Cache Exclusions
|
||||||
@ -62,89 +66,89 @@ coverage exclude -scope /dut/core/fpu/fpu/postprocess/cvtshiftcalc -linerange [G
|
|||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -fstate CurrState STATE_FLUSH STATE_FLUSH_WRITEBACK STATE_FLUSH_WRITEBACK STATE_WRITEBACK
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -fstate CurrState STATE_FLUSH STATE_FLUSH_WRITEBACK STATE_FLUSH_WRITEBACK STATE_WRITEBACK
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -ftrans CurrState STATE_WRITE_LINE->STATE_READY STATE_FETCH->STATE_READY
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -ftrans CurrState STATE_WRITE_LINE->STATE_READY STATE_FETCH->STATE_READY
|
||||||
# exclude unused transitions from case statement. Unfortunately the whole branch needs to be excluded I think. Expression coverage should still work.
|
# exclude unused transitions from case statement. Unfortunately the whole branch needs to be excluded I think. Expression coverage should still work.
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ../src/cache/cachefsm.sv "exclusion-tag: icache state-case"] -item b 1
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ${SRC}/cache/cachefsm.sv "exclusion-tag: icache state-case"] -item b 1
|
||||||
# I$ does not flush
|
# I$ does not flush
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ../src/cache/cachefsm.sv "exclusion-tag: icache FlushCache"] -item e 1 -fecexprrow 2
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ${SRC}/cache/cachefsm.sv "exclusion-tag: icache FlushCache"] -item e 1 -fecexprrow 2
|
||||||
# exclude branch/condition coverage: LineDirty if statement
|
# exclude branch/condition coverage: LineDirty if statement
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ../src/cache/cachefsm.sv "exclusion-tag: icache FETCHStatement"] -item bc 1
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ${SRC}/cache/cachefsm.sv "exclusion-tag: icache FETCHStatement"] -item bc 1
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ../src/cache/cachefsm.sv "exclusion-tag: icache FLUSHStatement"] -item bs 1
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ${SRC}/cache/cachefsm.sv "exclusion-tag: icache FLUSHStatement"] -item bs 1
|
||||||
# exclude the unreachable logic
|
# exclude the unreachable logic
|
||||||
set start [GetLineNum ../src/cache/cachefsm.sv "exclusion-tag-start: icache case"]
|
set start [GetLineNum ${SRC}/cache/cachefsm.sv "exclusion-tag-start: icache case"]
|
||||||
set end [GetLineNum ../src/cache/cachefsm.sv "exclusion-tag-end: icache case"]
|
set end [GetLineNum ${SRC}/cache/cachefsm.sv "exclusion-tag-end: icache case"]
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange $start-$end
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange $start-$end
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ../src/cache/cachefsm.sv "exclusion-tag: icache WRITEBACKStatement"]
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ${SRC}/cache/cachefsm.sv "exclusion-tag: icache WRITEBACKStatement"]
|
||||||
# exclude Atomic Operation logic
|
# exclude Atomic Operation logic
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ../src/cache/cachefsm.sv "exclusion-tag: cache AnyMiss"] -item e 1 -fecexprrow 6
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ${SRC}/cache/cachefsm.sv "exclusion-tag: cache AnyMiss"] -item e 1 -fecexprrow 6
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ../src/cache/cachefsm.sv "exclusion-tag: icache storeAMO1"] -item e 1 -fecexprrow 2-4
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ${SRC}/cache/cachefsm.sv "exclusion-tag: icache storeAMO1"] -item e 1 -fecexprrow 2-4
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ../src/cache/cachefsm.sv "exclusion-tag: icache AnyUpdateHit"] -item e 1 -fecexprrow 2
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ${SRC}/cache/cachefsm.sv "exclusion-tag: icache AnyUpdateHit"] -item e 1 -fecexprrow 2
|
||||||
# cache write logic
|
# cache write logic
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ../src/cache/cachefsm.sv "exclusion-tag: icache CacheW"] -item e 1 -fecexprrow 4
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ${SRC}/cache/cachefsm.sv "exclusion-tag: icache CacheW"] -item e 1 -fecexprrow 4
|
||||||
# output signal logic
|
# output signal logic
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ../src/cache/cachefsm.sv "exclusion-tag: icache StallStates"] -item e 1 -fecexprrow 8 12 14
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ${SRC}/cache/cachefsm.sv "exclusion-tag: icache StallStates"] -item e 1 -fecexprrow 8 12 14
|
||||||
set start [GetLineNum ../src/cache/cachefsm.sv "exclusion-tag-start: icache flushdirtycontrols"]
|
set start [GetLineNum ${SRC}/cache/cachefsm.sv "exclusion-tag-start: icache flushdirtycontrols"]
|
||||||
set end [GetLineNum ../src/cache/cachefsm.sv "exclusion-tag-end: icache flushdirtycontrols"]
|
set end [GetLineNum ${SRC}/cache/cachefsm.sv "exclusion-tag-end: icache flushdirtycontrols"]
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange $start-$end
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange $start-$end
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ../src/cache/cachefsm.sv "exclusion-tag: icache CacheBusW"]
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ${SRC}/cache/cachefsm.sv "exclusion-tag: icache CacheBusW"]
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ../src/cache/cachefsm.sv "exclusion-tag: icache SelAdrCauses"] -item e 1 -fecexprrow 4 10
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ${SRC}/cache/cachefsm.sv "exclusion-tag: icache SelAdrCauses"] -item e 1 -fecexprrow 4 10
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ../src/cache/cachefsm.sv "exclusion-tag: icache SelAdrTag"] -item e 1 -fecexprrow 8
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ${SRC}/cache/cachefsm.sv "exclusion-tag: icache SelAdrTag"] -item e 1 -fecexprrow 8
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ../src/cache/cachefsm.sv "exclusion-tag: icache CacheBusRCauses"] -item e 1 -fecexprrow 1-2 12
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/cachefsm -linerange [GetLineNum ${SRC}/cache/cachefsm.sv "exclusion-tag: icache CacheBusRCauses"] -item e 1 -fecexprrow 1-2 12
|
||||||
|
|
||||||
# cache.sv AdrSelMuxData and AdrSelMuxTag and CacheBusAdrMux, excluding unhit Flush branch
|
# cache.sv AdrSelMuxData and AdrSelMuxTag and CacheBusAdrMux, excluding unhit Flush branch
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/AdrSelMuxData -linerange [GetLineNum ../src/generic/mux.sv "exclusion-tag: mux3"] -item b 1
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/AdrSelMuxData -linerange [GetLineNum ${SRC}/generic/mux.sv "exclusion-tag: mux3"] -item b 1
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/AdrSelMuxTag -linerange [GetLineNum ../src/generic/mux.sv "exclusion-tag: mux3"] -item b 1
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/AdrSelMuxTag -linerange [GetLineNum ${SRC}/generic/mux.sv "exclusion-tag: mux3"] -item b 1
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/CacheBusAdrMux -linerange [GetLineNum ../src/generic/mux.sv "exclusion-tag: mux3"] -item b 1 3
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/CacheBusAdrMux -linerange [GetLineNum ${SRC}/generic/mux.sv "exclusion-tag: mux3"] -item b 1 3
|
||||||
# CacheWay Dirty logic. -scope does not accept wildcards.
|
# CacheWay Dirty logic. -scope does not accept wildcards.
|
||||||
set numcacheways 4
|
set numcacheways 4
|
||||||
for {set i 0} {$i < $numcacheways} {incr i} {
|
for {set i 0} {$i < $numcacheways} {incr i} {
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/CacheWays[$i] -linerange [GetLineNum ../src/cache/cacheway.sv "exclusion-tag: icache SetDirtyWay"] -item e 1
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/CacheWays[$i] -linerange [GetLineNum ${SRC}/cache/cacheway.sv "exclusion-tag: icache SetDirtyWay"] -item e 1
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/CacheWays[$i] -linerange [GetLineNum ../src/cache/cacheway.sv "exclusion-tag: icache SelectedWiteWordEn"] -item e 1 -fecexprrow 4 6
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/CacheWays[$i] -linerange [GetLineNum ${SRC}/cache/cacheway.sv "exclusion-tag: icache SelectedWiteWordEn"] -item e 1 -fecexprrow 4 6
|
||||||
# below: flushD can't go high during an icache write b/c of pipeline stall
|
# below: flushD can't go high during an icache write b/c of pipeline stall
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/CacheWays[$i] -linerange [GetLineNum ../src/cache/cacheway.sv "exclusion-tag: cache SetValidEN"] -item e 1 -fecexprrow 4
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/CacheWays[$i] -linerange [GetLineNum ${SRC}/cache/cacheway.sv "exclusion-tag: cache SetValidEN"] -item e 1 -fecexprrow 4
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/CacheWays[$i] -linerange [GetLineNum ../src/cache/cacheway.sv "exclusion-tag: cache ClearValidEN"] -item e 1 -fecexprrow 4
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/CacheWays[$i] -linerange [GetLineNum ${SRC}/cache/cacheway.sv "exclusion-tag: cache ClearValidEN"] -item e 1 -fecexprrow 4
|
||||||
# No CMO to clear valid bits of I$
|
# No CMO to clear valid bits of I$
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/CacheWays[$i] -linerange [GetLineNum ../src/cache/cacheway.sv "// exclusion-tag: icache ClearValidBits"]
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/CacheWays[$i] -linerange [GetLineNum ${SRC}/cache/cacheway.sv "// exclusion-tag: icache ClearValidBits"]
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/CacheWays[$i] -linerange [GetLineNum ../src/cache/cacheway.sv "// exclusion-tag: icache ClearValidWay"] -item e 1
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/CacheWays[$i] -linerange [GetLineNum ${SRC}/cache/cacheway.sv "// exclusion-tag: icache ClearValidWay"] -item e 1
|
||||||
# No dirty ways in read-only I$
|
# No dirty ways in read-only I$
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/icache/CacheWays[$i] -linerange [GetLineNum ../src/cache/cacheway.sv "// exclusion-tag: icache DirtyWay"] -item e 1
|
coverage exclude -scope /dut/core/ifu/bus/icache/icache/CacheWays[$i] -linerange [GetLineNum ${SRC}/cache/cacheway.sv "// exclusion-tag: icache DirtyWay"] -item e 1
|
||||||
}
|
}
|
||||||
# I$ buscachefsm does not perform atomics or write/writeback; HREADY is always 1
|
# I$ buscachefsm does not perform atomics or write/writeback; HREADY is always 1
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm AtomicReadData"]
|
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm AtomicReadData"]
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm AtomicElse"] -item s 1
|
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm AtomicElse"] -item s 1
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm AtomicPhase"]
|
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm AtomicPhase"]
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm AtomicWait"] -item bs 1
|
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm AtomicWait"] -item bs 1
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm FetchWriteback"] -item b 2
|
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm FetchWriteback"] -item b 2
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm FetchWriteback"] -item s 1
|
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm FetchWriteback"] -item s 1
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm WritebackWriteback"]
|
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm WritebackWriteback"]
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm WritebackWriteback2"] -item bs 1
|
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm WritebackWriteback2"] -item bs 1
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm HREADY4"] -item bs 1
|
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm HREADY4"] -item bs 1
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm HREADY6"] -item bs 1
|
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm HREADY6"] -item bs 1
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm HREADYread"] -item c 1 -feccondrow 1
|
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm HREADYread"] -item c 1 -feccondrow 1
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm FetchWriteback"] -item c 1 -feccondrow 1,2,3,4,6
|
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm FetchWriteback"] -item c 1 -feccondrow 1,2,3,4,6
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm HREADY4"] -item c 1
|
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm HREADY4"] -item c 1
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm HREADY6"] -item c 1
|
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm HREADY6"] -item c 1
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ../src/ebu/buscachefsm.sv "assign HTRANS"] -item c 1 -feccondrow 5
|
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ${SRC}/ebu/buscachefsm.sv "assign HTRANS"] -item c 1 -feccondrow 5
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ../src/ebu/buscachefsm.sv "assign BeatCntEn"] -item e 1 -fecexprrow 4
|
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ${SRC}/ebu/buscachefsm.sv "assign BeatCntEn"] -item e 1 -fecexprrow 4
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ../src/ebu/buscachefsm.sv "assign CacheAccess"] -item e 1 -fecexprrow 4
|
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ${SRC}/ebu/buscachefsm.sv "assign CacheAccess"] -item e 1 -fecexprrow 4
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ../src/ebu/buscachefsm.sv "assign BusStall"] -item e 1 -fecexprrow 10,12,18
|
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ${SRC}/ebu/buscachefsm.sv "assign BusStall"] -item e 1 -fecexprrow 10,12,18
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ../src/ebu/buscachefsm.sv "assign CacheBusAck"] -item e 1 -fecexprrow 3
|
coverage exclude -scope /dut/core/ifu/bus/icache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ${SRC}/ebu/buscachefsm.sv "assign CacheBusAck"] -item e 1 -fecexprrow 3
|
||||||
|
|
||||||
## D$ Exclusions.
|
## D$ Exclusions.
|
||||||
# InvalidateCache is I$ only:
|
# InvalidateCache is I$ only:
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/dcache/cachefsm -linerange [GetLineNum ../src/cache/cachefsm.sv "exclusion-tag: dcache InvalidateCheck"] -item b 2
|
coverage exclude -scope /dut/core/lsu/bus/dcache/dcache/cachefsm -linerange [GetLineNum ${SRC}/cache/cachefsm.sv "exclusion-tag: dcache InvalidateCheck"] -item b 2
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/dcache/cachefsm -linerange [GetLineNum ../src/cache/cachefsm.sv "exclusion-tag: dcache InvalidateCheck"] -item s 1
|
coverage exclude -scope /dut/core/lsu/bus/dcache/dcache/cachefsm -linerange [GetLineNum ${SRC}/cache/cachefsm.sv "exclusion-tag: dcache InvalidateCheck"] -item s 1
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/dcache/cachefsm -linerange [GetLineNum ../src/cache/cachefsm.sv "exclusion-tag: dcache CacheEn"] -item e 1 -fecexprrow 12
|
coverage exclude -scope /dut/core/lsu/bus/dcache/dcache/cachefsm -linerange [GetLineNum ${SRC}/cache/cachefsm.sv "exclusion-tag: dcache CacheEn"] -item e 1 -fecexprrow 12
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/dcache/cachefsm -linerange [GetLineNum ../src/cache/cachefsm.sv "exclusion-tag: cache AnyMiss"] -item e 1 -fecexprrow 4
|
coverage exclude -scope /dut/core/lsu/bus/dcache/dcache/cachefsm -linerange [GetLineNum ${SRC}/cache/cachefsm.sv "exclusion-tag: cache AnyMiss"] -item e 1 -fecexprrow 4
|
||||||
set numcacheways 4
|
set numcacheways 4
|
||||||
for {set i 0} {$i < $numcacheways} {incr i} {
|
for {set i 0} {$i < $numcacheways} {incr i} {
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/dcache/CacheWays[$i] -linerange [GetLineNum ../src/cache/cacheway.sv "exclusion-tag: dcache invalidateway"] -item bes 1 -fecexprrow 4
|
coverage exclude -scope /dut/core/lsu/bus/dcache/dcache/CacheWays[$i] -linerange [GetLineNum ${SRC}/cache/cacheway.sv "exclusion-tag: dcache invalidateway"] -item bes 1 -fecexprrow 4
|
||||||
# InvalidateCacheDelay is always 0 for D$ because it is flushed, not invalidated
|
# InvalidateCacheDelay is always 0 for D$ because it is flushed, not invalidated
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/dcache/CacheWays[$i] -linerange [GetLineNum ../src/cache/cacheway.sv "exclusion-tag: dcache HitWay"] -item 3 1 -fecexprrow 2
|
coverage exclude -scope /dut/core/lsu/bus/dcache/dcache/CacheWays[$i] -linerange [GetLineNum ${SRC}/cache/cacheway.sv "exclusion-tag: dcache HitWay"] -item 3 1 -fecexprrow 2
|
||||||
|
|
||||||
# FlushStage=1 will never happen when SetValidWay=1 since a pipeline stall is asserted by the cache in the fetch stage, which happens before
|
# FlushStage=1 will never happen when SetValidWay=1 since a pipeline stall is asserted by the cache in the fetch stage, which happens before
|
||||||
# going into the WRITE_LINE state (and asserting SetValidWay). No TrapM can fire and since StallW is high, a stallM caused by WFIStallM would not cause a flushW.
|
# going into the WRITE_LINE state (and asserting SetValidWay). No TrapM can fire and since StallW is high, a stallM caused by WFIStallM would not cause a flushW.
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/dcache/CacheWays[$i] -linerange [GetLineNum ../src/cache/cacheway.sv "exclusion-tag: cache SetValidEN"] -item e 1 -fecexprrow 4
|
coverage exclude -scope /dut/core/lsu/bus/dcache/dcache/CacheWays[$i] -linerange [GetLineNum ${SRC}/cache/cacheway.sv "exclusion-tag: cache SetValidEN"] -item e 1 -fecexprrow 4
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/dcache/CacheWays[$i] -linerange [GetLineNum ../src/cache/cacheway.sv "exclusion-tag: cache ClearValidEN"] -item e 1 -fecexprrow 4
|
coverage exclude -scope /dut/core/lsu/bus/dcache/dcache/CacheWays[$i] -linerange [GetLineNum ${SRC}/cache/cacheway.sv "exclusion-tag: cache ClearValidEN"] -item e 1 -fecexprrow 4
|
||||||
# Not right; other ways can get flushed and dirtied simultaneously coverage exclude -scope /dut/core/lsu/bus/dcache/dcache/CacheWays[$i] -linerange [GetLineNum ../src/cache/cacheway.sv "exclusion-tag: cache UpdateDirty"] -item c 1 -feccondrow 6
|
# Not right; other ways can get flushed and dirtied simultaneously coverage exclude -scope /dut/core/lsu/bus/dcache/dcache/CacheWays[$i] -linerange [GetLineNum ${SRC}/cache/cacheway.sv "exclusion-tag: cache UpdateDirty"] -item c 1 -feccondrow 6
|
||||||
}
|
}
|
||||||
# D$ writeback, flush, write_line, or flush_writeback states can't be cancelled by a flush
|
# D$ writeback, flush, write_line, or flush_writeback states can't be cancelled by a flush
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/dcache/cachefsm -ftrans CurrState STATE_WRITEBACK->STATE_READY STATE_FLUSH->STATE_READY STATE_WRITE_LINE->STATE_READY STATE_FLUSH_WRITEBACK->STATE_READY
|
coverage exclude -scope /dut/core/lsu/bus/dcache/dcache/cachefsm -ftrans CurrState STATE_WRITEBACK->STATE_READY STATE_FLUSH->STATE_READY STATE_WRITE_LINE->STATE_READY STATE_FLUSH_WRITEBACK->STATE_READY
|
||||||
@ -164,16 +168,16 @@ coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker/adrdecs/ddr4dec
|
|||||||
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker/adrdecs/sdcdec
|
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker/adrdecs/sdcdec
|
||||||
|
|
||||||
# PMA Regions 1, 2, and 3 (dtim, irom, ddr4) are never used in the rv64gc configuration, so exclude coverage
|
# PMA Regions 1, 2, and 3 (dtim, irom, ddr4) are never used in the rv64gc configuration, so exclude coverage
|
||||||
set line [GetLineNum ../src/mmu/pmachecker.sv "exclusion-tag: unused-atomic"]
|
set line [GetLineNum ${SRC}/mmu/pmachecker.sv "exclusion-tag: unused-atomic"]
|
||||||
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 2,4
|
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 2,4
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 2,4
|
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 2,4
|
||||||
set line [GetLineNum ../src/mmu/pmachecker.sv "exclusion-tag: unused-tim"]
|
set line [GetLineNum ${SRC}/mmu/pmachecker.sv "exclusion-tag: unused-tim"]
|
||||||
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 2,4
|
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 2,4
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 2,4
|
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 2,4
|
||||||
set line [GetLineNum ../src/mmu/pmachecker.sv "exclusion-tag: unused-cachable"]
|
set line [GetLineNum ${SRC}/mmu/pmachecker.sv "exclusion-tag: unused-cachable"]
|
||||||
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 2
|
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 2
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 2
|
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 2
|
||||||
set line [GetLineNum ../src/mmu/pmachecker.sv "exclusion-tag: unused-idempotent"]
|
set line [GetLineNum ${SRC}/mmu/pmachecker.sv "exclusion-tag: unused-idempotent"]
|
||||||
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 2,4,6
|
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 2,4,6
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 2,4,6,8
|
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 2,4,6,8
|
||||||
|
|
||||||
@ -183,7 +187,7 @@ coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker/adrdecs/uncoreramdec
|
|||||||
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker/adrdecs/spidec
|
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker/adrdecs/spidec
|
||||||
|
|
||||||
# The following peripherals are always supported
|
# The following peripherals are always supported
|
||||||
set line [GetLineNum ../src/mmu/adrdec.sv "exclusion-tag: adrdecSel"]
|
set line [GetLineNum ${SRC}/mmu/adrdec.sv "exclusion-tag: adrdecSel"]
|
||||||
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker/adrdecs/bootromdec -linerange $line-$line -item e 1 -fecexprrow 3,7
|
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker/adrdecs/bootromdec -linerange $line-$line -item e 1 -fecexprrow 3,7
|
||||||
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker/adrdecs/gpiodec -linerange $line-$line -item e 1 -fecexprrow 3
|
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker/adrdecs/gpiodec -linerange $line-$line -item e 1 -fecexprrow 3
|
||||||
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker/adrdecs/uartdec -linerange $line-$line -item e 1 -fecexprrow 3
|
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker/adrdecs/uartdec -linerange $line-$line -item e 1 -fecexprrow 3
|
||||||
@ -191,104 +195,104 @@ coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker/adrdecs/plicdec -line
|
|||||||
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker/adrdecs/spidec -linerange $line-$line -item e 1 -fecexprrow 3
|
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker/adrdecs/spidec -linerange $line-$line -item e 1 -fecexprrow 3
|
||||||
|
|
||||||
#Excluding signals in lsu: clintdec and uncoreram accept all sizes so 'SizeValid' will never be 0
|
#Excluding signals in lsu: clintdec and uncoreram accept all sizes so 'SizeValid' will never be 0
|
||||||
set line [GetLineNum ../src/mmu/adrdec.sv "& SizeValid"]
|
set line [GetLineNum ${SRC}/mmu/adrdec.sv "& SizeValid"]
|
||||||
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker/adrdecs/clintdec -linerange $line-$line -item e 1 -fecexprrow 5
|
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker/adrdecs/clintdec -linerange $line-$line -item e 1 -fecexprrow 5
|
||||||
set line [GetLineNum ../src/mmu/adrdec.sv "& SizeValid"]
|
set line [GetLineNum ${SRC}/mmu/adrdec.sv "& SizeValid"]
|
||||||
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker/adrdecs/uncoreramdec -linerange $line-$line -item e 1 -fecexprrow 5
|
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker/adrdecs/uncoreramdec -linerange $line-$line -item e 1 -fecexprrow 5
|
||||||
|
|
||||||
# set line [GetLineNum ../src/mmu/adrdec.sv "& Supported"]
|
# set line [GetLineNum ${SRC}/mmu/adrdec.sv "& Supported"]
|
||||||
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker/adrdecs/dtimdec
|
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker/adrdecs/dtimdec
|
||||||
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker/adrdecs/iromdec
|
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker/adrdecs/iromdec
|
||||||
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker/adrdecs/ddr4dec
|
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker/adrdecs/ddr4dec
|
||||||
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker/adrdecs/sdcdec
|
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker/adrdecs/sdcdec
|
||||||
|
|
||||||
# No DTIM or IROM
|
# No DTIM or IROM
|
||||||
coverage exclude -scope /dut/core/ifu/bus/icache/UnCachedDataMux -linerange [GetLineNum ../src/generic/mux.sv "exclusion-tag: mux3"] -item b 1
|
coverage exclude -scope /dut/core/ifu/bus/icache/UnCachedDataMux -linerange [GetLineNum ${SRC}/generic/mux.sv "exclusion-tag: mux3"] -item b 1
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/UnCachedDataMux -linerange [GetLineNum ../src/generic/mux.sv "exclusion-tag: mux3"] -item b 1
|
coverage exclude -scope /dut/core/lsu/bus/dcache/UnCachedDataMux -linerange [GetLineNum ${SRC}/generic/mux.sv "exclusion-tag: mux3"] -item b 1
|
||||||
|
|
||||||
####################
|
####################
|
||||||
# Unused access types due to sharing IFU and LSU logic
|
# Unused access types due to sharing IFU and LSU logic
|
||||||
####################
|
####################
|
||||||
|
|
||||||
## The lsu never executes instructions so 'ExecuteAccessF' will never be 1
|
## The lsu never executes instructions so 'ExecuteAccessF' will never be 1
|
||||||
set line [GetLineNum ../src/mmu/pmachecker.sv "AccessRWXC ="]
|
set line [GetLineNum ${SRC}/mmu/pmachecker.sv "AccessRWXC ="]
|
||||||
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 6
|
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 6
|
||||||
set line [GetLineNum ../src/mmu/pmachecker.sv "ReadAccessM \\| ExecuteAccessF"]
|
set line [GetLineNum ${SRC}/mmu/pmachecker.sv "ReadAccessM \\| ExecuteAccessF"]
|
||||||
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 4
|
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 4
|
||||||
set line [GetLineNum ../src/mmu/pmachecker.sv "ExecuteAccessF & PMAAccessFault"]
|
set line [GetLineNum ${SRC}/mmu/pmachecker.sv "ExecuteAccessF & PMAAccessFault"]
|
||||||
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 2
|
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 2
|
||||||
set line [GetLineNum ../src/mmu/mmu.sv "ExecuteAccessF \\| ReadAccessM"]
|
set line [GetLineNum ${SRC}/mmu/mmu.sv "ExecuteAccessF \\| ReadAccessM"]
|
||||||
coverage exclude -scope /dut/core/lsu/dmmu/dmmu -linerange $line-$line -item e 1 -fecexprrow 2
|
coverage exclude -scope /dut/core/lsu/dmmu/dmmu -linerange $line-$line -item e 1 -fecexprrow 2
|
||||||
set line [GetLineNum ../src/mmu/mmu.sv "TLBPageFault & ExecuteAccessF"]
|
set line [GetLineNum ${SRC}/mmu/mmu.sv "TLBPageFault & ExecuteAccessF"]
|
||||||
coverage exclude -scope /dut/core/lsu/dmmu/dmmu -linerange $line-$line -item e 1 -fecexprrow 1,2,4
|
coverage exclude -scope /dut/core/lsu/dmmu/dmmu -linerange $line-$line -item e 1 -fecexprrow 1,2,4
|
||||||
set line [GetLineNum ../src/mmu/mmu.sv "PMAInstrAccessFaultF \\|"]
|
set line [GetLineNum ${SRC}/mmu/mmu.sv "PMAInstrAccessFaultF \\|"]
|
||||||
coverage exclude -scope /dut/core/lsu/dmmu/dmmu -linerange $line-$line -item e 1 -fecexprrow 2,4,5,6
|
coverage exclude -scope /dut/core/lsu/dmmu/dmmu -linerange $line-$line -item e 1 -fecexprrow 2,4,5,6
|
||||||
set line [GetLineNum ../src/mmu/pmpchecker.sv "EnforcePMP & ExecuteAccessF"]
|
set line [GetLineNum ${SRC}/mmu/pmpchecker.sv "EnforcePMP & ExecuteAccessF"]
|
||||||
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmp/pmpchecker -linerange $line-$line -item e 1 -fecexprrow 1,2,4,5,6
|
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmp/pmpchecker -linerange $line-$line -item e 1 -fecexprrow 1,2,4,5,6
|
||||||
set line [GetLineNum ../src/mmu/pmpchecker.sv "EnforcePMP & ExecuteAccessF"]
|
set line [GetLineNum ${SRC}/mmu/pmpchecker.sv "EnforcePMP & ExecuteAccessF"]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu/pmp/pmpchecker -linerange $line-$line -item e 1 -fecexprrow 3
|
coverage exclude -scope /dut/core/ifu/immu/immu/pmp/pmpchecker -linerange $line-$line -item e 1 -fecexprrow 3
|
||||||
|
|
||||||
|
|
||||||
## The IFU has ReadAccess = WriteAccess = 0 and ExecuteAccess = 1 hardwired, so exclude alternatives
|
## The IFU has ReadAccess = WriteAccess = 0 and ExecuteAccess = 1 hardwired, so exclude alternatives
|
||||||
set line [GetLineNum ../src/mmu/pmachecker.sv "ReadAccessM \\| WriteAccessM"]
|
set line [GetLineNum ${SRC}/mmu/pmachecker.sv "ReadAccessM \\| WriteAccessM"]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 2 4
|
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 2 4
|
||||||
set line [GetLineNum ../src/mmu/pmachecker.sv "WriteAccessM \\| ExecuteAccessF"]
|
set line [GetLineNum ${SRC}/mmu/pmachecker.sv "WriteAccessM \\| ExecuteAccessF"]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 1-5
|
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 1-5
|
||||||
set line [GetLineNum ../src/mmu/pmachecker.sv "ReadAccessM \\| ExecuteAccessF"]
|
set line [GetLineNum ${SRC}/mmu/pmachecker.sv "ReadAccessM \\| ExecuteAccessF"]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 1-3
|
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 1-3
|
||||||
set line [GetLineNum ../src/mmu/pmachecker.sv "ExecuteAccessF & PMAAccessFault"]
|
set line [GetLineNum ${SRC}/mmu/pmachecker.sv "ExecuteAccessF & PMAAccessFault"]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 1
|
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 1
|
||||||
set line [GetLineNum ../src/mmu/pmachecker.sv "ReadAccessM & PMAAccessFault"]
|
set line [GetLineNum ${SRC}/mmu/pmachecker.sv "ReadAccessM & PMAAccessFault"]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 2-4
|
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 2-4
|
||||||
set line [GetLineNum ../src/mmu/pmachecker.sv "PMAStoreAmoAccessFaultM ="]
|
set line [GetLineNum ${SRC}/mmu/pmachecker.sv "PMAStoreAmoAccessFaultM ="]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker -linerange $line-$line
|
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker -linerange $line-$line
|
||||||
set line [GetLineNum ../src/mmu/pmachecker.sv "AccessRWXC \\| AtomicAccessM"]
|
set line [GetLineNum ${SRC}/mmu/pmachecker.sv "AccessRWXC \\| AtomicAccessM"]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 3
|
coverage exclude -scope /dut/core/ifu/immu/immu/pmachecker -linerange $line-$line -item e 1 -fecexprrow 3
|
||||||
set line [GetLineNum ../src/mmu/mmu.sv "ExecuteAccessF \\| ReadAccessM"]
|
set line [GetLineNum ${SRC}/mmu/mmu.sv "ExecuteAccessF \\| ReadAccessM"]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line -item e 1 -fecexprrow 1,3,4
|
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line -item e 1 -fecexprrow 1,3,4
|
||||||
set line [GetLineNum ../src/mmu/mmu.sv "ReadAccessM & ~WriteAccessM"]
|
set line [GetLineNum ${SRC}/mmu/mmu.sv "ReadAccessM & ~WriteAccessM"]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line -item e 1 -fecexprrow 2-4
|
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line -item e 1 -fecexprrow 2-4
|
||||||
set line [GetLineNum ../src/mmu/mmu.sv "assign AmoAccessM"]
|
set line [GetLineNum ${SRC}/mmu/mmu.sv "assign AmoAccessM"]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line -item e 1
|
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line -item e 1
|
||||||
set line [GetLineNum ../src/mmu/mmu.sv "assign AmoMisalignedCausesAccessFaultM"]
|
set line [GetLineNum ${SRC}/mmu/mmu.sv "assign AmoMisalignedCausesAccessFaultM"]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line -item e 1
|
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line -item e 1
|
||||||
set line [GetLineNum ../src/mmu/mmu.sv "DataMisalignedM & WriteAccessM"]
|
set line [GetLineNum ${SRC}/mmu/mmu.sv "DataMisalignedM & WriteAccessM"]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line -item e 1 -fecexprrow 1,2,4
|
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line -item e 1 -fecexprrow 1,2,4
|
||||||
set line [GetLineNum ../src/mmu/mmu.sv "TLBPageFault & ExecuteAccessF"]
|
set line [GetLineNum ${SRC}/mmu/mmu.sv "TLBPageFault & ExecuteAccessF"]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line -item e 1 -fecexprrow 3
|
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line -item e 1 -fecexprrow 3
|
||||||
set line [GetLineNum ../src/mmu/mmu.sv "TLBPageFault & ReadNoAmoAccessM"]
|
set line [GetLineNum ${SRC}/mmu/mmu.sv "TLBPageFault & ReadNoAmoAccessM"]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line -item e 1 -fecexprrow 1,2,4
|
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line -item e 1 -fecexprrow 1,2,4
|
||||||
set line [GetLineNum ../src/mmu/mmu.sv "StoreAmoPageFaultM \="]
|
set line [GetLineNum ${SRC}/mmu/mmu.sv "StoreAmoPageFaultM \="]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line -item e 1 -fecexprrow 1,2,4
|
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line -item e 1 -fecexprrow 1,2,4
|
||||||
set line [GetLineNum ../src/mmu/mmu.sv "DataMisalignedM & ReadNoAmoAccessM"]
|
set line [GetLineNum ${SRC}/mmu/mmu.sv "DataMisalignedM & ReadNoAmoAccessM"]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line -item e 1 -fecexprrow 1,2,4
|
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line -item e 1 -fecexprrow 1,2,4
|
||||||
set line [GetLineNum ../src/mmu/pmpchecker.sv "EnforcePMP & WriteAccessM"]
|
set line [GetLineNum ${SRC}/mmu/pmpchecker.sv "EnforcePMP & WriteAccessM"]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu/pmp/pmpchecker -linerange $line-$line -item e 1 -fecexprrow 1,2,4,5,6
|
coverage exclude -scope /dut/core/ifu/immu/immu/pmp/pmpchecker -linerange $line-$line -item e 1 -fecexprrow 1,2,4,5,6
|
||||||
set line [GetLineNum ../src/mmu/pmpchecker.sv "EnforcePMP & ReadAccessM"]
|
set line [GetLineNum ${SRC}/mmu/pmpchecker.sv "EnforcePMP & ReadAccessM"]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu/pmp/pmpchecker -linerange $line-$line -item e 1 -fecexprrow 1,2,4,5,6
|
coverage exclude -scope /dut/core/ifu/immu/immu/pmp/pmpchecker -linerange $line-$line -item e 1 -fecexprrow 1,2,4,5,6
|
||||||
set line [GetLineNum ../src/mmu/mmu.sv "LoadAccessFaultM \="]
|
set line [GetLineNum ${SRC}/mmu/mmu.sv "LoadAccessFaultM \="]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line -item e 1 -fecexprrow 2,4,5,6
|
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line -item e 1 -fecexprrow 2,4,5,6
|
||||||
set line [GetLineNum ../src/mmu/mmu.sv "StoreAmoAccessFaultM \="]
|
set line [GetLineNum ${SRC}/mmu/mmu.sv "StoreAmoAccessFaultM \="]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line -item e 1 -fecexprrow 2,4,5,6
|
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line -item e 1 -fecexprrow 2,4,5,6
|
||||||
set line [GetLineNum ../src/mmu/tlb/tlbcontrol.sv "ReadAccess \\| WriteAccess"]
|
set line [GetLineNum ${SRC}/mmu/tlb/tlbcontrol.sv "ReadAccess \\| WriteAccess"]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu/tlb/tlb/tlbcontrol -linerange $line-$line -item e 1 -fecexprrow 1,3,4
|
coverage exclude -scope /dut/core/ifu/immu/immu/tlb/tlb/tlbcontrol -linerange $line-$line -item e 1 -fecexprrow 1,3,4
|
||||||
set line [GetLineNum ../src/mmu/tlb/tlbcontrol.sv "CAMHit & TLBAccess"]
|
set line [GetLineNum ${SRC}/mmu/tlb/tlbcontrol.sv "CAMHit & TLBAccess"]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu/tlb/tlb/tlbcontrol -linerange $line-$line -item e 1 -fecexprrow 3
|
coverage exclude -scope /dut/core/ifu/immu/immu/tlb/tlb/tlbcontrol -linerange $line-$line -item e 1 -fecexprrow 3
|
||||||
set line [GetLineNum ../src/mmu/tlb/tlbcontrol.sv "~CAMHit & TLBAccess"]
|
set line [GetLineNum ${SRC}/mmu/tlb/tlbcontrol.sv "~CAMHit & TLBAccess"]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu/tlb/tlb/tlbcontrol -linerange $line-$line -item e 1 -fecexprrow 3
|
coverage exclude -scope /dut/core/ifu/immu/immu/tlb/tlb/tlbcontrol -linerange $line-$line -item e 1 -fecexprrow 3
|
||||||
|
|
||||||
# IMMU only makes word-sized accesses
|
# IMMU only makes word-sized accesses
|
||||||
set line [GetLineNum ../src/mmu/mmu.sv "exclusion-tag: immu-wordaccess"]
|
set line [GetLineNum ${SRC}/mmu/mmu.sv "exclusion-tag: immu-wordaccess"]
|
||||||
set line2 [expr $line + 6 ]
|
set line2 [expr $line + 6 ]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line2 -item e 1 -fecexprrow 4
|
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line2 -item e 1 -fecexprrow 4
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line2 -item b 1
|
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line2 -item b 1
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line2 -item s 1
|
coverage exclude -scope /dut/core/ifu/immu/immu -linerange $line-$line2 -item s 1
|
||||||
|
|
||||||
# IMMU never disables translations
|
# IMMU never disables translations
|
||||||
coverage exclude -scope /dut/core/ifu/ifu/immu/immu/tlb/tlb/tlbcontrol -linerange [GetLineNum ../src/mmu/tlb/tlbcontrol.sv "assign Translate"] -item e 1 -fecexprrow 2
|
coverage exclude -scope /dut/core/ifu/ifu/immu/immu/tlb/tlb/tlbcontrol -linerange [GetLineNum ${SRC}/mmu/tlb/tlbcontrol.sv "assign Translate"] -item e 1 -fecexprrow 2
|
||||||
coverage exclude -scope /dut/core/ifu/ifu/immu/immu/tlb/tlb/tlbcontrol -linerange [GetLineNum ../src/mmu/tlb/tlbcontrol.sv "assign UpdateDA"] -item e 1 -fecexprrow 5
|
coverage exclude -scope /dut/core/ifu/ifu/immu/immu/tlb/tlb/tlbcontrol -linerange [GetLineNum ${SRC}/mmu/tlb/tlbcontrol.sv "assign UpdateDA"] -item e 1 -fecexprrow 5
|
||||||
# never reaches this when ENVCFG_ADUE_1 because HPTW updates A bit first
|
# never reaches this when ENVCFG_ADUE_1 because HPTW updates A bit first
|
||||||
coverage exclude -scope /dut/core/ifu/ifu/immu/immu/tlb/tlb/tlbcontrol -linerange [GetLineNum ../src/mmu/tlb/tlbcontrol.sv "assign PrePageFault"] -item e 1 -fecexprrow 18
|
coverage exclude -scope /dut/core/ifu/ifu/immu/immu/tlb/tlb/tlbcontrol -linerange [GetLineNum ${SRC}/mmu/tlb/tlbcontrol.sv "assign PrePageFault"] -item e 1 -fecexprrow 18
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -298,19 +302,19 @@ coverage exclude -scope /dut/core/ifu/ifu/immu/immu/tlb/tlb/tlbcontrol -linerang
|
|||||||
###############
|
###############
|
||||||
|
|
||||||
# RV64GC HPTW never starts at L1_ADR
|
# RV64GC HPTW never starts at L1_ADR
|
||||||
set line [GetLineNum ../src/mmu/hptw.sv "InitialWalkerState == L1_ADR"]
|
set line [GetLineNum ${SRC}/mmu/hptw.sv "InitialWalkerState == L1_ADR"]
|
||||||
coverage exclude -scope /dut/core/lsu/lsu/hptw/hptw -linerange $line-$line -item c 1 -feccondrow 2
|
coverage exclude -scope /dut/core/lsu/lsu/hptw/hptw -linerange $line-$line -item c 1 -feccondrow 2
|
||||||
|
|
||||||
# Never possible to get a page fault when neither reading nor writing
|
# Never possible to get a page fault when neither reading nor writing
|
||||||
set line [GetLineNum ../src/mmu/hptw.sv "assign HPTWLoadPageFault"]
|
set line [GetLineNum ${SRC}/mmu/hptw.sv "assign HPTWLoadPageFault"]
|
||||||
coverage exclude -scope /dut/core/lsu/lsu/hptw/hptw -linerange $line-$line -item e 1 -fecexprrow 7
|
coverage exclude -scope /dut/core/lsu/lsu/hptw/hptw -linerange $line-$line -item e 1 -fecexprrow 7
|
||||||
|
|
||||||
# Never possible to get a store page fault from an ITLB walk
|
# Never possible to get a store page fault from an ITLB walk
|
||||||
set line [GetLineNum ../src/mmu/hptw.sv "assign HPTWStoreAmoPageFault"]
|
set line [GetLineNum ${SRC}/mmu/hptw.sv "assign HPTWStoreAmoPageFault"]
|
||||||
coverage exclude -scope /dut/core/lsu/lsu/hptw/hptw -linerange $line-$line -item e 1 -fecexprrow 3
|
coverage exclude -scope /dut/core/lsu/lsu/hptw/hptw -linerange $line-$line -item e 1 -fecexprrow 3
|
||||||
|
|
||||||
# Never possible to get Access = 0 on a nonleaf PTE with no OtherPageFault (because InvalidRead/Write will be 1 on the nonleaf)
|
# Never possible to get Access = 0 on a nonleaf PTE with no OtherPageFault (because InvalidRead/Write will be 1 on the nonleaf)
|
||||||
set line [GetLineNum ../src/mmu/hptw.sv "assign HPTWUpdateDA"]
|
set line [GetLineNum ${SRC}/mmu/hptw.sv "assign HPTWUpdateDA"]
|
||||||
coverage exclude -scope /dut/core/lsu/lsu/hptw/hptw -linerange $line-$line -item e 1 -fecexprrow 3
|
coverage exclude -scope /dut/core/lsu/lsu/hptw/hptw -linerange $line-$line -item e 1 -fecexprrow 3
|
||||||
|
|
||||||
###############
|
###############
|
||||||
@ -318,78 +322,78 @@ coverage exclude -scope /dut/core/lsu/lsu/hptw/hptw -linerange $line-$line -item
|
|||||||
###############
|
###############
|
||||||
|
|
||||||
# IMMU PMP does not support CBO instructions
|
# IMMU PMP does not support CBO instructions
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu/pmp/pmpchecker -linerange [GetLineNum ../src/mmu/pmpchecker.sv "exclusion-tag: immu-pmpcbom"]
|
coverage exclude -scope /dut/core/ifu/immu/immu/pmp/pmpchecker -linerange [GetLineNum ${SRC}/mmu/pmpchecker.sv "exclusion-tag: immu-pmpcbom"]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu/pmp/pmpchecker -linerange [GetLineNum ../src/mmu/pmpchecker.sv "exclusion-tag: immu-pmpcboz"]
|
coverage exclude -scope /dut/core/ifu/immu/immu/pmp/pmpchecker -linerange [GetLineNum ${SRC}/mmu/pmpchecker.sv "exclusion-tag: immu-pmpcboz"]
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu/pmp/pmpchecker -linerange [GetLineNum ../src/mmu/pmpchecker.sv "exclusion-tag: immu-pmpcboaccess"]
|
coverage exclude -scope /dut/core/ifu/immu/immu/pmp/pmpchecker -linerange [GetLineNum ${SRC}/mmu/pmpchecker.sv "exclusion-tag: immu-pmpcboaccess"]
|
||||||
|
|
||||||
# No irom
|
# No irom
|
||||||
set line [GetLineNum ../src/ifu/ifu.sv "~ITLBMissF & ~CacheableF & ~SelIROM"]
|
set line [GetLineNum ${SRC}/ifu/ifu.sv "~ITLBMissF & ~CacheableF & ~SelIROM"]
|
||||||
coverage exclude -scope /dut/core/ifu -linerange $line-$line -item c 1 -feccondrow 6
|
coverage exclude -scope /dut/core/ifu -linerange $line-$line -item c 1 -feccondrow 6
|
||||||
set line [GetLineNum ../src/ifu/ifu.sv "~ITLBMissF & CacheableF & ~SelIROM"]
|
set line [GetLineNum ${SRC}/ifu/ifu.sv "~ITLBMissF & CacheableF & ~SelIROM"]
|
||||||
coverage exclude -scope /dut/core/ifu -linerange $line-$line -item c 1 -feccondrow 4
|
coverage exclude -scope /dut/core/ifu -linerange $line-$line -item c 1 -feccondrow 4
|
||||||
|
|
||||||
# no DTIM
|
# no DTIM
|
||||||
set line [GetLineNum ../src/lsu/lsu.sv "assign BusRW"]
|
set line [GetLineNum ${SRC}/lsu/lsu.sv "assign BusRW"]
|
||||||
coverage exclude -scope /dut/core/lsu -linerange $line-$line -item c 1 -feccondrow 4
|
coverage exclude -scope /dut/core/lsu -linerange $line-$line -item c 1 -feccondrow 4
|
||||||
set line [GetLineNum ../src/lsu/lsu.sv "assign CacheRWM"]
|
set line [GetLineNum ${SRC}/lsu/lsu.sv "assign CacheRWM"]
|
||||||
coverage exclude -scope /dut/core/lsu -linerange $line-$line -item c 1 -feccondrow 4
|
coverage exclude -scope /dut/core/lsu -linerange $line-$line -item c 1 -feccondrow 4
|
||||||
|
|
||||||
# Excluding reset and clear for impossible case in the wficountreg in privdec
|
# Excluding reset and clear for impossible case in the wficountreg in privdec
|
||||||
set line [GetLineNum ../src/generic/flop/floprc.sv "reset \\| clear"]
|
#set line [GetLineNum ${SRC}/generic/flop/floprc.sv "reset \\| clear"]
|
||||||
coverage exclude -scope /dut/core/priv/priv/pmd/wfi/wficountreg -linerange $line-$line -item c 1 -feccondrow 2
|
#coverage exclude -scope /dut/core/priv/priv/pmd/wfi/wficountreg -linerange $line-$line -item c 1 -feccondrow 2
|
||||||
|
|
||||||
# Exclude system reset case in ebu
|
# Exclude system reset case in ebu
|
||||||
set line [GetLineNum ../src/ebu/ebufsmarb.sv "BeatCounter\\("]
|
set line [GetLineNum ${SRC}/ebu/ebufsmarb.sv "BeatCounter\\("]
|
||||||
coverage exclude -scope /dut/core/ebu/ebu/ebufsmarb -linerange $line-$line -item e 1 -fecexprrow 1
|
coverage exclude -scope /dut/core/ebu/ebu/ebufsmarb -linerange $line-$line -item e 1 -fecexprrow 1
|
||||||
set line [GetLineNum ../src/ebu/ebufsmarb.sv "FinalBeatReg\\("]
|
set line [GetLineNum ${SRC}/ebu/ebufsmarb.sv "FinalBeatReg\\("]
|
||||||
coverage exclude -scope /dut/core/ebu/ebu/ebufsmarb -linerange $line-$line -item e 1 -fecexprrow 1
|
coverage exclude -scope /dut/core/ebu/ebu/ebufsmarb -linerange $line-$line -item e 1 -fecexprrow 1
|
||||||
|
|
||||||
set line [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm AtomicElse"]
|
set line [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm AtomicElse"]
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item bc 1
|
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item bc 1
|
||||||
|
|
||||||
set line [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm AtomicWait"]
|
set line [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm AtomicWait"]
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item bc 1
|
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item bc 1
|
||||||
|
|
||||||
# The WritebackWriteback and FetchWriteback support back to back pipelined cache writebacks and fetch then
|
# The WritebackWriteback and FetchWriteback support back to back pipelined cache writebacks and fetch then
|
||||||
# writebacks. The cache never issues these type of requests.
|
# writebacks. The cache never issues these type of requests.
|
||||||
set line [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm WritebackWriteback"]
|
set line [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm WritebackWriteback"]
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item bc 2
|
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item bc 2
|
||||||
|
|
||||||
set line [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm FetchWriteback"]
|
set line [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm FetchWriteback"]
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item bc 2
|
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item bc 2
|
||||||
|
|
||||||
# FetchWait never occurs because HREADY is never 0.
|
# FetchWait never occurs because HREADY is never 0.
|
||||||
set line [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm FetchWait"]
|
set line [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm FetchWait"]
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item bc 1
|
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item bc 1
|
||||||
|
|
||||||
# all of these HREADY exclusions occur because HREADY is always 1. The ram_ahb module never stalls.
|
# all of these HREADY exclusions occur because HREADY is always 1. The ram_ahb module never stalls.
|
||||||
set line [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm HREADY0"]
|
set line [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm HREADY0"]
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item c 1 -feccondrow 1
|
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item c 1 -feccondrow 1
|
||||||
|
|
||||||
#set line [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm HREADY1"]
|
#set line [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm HREADY1"]
|
||||||
#coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item c 1 -feccondrow 1
|
#coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item c 1 -feccondrow 1
|
||||||
|
|
||||||
#set line [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm HREADY2"]
|
#set line [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm HREADY2"]
|
||||||
#coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item c 1 -feccondrow 1
|
#coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item c 1 -feccondrow 1
|
||||||
|
|
||||||
set line [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm HREADY3"]
|
set line [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm HREADY3"]
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item c 1 -feccondrow 4
|
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item c 1 -feccondrow 4
|
||||||
|
|
||||||
set line [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm HREADY4"]
|
set line [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm HREADY4"]
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item c 1 -feccondrow 1
|
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item c 1 -feccondrow 1
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item c 1 -feccondrow 3
|
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item c 1 -feccondrow 3
|
||||||
|
|
||||||
set line [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm HREADY5"]
|
set line [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm HREADY5"]
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item c 1 -feccondrow 1
|
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item c 1 -feccondrow 1
|
||||||
|
|
||||||
set line [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm HREADY6"]
|
set line [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm HREADY6"]
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item c 1 -feccondrow 1
|
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item c 1 -feccondrow 1
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item c 1 -feccondrow 5
|
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange $line-$line -item c 1 -feccondrow 5
|
||||||
|
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ../src/ebu/buscachefsm.sv "assign CacheBusAck"] -item e 1 -fecexprrow 5
|
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ${SRC}/ebu/buscachefsm.sv "assign CacheBusAck"] -item e 1 -fecexprrow 5
|
||||||
|
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm AtomicElse"] -item s 1
|
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm AtomicElse"] -item s 1
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ../src/ebu/buscachefsm.sv "exclusion-tag: buscachefsm AtomicWait"] -item s 1
|
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -linerange [GetLineNum ${SRC}/ebu/buscachefsm.sv "exclusion-tag: buscachefsm AtomicWait"] -item s 1
|
||||||
|
|
||||||
# these transitions will not happen
|
# these transitions will not happen
|
||||||
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -ftrans CurrState DATA_PHASE->ADR_PHASE ATOMIC_READ_DATA_PHASE->ADR_PHASE ATOMIC_PHASE->ADR_PHASE
|
coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefsm -ftrans CurrState DATA_PHASE->ADR_PHASE ATOMIC_READ_DATA_PHASE->ADR_PHASE ATOMIC_PHASE->ADR_PHASE
|
||||||
@ -399,15 +403,15 @@ coverage exclude -scope /dut/core/lsu/bus/dcache/ahbcacheinterface/AHBBuscachefs
|
|||||||
coverage exclude -srcfile priorityonehot.sv
|
coverage exclude -srcfile priorityonehot.sv
|
||||||
|
|
||||||
# Excluding pmpadrdecs[0] coverage case for PAgePMPAdrIn being hardwired to 1
|
# Excluding pmpadrdecs[0] coverage case for PAgePMPAdrIn being hardwired to 1
|
||||||
coverage exclude -scope /dut/core/ifu/immu/immu/pmp/pmpchecker/pmp/pmpadrdecs[0] -linerange [GetLineNum ../src/mmu/pmpadrdec.sv "exclusion-tag: PAgePMPAdrIn"] -item e 1 -fecexprrow 1
|
coverage exclude -scope /dut/core/ifu/immu/immu/pmp/pmpchecker/pmp/pmpadrdecs[0] -linerange [GetLineNum ${SRC}/mmu/pmpadrdec.sv "exclusion-tag: PAgePMPAdrIn"] -item e 1 -fecexprrow 1
|
||||||
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmp/pmpchecker/pmp/pmpadrdecs[0] -linerange [GetLineNum ../src/mmu/pmpadrdec.sv "exclusion-tag: PAgePMPAdrIn"] -item e 1 -fecexprrow 1
|
coverage exclude -scope /dut/core/lsu/dmmu/dmmu/pmp/pmpchecker/pmp/pmpadrdecs[0] -linerange [GetLineNum ${SRC}/mmu/pmpadrdec.sv "exclusion-tag: PAgePMPAdrIn"] -item e 1 -fecexprrow 1
|
||||||
|
|
||||||
####################
|
####################
|
||||||
# Privileged
|
# Privileged
|
||||||
####################
|
####################
|
||||||
|
|
||||||
# Instruction Misaligned never asserted because compresssed instructions are accepted
|
# Instruction Misaligned never asserted because compresssed instructions are accepted
|
||||||
coverage exclude -scope /dut/core/priv/priv/trap -linerange [GetLineNum ../src/privileged/trap.sv "assign ExceptionM"] -item e 1 -fecexprrow 2
|
coverage exclude -scope /dut/core/priv/priv/trap -linerange [GetLineNum ${SRC}/privileged/trap.sv "assign ExceptionM"] -item e 1 -fecexprrow 2
|
||||||
|
|
||||||
####################
|
####################
|
||||||
# EBU
|
# EBU
|
@ -1,3 +1,4 @@
|
|||||||
|
# Run TestFloat simulation
|
||||||
|
|
||||||
# cvtint - test integer conversion unit (fcvtint)
|
# cvtint - test integer conversion unit (fcvtint)
|
||||||
# cvtfp - test floating-point conversion unit (fcvtfp)
|
# cvtfp - test floating-point conversion unit (fcvtfp)
|
||||||
@ -10,4 +11,7 @@
|
|||||||
# sqrt - test square root
|
# sqrt - test square root
|
||||||
# all - test everything
|
# all - test everything
|
||||||
|
|
||||||
vsim -c -do "do testfloat.do fdqh_ieee_rv64gc $1"
|
#vsim -c -do "do testfloat.do fdqh_ieee_rv64gc $1"
|
||||||
|
wsim fdqh_ieee_rv64gc $1 --tb testbench_fp
|
||||||
|
#wsim fdqh_ieee_rv64gc $1 --tb testbench_fp --gui
|
||||||
|
|
1
sim/questa/sim-wally-batch
Executable file
1
sim/questa/sim-wally-batch
Executable file
@ -0,0 +1 @@
|
|||||||
|
../wsim rv64gc arch64i
|
@ -8,8 +8,8 @@
|
|||||||
#
|
#
|
||||||
# Takes 1:10 to run RV64IC tests using gui
|
# Takes 1:10 to run RV64IC tests using gui
|
||||||
|
|
||||||
# Usage: do wally-batch.do <config> <testcases>
|
# Usage: do wally-batch.do <config> <testcases> <testbench> [-coverage] [+acc] [any number of +value] [any number of -G VAR=VAL]
|
||||||
# Example: do wally-batch.do rv32imc imperas-32i
|
# Example: do wally-batch.do rv64gc arch64i testbench
|
||||||
|
|
||||||
# Use this wally-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:
|
||||||
@ -20,11 +20,20 @@
|
|||||||
|
|
||||||
onbreak {resume}
|
onbreak {resume}
|
||||||
|
|
||||||
|
set CFG ${1}
|
||||||
|
set TESTSUITE ${2}
|
||||||
|
set TESTBENCH ${3}
|
||||||
|
set WKDIR wkdir/${CFG}_${TESTSUITE}
|
||||||
|
set WALLY $::env(WALLY)
|
||||||
|
set CONFIG ${WALLY}/config
|
||||||
|
set SRC ${WALLY}/src
|
||||||
|
set TB ${WALLY}/testbench
|
||||||
|
|
||||||
# create library
|
# create library
|
||||||
if [file exists wkdir/work_${1}_${2}] {
|
if [file exists ${WKDIR}] {
|
||||||
vdel -lib wkdir/work_${1}_${2} -all
|
vdel -lib ${WKDIR} -all
|
||||||
}
|
}
|
||||||
vlib wkdir/work_${1}_${2}
|
vlib ${WKDIR}
|
||||||
# Create directory for coverage data
|
# Create directory for coverage data
|
||||||
mkdir -p cov
|
mkdir -p cov
|
||||||
|
|
||||||
@ -36,10 +45,11 @@ set CoverageVsimArg ""
|
|||||||
# it takes on different values if vsim and the do file are called from the command line or
|
# it takes on different values if vsim and the do file are called from the command line or
|
||||||
# if the do file isd called from questa sim directly. This chunk of code uses the $4 through $n
|
# if the do file isd called from questa sim directly. This chunk of code uses the $4 through $n
|
||||||
# variables and compacts into a single list for passing to vopt.
|
# variables and compacts into a single list for passing to vopt.
|
||||||
set configOptions ""
|
set tbArgs ""
|
||||||
set from 4
|
set from 4
|
||||||
set step 1
|
set step 1
|
||||||
set lst {}
|
set lst {}
|
||||||
|
set GUI 0
|
||||||
for {set i 0} true {incr i} {
|
for {set i 0} true {incr i} {
|
||||||
set x [expr {$i*$step + $from}]
|
set x [expr {$i*$step + $from}]
|
||||||
if {$x > $argc} break
|
if {$x > $argc} break
|
||||||
@ -48,14 +58,21 @@ for {set i 0} true {incr i} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if {$argc >= 3} {
|
if {$argc >= 3} {
|
||||||
if {$3 eq "-coverage" || ($argc >= 7 && $7 eq "-coverage")} {
|
set tbArgs $lst
|
||||||
set coverage 1
|
puts $tbArgs
|
||||||
set CoverageVoptArg "+cover=sbecf"
|
|
||||||
set CoverageVsimArg "-coverage"
|
if {[lindex $lst [expr { [llength $lst] -1 } ]] eq "+acc"} {
|
||||||
} elseif {$3 eq "configOptions"} {
|
set GUI 1
|
||||||
set configOptions $lst
|
}
|
||||||
puts $configOptions
|
|
||||||
}
|
#if {$3 eq "-coverage" || ($argc >= 7 && $7 eq "-coverage")} {
|
||||||
|
# set coverage 1
|
||||||
|
# set CoverageVoptArg "+cover=sbecf"
|
||||||
|
# set CoverageVsimArg "-coverage"
|
||||||
|
#} elseif {$3 eq "tbArgs"} {
|
||||||
|
# set tbArgs $lst
|
||||||
|
# puts $tbArgs
|
||||||
|
#}
|
||||||
}
|
}
|
||||||
|
|
||||||
# compile source files
|
# compile source files
|
||||||
@ -63,30 +80,43 @@ if {$argc >= 3} {
|
|||||||
# "Extra checking for conflicts with always_comb done at vopt time"
|
# "Extra checking for conflicts with always_comb done at vopt time"
|
||||||
# because vsim will run vopt
|
# because vsim will run vopt
|
||||||
|
|
||||||
# default to config/rv64ic, but allow this to be overridden at the command line. For example:
|
vlog -lint -work ${WKDIR} +incdir+${CONFIG}/$1 +incdir+${CONFIG}/deriv/$1 +incdir+${CONFIG}/shared ${SRC}/cvw.sv ${TB}/${TESTBENCH}.sv ${TB}/common/*.sv ${SRC}/*/*.sv ${SRC}/*/*/*.sv -suppress 2583 -suppress 7063,2596,13286
|
||||||
# do wally-pipelined-batch.do ../config/rv32imc rv32imc
|
|
||||||
|
|
||||||
vlog -lint -work wkdir/work_${1}_${2} +incdir+../config/$1 +incdir+../config/deriv/$1 +incdir+../config/shared ../src/cvw.sv ../testbench/testbench.sv ../testbench/common/*.sv ../src/*/*.sv ../src/*/*/*.sv -suppress 2583 -suppress 7063,2596,13286
|
|
||||||
|
|
||||||
# start and run simulation
|
# start and run simulation
|
||||||
# remove +acc flag for faster sim during regressions if there is no need to access internal signals
|
# remove +acc flag for faster sim during regressions if there is no need to access internal signals
|
||||||
vopt wkdir/work_${1}_${2}.testbench -work wkdir/work_${1}_${2} -G TEST=$2 ${configOptions} -o testbenchopt ${CoverageVoptArg}
|
vopt wkdir/${CFG}_${TESTSUITE}.${TESTBENCH} -work ${WKDIR} ${tbArgs} -o testbenchopt ${CoverageVoptArg}
|
||||||
vsim -lib wkdir/work_${1}_${2} testbenchopt -fatal 7 -suppress 3829 ${CoverageVsimArg}
|
# *** tbArgs producees a warning that TEST not found in design when running sim-testfloat-batch. Need to separate -G and + arguments to pass separately to vopt and vsim
|
||||||
|
vsim -lib ${WKDIR} testbenchopt +TEST=${TESTSUITE} ${tbArgs} -fatal 7 -suppress 3829 ${CoverageVsimArg}
|
||||||
|
|
||||||
# vsim -lib wkdir/work_${1}_${2} testbenchopt -fatal 7 -suppress 3829
|
# vsim -lib wkdir/work_${1}_${2} testbenchopt -fatal 7 -suppress 3829
|
||||||
# power add generates the logging necessary for said generation.
|
# power add generates the logging necessary for said generation.
|
||||||
# power add -r /dut/core/*
|
# power add -r /dut/core/*
|
||||||
|
if { ${GUI} } {
|
||||||
|
add log -recursive /*
|
||||||
|
if { ${TESTBENCH} eq "testbench_fp" } {
|
||||||
|
do wave-fpu.do
|
||||||
|
} else {
|
||||||
|
do wave.do
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
run -all
|
run -all
|
||||||
# power off -r /dut/core/*
|
# power off -r /dut/core/*
|
||||||
|
|
||||||
|
|
||||||
if {$coverage} {
|
if {$coverage} {
|
||||||
echo "Saving coverage to ${1}_${2}.ucdb"
|
set UCDB cov/${CFG}_${TESTSUITE}.ucdb
|
||||||
|
echo "Saving coverage to ${UCDB}"
|
||||||
do coverage-exclusions-rv64gc.do # beware: this assumes testing the rv64gc configuration
|
do coverage-exclusions-rv64gc.do # beware: this assumes testing the rv64gc configuration
|
||||||
coverage save -instance /testbench/dut/core cov/${1}_${2}.ucdb
|
coverage save -instance /testbench/dut/core ${UCDB}
|
||||||
}
|
}
|
||||||
|
|
||||||
# These aren't doing anything helpful
|
# These aren't doing anything helpful
|
||||||
#profile report -calltree -file wally-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
|
|
||||||
|
# terminate simulation unless we need to keep the GUI running
|
||||||
|
if { ${GUI} == 0} {
|
||||||
|
quit
|
||||||
|
}
|
||||||
|
|
30
sim/questa/wave-fpu.do
Normal file
30
sim/questa/wave-fpu.do
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
|
||||||
|
add wave -noupdate /testbench_fp/clk
|
||||||
|
add wave -noupdate -radix decimal /testbench_fp/VectorNum
|
||||||
|
add wave -noupdate /testbench_fp/FrmNum
|
||||||
|
add wave -noupdate /testbench_fp/X
|
||||||
|
add wave -noupdate /testbench_fp/Y
|
||||||
|
add wave -noupdate /testbench_fp/Z
|
||||||
|
add wave -noupdate /testbench_fp/Res
|
||||||
|
add wave -noupdate /testbench_fp/Ans
|
||||||
|
add wave -noupdate /testbench_fp/reset
|
||||||
|
add wave -noupdate /testbench_fp/DivStart
|
||||||
|
add wave -noupdate /testbench_fp/FDivBusyE
|
||||||
|
add wave -noupdate /testbench_fp/CheckNow
|
||||||
|
add wave -noupdate /testbench_fp/DivDone
|
||||||
|
add wave -noupdate /testbench_fp/ResMatch
|
||||||
|
add wave -noupdate /testbench_fp/FlagMatch
|
||||||
|
add wave -noupdate /testbench_fp/CheckNow
|
||||||
|
add wave -noupdate /testbench_fp/NaNGood
|
||||||
|
add wave -group {PostProc} -noupdate /testbench_fp/postprocess/*
|
||||||
|
add wave -group {PostProc} -noupdate /testbench_fp/postprocess/specialcase/*
|
||||||
|
add wave -group {PostProc} -noupdate /testbench_fp/postprocess/flags/*
|
||||||
|
add wave -group {PostProc} -noupdate /testbench_fp/postprocess/normshift/*
|
||||||
|
add wave -group {PostProc} -noupdate /testbench_fp/postprocess/shiftcorrection/*
|
||||||
|
add wave -group {PostProc} -noupdate /testbench_fp/postprocess/resultsign/*
|
||||||
|
add wave -group {PostProc} -noupdate /testbench_fp/postprocess/round/*
|
||||||
|
add wave -group {PostProc} -noupdate /testbench_fp/postprocess/fmashiftcalc/*
|
||||||
|
add wave -group {PostProc} -noupdate /testbench_fp/postprocess/divshiftcalc/*
|
||||||
|
add wave -group {PostProc} -noupdate /testbench_fp/postprocess/cvtshiftcalc/*
|
||||||
|
add wave -group {Testbench} -noupdate /testbench_fp/*
|
||||||
|
add wave -group {Testbench} -noupdate /testbench_fp/readvectors/*
|
@ -1,471 +0,0 @@
|
|||||||
#!/usr/bin/python3
|
|
||||||
##################################
|
|
||||||
#
|
|
||||||
# regression-wally
|
|
||||||
# David_Harris@Hmc.edu 25 January 2021
|
|
||||||
# Modified by Jarred Allen <jaallen@g.hmc.edu>
|
|
||||||
#
|
|
||||||
# Run a regression with multiple configurations in parallel and exit with
|
|
||||||
# non-zero status code if an error happened, as well as printing human-readable
|
|
||||||
# output.
|
|
||||||
#
|
|
||||||
##################################
|
|
||||||
import sys,os,shutil
|
|
||||||
import multiprocessing
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class bcolors:
|
|
||||||
HEADER = '\033[95m'
|
|
||||||
OKBLUE = '\033[94m'
|
|
||||||
OKCYAN = '\033[96m'
|
|
||||||
OKGREEN = '\033[92m'
|
|
||||||
WARNING = '\033[93m'
|
|
||||||
FAIL = '\033[91m'
|
|
||||||
ENDC = '\033[0m'
|
|
||||||
BOLD = '\033[1m'
|
|
||||||
UNDERLINE = '\033[4m'
|
|
||||||
|
|
||||||
from collections import namedtuple
|
|
||||||
regressionDir = os.path.dirname(os.path.abspath(__file__))
|
|
||||||
os.chdir(regressionDir)
|
|
||||||
|
|
||||||
coverage = '-coverage' in sys.argv
|
|
||||||
fp = '-fp' in sys.argv
|
|
||||||
nightly = '-nightly' in sys.argv
|
|
||||||
softfloat = '-softfloat' in sys.argv
|
|
||||||
|
|
||||||
TestCase = namedtuple("TestCase", ['name', 'variant', 'cmd', 'grepstr'])
|
|
||||||
# name: the name of this test configuration (used in printing human-readable
|
|
||||||
# output and picking logfile names)
|
|
||||||
# cmd: the command to run to test (should include the logfile as '{}', and
|
|
||||||
# the command needs to write to that file)
|
|
||||||
# grepstr: the string to grep through the log file for. The test succeeds iff
|
|
||||||
# grep finds that string in the logfile (is used by grep, so it may
|
|
||||||
# be any pattern grep accepts, see `man 1 grep` for more info).
|
|
||||||
|
|
||||||
# edit this list to add more test cases
|
|
||||||
if (nightly):
|
|
||||||
nightMode = "-nightly";
|
|
||||||
configs = []
|
|
||||||
else:
|
|
||||||
nightMode = "";
|
|
||||||
configs = [
|
|
||||||
TestCase(
|
|
||||||
name="lints",
|
|
||||||
variant="all",
|
|
||||||
cmd="./lint-wally " + nightMode + " | tee {}",
|
|
||||||
grepstr="lints run with no errors or warnings"
|
|
||||||
)
|
|
||||||
]
|
|
||||||
|
|
||||||
def getBuildrootTC(boot):
|
|
||||||
INSTR_LIMIT = 1000000 # multiple of 100000; 4M is interesting because it gets into the kernel and enabling VM
|
|
||||||
MAX_EXPECTED = 591000000 # *** TODO: replace this with a search for the login prompt.
|
|
||||||
if boot:
|
|
||||||
name="buildrootboot"
|
|
||||||
BRcmd="vsim > {} -c <<!\ndo wally.do buildroot buildroot-no-trace $RISCV 0 1 0\n!"
|
|
||||||
BRgrepstr="WallyHostname login:"
|
|
||||||
else:
|
|
||||||
name="buildroot"
|
|
||||||
if (coverage):
|
|
||||||
print( "buildroot coverage")
|
|
||||||
BRcmd="vsim > {} -c <<!\ndo wally-batch.do buildroot buildroot $RISCV "+str(INSTR_LIMIT)+" 1 0 -coverage\n!"
|
|
||||||
else:
|
|
||||||
print( "buildroot no coverage")
|
|
||||||
BRcmd="vsim > {} -c <<!\ndo wally-batch.do buildroot buildroot configOptions -GINSTR_LIMIT=" +str(INSTR_LIMIT) + " \n!"
|
|
||||||
BRgrepstr=str(INSTR_LIMIT)+" instructions"
|
|
||||||
return TestCase(name,variant="rv64gc",cmd=BRcmd,grepstr=BRgrepstr)
|
|
||||||
|
|
||||||
tests64gcimperas = ["imperas64i", "imperas64f", "imperas64d", "imperas64m", "imperas64c"] # unused
|
|
||||||
|
|
||||||
tests64i = ["arch64i"]
|
|
||||||
for test in tests64i:
|
|
||||||
tc = TestCase(
|
|
||||||
name=test,
|
|
||||||
variant="rv64i",
|
|
||||||
cmd="vsim > {} -c <<!\ndo wally-batch.do rv64i "+test+"\n!",
|
|
||||||
grepstr="All tests ran without failures")
|
|
||||||
configs.append(tc)
|
|
||||||
|
|
||||||
tests32gcimperas = ["imperas32i", "imperas32f", "imperas32m", "imperas32c"] # unused
|
|
||||||
tests32gc = ["arch32f", "arch32d", "arch32f_fma", "arch32d_fma", "arch32f_divsqrt", "arch32d_divsqrt",
|
|
||||||
"arch32i", "arch32priv", "arch32c", "arch32m", "arch32a", "arch32zifencei", "arch32zicond",
|
|
||||||
"arch32zba", "arch32zbb", "arch32zbc", "arch32zbs", "arch32zfh", "arch32zfh_fma",
|
|
||||||
"arch32zfh_divsqrt", "arch32zfaf", "wally32a", "wally32priv", "wally32periph",
|
|
||||||
"arch32zbkb", "arch32zbkc", "arch32zbkx", "arch32zknd", "arch32zkne", "arch32zknh"] # "arch32zbc", "arch32zfad",
|
|
||||||
#tests32gc = ["arch32f", "arch32d", "arch32f_fma", "arch32d_fma", "arch32i", "arch32priv", "arch32c", "arch32m", "arch32a", "arch32zifencei", "arch32zba", "arch32zbb", "arch32zbc", "arch32zbs", "arch32zicboz", "arch32zcb", "wally32a", "wally32priv", "wally32periph"]
|
|
||||||
for test in tests32gc:
|
|
||||||
tc = TestCase(
|
|
||||||
name=test,
|
|
||||||
variant="rv32gc",
|
|
||||||
cmd="vsim > {} -c <<!\ndo wally-batch.do rv32gc "+test+"\n!",
|
|
||||||
grepstr="All tests ran without failures")
|
|
||||||
configs.append(tc)
|
|
||||||
|
|
||||||
tests32imcimperas = ["imperas32i", "imperas32c"] # unused
|
|
||||||
tests32imc = ["arch32i", "arch32c", "arch32m", "wally32periph"]
|
|
||||||
for test in tests32imc:
|
|
||||||
tc = TestCase(
|
|
||||||
name=test,
|
|
||||||
variant="rv32imc",
|
|
||||||
cmd="vsim > {} -c <<!\ndo wally-batch.do rv32imc "+test+"\n!",
|
|
||||||
grepstr="All tests ran without failures")
|
|
||||||
configs.append(tc)
|
|
||||||
|
|
||||||
tests32i = ["arch32i"]
|
|
||||||
for test in tests32i:
|
|
||||||
tc = TestCase(
|
|
||||||
name=test,
|
|
||||||
variant="rv32i",
|
|
||||||
cmd="vsim > {} -c <<!\ndo wally-batch.do rv32i "+test+"\n!",
|
|
||||||
grepstr="All tests ran without failures")
|
|
||||||
configs.append(tc)
|
|
||||||
|
|
||||||
|
|
||||||
tests32e = ["arch32e"]
|
|
||||||
for test in tests32e:
|
|
||||||
tc = TestCase(
|
|
||||||
name=test,
|
|
||||||
variant="rv32e",
|
|
||||||
cmd="vsim > {} -c <<!\ndo wally-batch.do rv32e "+test+"\n!",
|
|
||||||
grepstr="All tests ran without failures")
|
|
||||||
configs.append(tc)
|
|
||||||
|
|
||||||
tests64gc = ["arch64f", "arch64d", "arch64f_fma", "arch64d_fma", "arch64f_divsqrt", "arch64d_divsqrt", "arch64i", "arch64zba", "arch64zbb", "arch64zbc", "arch64zbs", "arch64zfh", "arch64zfh_divsqrt", "arch64zfh_fma", "arch64zfaf", "arch64zfad", "arch64zbkb", "arch64zbkc", "arch64zbkx", "arch64zknd", "arch64zkne", "arch64zknh",
|
|
||||||
"arch64priv", "arch64c", "arch64m", "arch64a", "arch64zifencei", "arch64zicond", "wally64a", "wally64periph", "wally64priv"] # add arch64zfh_fma when available; arch64zicobz, arch64zcb when working
|
|
||||||
#tests64gc = ["arch64f", "arch64d", "arch64f_fma", "arch64d_fma", "arch64i", "arch64zba", "arch64zbb", "arch64zbc", "arch64zbs",
|
|
||||||
# "arch64priv", "arch64c", "arch64m", "arch64a", "arch64zifencei", "wally64a", "wally64periph", "wally64priv", "arch64zicboz", "arch64zcb"]
|
|
||||||
if (coverage): # delete all but 64gc tests when running coverage
|
|
||||||
configs = []
|
|
||||||
tests64gc = ["coverage64gc", "arch64i", "arch64priv", "arch64c", "arch64m",
|
|
||||||
"arch64zifencei", "arch64zicond", "arch64a", "wally64a", "wally64periph", "wally64priv",
|
|
||||||
"arch64zba", "arch64zbb", "arch64zbc", "arch64zbs"] # add when working: "arch64zcb", "arch64zicboz"
|
|
||||||
if (fp):
|
|
||||||
tests64gc.append("arch64f")
|
|
||||||
tests64gc.append("arch64d")
|
|
||||||
tests64gc.append("arch64zfh")
|
|
||||||
tests64gc.append("arch64f_fma")
|
|
||||||
tests64gc.append("arch64d_fma")
|
|
||||||
tests64gc.append("arch64zfh_fma")
|
|
||||||
tests64gc.append("arch64f_divsqrt")
|
|
||||||
tests64gc.append("arch64d_divsqrt")
|
|
||||||
tests64gc.append("arch64zfh_divsqrt")
|
|
||||||
tests64gc.append("arch64zfaf")
|
|
||||||
tests64gc.append("arch64zfad")
|
|
||||||
coverStr = '-coverage'
|
|
||||||
else:
|
|
||||||
coverStr = ''
|
|
||||||
for test in tests64gc:
|
|
||||||
tc = TestCase(
|
|
||||||
name=test,
|
|
||||||
variant="rv64gc",
|
|
||||||
cmd="vsim > {} -c <<!\ndo wally-batch.do rv64gc "+test+" " + coverStr + "\n!",
|
|
||||||
grepstr="All tests ran without failures")
|
|
||||||
configs.append(tc)
|
|
||||||
|
|
||||||
# run derivative configurations if requested
|
|
||||||
if (nightly):
|
|
||||||
derivconfigtests = [
|
|
||||||
["tlb2_rv32gc", ["wally32priv"]],
|
|
||||||
["tlb16_rv32gc", ["wally32priv"]],
|
|
||||||
["tlb2_rv64gc", ["wally64priv"]],
|
|
||||||
["tlb16_rv64gc", ["wally64priv"]],
|
|
||||||
["way_1_4096_512_rv32gc", ["arch32i"]],
|
|
||||||
["way_2_4096_512_rv32gc", ["arch32i"]],
|
|
||||||
["way_8_4096_512_rv32gc", ["arch32i"]],
|
|
||||||
["way_4_2048_512_rv32gc", ["arch32i"]],
|
|
||||||
["way_4_4096_256_rv32gc", ["arch32i"]],
|
|
||||||
["way_1_4096_512_rv64gc", ["arch64i"]],
|
|
||||||
["way_2_4096_512_rv64gc", ["arch64i"]],
|
|
||||||
["way_8_4096_512_rv64gc", ["arch64i"]],
|
|
||||||
["way_4_2048_512_rv64gc", ["arch64i"]],
|
|
||||||
["way_4_4096_256_rv64gc", ["arch64i"]],
|
|
||||||
["way_4_4096_1024_rv64gc", ["arch64i"]],
|
|
||||||
|
|
||||||
["ram_0_0_rv64gc", ["ahb64"]],
|
|
||||||
["ram_1_0_rv64gc", ["ahb64"]],
|
|
||||||
["ram_1_1_rv64gc", ["ahb64"]],
|
|
||||||
["ram_2_0_rv64gc", ["ahb64"]],
|
|
||||||
["ram_2_1_rv64gc", ["ahb64"]],
|
|
||||||
|
|
||||||
["noicache_rv32gc", ["ahb32"]],
|
|
||||||
# cacheless designs will not work until DTIM supports FLEN > XLEN
|
|
||||||
# ["nodcache_rv32gc", ["ahb32"]],
|
|
||||||
# ["nocache_rv32gc", ["ahb32"]],
|
|
||||||
["noicache_rv64gc", ["ahb64"]],
|
|
||||||
["nodcache_rv64gc", ["ahb64"]],
|
|
||||||
["nocache_rv64gc", ["ahb64"]],
|
|
||||||
|
|
||||||
### add misaligned tests
|
|
||||||
|
|
||||||
["div_2_1_rv32gc", ["arch32f_divsqrt", "arch32d_divsqrt", "arch32m"]],
|
|
||||||
["div_2_1i_rv32gc", ["arch32f_divsqrt", "arch32d_divsqrt", "arch32m"]],
|
|
||||||
["div_2_2_rv32gc", ["arch32f_divsqrt", "arch32d_divsqrt", "arch32m"]],
|
|
||||||
["div_2_2i_rv32gc", ["arch32f_divsqrt", "arch32d_divsqrt", "arch32m"]],
|
|
||||||
["div_2_4_rv32gc", ["arch32f_divsqrt", "arch32d_divsqrt", "arch32m"]],
|
|
||||||
["div_2_4i_rv32gc", ["arch32f_divsqrt", "arch32d_divsqrt", "arch32m"]],
|
|
||||||
["div_4_1_rv32gc", ["arch32f_divsqrt", "arch32d_divsqrt", "arch32m"]],
|
|
||||||
["div_4_1i_rv32gc", ["arch32f_divsqrt", "arch32d_divsqrt", "arch32m"]],
|
|
||||||
["div_4_2_rv32gc", ["arch32f_divsqrt", "arch32d_divsqrt", "arch32m"]],
|
|
||||||
["div_4_2i_rv32gc", ["arch32f_divsqrt", "arch32d_divsqrt", "arch32m"]],
|
|
||||||
["div_4_4_rv32gc", ["arch32f_divsqrt", "arch32d_divsqrt", "arch32m"]],
|
|
||||||
["div_4_4i_rv32gc", ["arch32f_divsqrt", "arch32d_divsqrt", "arch32m"]],
|
|
||||||
["div_2_1_rv64gc", ["arch64f_divsqrt", "arch64d_divsqrt", "arch64m"]],
|
|
||||||
["div_2_1i_rv64gc", ["arch64f_divsqrt", "arch64d_divsqrt", "arch64m"]],
|
|
||||||
["div_2_2_rv64gc", ["arch64f_divsqrt", "arch64d_divsqrt", "arch64m"]],
|
|
||||||
["div_2_2i_rv64gc", ["arch64f_divsqrt", "arch64d_divsqrt", "arch64m"]],
|
|
||||||
["div_2_4_rv64gc", ["arch64f_divsqrt", "arch64d_divsqrt", "arch64m"]],
|
|
||||||
["div_2_4i_rv64gc", ["arch64f_divsqrt", "arch64d_divsqrt", "arch64m"]],
|
|
||||||
["div_4_1_rv64gc", ["arch64f_divsqrt", "arch64d_divsqrt", "arch64m"]],
|
|
||||||
["div_4_1i_rv64gc", ["arch64f_divsqrt", "arch64d_divsqrt", "arch64m"]],
|
|
||||||
["div_4_2_rv64gc", ["arch64f_divsqrt", "arch64d_divsqrt", "arch64m"]],
|
|
||||||
["div_4_2i_rv64gc", ["arch64f_divsqrt", "arch64d_divsqrt", "arch64m"]],
|
|
||||||
["div_4_4_rv64gc", ["arch64f_divsqrt", "arch64d_divsqrt", "arch64m"]],
|
|
||||||
["div_4_4i_rv64gc", ["arch64f_divsqrt", "arch64d_divsqrt", "arch64m"]],
|
|
||||||
|
|
||||||
### branch predictor simulation
|
|
||||||
|
|
||||||
# ["bpred_TWOBIT_6_16_10_0_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_TWOBIT_8_16_10_0_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_TWOBIT_10_16_10_0_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_TWOBIT_12_16_10_0_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_TWOBIT_14_16_10_0_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_TWOBIT_16_16_10_0_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_TWOBIT_6_16_10_1_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_TWOBIT_8_16_10_1_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_TWOBIT_10_16_10_1_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_TWOBIT_12_16_10_1_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_TWOBIT_14_16_10_1_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_TWOBIT_16_16_10_1_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
|
|
||||||
# ["bpred_GSHARE_6_16_10_0_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_GSHARE_6_16_10_1_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_GSHARE_8_16_10_0_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_GSHARE_8_16_10_1_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_GSHARE_10_16_10_0_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_GSHARE_10_16_10_1_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_GSHARE_12_16_10_0_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_GSHARE_12_16_10_1_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_GSHARE_14_16_10_0_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_GSHARE_14_16_10_1_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_GSHARE_16_16_10_0_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_GSHARE_16_16_10_1_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
|
|
||||||
# # btb
|
|
||||||
# ["bpred_GSHARE_10_16_6_0_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_GSHARE_10_16_6_1_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_GSHARE_10_16_8_0_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_GSHARE_10_16_8_1_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_GSHARE_10_16_12_0_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_GSHARE_10_16_12_1_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
|
|
||||||
# # ras
|
|
||||||
# ["bpred_GSHARE_10_2_10_0_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_GSHARE_10_2_10_1_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_GSHARE_10_3_10_0_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_GSHARE_10_3_10_1_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_GSHARE_10_4_10_0_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_GSHARE_10_4_10_1_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_GSHARE_10_6_10_0_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_GSHARE_10_6_10_1_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_GSHARE_10_10_10_0_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
# ["bpred_GSHARE_10_10_10_1_rv32gc", ["embench"], "configOptions", "-GPrintHPMCounters=1"],
|
|
||||||
|
|
||||||
# enable floating-point tests when lint is fixed
|
|
||||||
["f_rv32gc", ["arch32f", "arch32f_divsqrt", "arch32f_fma"]],
|
|
||||||
["fh_rv32gc", ["arch32f", "arch32f_divsqrt", "arch32f_fma", "arch32zfh", "arch32zfh_divsqrt"]],
|
|
||||||
["fdh_rv32gc", ["arch32f", "arch32f_divsqrt", "arch32f_fma", "arch32d", "arch32d_divsqrt", "arch32d_fma", "arch32zfh", "arch32zfh_divsqrt"]],
|
|
||||||
["fdq_rv32gc", ["arch32f", "arch32f_divsqrt", "arch32f_fma", "arch32d", "arch32d_divsqrt", "arch32d_fma", "arch32i"]],
|
|
||||||
["fdqh_rv32gc", ["arch32f", "arch32f_divsqrt", "arch32f_fma", "arch32d", "arch32d_divsqrt", "arch32d_fma", "arch32zfh", "arch32zfh_divsqrt", "arch32i"]],
|
|
||||||
["f_rv64gc", ["arch64f", "arch64f_divsqrt", "arch64f_fma"]],
|
|
||||||
["fh_rv64gc", ["arch64f", "arch64f_divsqrt", "arch64f_fma", "arch64zfh", "arch64zfh_divsqrt"]], # hanging 1/31/24 dh; try again when lint is fixed
|
|
||||||
["fdh_rv64gc", ["arch64f", "arch64f_divsqrt", "arch64f_fma", "arch64d", "arch64d_divsqrt", "arch64d_fma", "arch64zfh", "arch64zfh_divsqrt"]],
|
|
||||||
["fdq_rv64gc", ["arch64f", "arch64f_divsqrt", "arch64f_fma", "arch64d", "arch64d_divsqrt", "arch64d_fma", "arch64i"]],
|
|
||||||
["fdqh_rv64gc", ["arch64f", "arch64f_divsqrt", "arch64f_fma", "arch64d", "arch64d_divsqrt", "arch64d_fma", "arch64zfh", "arch64zfh_divsqrt", "arch64i", "wally64q"]],
|
|
||||||
|
|
||||||
|
|
||||||
]
|
|
||||||
for test in derivconfigtests:
|
|
||||||
config = test[0];
|
|
||||||
tests = test[1];
|
|
||||||
if(len(test) >= 4 and test[2] == "configOptions"):
|
|
||||||
configOptions = test[3]
|
|
||||||
cmdPrefix = "vsim > {} -c <<!\ndo wally-batch.do "+config
|
|
||||||
else:
|
|
||||||
configOptions = ""
|
|
||||||
cmdPrefix = "vsim > {} -c <<!\ndo wally-batch.do "+config
|
|
||||||
for t in tests:
|
|
||||||
tc = TestCase(
|
|
||||||
name=t,
|
|
||||||
variant=config,
|
|
||||||
cmd=cmdPrefix+" "+t+" configOptions "+configOptions+"\n!",
|
|
||||||
grepstr="All tests ran without failures")
|
|
||||||
configs.append(tc)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# softfloat tests
|
|
||||||
if (softfloat):
|
|
||||||
configs = []
|
|
||||||
softfloatconfigs = [
|
|
||||||
"fdh_ieee_div_2_1_rv32gc", "fdh_ieee_div_2_1_rv64gc", "fdh_ieee_div_2_2_rv32gc",
|
|
||||||
"fdh_ieee_div_2_2_rv64gc", "fdh_ieee_div_2_4_rv32gc", "fdh_ieee_div_2_4_rv64gc",
|
|
||||||
"fdh_ieee_div_4_1_rv32gc", "fdh_ieee_div_4_1_rv64gc", "fdh_ieee_div_4_2_rv32gc",
|
|
||||||
"fdh_ieee_div_4_2_rv64gc", "fdh_ieee_div_4_4_rv32gc", "fdh_ieee_div_4_4_rv64gc",
|
|
||||||
"fd_ieee_div_2_1_rv32gc", "fd_ieee_div_2_1_rv64gc", "fd_ieee_div_2_2_rv32gc",
|
|
||||||
"fd_ieee_div_2_2_rv64gc", "fd_ieee_div_2_4_rv32gc", "fd_ieee_div_2_4_rv64gc",
|
|
||||||
"fd_ieee_div_4_1_rv32gc", "fd_ieee_div_4_1_rv64gc", "fd_ieee_div_4_2_rv32gc",
|
|
||||||
"fd_ieee_div_4_2_rv64gc", "fd_ieee_div_4_4_rv32gc", "fd_ieee_div_4_4_rv64gc",
|
|
||||||
"fdqh_ieee_div_2_1_rv32gc", "fdqh_ieee_div_2_1_rv64gc", "fdqh_ieee_div_2_2_rv32gc",
|
|
||||||
"fdqh_ieee_div_2_2_rv64gc", "fdqh_ieee_div_2_4_rv32gc", "fdqh_ieee_div_2_4_rv64gc",
|
|
||||||
"fdqh_ieee_div_4_1_rv32gc", "fdqh_ieee_div_4_1_rv64gc", "fdqh_ieee_div_4_2_rv32gc",
|
|
||||||
"fdqh_ieee_div_4_2_rv64gc", "fdqh_ieee_div_4_4_rv32gc", "fdqh_ieee_div_4_4_rv64gc",
|
|
||||||
"fdq_ieee_div_2_1_rv32gc", "fdq_ieee_div_2_1_rv64gc", "fdq_ieee_div_2_2_rv32gc",
|
|
||||||
"fdq_ieee_div_2_2_rv64gc", "fdq_ieee_div_2_4_rv32gc", "fdq_ieee_div_2_4_rv64gc",
|
|
||||||
"fdq_ieee_div_4_1_rv32gc", "fdq_ieee_div_4_1_rv64gc", "fdq_ieee_div_4_2_rv32gc",
|
|
||||||
"fdq_ieee_div_4_2_rv64gc", "fdq_ieee_div_4_4_rv32gc", "fdq_ieee_div_4_4_rv64gc",
|
|
||||||
"fh_ieee_div_2_1_rv32gc", "fh_ieee_div_2_1_rv64gc", "fh_ieee_div_2_2_rv32gc",
|
|
||||||
"fh_ieee_div_2_2_rv64gc", "fh_ieee_div_2_4_rv32gc", "fh_ieee_div_2_4_rv64gc",
|
|
||||||
"fh_ieee_div_4_1_rv32gc", "fh_ieee_div_4_1_rv64gc", "fh_ieee_div_4_2_rv32gc",
|
|
||||||
"fh_ieee_div_4_2_rv64gc", "fh_ieee_div_4_4_rv32gc", "fh_ieee_div_4_4_rv64gc",
|
|
||||||
"f_ieee_div_2_1_rv32gc", "f_ieee_div_2_1_rv64gc", "f_ieee_div_2_2_rv32gc",
|
|
||||||
"f_ieee_div_2_2_rv64gc", "f_ieee_div_2_4_rv32gc", "f_ieee_div_2_4_rv64gc",
|
|
||||||
"f_ieee_div_4_1_rv32gc", "f_ieee_div_4_1_rv64gc", "f_ieee_div_4_2_rv32gc",
|
|
||||||
"f_ieee_div_4_2_rv64gc", "f_ieee_div_4_4_rv32gc", "f_ieee_div_4_4_rv64gc"
|
|
||||||
]
|
|
||||||
for config in softfloatconfigs:
|
|
||||||
# div test case
|
|
||||||
divtest = TestCase(
|
|
||||||
name="div",
|
|
||||||
variant=config,
|
|
||||||
cmd="vsim > {} -c <<!\ndo testfloat-batch.do " + config + " div \n!",
|
|
||||||
grepstr="All Tests completed with 0 errors"
|
|
||||||
)
|
|
||||||
configs.insert(0,divtest)
|
|
||||||
|
|
||||||
# sqrt test case
|
|
||||||
sqrttest = TestCase(
|
|
||||||
name="sqrt",
|
|
||||||
variant=config,
|
|
||||||
cmd="vsim > {} -c <<!\ndo testfloat-batch.do " + config + " sqrt \n!",
|
|
||||||
grepstr="All Tests completed with 0 errors"
|
|
||||||
)
|
|
||||||
#configs.append(sqrttest)
|
|
||||||
configs.insert(0,sqrttest)
|
|
||||||
|
|
||||||
|
|
||||||
# skip if divider variant config
|
|
||||||
if ("ieee" in config):
|
|
||||||
# cvtint test case
|
|
||||||
cvtinttest = TestCase(
|
|
||||||
name="cvtint",
|
|
||||||
variant=config,
|
|
||||||
cmd="vsim > {} -c <<!\ndo testfloat-batch.do " + config + " cvtint \n!",
|
|
||||||
grepstr="All Tests completed with 0 errors"
|
|
||||||
)
|
|
||||||
configs.append(cvtinttest)
|
|
||||||
|
|
||||||
# cvtfp test case
|
|
||||||
# WILL fail on F_only (refer to spec)
|
|
||||||
cvtfptest = TestCase(
|
|
||||||
name="cvtfp",
|
|
||||||
variant=config,
|
|
||||||
cmd="vsim > {} -c <<!\ndo testfloat-batch.do " + config + " cvtfp \n!",
|
|
||||||
grepstr="All Tests completed with 0 errors"
|
|
||||||
)
|
|
||||||
configs.append(cvtfptest)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import os
|
|
||||||
from multiprocessing import Pool, TimeoutError
|
|
||||||
|
|
||||||
def search_log_for_text(text, logfile):
|
|
||||||
"""Search through the given log file for text, returning True if it is found or False if it is not"""
|
|
||||||
grepcmd = "grep -e '%s' '%s' > /dev/null" % (text, logfile)
|
|
||||||
return os.system(grepcmd) == 0
|
|
||||||
|
|
||||||
def run_test_case(config):
|
|
||||||
"""Run the given test case, and return 0 if the test suceeds and 1 if it fails"""
|
|
||||||
logname = "logs/"+config.variant+"_"+config.name+".log"
|
|
||||||
cmd = config.cmd.format(logname)
|
|
||||||
# print(cmd)
|
|
||||||
os.chdir(regressionDir)
|
|
||||||
os.system(cmd)
|
|
||||||
if search_log_for_text(config.grepstr, logname):
|
|
||||||
print(f"{bcolors.OKGREEN}%s_%s: Success{bcolors.ENDC}" % (config.variant, config.name))
|
|
||||||
return 0
|
|
||||||
else:
|
|
||||||
print(f"{bcolors.FAIL}%s_%s: Failures detected in output{bcolors.ENDC}" % (config.variant, config.name))
|
|
||||||
print(" Check %s" % logname)
|
|
||||||
return 1
|
|
||||||
|
|
||||||
def main():
|
|
||||||
"""Run the tests and count the failures"""
|
|
||||||
global configs, coverage
|
|
||||||
try:
|
|
||||||
os.chdir(regressionDir)
|
|
||||||
os.mkdir("logs")
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
try:
|
|
||||||
shutil.rmtree("wkdir")
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
finally:
|
|
||||||
os.mkdir("wkdir")
|
|
||||||
|
|
||||||
if '-makeTests' in sys.argv:
|
|
||||||
os.chdir(regressionDir)
|
|
||||||
os.system('./make-tests.sh | tee ./logs/make-tests.log')
|
|
||||||
|
|
||||||
if '-all' in sys.argv:
|
|
||||||
TIMEOUT_DUR = 30*7200 # seconds
|
|
||||||
configs.append(getBuildrootTC(boot=True))
|
|
||||||
elif '-buildroot' in sys.argv:
|
|
||||||
TIMEOUT_DUR = 30*7200 # seconds
|
|
||||||
configs=[getBuildrootTC(boot=True)]
|
|
||||||
elif '-coverage' in sys.argv:
|
|
||||||
TIMEOUT_DUR = 20*60 # seconds
|
|
||||||
# Presently don't run buildroot because it has a different config and can't be merged with the rv64gc coverage.
|
|
||||||
# Also it is slow to run.
|
|
||||||
# configs.append(getBuildrootTC(boot=False))
|
|
||||||
os.system('rm -f cov/*.ucdb')
|
|
||||||
elif '-nightly' in sys.argv:
|
|
||||||
TIMEOUT_DUR = 60*1440 # 1 day
|
|
||||||
configs.append(getBuildrootTC(boot=False))
|
|
||||||
elif '-softfloat' in sys.argv:
|
|
||||||
TIMEOUT_DUR = 60*60 # seconds
|
|
||||||
else:
|
|
||||||
TIMEOUT_DUR = 10*60 # seconds
|
|
||||||
configs.append(getBuildrootTC(boot=False))
|
|
||||||
|
|
||||||
# Scale the number of concurrent processes to the number of test cases, but
|
|
||||||
# max out at a limited number of concurrent processes to not overwhelm the system
|
|
||||||
with Pool(processes=min(len(configs),multiprocessing.cpu_count())) as pool:
|
|
||||||
num_fail = 0
|
|
||||||
results = {}
|
|
||||||
for config in configs:
|
|
||||||
results[config] = pool.apply_async(run_test_case,(config,))
|
|
||||||
for (config,result) in results.items():
|
|
||||||
try:
|
|
||||||
num_fail+=result.get(timeout=TIMEOUT_DUR)
|
|
||||||
except TimeoutError:
|
|
||||||
num_fail+=1
|
|
||||||
print(f"{bcolors.FAIL}%s_%s: Timeout - runtime exceeded %d seconds{bcolors.ENDC}" % (config.variant, config.name, TIMEOUT_DUR))
|
|
||||||
|
|
||||||
# Coverage report
|
|
||||||
if coverage:
|
|
||||||
os.system('make coverage')
|
|
||||||
# Count the number of failures
|
|
||||||
if num_fail:
|
|
||||||
print(f"{bcolors.FAIL}Regression failed with %s failed configurations{bcolors.ENDC}" % num_fail)
|
|
||||||
else:
|
|
||||||
print(f"{bcolors.OKGREEN}SUCCESS! All tests ran without failures{bcolors.ENDC}")
|
|
||||||
return num_fail
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
exit(main())
|
|
@ -1,33 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Defaults
|
|
||||||
INSTR_LIMIT=0
|
|
||||||
INSTR_WAVEON=1
|
|
||||||
CHECKPOINT=0
|
|
||||||
|
|
||||||
# Arg Parsing
|
|
||||||
for i in "$@"; do
|
|
||||||
case $i in
|
|
||||||
--INSTR_LIMIT=*)
|
|
||||||
INSTR_LIMIT="${i#*=}"
|
|
||||||
shift # past argument=value
|
|
||||||
;;
|
|
||||||
--INSTR_WAVEON=*)
|
|
||||||
INSTR_WAVEON="${i#*=}"
|
|
||||||
shift # past argument=value
|
|
||||||
;;
|
|
||||||
--CHECKPOINT=*)
|
|
||||||
CHECKPOINT="${i#*=}"
|
|
||||||
shift # past argument=value
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
# unknown option
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "INSTR_LIMIT = ${INSTR_LIMIT}"
|
|
||||||
echo "INSTR_WAVEON = ${INSTR_WAVEON}"
|
|
||||||
echo "CHECKPOINT = ${CHECKPOINT}"
|
|
||||||
|
|
||||||
vsim -do "do ./wally.do buildroot buildroot $RISCV $INSTR_LIMIT $INSTR_WAVEON $CHECKPOINT"
|
|
@ -1,36 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Defaults
|
|
||||||
INSTR_LIMIT=0
|
|
||||||
INSTR_WAVEON=1
|
|
||||||
CHECKPOINT=0
|
|
||||||
|
|
||||||
# Arg Parsing
|
|
||||||
for i in "$@"; do
|
|
||||||
case $i in
|
|
||||||
--INSTR_LIMIT=*)
|
|
||||||
INSTR_LIMIT="${i#*=}"
|
|
||||||
shift # past argument=value
|
|
||||||
;;
|
|
||||||
--INSTR_WAVEON=*)
|
|
||||||
INSTR_WAVEON="${i#*=}"
|
|
||||||
shift # past argument=value
|
|
||||||
;;
|
|
||||||
--CHECKPOINT=*)
|
|
||||||
CHECKPOINT="${i#*=}"
|
|
||||||
shift # past argument=value
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
# unknown option
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "INSTR_LIMIT = ${INSTR_LIMIT}"
|
|
||||||
echo "INSTR_WAVEON = ${INSTR_WAVEON}"
|
|
||||||
echo "CHECKPOINT = ${CHECKPOINT}"
|
|
||||||
|
|
||||||
# *** change config from buildroot to rv64gc
|
|
||||||
vsim -c <<!
|
|
||||||
do wally-batch.do buildroot buildroot-no-trace $RISCV $INSTR_LIMIT $INSTR_WAVEON $CHECKPOINT
|
|
||||||
!
|
|
@ -1 +0,0 @@
|
|||||||
vsim -c -do "do wally-batch.do rv64gc wally64periph"
|
|
@ -1,55 +0,0 @@
|
|||||||
# testfloat-batch.do
|
|
||||||
#
|
|
||||||
# Modification by Oklahoma State University & Harvey Mudd College
|
|
||||||
# Use with Testbench
|
|
||||||
# James Stine, 2008; David Harris 2021; Kevin Kim 2024
|
|
||||||
# Go Cowboys!!!!!!
|
|
||||||
#
|
|
||||||
# Takes 1:10 to run RV64IC tests using gui
|
|
||||||
|
|
||||||
# run with vsim -do "do wally.do rv64ic riscvarchtest-64m"
|
|
||||||
|
|
||||||
onbreak {resume}
|
|
||||||
|
|
||||||
# create library
|
|
||||||
|
|
||||||
if [file exists wkdir/work_${1}_${2}] {
|
|
||||||
vdel -lib wkdir/work_${1}_${2} -all
|
|
||||||
}
|
|
||||||
vlib wkdir/work_${1}_${2}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# c# compile source files
|
|
||||||
# suppress spurious warnngs about
|
|
||||||
# "Extra checking for conflicts with always_comb done at vopt time"
|
|
||||||
# because vsim will run vopt
|
|
||||||
|
|
||||||
# start and run simulation
|
|
||||||
# remove +acc flag for faster sim during regressions if there is no need to access internal signals
|
|
||||||
# $num = the added words after the call
|
|
||||||
|
|
||||||
vlog -lint -work wkdir/work_${1}_${2} +incdir+../config/$1 +incdir+../config/deriv/$1 +incdir+../config/shared ../src/cvw.sv ../testbench/testbench-fp.sv ../src/fpu/*.sv ../src/fpu/*/*.sv ../src/generic/*.sv ../src/generic/flop/*.sv -suppress 2583,7063,8607,2697,7033
|
|
||||||
|
|
||||||
|
|
||||||
# Set WAV variable to avoid having any output to wave (to limit disk space)
|
|
||||||
quietly set WAV 0;
|
|
||||||
|
|
||||||
# Determine if nowave argument is provided this removes any output to
|
|
||||||
# a wlf or wave window to reduce disk space.
|
|
||||||
if {$WAV eq 0} {
|
|
||||||
puts "No wave output is selected"
|
|
||||||
} else {
|
|
||||||
puts "wave output is selected"
|
|
||||||
view wave
|
|
||||||
add log -recursive /*
|
|
||||||
do wave-fpu.do
|
|
||||||
}
|
|
||||||
|
|
||||||
# Change TEST_SIZE to only test certain FP width
|
|
||||||
# values are QP, DP, SP, HP or all for all tests
|
|
||||||
|
|
||||||
vopt +acc wkdir/work_${1}_${2}.testbenchfp -work wkdir/work_${1}_${2} -G TEST=$2 -G TEST_SIZE="all" -o testbenchopt
|
|
||||||
vsim -lib wkdir/work_${1}_${2} testbenchopt -fatal 7 -suppress 3829
|
|
||||||
#-- Run the Simulation
|
|
||||||
run -all
|
|
@ -1,52 +0,0 @@
|
|||||||
# testfloat.do
|
|
||||||
#
|
|
||||||
# Modification by Oklahoma State University & Harvey Mudd College
|
|
||||||
# Use with Testbench
|
|
||||||
# James Stine, 2008; David Harris 2021
|
|
||||||
# Go Cowboys!!!!!!
|
|
||||||
#
|
|
||||||
# Takes 1:10 to run RV64IC tests using gui
|
|
||||||
|
|
||||||
# run with vsim -do "do wally.do rv64ic riscvarchtest-64m"
|
|
||||||
|
|
||||||
onbreak {resume}
|
|
||||||
|
|
||||||
# create library
|
|
||||||
if [file exists work] {
|
|
||||||
vdel -all
|
|
||||||
}
|
|
||||||
vlib work
|
|
||||||
|
|
||||||
# compile source files
|
|
||||||
# suppress spurious warnngs about
|
|
||||||
# "Extra checking for conflicts with always_comb done at vopt time"
|
|
||||||
# because vsim will run vopt
|
|
||||||
|
|
||||||
# start and run simulation
|
|
||||||
# remove +acc flag for faster sim during regressions if there is no need to access internal signals
|
|
||||||
# $num = the added words after the call
|
|
||||||
vlog +incdir+../config/deriv/$1 +incdir+../config/$1 +incdir+../config/shared ../src/cvw.sv ../testbench/testbench-fp.sv ../src/fpu/*.sv ../src/fpu/*/*.sv ../src/generic/*.sv ../src/generic/flop/*.sv -suppress 2583,7063,8607,2697
|
|
||||||
|
|
||||||
# Change TEST_SIZE to only test certain FP width
|
|
||||||
# values are QP, DP, SP, HP or all for all tests
|
|
||||||
vsim -voptargs=+acc work.testbenchfp -GTEST=$2 -GTEST_SIZE="all"
|
|
||||||
|
|
||||||
# Set WAV variable to avoid having any output to wave (to limit disk space)
|
|
||||||
quietly set WAV 1;
|
|
||||||
|
|
||||||
# Determine if nowave argument is provided this removes any output to
|
|
||||||
# a wlf or wave window to reduce disk space.
|
|
||||||
if {$WAV eq 0} {
|
|
||||||
puts "No wave output is selected"
|
|
||||||
} else {
|
|
||||||
puts "wave output is selected"
|
|
||||||
view wave
|
|
||||||
add log -recursive /*
|
|
||||||
do wave-fpu.do
|
|
||||||
}
|
|
||||||
|
|
||||||
#-- Run the Simulation
|
|
||||||
run -all
|
|
||||||
noview testbench-fp.sv
|
|
||||||
view wave
|
|
||||||
|
|
120
sim/wally.do
120
sim/wally.do
@ -1,120 +0,0 @@
|
|||||||
# wally.do
|
|
||||||
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
|
|
||||||
#
|
|
||||||
# Modification by Oklahoma State University & Harvey Mudd College
|
|
||||||
# Use with Testbench
|
|
||||||
# James Stine, 2008; David Harris 2021
|
|
||||||
# Go Cowboys!!!!!!
|
|
||||||
#
|
|
||||||
# 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.do
|
|
||||||
# or, to run from a shell, type the following at the shell prompt:
|
|
||||||
# vsim -do wally.do -c
|
|
||||||
# (omit the "-c" to see the GUI while running from the shell)
|
|
||||||
|
|
||||||
onbreak {resume}
|
|
||||||
|
|
||||||
# create library
|
|
||||||
if [file exists work] {
|
|
||||||
vdel -all
|
|
||||||
}
|
|
||||||
vlib work
|
|
||||||
|
|
||||||
# compile source files
|
|
||||||
# suppress spurious warnngs about
|
|
||||||
# "Extra checking for conflicts with always_comb done at vopt time"
|
|
||||||
# because vsim will run vopt
|
|
||||||
|
|
||||||
# start and run simulation
|
|
||||||
# remove +acc flag for faster sim during regressions if there is no need to access internal signals
|
|
||||||
if {$2 eq "buildroot" || $2 eq "buildroot-checkpoint"} {
|
|
||||||
vlog -lint -work work_${1}_${2} +incdir+../config/$1 +incdir+../config/deriv/$1 +incdir+../config/shared ../src/cvw.sv ../testbench/testbench-linux.sv ../testbench/common/*.sv ../src/*/*.sv ../src/*/*/*.sv -suppress 2583
|
|
||||||
# start and run simulation
|
|
||||||
vopt +acc work_${1}_${2}.testbench -work work_${1}_${2} -G RISCV_DIR=$3 -G INSTR_LIMIT=$4 -G INSTR_WAVEON=$5 -G CHECKPOINT=$6 -G NO_SPOOFING=0 -o testbenchopt
|
|
||||||
vsim -lib work_${1}_${2} testbenchopt -suppress 8852,12070,3084,3829,13286 -fatal 7
|
|
||||||
|
|
||||||
#-- Run the Simulation
|
|
||||||
#run -all
|
|
||||||
add log -recursive /*
|
|
||||||
do linux-wave.do
|
|
||||||
run -all
|
|
||||||
|
|
||||||
exec ./slack-notifier/slack-notifier.py
|
|
||||||
|
|
||||||
} elseif {$2 eq "buildroot-no-trace"} {
|
|
||||||
vlog -lint -work work_${1}_${2} +incdir+../config/deriv/$1 +incdir+../config/$1 +incdir+../config/shared ../src/cvw.sv ../testbench/testbench-linux.sv ../testbench/common/*.sv ../src/*/*.sv ../src/*/*/*.sv -suppress 2583
|
|
||||||
# start and run simulation
|
|
||||||
vopt +acc work_${1}_${2}.testbench -work work_${1}_${2} -G RISCV_DIR=$3 -G INSTR_LIMIT=0 -G INSTR_WAVEON=0 -G CHECKPOINT=0 -G NO_SPOOFING=1 -o testbenchopt
|
|
||||||
vsim -lib work_${1}_${2} testbenchopt -suppress 8852,12070,3084,3829,13286 -fatal 7
|
|
||||||
|
|
||||||
#-- Run the Simulation
|
|
||||||
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
||||||
echo "Don't forget to change DEBUG_LEVEL = 0."
|
|
||||||
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
|
|
||||||
#run 100 ns
|
|
||||||
#force -deposit testbench/dut/core/priv/priv/csr/csri/IE_REGW 16'h2aa
|
|
||||||
#force -deposit testbench/dut/uncore/uncore/clint/clint/MTIMECMP 64'h1000
|
|
||||||
run 14000 ms
|
|
||||||
#add log -recursive /*
|
|
||||||
#do linux-wave.do
|
|
||||||
#run -all
|
|
||||||
|
|
||||||
exec ./slack-notifier/slack-notifier.py
|
|
||||||
|
|
||||||
} elseif {$2 eq "fpga"} {
|
|
||||||
echo "hello"
|
|
||||||
vlog -work work +incdir+../config/fpga +incdir+../config/deriv/$1 +incdir+../config/shared ../src/cvw.sv ../testbench/testbench.sv ../testbench/sdc/*.sv ../testbench/common/*.sv ../src/*/*.sv ../src/*/*/*.sv ../../fpga/sim/*.sv -suppress 8852,12070,3084,3829,2583,7063,13286
|
|
||||||
vopt +acc work.testbench -G TEST=$2 -G DEBUG=0 -o workopt
|
|
||||||
vsim workopt +nowarn3829 -fatal 7
|
|
||||||
|
|
||||||
do fpga-wave.do
|
|
||||||
add log -r /*
|
|
||||||
run 20 ms
|
|
||||||
|
|
||||||
} else {
|
|
||||||
vlog +incdir+../config/$1 +incdir+../config/deriv/$1 +incdir+../config/shared ../src/cvw.sv ../testbench/testbench.sv ../testbench/common/*.sv ../src/*/*.sv ../src/*/*/*.sv -suppress 2583,13286 -suppress 7063
|
|
||||||
vopt +acc work.testbench -G TEST=$2 -G DEBUG=1 -o workopt
|
|
||||||
|
|
||||||
vsim workopt +nowarn3829 -fatal 7
|
|
||||||
|
|
||||||
view wave
|
|
||||||
#-- display input and output signals as hexidecimal values
|
|
||||||
#do ./wave-dos/peripheral-waves.do
|
|
||||||
add log -recursive /*
|
|
||||||
do wave.do
|
|
||||||
#do wave-bus.do
|
|
||||||
|
|
||||||
# power add generates the logging necessary for saif generation.
|
|
||||||
#power add -r /dut/core/*
|
|
||||||
#-- Run the Simulation
|
|
||||||
|
|
||||||
run -all
|
|
||||||
#power off -r /dut/core/*
|
|
||||||
#power report -all -bsaif power.saif
|
|
||||||
noview ../testbench/testbench.sv
|
|
||||||
view wave
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#elseif {$2 eq "buildroot-no-trace""} {
|
|
||||||
# vlog -lint -work work_${1}_${2} +incdir+../config/deriv/$1 +incdir+../config/$1 +incdir+../config/shared ../testbench/testbench-linux.sv ../testbench/common/*.sv ../src/*/*.sv ../src/*/*/*.sv -suppress 2583
|
|
||||||
# start and run simulation
|
|
||||||
# vopt +acc work_${1}_${2}.testbench -work work_${1}_${2} -G RISCV_DIR=$3 -G INSTR_LIMIT=470350800 -G INSTR_WAVEON=470350800 -G CHECKPOINT=470350800 -G DEBUG_TRACE=0 -o testbenchopt
|
|
||||||
# vsim -lib work_${1}_${2} testbenchopt -suppress 8852,12070,3084,3829
|
|
||||||
|
|
||||||
#-- Run the Simulation
|
|
||||||
# run 100 ns
|
|
||||||
# force -deposit testbench/dut/core/priv/priv/csr/csri/IE_REGW 16'h2aa
|
|
||||||
# force -deposit testbench/dut/uncore/uncore/clint/clint/MTIMECMP 64'h1000
|
|
||||||
# add log -recursive /*
|
|
||||||
# do linux-wave.do
|
|
||||||
# run -all
|
|
||||||
|
|
||||||
# exec ./slack-notifier/slack-notifier.py
|
|
||||||
#}
|
|
1606
sim/wave-all.do
1606
sim/wave-all.do
File diff suppressed because it is too large
Load Diff
@ -1,100 +0,0 @@
|
|||||||
restart -f
|
|
||||||
delete wave /*
|
|
||||||
view wave
|
|
||||||
|
|
||||||
add wave /testbench/clk
|
|
||||||
add wave /testbench/reset
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
# new
|
|
||||||
#add wave /testbench/dut/core/ebu/ebu/IReadF
|
|
||||||
add wave /testbench/dut/core/DataStall
|
|
||||||
add wave /testbench/dut/core/ICacheStallF
|
|
||||||
add wave /testbench/dut/core/StallF
|
|
||||||
add wave /testbench/dut/core/StallD
|
|
||||||
|
|
||||||
add wave /testbench/dut/core/StallE
|
|
||||||
add wave /testbench/dut/core/StallM
|
|
||||||
add wave /testbench/dut/core/StallW
|
|
||||||
add wave /testbench/dut/core/FlushD
|
|
||||||
add wave /testbench/dut/core/FlushE
|
|
||||||
add wave /testbench/dut/core/FlushM
|
|
||||||
add wave /testbench/dut/core/FlushW
|
|
||||||
|
|
||||||
add wave -noupdate -divider -height 32 "MulDiv"
|
|
||||||
add wave -hex /testbench/dut/core/mdu/*
|
|
||||||
|
|
||||||
add wave -noupdate -divider -height 32 "Integer Divider"
|
|
||||||
add wave -hex /testbench/dut/core/mdu/genblk1/div/fsm1/CURRENT_STATE
|
|
||||||
add wave -hex /testbench/dut/core/mdu/genblk1/div/fsm1/NEXT_STATE
|
|
||||||
add wave -hex /testbench/dut/core/mdu/genblk1/div/*
|
|
||||||
|
|
||||||
add wave -noupdate -divider -height 32 "RF"
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/*
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf
|
|
||||||
|
|
||||||
add wave -divider
|
|
||||||
add wave -hex /testbench/dut/core/ifu/PCF
|
|
||||||
add wave -hex /testbench/dut/core/ifu/PCD
|
|
||||||
add wave -hex /testbench/dut/core/ifu/InstrD
|
|
||||||
add wave /testbench/InstrDName
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
add wave -hex /testbench/dut/core/ifu/PCE
|
|
||||||
add wave -hex /testbench/dut/core/ifu/InstrE
|
|
||||||
add wave /testbench/InstrEName
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/SrcAE
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/SrcBE
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/ALUResultE
|
|
||||||
#add wave /testbench/dut/core/ieu/dp/PCSrcE
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
add wave -hex /testbench/dut/core/ifu/PCM
|
|
||||||
add wave -hex /testbench/dut/core/ifu/InstrM
|
|
||||||
add wave /testbench/InstrMName
|
|
||||||
add wave /testbench/dut/uncore/uncore/ram/memwrite
|
|
||||||
add wave -hex /testbench/dut/uncore/uncore/HADDR
|
|
||||||
add wave -hex /testbench/dut/uncore/uncore/HWDATA
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/MemReadM
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/InstrReadF
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/BusState
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/NextBusState
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/HADDR
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/HREADY
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/HTRANS
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/HRDATA
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/HWRITE
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/HWDATA
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/HBURST
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/CaptureDataM
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
add wave -hex /testbench/dut/uncore/uncore/ram/*
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
add wave -hex /testbench/dut/core/ifu/PCW
|
|
||||||
add wave -hex /testbench/dut/core/ifu/InstrW
|
|
||||||
add wave /testbench/InstrWName
|
|
||||||
add wave /testbench/dut/core/ieu/dp/RegWriteW
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/ReadDataW
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/ResultW
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/RdW
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
add wave -hex /testbench/dut/uncore/uncore/ram/*
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
# appearance
|
|
||||||
TreeUpdate [SetDefaultTree]
|
|
||||||
WaveRestoreZoom {0 ps} {100 ps}
|
|
||||||
configure wave -namecolwidth 350
|
|
||||||
configure wave -valuecolwidth 250
|
|
||||||
configure wave -justifyvalue left
|
|
||||||
configure wave -signalnamewidth 0
|
|
||||||
configure wave -snapdistance 10
|
|
||||||
configure wave -datasetprefix 0
|
|
||||||
configure wave -rowmargin 4
|
|
||||||
configure wave -childrowmargin 2
|
|
||||||
set DefaultRadix hexadecimal
|
|
@ -1,89 +0,0 @@
|
|||||||
# ahb-waves.do
|
|
||||||
restart -f
|
|
||||||
delete wave /*
|
|
||||||
view wave
|
|
||||||
|
|
||||||
add wave /testbench/clk
|
|
||||||
add wave /testbench/reset
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
#add wave /testbench/dut/core/ebu/ebu/IReadF
|
|
||||||
add wave /testbench/dut/core/DataStall
|
|
||||||
add wave /testbench/dut/core/ICacheStallF
|
|
||||||
add wave /testbench/dut/core/StallF
|
|
||||||
add wave /testbench/dut/core/StallD
|
|
||||||
add wave /testbench/dut/core/StallE
|
|
||||||
add wave /testbench/dut/core/StallM
|
|
||||||
add wave /testbench/dut/core/StallW
|
|
||||||
add wave /testbench/dut/core/FlushD
|
|
||||||
add wave /testbench/dut/core/FlushE
|
|
||||||
add wave /testbench/dut/core/FlushM
|
|
||||||
add wave /testbench/dut/core/FlushW
|
|
||||||
|
|
||||||
add wave -divider
|
|
||||||
add wave -hex /testbench/dut/core/ifu/PCF
|
|
||||||
add wave -hex /testbench/dut/core/ifu/PCD
|
|
||||||
add wave -hex /testbench/dut/core/ifu/InstrD
|
|
||||||
add wave /testbench/InstrDName
|
|
||||||
add wave -hex /testbench/dut/core/ifu/ic/InstrRawD
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
add wave -hex /testbench/dut/core/ifu/PCE
|
|
||||||
add wave -hex /testbench/dut/core/ifu/InstrE
|
|
||||||
add wave /testbench/InstrEName
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/SrcAE
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/SrcBE
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/ALUResultE
|
|
||||||
#add wave /testbench/dut/core/ieu/dp/PCSrcE
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
add wave -hex /testbench/dut/core/ifu/PCM
|
|
||||||
add wave -hex /testbench/dut/core/ifu/InstrM
|
|
||||||
add wave /testbench/InstrMName
|
|
||||||
add wave /testbench/dut/uncore/uncore/ram/memwrite
|
|
||||||
add wave -hex /testbench/dut/uncore/uncore/HADDR
|
|
||||||
add wave -hex /testbench/dut/uncore/uncore/HWDATA
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/MemReadM
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/InstrReadF
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/BusState
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/NextBusState
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/HADDR
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/HREADY
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/HTRANS
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/HRDATA
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/HWRITE
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/HWDATA
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/CaptureDataM
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
add wave -hex /testbench/dut/uncore/uncore/ram/*
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
add wave -hex /testbench/dut/core/ifu/PCW
|
|
||||||
add wave -hex /testbench/dut/core/ifu/InstrW
|
|
||||||
add wave /testbench/InstrWName
|
|
||||||
add wave /testbench/dut/core/ieu/dp/RegWriteW
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/ReadDataW
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/ResultW
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/RdW
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
add wave -hex /testbench/dut/uncore/uncore/ram/*
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
add wave -hex -r /testbench/*
|
|
||||||
|
|
||||||
# appearance
|
|
||||||
TreeUpdate [SetDefaultTree]
|
|
||||||
WaveRestoreZoom {0 ps} {100 ps}
|
|
||||||
configure wave -namecolwidth 250
|
|
||||||
configure wave -valuecolwidth 150
|
|
||||||
configure wave -justifyvalue left
|
|
||||||
configure wave -signalnamewidth 0
|
|
||||||
configure wave -snapdistance 10
|
|
||||||
configure wave -datasetprefix 0
|
|
||||||
configure wave -rowmargin 4
|
|
||||||
configure wave -childrowmargin 2
|
|
||||||
set DefaultRadix hexadecimal
|
|
@ -1,76 +0,0 @@
|
|||||||
add wave /testbench/clk
|
|
||||||
add wave /testbench/reset
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
#add wave /testbench/dut/core/ebu/ebu/IReadF
|
|
||||||
add wave /testbench/dut/core/DataStall
|
|
||||||
add wave /testbench/dut/core/ICacheStallF
|
|
||||||
add wave /testbench/dut/core/StallF
|
|
||||||
add wave /testbench/dut/core/StallD
|
|
||||||
add wave /testbench/dut/core/StallE
|
|
||||||
add wave /testbench/dut/core/StallM
|
|
||||||
add wave /testbench/dut/core/StallW
|
|
||||||
add wave /testbench/dut/core/FlushD
|
|
||||||
add wave /testbench/dut/core/FlushE
|
|
||||||
add wave /testbench/dut/core/FlushM
|
|
||||||
add wave /testbench/dut/core/FlushW
|
|
||||||
|
|
||||||
add wave -divider
|
|
||||||
add wave -hex /testbench/dut/core/ifu/PCF
|
|
||||||
add wave -hex /testbench/dut/core/ifu/PCD
|
|
||||||
add wave -hex /testbench/dut/core/ifu/InstrD
|
|
||||||
|
|
||||||
add wave /testbench/InstrDName
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
|
|
||||||
add wave -hex /testbench/dut/core/ifu/PCE
|
|
||||||
add wave -hex /testbench/dut/core/ifu/InstrE
|
|
||||||
add wave /testbench/InstrEName
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/SrcAE
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/SrcBE
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/ALUResultE
|
|
||||||
#add wave /testbench/dut/core/ieu/dp/PCSrcE
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
add wave -hex /testbench/dut/core/ifu/PCM
|
|
||||||
add wave -hex /testbench/dut/core/ifu/InstrM
|
|
||||||
add wave /testbench/InstrMName
|
|
||||||
add wave /testbench/dut/uncore/uncore/ram/memwrite
|
|
||||||
add wave -hex /testbench/dut/uncore/uncore/HADDR
|
|
||||||
add wave -hex /testbench/dut/uncore/uncore/HWDATA
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/MemReadM
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/InstrReadF
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/BusState
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/NextBusState
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/HADDR
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/HREADY
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/HTRANS
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/HRDATA
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/HWRITE
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/HWDATA
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/ReadDataM
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
add wave /testbench/dut/core/ebu/ebu/CaptureDataM
|
|
||||||
add wave /testbench/dut/core/ebu/ebu/CapturedDataAvailable
|
|
||||||
add wave /testbench/dut/core/StallW
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/CapturedData
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/ReadDataWnext
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/ReadDataW
|
|
||||||
add wave -hex /testbench/dut/core/ifu/PCW
|
|
||||||
add wave -hex /testbench/dut/core/ifu/InstrW
|
|
||||||
add wave /testbench/InstrWName
|
|
||||||
add wave /testbench/dut/core/ieu/dp/RegWriteW
|
|
||||||
add wave -hex /testbench/dut/core/ebu/ebu/ReadDataW
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/ResultW
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/RdW
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
add wave -hex /testbench/dut/core/dmem/*
|
|
||||||
add wave -hex /testbench/dut/core/dmem/genblk1/*
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
add wave -hex -r /testbench/*
|
|
@ -1,65 +0,0 @@
|
|||||||
# default-waves.do
|
|
||||||
restart -f
|
|
||||||
delete wave /*
|
|
||||||
view wave
|
|
||||||
|
|
||||||
# Diplays All Signals recursively
|
|
||||||
add wave /testbench/clk
|
|
||||||
add wave /testbench/reset
|
|
||||||
add wave -divider
|
|
||||||
#add wave /testbench/dut/core/ebu/ebu/IReadF
|
|
||||||
#add wave /testbench/dut/core/DataStall
|
|
||||||
add wave /testbench/dut/core/ICacheStallF
|
|
||||||
add wave /testbench/dut/core/StallF
|
|
||||||
add wave /testbench/dut/core/StallD
|
|
||||||
add wave /testbench/dut/core/StallE
|
|
||||||
add wave /testbench/dut/core/StallM
|
|
||||||
add wave /testbench/dut/core/StallW
|
|
||||||
add wave /testbench/dut/core/FlushD
|
|
||||||
add wave /testbench/dut/core/FlushE
|
|
||||||
add wave /testbench/dut/core/FlushM
|
|
||||||
add wave /testbench/dut/core/FlushW
|
|
||||||
|
|
||||||
add wave -divider
|
|
||||||
add wave -hex /testbench/dut/core/ifu/PCF
|
|
||||||
add wave -hex /testbench/dut/core/ifu/PCD
|
|
||||||
add wave -hex /testbench/dut/core/ifu/InstrD
|
|
||||||
add wave /testbench/InstrDName
|
|
||||||
add wave -divider
|
|
||||||
add wave -hex /testbench/dut/core/ifu/PCE
|
|
||||||
add wave -hex /testbench/dut/core/ifu/InstrE
|
|
||||||
add wave /testbench/InstrEName
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/SrcAE
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/SrcBE
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/ALUResultE
|
|
||||||
#add wave /testbench/dut/core/ieu/dp/PCSrcE
|
|
||||||
add wave -divider
|
|
||||||
add wave -hex /testbench/dut/core/ifu/PCM
|
|
||||||
add wave -hex /testbench/dut/core/ifu/InstrM
|
|
||||||
add wave /testbench/InstrMName
|
|
||||||
add wave /testbench/dut/uncore/uncore/ram/memwrite
|
|
||||||
add wave -hex /testbench/dut/uncore/uncore/HADDR
|
|
||||||
add wave -hex /testbench/dut/uncore/uncore/HWDATA
|
|
||||||
add wave -divider
|
|
||||||
add wave -hex /testbench/PCW
|
|
||||||
add wave -hex /testbench/InstrW
|
|
||||||
add wave /testbench/InstrWName
|
|
||||||
add wave /testbench/dut/core/ieu/dp/RegWriteW
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/ResultW
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/RdW
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
add wave -hex -r /testbench/*
|
|
||||||
|
|
||||||
# appearance
|
|
||||||
TreeUpdate [SetDefaultTree]
|
|
||||||
WaveRestoreZoom {0 ps} {100 ps}
|
|
||||||
configure wave -namecolwidth 250
|
|
||||||
configure wave -valuecolwidth 150
|
|
||||||
configure wave -justifyvalue left
|
|
||||||
configure wave -signalnamewidth 0
|
|
||||||
configure wave -snapdistance 10
|
|
||||||
configure wave -datasetprefix 0
|
|
||||||
configure wave -rowmargin 4
|
|
||||||
configure wave -childrowmargin 2
|
|
||||||
set DefaultRadix hexadecimal
|
|
@ -1,23 +0,0 @@
|
|||||||
# default-waves.do
|
|
||||||
restart -f
|
|
||||||
delete wave /*
|
|
||||||
view wave
|
|
||||||
|
|
||||||
# Diplays All Signals recursively
|
|
||||||
add wave /testbench/clk
|
|
||||||
add wave /testbench/reset
|
|
||||||
add wave -divider
|
|
||||||
add wave -hex -r /testbench/*
|
|
||||||
|
|
||||||
# appearance
|
|
||||||
TreeUpdate [SetDefaultTree]
|
|
||||||
WaveRestoreZoom {0 ps} {300 ps}
|
|
||||||
configure wave -namecolwidth 350
|
|
||||||
configure wave -valuecolwidth 150
|
|
||||||
configure wave -justifyvalue left
|
|
||||||
configure wave -signalnamewidth 0
|
|
||||||
configure wave -snapdistance 10
|
|
||||||
configure wave -datasetprefix 0
|
|
||||||
configure wave -rowmargin 4
|
|
||||||
configure wave -childrowmargin 2
|
|
||||||
set DefaultRadix hexadecimal
|
|
@ -1,207 +0,0 @@
|
|||||||
onerror {resume}
|
|
||||||
quietly WaveActivateNextPane {} 0
|
|
||||||
add wave -noupdate -divider <NULL>
|
|
||||||
add wave -noupdate /testbench/clk
|
|
||||||
add wave -noupdate /testbench/reset
|
|
||||||
add wave -noupdate -radix decimal /testbench/errorCount
|
|
||||||
add wave -noupdate -radix decimal /testbench/InstrCountW
|
|
||||||
add wave -noupdate -divider Stalls_and_Flushes
|
|
||||||
add wave -noupdate /testbench/dut/core/StallF
|
|
||||||
add wave -noupdate /testbench/dut/core/StallD
|
|
||||||
add wave -noupdate /testbench/dut/core/StallE
|
|
||||||
add wave -noupdate /testbench/dut/core/StallM
|
|
||||||
add wave -noupdate /testbench/dut/core/StallW
|
|
||||||
add wave -noupdate /testbench/dut/core/FlushD
|
|
||||||
add wave -noupdate /testbench/dut/core/FlushE
|
|
||||||
add wave -noupdate /testbench/dut/core/FlushM
|
|
||||||
add wave -noupdate /testbench/dut/core/FlushW
|
|
||||||
add wave -noupdate -divider F
|
|
||||||
add wave -noupdate -radix hexadecimal /testbench/dut/core/ifu/PCF
|
|
||||||
add wave -noupdate -divider D
|
|
||||||
add wave -noupdate -radix hexadecimal /testbench/dut/core/ifu/PCD
|
|
||||||
add wave -noupdate /testbench/InstrDName
|
|
||||||
add wave -noupdate -radix hexadecimal /testbench/dut/core/ifu/InstrD
|
|
||||||
add wave -noupdate -radix hexadecimal /testbench/dut/core/ieu/c/InstrValidD
|
|
||||||
add wave -noupdate -divider E
|
|
||||||
add wave -noupdate -radix hexadecimal /testbench/dut/core/ifu/PCE
|
|
||||||
add wave -noupdate /testbench/InstrEName
|
|
||||||
add wave -noupdate -radix hexadecimal /testbench/dut/core/ifu/InstrE
|
|
||||||
add wave -noupdate -radix hexadecimal /testbench/dut/core/ieu/c/InstrValidE
|
|
||||||
add wave -noupdate -radix hexadecimal /testbench/dut/core/ieu/dp/SrcAE
|
|
||||||
add wave -noupdate -radix hexadecimal /testbench/dut/core/ieu/dp/SrcBE
|
|
||||||
add wave -noupdate -radix hexadecimal /testbench/dut/core/ieu/dp/ALUResultE
|
|
||||||
add wave -noupdate -divider M
|
|
||||||
add wave -noupdate -radix hexadecimal /testbench/dut/core/ifu/PCM
|
|
||||||
add wave -noupdate /testbench/InstrMName
|
|
||||||
add wave -noupdate /testbench/textM
|
|
||||||
add wave -noupdate -radix hexadecimal /testbench/dut/core/ifu/InstrM
|
|
||||||
add wave -noupdate -radix hexadecimal /testbench/dut/core/ieu/c/InstrValidM
|
|
||||||
add wave -noupdate -radix hexadecimal /testbench/dut/core/lsu.bus.dcache/MemPAdrM
|
|
||||||
add wave -noupdate -radix hexadecimal /testbench/dut/core/lsu.bus.dcache/MemRWM
|
|
||||||
add wave -noupdate /testbench/dut/core/lsu.bus.dcache/WriteDataM
|
|
||||||
add wave -noupdate -radix hexadecimal /testbench/dut/core/lsu.bus.dcache/ReadDataM
|
|
||||||
add wave -noupdate -group Walker /testbench/dut/core/lsu/hptw/genblk1/DTLBWalk
|
|
||||||
add wave -noupdate -group Walker /testbench/dut/core/lsu/hptw/genblk1/BasePageTablePPN
|
|
||||||
add wave -noupdate -group Walker /testbench/dut/core/lsu/hptw/genblk1/CurrentPPN
|
|
||||||
add wave -noupdate -group Walker /testbench/dut/core/lsu/hptw/genblk1/MemWrite
|
|
||||||
add wave -noupdate -group Walker /testbench/dut/core/lsu/hptw/genblk1/Executable
|
|
||||||
add wave -noupdate -group Walker /testbench/dut/core/lsu/hptw/genblk1/Writable
|
|
||||||
add wave -noupdate -group Walker /testbench/dut/core/lsu/hptw/genblk1/Readable
|
|
||||||
add wave -noupdate -group Walker /testbench/dut/core/lsu/hptw/genblk1/Valid
|
|
||||||
add wave -noupdate -group Walker /testbench/dut/core/lsu/hptw/genblk1/Misaligned
|
|
||||||
add wave -noupdate -group Walker /testbench/dut/core/lsu/hptw/genblk1/MegapageMisaligned
|
|
||||||
add wave -noupdate -group Walker /testbench/dut/core/lsu/hptw/genblk1/ValidPTE
|
|
||||||
add wave -noupdate -group Walker /testbench/dut/core/lsu/hptw/genblk1/LeafPTE
|
|
||||||
add wave -noupdate -group Walker /testbench/dut/core/lsu/hptw/genblk1/ValidLeafPTE
|
|
||||||
add wave -noupdate -group Walker /testbench/dut/core/lsu/hptw/genblk1/ValidNonLeafPTE
|
|
||||||
add wave -noupdate -group Walker /testbench/dut/core/lsu/hptw/genblk1/StartWalk
|
|
||||||
add wave -noupdate -group Walker /testbench/dut/core/lsu/hptw/genblk1/TLBMiss
|
|
||||||
add wave -noupdate -group Walker /testbench/dut/core/lsu/hptw/genblk1/PRegEn
|
|
||||||
add wave -noupdate -group Walker /testbench/dut/core/lsu/hptw/genblk1/NextPageType
|
|
||||||
add wave -noupdate -group Walker /testbench/dut/core/lsu/hptw/genblk1/SvMode
|
|
||||||
add wave -noupdate -group Walker /testbench/dut/core/lsu/hptw/genblk1/TranslationVAdr
|
|
||||||
add wave -noupdate -group Walker /testbench/dut/core/lsu/hptw/genblk1/WalkerState
|
|
||||||
add wave -noupdate -group Walker /testbench/dut/core/lsu/hptw/genblk1/NextWalkerState
|
|
||||||
add wave -noupdate -group Walker /testbench/dut/core/lsu/hptw/genblk1/InitialWalkerState
|
|
||||||
add wave -noupdate -group LSU -r /testbench/dut/core/lsu/*
|
|
||||||
add wave -noupdate -group DCache -r /testbench/dut/core/lsu.bus.dcache/*
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/clk
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/reset
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/StallW
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/UnsignedLoadM
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/AtomicMaskedM
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/Funct7M
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/InstrPAdrF
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/InstrReadF
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/InstrRData
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/InstrAckF
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/DCtoAHBPAdrM
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/DCtoAHBReadM
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/DCtoAHBWriteM
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/DCtoAHBWriteData
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/DCfromAHBReadData
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/MemSizeM
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/DCfromAHBAck
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/HRDATA
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/HREADY
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/HRESP
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/HCLK
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/HRESETn
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/HADDR
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/HWDATA
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/HWRITE
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/HSIZE
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/HBURST
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/HPROT
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/HTRANS
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/HMASTLOCK
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/HADDRD
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/HSIZED
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/HWRITED
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/GrantData
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/AccessAddress
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/ISize
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/HRDATAMasked
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/ReadDataM
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/HRDATANext
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/CapturedHRDATAMasked
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/WriteData
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/IReady
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/DReady
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/CaptureDataM
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/CapturedDataAvailable
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/BusState
|
|
||||||
add wave -noupdate -group EBU /testbench/dut/core/ebu/ebu/NextBusState
|
|
||||||
add wave -noupdate -divider W
|
|
||||||
add wave -noupdate -radix hexadecimal /testbench/PCW
|
|
||||||
add wave -noupdate -radix hexadecimal /testbench/dut/core/ieu/c/InstrValidW
|
|
||||||
add wave -noupdate /testbench/textM
|
|
||||||
add wave -noupdate /testbench/dut/core/ieu/dp/ReadDataW
|
|
||||||
add wave -noupdate -radix hexadecimal /testbench/dut/core/ieu/dp/ResultW
|
|
||||||
add wave -noupdate -group RF /testbench/dut/core/ieu/dp/RegWriteW
|
|
||||||
add wave -noupdate -group RF -radix unsigned /testbench/dut/core/ieu/dp/RdW
|
|
||||||
add wave -noupdate -group RF /testbench/dut/core/ieu/dp/regf/wd3
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[2]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[3]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[4]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[5]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[6]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[7]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[8]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[9]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[10]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[11]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[12]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[13]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[14]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[15]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[16]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[17]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[18]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[19]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[20]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[21]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[22]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[23]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[24]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[25]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[26]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[27]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[28]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[29]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[30]}
|
|
||||||
add wave -noupdate -group RF -radix hexadecimal {/testbench/dut/core/ieu/dp/regf/rf[31]}
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/MSTATUS_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/MCOUNTINHIBIT_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/MCOUNTEREN_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csri/MIDELEG_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csri/MIP_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csri/MIE_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csrm/MEPC_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csrm/MTVEC_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csrm/MCOUNTEREN_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csrm/MCOUNTINHIBIT_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csrm/MEDELEG_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csrm/MIDELEG_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csrm/MSCRATCH_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csrm/MCAUSE_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csrm/MTVAL_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/SSTATUS_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/SCOUNTEREN_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csri/SIP_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csri/SIE_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csrs/SEPC_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csrs/STVEC_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csrs/SCOUNTEREN_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csrs/SEDELEG_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csrs/SIDELEG_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csrs/SATP_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/USTATUS_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csrn/UEPC_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csrn/UTVEC_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csrn/UIP_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csrn/UIE_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csrm/PMPCFG_ARRAY_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csrm/PMPADDR_ARRAY_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csrm/MISA_REGW
|
|
||||||
add wave -noupdate -group CSR -radix hexadecimal /testbench/dut/core/priv/csr/genblk1/csru/FRM_REGW
|
|
||||||
add wave -noupdate -divider <NULL>
|
|
||||||
add wave -hex -r /testbench/*
|
|
||||||
TreeUpdate [SetDefaultTree]
|
|
||||||
WaveRestoreCursors {{Cursor 8} {42752672 ns} 1} {{Cursor 2} {42752634 ns} 0}
|
|
||||||
quietly wave cursor active 2
|
|
||||||
configure wave -namecolwidth 250
|
|
||||||
configure wave -valuecolwidth 297
|
|
||||||
configure wave -justifyvalue left
|
|
||||||
configure wave -signalnamewidth 1
|
|
||||||
configure wave -snapdistance 10
|
|
||||||
configure wave -datasetprefix 0
|
|
||||||
configure wave -rowmargin 4
|
|
||||||
configure wave -childrowmargin 2
|
|
||||||
configure wave -gridoffset 0
|
|
||||||
configure wave -gridperiod 1
|
|
||||||
configure wave -griddelta 40
|
|
||||||
configure wave -timeline 0
|
|
||||||
configure wave -timelineunits ns
|
|
||||||
update
|
|
||||||
WaveRestoreZoom {42752559 ns} {42752771 ns}
|
|
@ -1,118 +0,0 @@
|
|||||||
# peripheral-waves.do
|
|
||||||
|
|
||||||
restart -f
|
|
||||||
delete wave /*
|
|
||||||
view wave
|
|
||||||
|
|
||||||
# general stuff
|
|
||||||
add wave /testbench/clk
|
|
||||||
add wave /testbench/reset
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
#add wave /testbench/dut/core/DataStall
|
|
||||||
add wave /testbench/dut/core/StallF
|
|
||||||
add wave /testbench/dut/core/StallD
|
|
||||||
add wave /testbench/dut/core/StallE
|
|
||||||
add wave /testbench/dut/core/StallM
|
|
||||||
add wave /testbench/dut/core/StallW
|
|
||||||
add wave /testbench/dut/core/FlushD
|
|
||||||
add wave /testbench/dut/core/FlushE
|
|
||||||
add wave /testbench/dut/core/FlushM
|
|
||||||
add wave /testbench/dut/core/FlushW
|
|
||||||
add wave -divider
|
|
||||||
|
|
||||||
add wave -hex /testbench/dut/core/ifu/PCF
|
|
||||||
add wave -hex /testbench/dut/core/ifu/PCD
|
|
||||||
add wave -hex /testbench/dut/core/ifu/InstrD
|
|
||||||
add wave -hex /testbench/dut/core/ieu/c/InstrValidD
|
|
||||||
add wave /testbench/InstrDName
|
|
||||||
add wave -divider
|
|
||||||
add wave -hex /testbench/dut/core/ifu/PCE
|
|
||||||
add wave -hex /testbench/dut/core/ifu/InstrE
|
|
||||||
add wave -hex /testbench/dut/core/ieu/c/InstrValidE
|
|
||||||
add wave /testbench/InstrEName
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/SrcAE
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/SrcBE
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/ALUResultE
|
|
||||||
#add wave /testbench/dut/core/ieu/dp/PCSrcE
|
|
||||||
add wave /testbench/dut/core/mdu/genblk1/div/DivStartE
|
|
||||||
add wave /testbench/dut/core/mdu/DivBusyE
|
|
||||||
add wave -hex /testbench/dut/core/mdu/genblk1/div/RemM
|
|
||||||
add wave -hex /testbench/dut/core/mdu/genblk1/div/QuotM
|
|
||||||
|
|
||||||
add wave -divider
|
|
||||||
add wave -hex /testbench/dut/core/ifu/PCM
|
|
||||||
add wave -hex /testbench/dut/core/ifu/InstrM
|
|
||||||
add wave -hex /testbench/dut/core/ieu/c/InstrValidM
|
|
||||||
add wave /testbench/InstrMName
|
|
||||||
add wave /testbench/dut/uncore/uncore/ram/memwrite
|
|
||||||
add wave -hex /testbench/dut/core/WriteDataM
|
|
||||||
add wave -hex /testbench/dut/core/lsu.bus.dcache/MemPAdrM
|
|
||||||
add wave -hex /testbench/dut/core/lsu.bus.dcache/WriteDataM
|
|
||||||
add wave -hex /testbench/dut/core/lsu.bus.dcache/ReadDataM
|
|
||||||
add wave -divider
|
|
||||||
add wave -hex /testbench/PCW
|
|
||||||
#add wave -hex /testbench/InstrW
|
|
||||||
#add wave -hex /testbench/dut/core/ieu/c/InstrValidW
|
|
||||||
#add wave /testbench/InstrWName
|
|
||||||
add wave -hex /testbench/dut/core/ReadDataW
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/ResultW
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/RegWriteW
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/WriteDataW
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/RdW
|
|
||||||
add wave -divider
|
|
||||||
add wave -hex /testbench/dut/core/priv/csr/TrapM
|
|
||||||
add wave -hex /testbench/dut/core/priv/csr/UnalignedNextEPCM
|
|
||||||
add wave -hex /testbench/dut/core/priv/csr/genblk1/csrm/WriteMEPCM
|
|
||||||
add wave -hex /testbench/dut/core/priv/csr/genblk1/csrm/MEPC_REGW
|
|
||||||
|
|
||||||
add wave -divider RegFile
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[1]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[2]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[3]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[4]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[5]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[6]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[7]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[8]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[9]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[10]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[11]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[12]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[13]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[14]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[15]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[16]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[17]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[18]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[19]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[20]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[21]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[22]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[23]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[24]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[25]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[26]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[27]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[28]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[29]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[30]
|
|
||||||
add wave -hex /testbench/dut/core/ieu/dp/regf/rf[31]
|
|
||||||
|
|
||||||
# peripherals
|
|
||||||
add wave -divider PLIC
|
|
||||||
add wave -hex /testbench/dut/core/priv/csr/TrapM
|
|
||||||
add wave -hex /testbench/dut/uncore/uncore/plic/plic/*
|
|
||||||
add wave -hex /testbench/dut/uncore/uncore/plic/plic/intPriority
|
|
||||||
add wave -hex /testbench/dut/uncore/uncore/plic/plic/pendingArray
|
|
||||||
add wave -divider UART
|
|
||||||
add wave -hex /testbench/dut/uncore/uncore/uart/uart/u/*
|
|
||||||
add wave -divider GPIO
|
|
||||||
add wave -hex /testbench/dut/uncore/uncore/gpio/gpio/*
|
|
||||||
#add wave -divider
|
|
||||||
#add wave -hex /testbench/dut/core/ebu/ebu/*
|
|
||||||
#add wave -divider
|
|
||||||
#add wave -divider
|
|
||||||
|
|
||||||
# everything else
|
|
||||||
add wave -hex -r /testbench/*
|
|
@ -1,30 +0,0 @@
|
|||||||
|
|
||||||
add wave -noupdate /testbenchfp/clk
|
|
||||||
add wave -noupdate -radix decimal /testbenchfp/VectorNum
|
|
||||||
add wave -noupdate /testbenchfp/FrmNum
|
|
||||||
add wave -noupdate /testbenchfp/X
|
|
||||||
add wave -noupdate /testbenchfp/Y
|
|
||||||
add wave -noupdate /testbenchfp/Z
|
|
||||||
add wave -noupdate /testbenchfp/Res
|
|
||||||
add wave -noupdate /testbenchfp/Ans
|
|
||||||
add wave -noupdate /testbenchfp/reset
|
|
||||||
add wave -noupdate /testbenchfp/DivStart
|
|
||||||
add wave -noupdate /testbenchfp/FDivBusyE
|
|
||||||
add wave -noupdate /testbenchfp/CheckNow
|
|
||||||
add wave -noupdate /testbenchfp/DivDone
|
|
||||||
add wave -noupdate /testbenchfp/ResMatch
|
|
||||||
add wave -noupdate /testbenchfp/FlagMatch
|
|
||||||
add wave -noupdate /testbenchfp/CheckNow
|
|
||||||
add wave -noupdate /testbenchfp/NaNGood
|
|
||||||
add wave -group {PostProc} -noupdate /testbenchfp/postprocess/*
|
|
||||||
add wave -group {PostProc} -noupdate /testbenchfp/postprocess/specialcase/*
|
|
||||||
add wave -group {PostProc} -noupdate /testbenchfp/postprocess/flags/*
|
|
||||||
add wave -group {PostProc} -noupdate /testbenchfp/postprocess/normshift/*
|
|
||||||
add wave -group {PostProc} -noupdate /testbenchfp/postprocess/shiftcorrection/*
|
|
||||||
add wave -group {PostProc} -noupdate /testbenchfp/postprocess/resultsign/*
|
|
||||||
add wave -group {PostProc} -noupdate /testbenchfp/postprocess/round/*
|
|
||||||
add wave -group {PostProc} -noupdate /testbenchfp/postprocess/fmashiftcalc/*
|
|
||||||
add wave -group {PostProc} -noupdate /testbenchfp/postprocess/divshiftcalc/*
|
|
||||||
add wave -group {PostProc} -noupdate /testbenchfp/postprocess/cvtshiftcalc/*
|
|
||||||
add wave -group {Testbench} -noupdate /testbenchfp/*
|
|
||||||
add wave -group {Testbench} -noupdate /testbenchfp/readvectors/*
|
|
@ -27,7 +27,7 @@
|
|||||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
module loggers import cvw::*; #(parameter cvw_t P,
|
module loggers import cvw::*; #(parameter cvw_t P,
|
||||||
parameter string TEST,
|
|
||||||
parameter PrintHPMCounters,
|
parameter PrintHPMCounters,
|
||||||
parameter I_CACHE_ADDR_LOGGER,
|
parameter I_CACHE_ADDR_LOGGER,
|
||||||
parameter D_CACHE_ADDR_LOGGER,
|
parameter D_CACHE_ADDR_LOGGER,
|
||||||
@ -39,7 +39,8 @@ module loggers import cvw::*; #(parameter cvw_t P,
|
|||||||
// input logic BeginSample,
|
// input logic BeginSample,
|
||||||
// input logic StartSample,
|
// input logic StartSample,
|
||||||
// input logic EndSample,
|
// input logic EndSample,
|
||||||
input string memfilename
|
input string memfilename,
|
||||||
|
input string TEST
|
||||||
);
|
);
|
||||||
|
|
||||||
// performance counter logging
|
// performance counter logging
|
||||||
@ -79,40 +80,64 @@ module loggers import cvw::*; #(parameter cvw_t P,
|
|||||||
"Divide Cycles"
|
"Divide Cycles"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
always_comb
|
||||||
|
if (TEST == "embench") begin
|
||||||
|
StartSampleFirst = FunctionName.FunctionName.FunctionName == "start_trigger";
|
||||||
|
EndSampleFirst = FunctionName.FunctionName.FunctionName == "stop_trigger";
|
||||||
|
end else if (TEST == "coremark") begin
|
||||||
|
StartSampleFirst = FunctionName.FunctionName.FunctionName == "start_time";
|
||||||
|
EndSampleFirst = FunctionName.FunctionName.FunctionName == "stop_time";
|
||||||
|
end else begin
|
||||||
|
StartSampleFirst = reset;
|
||||||
|
EndSample = DCacheFlushStart & ~DCacheFlushDone;
|
||||||
|
end
|
||||||
|
|
||||||
|
/*
|
||||||
if(TEST == "embench") begin
|
if(TEST == "embench") begin
|
||||||
// embench runs warmup then runs start_trigger
|
// embench runs warmup then runs start_trigger
|
||||||
// embench end with stop_trigger.
|
// embench end with stop_trigger.
|
||||||
assign StartSampleFirst = FunctionName.FunctionName.FunctionName == "start_trigger";
|
//assign StartSampleFirst = FunctionName.FunctionName.FunctionName == "start_trigger";
|
||||||
flopr #(1) StartSampleReg(clk, reset, StartSampleFirst, StartSampleDelayed);
|
//flopr #(1) StartSampleReg(clk, reset, StartSampleFirst, StartSampleDelayed);
|
||||||
assign StartSample = StartSampleFirst & ~ StartSampleDelayed;
|
//assign StartSample = StartSampleFirst & ~ StartSampleDelayed;
|
||||||
|
|
||||||
assign EndSampleFirst = FunctionName.FunctionName.FunctionName == "stop_trigger";
|
//assign EndSampleFirst = FunctionName.FunctionName.FunctionName == "stop_trigger";
|
||||||
flopr #(1) EndSampleReg(clk, reset, EndSampleFirst, EndSampleDelayed);
|
flopr #(1) EndSampleReg(clk, reset, EndSampleFirst, EndSampleDelayed);
|
||||||
assign EndSample = EndSampleFirst & ~ EndSampleDelayed;
|
assign EndSample = EndSampleFirst & ~ EndSampleDelayed;
|
||||||
|
|
||||||
end else if(TEST == "coremark") begin
|
end else if(TEST == "coremark") begin
|
||||||
// embench runs warmup then runs start_trigger
|
// embench runs warmup then runs start_trigger
|
||||||
// embench end with stop_trigger.
|
// embench end with stop_trigger.
|
||||||
assign StartSampleFirst = FunctionName.FunctionName.FunctionName == "start_time";
|
//assign StartSampleFirst = FunctionName.FunctionName.FunctionName == "start_time";
|
||||||
flopr #(1) StartSampleReg(clk, reset, StartSampleFirst, StartSampleDelayed);
|
//flopr #(1) StartSampleReg(clk, reset, StartSampleFirst, StartSampleDelayed);
|
||||||
assign StartSample = StartSampleFirst & ~ StartSampleDelayed;
|
//assign StartSample = StartSampleFirst & ~ StartSampleDelayed;
|
||||||
|
|
||||||
assign EndSampleFirst = FunctionName.FunctionName.FunctionName == "stop_time";
|
//assign EndSampleFirst = FunctionName.FunctionName.FunctionName == "stop_time";
|
||||||
flopr #(1) EndSampleReg(clk, reset, EndSampleFirst, EndSampleDelayed);
|
flopr #(1) EndSampleReg(clk, reset, EndSampleFirst, EndSampleDelayed);
|
||||||
assign EndSample = EndSampleFirst & ~ EndSampleDelayed;
|
assign EndSample = EndSampleFirst & ~ EndSampleDelayed;
|
||||||
|
|
||||||
end else begin
|
end else begin
|
||||||
// default start condiction is reset
|
// default start condiction is reset
|
||||||
// default end condiction is end of test (DCacheFlushDone)
|
// default end condiction is end of test (DCacheFlushDone)
|
||||||
assign StartSampleFirst = reset;
|
//assign StartSampleFirst = reset;
|
||||||
flopr #(1) StartSampleReg(clk, reset, StartSampleFirst, StartSampleDelayed);
|
//flopr #(1) StartSampleReg(clk, reset, StartSampleFirst, StartSampleDelayed);
|
||||||
assign StartSample = StartSampleFirst & ~ StartSampleDelayed;
|
//assign StartSample = StartSampleFirst & ~ StartSampleDelayed;
|
||||||
assign EndSample = DCacheFlushStart & ~DCacheFlushDone;
|
//assign EndSample = DCacheFlushStart & ~DCacheFlushDone;
|
||||||
|
|
||||||
flop #(1) BeginReg(clk, StartSampleFirst, BeginDelayed);
|
flop #(1) BeginReg(clk, StartSampleFirst, BeginDelayed);
|
||||||
assign BeginSample = StartSampleFirst & ~BeginDelayed;
|
assign BeginSample = StartSampleFirst & ~BeginDelayed;
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
flopr #(1) StartSampleReg(clk, reset, StartSampleFirst, StartSampleDelayed);
|
||||||
|
assign StartSample = StartSampleFirst & ~StartSampleDelayed;
|
||||||
|
flopr #(1) EndSampleReg(clk, reset, EndSampleFirst, EndSampleDelayed);
|
||||||
|
assign EndSample = EndSampleFirst & ~ EndSampleDelayed;
|
||||||
|
flop #(1) BeginReg(clk, StartSampleFirst, BeginDelayed); // ** is this redundant with StartSampleReg?
|
||||||
|
assign BeginSample = StartSampleFirst & ~BeginDelayed;
|
||||||
|
|
||||||
|
|
||||||
always @(negedge clk) begin
|
always @(negedge clk) begin
|
||||||
if(StartSample) begin
|
if(StartSample) begin
|
||||||
for(HPMCindex = 0; HPMCindex < 32; HPMCindex += 1) begin
|
for(HPMCindex = 0; HPMCindex < 32; HPMCindex += 1) begin
|
||||||
|
@ -34,18 +34,16 @@
|
|||||||
`endif
|
`endif
|
||||||
|
|
||||||
import cvw::*;
|
import cvw::*;
|
||||||
|
import "DPI-C" function string getenv(input string env_name);
|
||||||
|
|
||||||
module testbench;
|
module testbench;
|
||||||
/* verilator lint_off WIDTHTRUNC */
|
/* verilator lint_off WIDTHTRUNC */
|
||||||
/* verilator lint_off WIDTHEXPAND */
|
/* verilator lint_off WIDTHEXPAND */
|
||||||
parameter DEBUG=0;
|
parameter DEBUG=0;
|
||||||
parameter string TEST="arch64m";
|
|
||||||
parameter PrintHPMCounters=0;
|
parameter PrintHPMCounters=0;
|
||||||
parameter BPRED_LOGGER=0;
|
parameter BPRED_LOGGER=0;
|
||||||
parameter I_CACHE_ADDR_LOGGER=0;
|
parameter I_CACHE_ADDR_LOGGER=0;
|
||||||
parameter D_CACHE_ADDR_LOGGER=0;
|
parameter D_CACHE_ADDR_LOGGER=0;
|
||||||
parameter RISCV_DIR = "/opt/riscv";
|
|
||||||
parameter INSTR_LIMIT = 0;
|
|
||||||
|
|
||||||
`ifdef USE_IMPERAS_DV
|
`ifdef USE_IMPERAS_DV
|
||||||
import idvPkg::*;
|
import idvPkg::*;
|
||||||
@ -59,6 +57,11 @@ module testbench;
|
|||||||
logic reset_ext, reset;
|
logic reset_ext, reset;
|
||||||
logic ResetMem;
|
logic ResetMem;
|
||||||
|
|
||||||
|
// Variables that can be overwritten with $value$plusargs at start of simulation
|
||||||
|
string TEST;
|
||||||
|
integer INSTR_LIMIT;
|
||||||
|
string RISCV_DIR = getenv("RISCV"); // "/opt/riscv";
|
||||||
|
|
||||||
// DUT signals
|
// DUT signals
|
||||||
logic [P.AHBW-1:0] HRDATAEXT;
|
logic [P.AHBW-1:0] HRDATAEXT;
|
||||||
logic HREADYEXT, HRESPEXT;
|
logic HREADYEXT, HRESPEXT;
|
||||||
@ -99,9 +102,16 @@ module testbench;
|
|||||||
logic SelectTest;
|
logic SelectTest;
|
||||||
logic TestComplete;
|
logic TestComplete;
|
||||||
|
|
||||||
// pick tests based on modes supported
|
|
||||||
initial begin
|
initial begin
|
||||||
$display("TEST is %s", TEST);
|
// look for arguments passed to simulation, or use defaults
|
||||||
|
if (!$value$plusargs("TEST=%s", TEST))
|
||||||
|
TEST = "none";
|
||||||
|
if (!$value$plusargs("INSTR_LIMIT=%d", INSTR_LIMIT))
|
||||||
|
INSTR_LIMIT = 0;
|
||||||
|
$display("INSTR_LIMIT = ", INSTR_LIMIT);
|
||||||
|
|
||||||
|
|
||||||
|
// pick tests based on modes supported
|
||||||
//tests = '{};
|
//tests = '{};
|
||||||
if (P.XLEN == 64) begin // RV64
|
if (P.XLEN == 64) begin // RV64
|
||||||
case (TEST)
|
case (TEST)
|
||||||
@ -309,7 +319,7 @@ module testbench;
|
|||||||
// Verify the test ran correctly by checking the memory against a known signature.
|
// Verify the test ran correctly by checking the memory against a known signature.
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
if(TestBenchReset) test = 1;
|
if(TestBenchReset) test = 1;
|
||||||
if (TEST == "coremark")
|
if (P.ZICSR_SUPPORTED & TEST == "coremark")
|
||||||
if (dut.core.priv.priv.EcallFaultM) begin
|
if (dut.core.priv.priv.EcallFaultM) begin
|
||||||
$display("Benchmark: coremark is done.");
|
$display("Benchmark: coremark is done.");
|
||||||
$stop;
|
$stop;
|
||||||
@ -561,8 +571,8 @@ module testbench;
|
|||||||
ramxdetector #(P.XLEN, P.LLEN) ramxdetector(clk, dut.core.lsu.MemRWM[1], dut.core.lsu.LSULoadAccessFaultM, dut.core.lsu.ReadDataM,
|
ramxdetector #(P.XLEN, P.LLEN) ramxdetector(clk, dut.core.lsu.MemRWM[1], dut.core.lsu.LSULoadAccessFaultM, dut.core.lsu.ReadDataM,
|
||||||
dut.core.ifu.PCM, InstrM, dut.core.lsu.IEUAdrM, InstrMName);
|
dut.core.ifu.PCM, InstrM, dut.core.lsu.IEUAdrM, InstrMName);
|
||||||
riscvassertions #(P) riscvassertions(); // check assertions for a legal configuration
|
riscvassertions #(P) riscvassertions(); // check assertions for a legal configuration
|
||||||
loggers #(P, TEST, PrintHPMCounters, I_CACHE_ADDR_LOGGER, D_CACHE_ADDR_LOGGER, BPRED_LOGGER)
|
loggers #(P, PrintHPMCounters, I_CACHE_ADDR_LOGGER, D_CACHE_ADDR_LOGGER, BPRED_LOGGER)
|
||||||
loggers (clk, reset, DCacheFlushStart, DCacheFlushDone, memfilename);
|
loggers (clk, reset, DCacheFlushStart, DCacheFlushDone, memfilename, TEST);
|
||||||
|
|
||||||
// track the current function or global label
|
// track the current function or global label
|
||||||
if (DEBUG == 1 | ((PrintHPMCounters | BPRED_LOGGER) & P.ZICNTR_SUPPORTED)) begin : FunctionName
|
if (DEBUG == 1 | ((PrintHPMCounters | BPRED_LOGGER) & P.ZICNTR_SUPPORTED)) begin : FunctionName
|
||||||
@ -602,12 +612,14 @@ module testbench;
|
|||||||
|
|
||||||
DCacheFlushFSM #(P) DCacheFlushFSM(.clk(clk), .reset(reset), .start(DCacheFlushStart), .done(DCacheFlushDone));
|
DCacheFlushFSM #(P) DCacheFlushFSM(.clk(clk), .reset(reset), .start(DCacheFlushStart), .done(DCacheFlushDone));
|
||||||
|
|
||||||
if(P.ZICSR_SUPPORTED & INSTR_LIMIT != 0) begin
|
if(P.ZICSR_SUPPORTED) begin
|
||||||
logic [P.XLEN-1:0] Minstret;
|
logic [P.XLEN-1:0] Minstret;
|
||||||
assign Minstret = testbench.dut.core.priv.priv.csr.counters.counters.HPMCOUNTER_REGW[2];
|
assign Minstret = testbench.dut.core.priv.priv.csr.counters.counters.HPMCOUNTER_REGW[2];
|
||||||
always @(negedge clk) begin
|
always @(negedge clk) begin
|
||||||
if((Minstret != 0) && (Minstret % 'd100000 == 0)) $display("Reached %d instructions", Minstret);
|
if (INSTR_LIMIT > 0) begin
|
||||||
if((Minstret == INSTR_LIMIT) & (INSTR_LIMIT!=0)) begin $stop; $stop; end
|
if((Minstret != 0) && (Minstret % 'd100000 == 0)) $display("Reached %d instructions", Minstret);
|
||||||
|
if((Minstret == INSTR_LIMIT) & (INSTR_LIMIT!=0)) begin $stop; $stop; end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -23,15 +23,15 @@
|
|||||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
`include "config.vh"
|
`include "config.vh"
|
||||||
`include "tests-fp.vh"
|
`include "tests_fp.vh"
|
||||||
|
|
||||||
import cvw::*;
|
import cvw::*;
|
||||||
|
|
||||||
module testbenchfp;
|
module testbench_fp;
|
||||||
// Two parameters TEST, TEST_SIZE used with testfloat.do in sim dir
|
// Two parameters TEST, TEST_SIZE used with testfloat.do in sim dir
|
||||||
// to run specific precisions (e.g., quad or all)
|
// to run specific precisions (e.g., quad or all)
|
||||||
parameter string TEST="none";
|
parameter string TEST="none";
|
||||||
parameter string TEST_SIZE="none";
|
parameter string TEST_SIZE="all";
|
||||||
|
|
||||||
`include "parameter-defs.vh"
|
`include "parameter-defs.vh"
|
||||||
|
|
||||||
@ -154,7 +154,7 @@ module testbenchfp;
|
|||||||
// $display("This simulation for TEST is %s", TEST);
|
// $display("This simulation for TEST is %s", TEST);
|
||||||
// $display("This simulation for TEST is of the operand size of %s", TEST_SIZE);
|
// $display("This simulation for TEST is of the operand size of %s", TEST_SIZE);
|
||||||
|
|
||||||
if (P.Q_SUPPORTED & (TEST_SIZE == "QP" | TEST_SIZE == "all")) begin // if Quad percision is supported
|
if (P.Q_SUPPORTED & (TEST_SIZE == "QP" | TEST_SIZE == "all")) begin // if Quad percision is supported
|
||||||
if (TEST === "cvtint" | TEST === "all") begin // if testing integer conversion
|
if (TEST === "cvtint" | TEST === "all") begin // if testing integer conversion
|
||||||
// add the 128-bit cvtint tests to the to-be-tested list
|
// add the 128-bit cvtint tests to the to-be-tested list
|
||||||
Tests = {Tests, f128rv32cvtint};
|
Tests = {Tests, f128rv32cvtint};
|
||||||
@ -662,12 +662,14 @@ module testbenchfp;
|
|||||||
TestNum = 0;
|
TestNum = 0;
|
||||||
end
|
end
|
||||||
|
|
||||||
// set a the signals for all tests
|
// set the signals for all tests
|
||||||
always_comb UnitVal = Unit[TestNum];
|
always_ff @(posedge clk) begin
|
||||||
always_comb FmtVal = Fmt[TestNum];
|
UnitVal = Unit[TestNum];
|
||||||
always_comb OpCtrlVal = OpCtrl[OpCtrlNum];
|
FmtVal = Fmt[TestNum];
|
||||||
always_comb WriteIntVal = WriteInt[OpCtrlNum];
|
OpCtrlVal = OpCtrl[OpCtrlNum];
|
||||||
always_comb FrmVal = Frm[FrmNum];
|
WriteIntVal = WriteInt[OpCtrlNum];
|
||||||
|
FrmVal = Frm[FrmNum];
|
||||||
|
end
|
||||||
|
|
||||||
// modify the format signal if only 2 percisions supported
|
// modify the format signal if only 2 percisions supported
|
||||||
// - 1 for the larger precision
|
// - 1 for the larger precision
|
@ -35,12 +35,12 @@
|
|||||||
|
|
||||||
string tvpaths[] = '{
|
string tvpaths[] = '{
|
||||||
"$RISCV/imperas-riscv-tests/work/",
|
"$RISCV/imperas-riscv-tests/work/",
|
||||||
"../tests/riscof/work/riscv-arch-test/",
|
"../../tests/riscof/work/riscv-arch-test/",
|
||||||
"../tests/riscof/work/wally-riscv-arch-test/",
|
"../../tests/riscof/work/wally-riscv-arch-test/",
|
||||||
"../benchmarks/coremark/work/",
|
"../../benchmarks/coremark/work/",
|
||||||
"../addins/embench-iot/",
|
"../../addins/embench-iot/",
|
||||||
"../tests/custom/work/",
|
"../../tests/custom/work/",
|
||||||
"../tests/coverage/"
|
"../../tests/coverage/"
|
||||||
};
|
};
|
||||||
|
|
||||||
string coverage64gc[] = '{
|
string coverage64gc[] = '{
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
// tests0fo.vh
|
// tests_fp.vh
|
||||||
//
|
//
|
||||||
// Written: Katherine Parry 2022
|
// Written: Katherine Parry 2022
|
||||||
// Modified:
|
// Modified:
|
||||||
@ -24,7 +24,7 @@
|
|||||||
// and limitations under the License.
|
// and limitations under the License.
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
`define PATH "../tests/fp/vectors/"
|
`define PATH "../../tests/fp/vectors/"
|
||||||
`define ADD_OPCTRL 3'b110
|
`define ADD_OPCTRL 3'b110
|
||||||
`define MUL_OPCTRL 3'b100
|
`define MUL_OPCTRL 3'b100
|
||||||
`define SUB_OPCTRL 3'b111
|
`define SUB_OPCTRL 3'b111
|
Loading…
Reference in New Issue
Block a user