D2 System Co-Design, Synthesis and Optimization