Hardware and Systems Engineering Essentials: From Circuit to Machine Learning