Introducing Hardware-in-Loop Concept to the Hardware/Software Co-design of Real-time Embedded Systems