title: VHDL code to convert 5 bit vector to integer
body: <p>I am stuck in the following problem-</p>
  
  <p>I need to write a VHDL function that converts 5 bit vector to integer where integer value of binary number a4a3a2a1a0 can be computed as (((0 + a4)* + a3)* + a2 )* +a1)* +a0. 
  This is not any homework. But I am preparing for my exams.</p>
  
  <p>Thanks!</p>