Please excuse my novice question.
I have a vector:
wire [WIDTH-1:0] data_in;
and would like to obtain only the bits highlighted below:
|63|....|31|30|29|28|27|26|25|24|23|22|21|20|19|18|17|16|15|14|13|12|11|10|9|8|7|6|5|4|3|2|1|0|
So basically, skip 4LSB bits, then capture the following 8 bits, then skip 4 bits ..
The current code:
localparam WIDTH = 64;
wire [WIDTH*64-1:0] data_in;
assign data_in[WIDTH*0+:WIDTH] = data_out;
I would like to know how to use this answer https://stackoverflow.com/a/18068296/20013745 to iterate through the bits as per above.
Many thanks