
5.5. PSEUDONOISE SEQUENCES 113
relatively short in length. But for longer-length PN sequences, storing them in memory
becomes impractical, and it is more efficient to just generate them with a DSP software
SRG implementation.
Real-Time Considerations
Following the same method we’ve used in previous chapters, you can carefully modify “de-
vectorized” MATLAB code to get an initial version of C code that will run in real-time on
the DSK. Looking at Listing 5.12, for example, you would first remove the outer for loop to
convert to a sample-by-sample (or, in this case, chip-by-chip) approach. In an earlier part of
the code, you would have already have declared ...