188 GPS C/A PRN Generator

188 : GPS C/A PRN Generator

Select Project123456789ONSW2
  • Author: Adam Greig
  • Description: Generate the GPS C/A PRN sequences PRN1 through PRN32
  • GitHub repository
  • Clock: 1000 Hz

How it works

Two LFSRs are constructed per the GPS ICD, and the first is added to selected taps of the second to produce the selected final PRN sequence.

How to test

With io_in[2:7] set to 2 to select PRN2, reset and then drive the clock; the output sequence on io_out[2] will start with 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1.

External hardware

None

IO

#InputOutput
0clockG1
1resetG2
2prn[0]Selected PRN
3prn[1]
4prn[2]
5prn[3]
6prn[4]
7