The invention discloses a phase calibration method of the DQS
delay for a DDR controller and an apparatus thereof. The method comprises the following steps: 1, sampling DDR data DQ according to trigger signals after different grade delays of a DQS
signal; 2, comparing the data DQ acquired by sampling with a preset self-check datum in
byte, and acquiring a minimum boundary
delay parameter and a maximum boundary
delay parameter through delaying for two beats; 3, endowing a mean value of the minimum boundary delay parameter and the maximum boundary delay parameter to a DQS selection
signal; and 4, delaying the DQS
signal according to the output
clock of the DQS selection signal to obtain a DQS signal at the center of an effective datum window. According to the invention, the phase calibration of the DQS delay is realized through adopting a delay parameter determination unit and hardware in a delay parameter output circuit, and the delayed DQS can accurately fall on the center of the effective datum window through a datum
screening method with the delay parameter determination unit, thereby the stability, the accuracy and the
interference immunity of datum sampling are enhanced.