Decomposition and Partitioning HW/SW Codesign