system verilog - Array of dynamic array of queue in SV -


i'm trying create array(10 elements) of dynamic array(5 elements) of queue(of size 3). i'm doing -

typedef int q[$:2]; typedef q dyn_arr; dyn_arr arr_dyn_arr[][5]= new[10]; 

i'm not sure whether it's right way.

your typedef q dyn_arr; not except alias q dyn_array. variable declaring 3-dimensional array if had declared

int arr_dyn_arr [][5][$:2];  

so new[10] creates 10x5 array of empty queues


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -