title: VHDL Coding .. conversion from integer to bit_vector
body: <p>I'm facing this problem , i'm asked to implement a function in VHDL that takes an integer and returns a bit_vector , assumed that this integer is represented by 4 bits.</p>
  
  <p>i don't want to use already built in function, i have to code the function.</p>
  
  <p>I have made a function to convert from bit_vector to integer which was kinda of easy, but im stuck here :S </p>
  
  <p>Any ideas how can i do it ?</p>