There are Matrix 4 by 4 R and Vector 4 by 1 B generated in Matlab. I transmitted these data to FPGA board. The 16 elements of R are saved in a RAM and the 4 elements of B are saved in another RAM. Now I am thinking if it is possible to save these data in several registers.
For example: for k=1:4 B= B*2^mdiff - R(:,k) end
midff is a constant. It is seen that B do update once need read R RAM and B RAM 4 times. So i wanna to save these data in several registers. Then B can do one update operation in one clock cycle by reading all the data at the same time. But if i put one register following every element, i don't know how to index these different registers. Does anybody tell me how to figuer it out? Many thanks.