add detect_hazard.vhd