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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -