modefied frame_check.v : adding buffer