modefied timing_gen : adding wire rst