Text this: An integrated approach to resource allocation in high-level synthesis /