Total noob here, just to be clear. Only about a month in to learning Verilog.
So I have some user-defined parameters, and I want to put out a concatenation of all items in an array. For instance, if the array length were static (in this case, an array of 10 12-bit items), I could certainly do something like:
reg [11:0] array [9:0];
output <= {array[9],...,array[0]};
But what if the array length is user-defined and therefore not a static value? For instance, if I wanted two outputs like so, with length being a parameter:
output1 <= array[0];
output2 <= {array[length-1],...,array[1]};
Been banging my head against this for a minute or two and haven't found anything in my internet searches... Hope I'm being clear enough...