Problem with GC_INSTANCE_IDX in vip_gpio

Hi,

I am facing an issue that I do not see how to solve. As starter, I just cloned today the latest version, just in case this issue was already fixed/addressed. I have testbench (TB) with two different test harnesses(THs), one for the DUT, and the other for the Golden version of the design. Each TH has multiple vvc_gpio instances to control the different ports in my DUT and Golden components.
In order to access each VVC, I have set generics into the THs and then I declare constants into my TB to access them via the VVC methods (and assigning them as well into the generics of the THs).
Everything compiles without showing any error however, when I launch the simulation with Mentor tools (Modelsim and QuestaSim), I got the following error:

# ** Fatal: (vsim-3734) Index value 11 is out of range 0 to 9.
#    Time: 0 ps  Iteration: 0  Process: /tb_uvvm_b05/i_golden/i_gpio_vvc_b05_start/cmd_executor File: UVVM/script/../bitvis_vip_gpio/script/../src/gpio_vvc.vhd
# FATAL ERROR while loading design

11 is one of the constants that I have generated to reference a VVC via GC_INSTANCE_IDX. If I change the value to “-11”, then I got the following error, as expected, during simulation:

Value -11 of generic "GC_INSTANCE_IDX" is out of range 0 to 2147483647.
# ** Fatal: (vsim-3729) Value -11 of generic "GC_INSTANCE_IDX" is out of range 0 to 2147483647.
#    Time: 0 ps  Iteration: 0  Instance: /tb_uvvm_b05/i_golden/i_gpio_vvc_b05_start File: UVVM/script/../bitvis_vip_gpio/script/../src/gpio_vvc.vhd Line: 44
# FATAL ERROR while loading design

To my understanding, the range accepted for the VVCs generic GC_INSTANCE_IDX should be bigger than 0 to 9. Am I correct? and if so, how can I proceed in using values bigger than 9?

Thank you

Hi,

Try changing this constant in the adaptations package inside uvvm_util:
C_MAX_VVC_INSTANCE_NUM : natural := 10;
The limitation is there to reduce the memory usage, but you may increase it if needed.

Regards
Espen

Hi EspenTa,

Thank you, that solved the issue.