A2B: an Integrated Framework for Designing Heterogeneous and Reconfigurable Systems