Digital IC design homework