Tests: Move uvm to subdirectory and add context-sensitive waivers

This commit is contained in:
Wilson Snyder 2024-11-11 20:49:59 -05:00
parent 4d95f6f7b8
commit 833c215c45
8 changed files with 39 additions and 14 deletions

View File

@ -42,10 +42,10 @@ EXEMPT_FILES_LIST = """
test_regress/t/t_flag_f__3.v
test_regress/t/t_fuzz_eof_bad.v
test_regress/t/t_incr_void.v
test_regress/t/t_uvm_pkg_all.vh
test_regress/t/t_uvm_pkg_todo.vh
test_regress/t/tsub/t_flag_f_tsub.v
test_regress/t/tsub/t_flag_f_tsub_inc.v
test_regress/t/uvm/uvm_pkg_all.svh
test_regress/t/uvm/uvm_pkg_todo.svh
verilator.pc.in
"""

View File

@ -13,7 +13,7 @@ test.scenarios('vlt')
test.compile(
v_flags2=[
"--binary --timing", #
"--binary --timing +incdir+t/uvm", #
"-Wno-PKGNODECL -Wno-IMPLICITSTATIC -Wno-MISINDENT",
"-Wno-CASEINCOMPLETE -Wno-CASTCONST -Wno-SYMRSVDWORD -Wno-WIDTHEXPAND -Wno-WIDTHTRUNC",
"-Wno-REALCVT", # TODO note mostly related to $realtime - could suppress or fix upstream

View File

@ -6,7 +6,7 @@
`define UVM_NO_DPI
`include "t_uvm_pkg_all.vh"
`include "uvm_pkg_all.svh"
module t(/*AUTOARG*/);

View File

@ -12,15 +12,9 @@ import multiprocessing
test.scenarios('vlt')
test.compile(
v_flags2=[
"--timing", #
"-Wno-PKGNODECL -Wno-IMPLICITSTATIC -Wno-MISINDENT",
"-Wno-CASEINCOMPLETE -Wno-CASTCONST -Wno-SYMRSVDWORD -Wno-WIDTHEXPAND -Wno-WIDTHTRUNC",
"-Wno-REALCVT" # TODO note mostly related to $realtime - could suppress or fix upstream
],
make_flags=['-k -j ' + str(multiprocessing.cpu_count())],
verilator_make_gmake=False)
test.compile(v_flags2=["--timing", "+incdir+t/uvm", "t/t_uvm_todo.vlt"],
make_flags=['-k -j ' + str(multiprocessing.cpu_count())],
verilator_make_gmake=False)
#test.execute()

View File

@ -6,7 +6,7 @@
`define UVM_NO_DPI
`include "t_uvm_pkg_todo.vh"
`include "uvm_pkg_todo.svh"
module t(/*AUTOARG*/);

View File

@ -0,0 +1,31 @@
// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2024 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
`verilator_config
// Whole-file waivers
lint_off -rule WIDTHEXPAND -file "*/uvm_*.svh"
lint_off -rule WIDTHTRUNC -file "*/uvm_*.svh"
// Context-sensitive waivers
lint_off -rule CASEINCOMPLETE -file "*/uvm_*.svh" -match "* case ({is_R, is_W})*"
lint_off -rule CASEINCOMPLETE -file "*/uvm_*.svh" -match "* case(orig_severity)*"
lint_off -rule CASTCONST -file "*/uvm_*.svh" -match "*class{}uvm_callback*"
lint_off -rule CASTCONST -file "*/uvm_*.svh" -match "*class{}uvm_component*"
lint_off -rule CASTCONST -file "*/uvm_*.svh" -match "*class{}uvm_event*"
lint_off -rule CASTCONST -file "*/uvm_*.svh" -match "*class{}uvm_report_object*"
lint_off -rule CASTCONST -file "*/uvm_*.svh" -match "*class{}uvm_sequence_item*"
lint_off -rule MISINDENT -file "*/uvm_*.svh" -match "* foreach (abstractions[i])*"
lint_off -rule MISINDENT -file "*/uvm_*.svh" -match "* foreach (lock_list[i])*"
lint_off -rule MISINDENT -file "*/uvm_*.svh" -match "* rw_access.data=*"
lint_off -rule MISINDENT -file "*/uvm_*.svh" -match "* uvm_cmdline_proc =*"
lint_off -rule REALCVT -file "*/uvm_*.svh" -match "* m_time *"
lint_off -rule REALCVT -file "*/uvm_*.svh" -match "*$realtime*"
lint_off -rule SYMRSVDWORD -file "*/uvm_*.svh" -match "*'delete'*"
lint_off -rule SYMRSVDWORD -file "*/uvm_*.svh" -match "*'list'*"
lint_off -rule SYMRSVDWORD -file "*/uvm_*.svh" -match "*'map'*"
lint_off -rule SYMRSVDWORD -file "*/uvm_*.svh" -match "*'override'*"
lint_off -rule SYMRSVDWORD -file "*/uvm_*.svh" -match "*'volatile'*"