Hello is there a way I can pack all the elements of an Unpacked array into one packed array.
I have an Unpacked array
Rand int unsigned a1 ;
For which I am randomly generating the size using another randomly generated number say t,
Rand int t;
After randomly giving the size to the Unpacked dimension
My motive is to assign all the elements of this randomly generated Unpacked array to one packed array of type bit say
Rand bit [2000:0] a2;
How can I achieve this an int type dynamically generated Unpacked array elements to one packed array…
Thanks