11-642 HW implementation