Skip to content

UVVM-based testbenches and coverage #906

@yikkrubz

Description

@yikkrubz

When some UVVM-based testbenches are simulated with coverage enabled, nvc asks me to file a bug report.
For example, simulating the testbench uart_vvc_demo_tb, included with the UVVM distribution in the directory bitvis_uart, triggers the message.

nvc -a src/uart_pif_pkg.vhd
nvc -a src/uart_pif.vhd
nvc -a src/uart_pkg.vhd
nvc -a src/uart_core.vhd
nvc -a src/uart.vhd
nvc -a tb/uart_vvc_demo_th.vhd
nvc -a tb/uart_vvc_demo_tb.vhd
nvc -e --cover uart_vvc_demo_tb
** Note:

     *****************************************************************************************************
      This is a *** LICENSED PRODUCT *** as given in the LICENSE.TXT in 
     the root directory.
     *****************************************************************************************************

Function SHOW_LICENSE [T_VOID return BOOLEAN] at ../src/license_pkg.vhd:44
Package UVVM_UTIL.METHODS_PKG-body at ../src/methods_pkg.vhd:2987
Package BITVIS_VIP_SBI.TD_TARGET_SUPPORT_PKG-body at ../../uvvm_vvc_framework/src_target_dependent/td_target_support_pkg.vhd:148
Package BITVIS_VIP_SBI.TD_VVC_FRAMEWORK_COMMON_METHODS_PKG-body at ../../uvvm_vvc_framework/src_target_dependent/td_vvc_framework_common_methods_pkg.vhd:439
Process (init) at tb/uart_vvc_demo_tb.vhd:44
** Fatal: invalid type kind T_ARRAY in range_of
[0x1061f9027] diag_femit+0xe27
[0x1060dd7bd] fatal_trace+0xcd
[0x106175eee] range_of+0x11e
[0x1061bbe52] lower_toggle_item_for+0x1e2
[0x1061b5371] lower_toggle_coverage+0x131
[0x1061c12c9] lower_instance+0x2659
[0x10615e354] elab_lower+0x54
[0x10615d125] elab_architecture+0x785
[0x10615f6e5] elab_stmts+0x1225
[0x10615d13b] elab_architecture+0x79b
[0x10615f6e5] elab_stmts+0x1225
[0x10615d13b] elab_architecture+0x79b
[0x10615f6e5] elab_stmts+0x1225
[0x10615d13b] elab_architecture+0x79b
[0x10615b5aa] elab+0x96a
[0x1060d58e0] process_command+0x1060
[0x1060d4268] main+0x578

Please report this bug at https://github.com/nickg/nvc/issues

nvc 1.13-devel (1.12.0.r127.g326e923f) (Using LLVM 18.1.3)
macos 14.5 intel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions