title: VHDL how to assign a input vector value to an integer signal
body: <p>I'm new to the VHDL, I'm trying to make a counter which receives the value from the input and count to the given value then output a 1;</p>
  
  <p>for example, the input is a 4-bit vector "1011"</p>
  
  <p>I tried to set an integer signal a = input = 1011 = 11 in decimal, then if b = a = 11 output 1, otherwise output 0 and b=b+1</p>
  
  <p>I know that I can do it by a series of if statements, but I'm wondering if there is any better way like assigning the value directly from a input vector to a integer signal? thanks for anyone who can help!</p>