modefied tmds_timing logic