🎨 Some cleanup, using UVM reporting everywhere

This commit is contained in:
Florian Zaruba 2017-06-29 18:36:22 +02:00
parent 31bfa5f3d3
commit fa075c79b8
2 changed files with 3 additions and 2 deletions

View file

@ -124,7 +124,7 @@ simc: build
run-asm-tests: build
$(foreach test, $(riscv-tests), vsim$(questa_version) +BASEDIR=$(riscv-test-dir) +max-cycles=$(max_cycles) \
+UVM_TESTNAME=$(test_case) +UVM_VERBOSITY=LOW $(uvm-flags) +ASMTEST=$(test) +uvm_set_action="*,_ALL_,UVM_ERROR,UVM_DISPLAY|UVM_STOP" -c +UVM_VERBOSITY=LOW\
+UVM_TESTNAME=$(test_case) $(uvm-flags) +ASMTEST=$(test) +uvm_set_action="*,_ALL_,UVM_ERROR,UVM_DISPLAY|UVM_STOP" -c \
-coverage -classdebug -do "coverage save -onexit $@.ucdb; run -a; quit -code [coverage attribute -name TESTSTATUS -concise]" \
$(library).$(test_top_level)_optimized;)

View file

@ -24,6 +24,7 @@ import core_lib_pkg::*;
`define DRAM_BASE 64'h80000000
`include "uvm_macros.svh"
module core_tb;
import "DPI-C" function chandle read_elf(string fn);
@ -230,7 +231,7 @@ module core_tb;
file = {base_dir, "/", file_name};
$display("Pre-loading memory from file: %s\n", file);
`uvm_info("Program Loader", $sformatf("Pre-loading memory from file: %s\n", file), UVM_LOW);
// read elf file (DPI call)
void'(read_elf(file));