title: VHDL: How to check selected bits of a vector
body: <p>I'm wondering if there is a way to check only the bits I'm interested in of an <em>std logic</em> vector in VHDL. My newest attempt looks like this:</p>
  
  <pre><code>IF (vectorname = "1-00") THEN
  
  action
  
  END IF;
  </code></pre>
  
  <p>I am here only interested to check the bits 3, 1 and 0 of the vector. Bit 2 is in this case irrelevant. I thought a <code>-</code> would work since it's "don't care", but it doesn't. </p>
  
  <p>Any ways to do this simply? I know it's possible with <code>STD_MATCH</code>, but I want to take a different approach.</p>