Automatic interface generation for component reuse in HW-SW partitioning