BRAM: switched to use to_integer instead of conv_integer.