title: How to define and assign Verilog 2d Arrays
body: <p>I'm trying to create a two dimensional array in that form:</p>
  
  <pre><code>reg arr[5:0][0:5];
  </code></pre>
  
  <p>and when I try to assign a value to it lets say </p>
  
  <pre><code>assign arr[1] = 22;
  </code></pre>
  
  <p>it gives some errors saying that:</p>
  
  <blockquote>
    <p>"Reference to scalar reg array 'arr' is not a legal net lvalue" and "Illegal left hand side of continuous assign".</p>
  </blockquote>
  
  <p>So my intention is to assign a number in the index of the array. How does this assignment work? Any help, suggestion would be highly appreciated.</p>