title: How do I do a BCD to unsigned integer conversion in vhdl or Labview
body: <p>I am programming an application in vhdl for a National Instruments CompactRio. One of the inputs is from a scale that only outputs an ASCII string of the weight on the scale. I know I can convert the ASCII digits to Binary Coded Decimal simply by removing the 4 MSBs, but how do I convert that do an unsigned integer using vhdl?  What is the fastest algorithm for values that range from 0 to 9999?</p>