title: Accessing specific groups of elements in a register memory in verilog
body: <p>Suppose I've declared a memory space containing 8 words of bit length 8 bits by writing the following code :</p>
  
  <pre><code>reg [7:0]mem[0:7] 
  </code></pre>
  
  <p>and I want to access elements 3 through 5 of the 3rd word and set them to zero.  What should the syntax for this be like?</p>
  
  <p><code>reg[0:7]mem[0:7]</code> </p>
  
  <p>would this be a valid piece of code?  Or does it have to be like initialization 1? </p>