Embedded Systems: An Integrated Approach