title: AND all elements of an n-bit array in VHDL
body: <p>lets say I have an n-bit array. I want to AND all elements in the array. Similar to wiring each element to an n-bit AND gate. </p>
  
  <p>How do I achieve this in VHDL? </p>
  
  <p>Note: I am trying to use re-usable VHDL code so I want to avoid hard coding something like</p>
  
  <pre><code>    result &lt;= array(0) and array(1) and array(2)....and array(n); 
  </code></pre>
  
  <p>Thanks
  Oshara</p>