title: Verilog:Procedural Continuous Assignment to register is not supported
body: <pre><code>    input [31:0] write_data;
      input [4:0]  write_reg;
      reg [31:0] registers [31:0];
  
  always @(*) 
       assign registers[write_reg] = write_data;
  </code></pre>
  
  <p>I have a 32-bit input write_data , which i want to an assign corresponding index which i get from write reg.Error says you cant do continuous assignment which i think causes by always@(*) but if i remove that</p>
  
  <p>It says
  object "registers" on left-hand side of assignment must have a net type
  and its another error.</p>