TDR impedance flattening