Patent ID: 7991042

Claim:
A Global Navigation Satellite System (GNSS) receiver, comprising: a memory, storing a memory code, and outputting a portion of the memory code as a first code segment; a buffer, coupled to the memory, comprising a plurality of component buffers, storing the first code segment into one of the component buffers in order; a selector, coupled to the buffer, selecting a portion of the first code segments stored in the buffer as a second code segment output to a correlator according to a code phase selection signal, wherein a data length of the second code segment is equal to a correlation data length of the correlator; and the correlator, coupled to the selector, calculating a correlation between a received GNSS signal with the correlation data length and the second code segment, wherein the selector determines a location of a selecting window with a window size equal to the correlation data length according to the code phase selection signal, and selects the second code segment from the first code segments stored in the buffer according to the selecting window.