# How to connect unconstrained array of VHDL records to SV interface

**URL:** <https://verificationacademy.com/forums/t/how-to-connect-unconstrained-array-of-vhdl-records-to-sv-interface/39209>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, interface, vhdl-record-element-connect-systemverilog\
**Created:** [June 20, 2021, 3:20pm UTC](https://verificationacademy.com/forums/t/how-to-connect-unconstrained-array-of-vhdl-records-to-sv-interface/39209 "2021-06-20T15:20:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaygueta](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/7ba0ec/32.png) [@shaygueta](https://verificationacademy.com/forums/u/shaygueta)\
**Post date:** [June 20, 2021, 3:20pm UTC](https://verificationacademy.com/forums/t/how-to-connect-unconstrained-array-of-vhdl-records-to-sv-interface/39209/1 "2021-06-20T15:20:25Z")

</div>

Hello,  
I have a DUT with an input port which id an array of unconstrained VHDL records. The record is defined in a VHDL package. It looks sth like this:  
In the VHDL package:  
Type myRecord is record  
A : std\_logic\_vector(0 downto 0);  
B : std\_logic\_vector(0 downto 0)  
End record;  
Type myArray is array(natural range\<\>) of myRecord;  
In the VHDL DUT:  
ENTITY myEntity is  
Generic (num\_of\_ch : integer :=0);  
Port(  
Myport : in myArray(num\_of\_ch-1 downto 0);  
…  
I want to connect this VHDL module to a SV interface.  
I compiled the VHDL package to be recognized also by thesv code.  
What should be the type of the signal in the sv interface?

---

<div class="post-metadata">

**Author:** ![cgales](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/c/ccd318/32.png) [@cgales](https://verificationacademy.com/forums/u/cgales)\
**Post date:** [June 20, 2021, 3:27pm UTC](https://verificationacademy.com/forums/t/how-to-connect-unconstrained-array-of-vhdl-records-to-sv-interface/39209/2 "2021-06-20T15:27:55Z")

</div>

_In reply to [shaygueta](https://verificationacademy.com/forums/t/how-to-connect-unconstrained-array-of-vhdl-records-to-sv-interface/39209):_

There is no standard which dictates the interoperation of VHDL and SystemVerilog. As this is typically tool specific, you will need to refer to your tool documentation or contact your vendor support team for additional assistance.
