bit_an
Junior Member level 3
Hi,
Can I use the below code in my top module to connect the output of five X_type blocks with the input of one Y_type block?!
//output of five X_type blocks
wire [3:0] data_out [0:4];
//input of one Y_type block
wire [19:0] get_data;
assign [19:0] get_data = {data_out[4], data_out[3], data_out[2], data_out[1], data_out[0]};
Also in the above case how is the order of the columns for data_out?! Is this a stack such as below or upward down?!
data_out[4]
data_out[3]
data_out[2]
data_out[1]
data_out[0]
In case there is a better solution, please suggest...
Thanks
Can I use the below code in my top module to connect the output of five X_type blocks with the input of one Y_type block?!
//output of five X_type blocks
wire [3:0] data_out [0:4];
//input of one Y_type block
wire [19:0] get_data;
assign [19:0] get_data = {data_out[4], data_out[3], data_out[2], data_out[1], data_out[0]};
Also in the above case how is the order of the columns for data_out?! Is this a stack such as below or upward down?!
data_out[4]
data_out[3]
data_out[2]
data_out[1]
data_out[0]
In case there is a better solution, please suggest...
Thanks