title: array storage and multiplication in verilog
body: <p>I have a peripheral connected to my altera fpga and am able read data from it using SPI. I would like to store this incoming data into an array, preferably as a floating point value. Further, I have a csv file on my computer and want to store that data in another array, and then after triggering a 'start' signal multiply both arrays and send the output via rs-232 to my pc. Any suggestions on how to go about this? Code for reading data from peripheral is as follows:</p>
  
  <pre><code>// we sample on negative edge of clock
  always @(negedge SCL) 
  begin   
      // data comes as MSB first.
      MOSI_reg[31:0] &lt;= {MOSI_reg[30:0], MOSI}; // left shift for MOSI data
  
      MISO_reg[31:0] &lt;= {MISO_reg[30:0], MISO}; // left shift for MISO data
  
  end
  </code></pre>
  
  <p>thank you.</p>