A Hardware/Software Co-design Flow and IP Library Based on Simulink