13.07.2015 Views

Simulation of Third Generation CDMA Systems - Virginia Tech

Simulation of Third Generation CDMA Systems - Virginia Tech

Simulation of Third Generation CDMA Systems - Virginia Tech

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.6 Code OptimizationThe simulator was implemented in MATLAB to take advantage <strong>of</strong> the built-infunctions that perform various signal processing application like filtering and Fast FourierTransformation (FFT) and the superior array handling capability. To make the simulator runwithin a reasonable simulation time, we had to optimize the MATLAB code. We generatedthe complex scrambling codes separately and stored them in binary data files. During thesimulation run, the simulator reads the desired scrambling codes form these data files. Thiswas necessary since the generation <strong>of</strong> long scrambling code takes long time and it would notbe practical to generate the scrambling codes during running the simulator.Figure 3.23 shows the MATLAB pr<strong>of</strong>ile <strong>of</strong> the uplink simulator. The simulator is runfor Vehicular A Outdoor Channel with one interfering user. The Rayleigh waveform isgenerated at the chip rate. As we notice the simulator spends significant amount <strong>of</strong> time inlines 184 and 173. They correspond to the functions implementing MAI and time varyingchannel respectively. The generation <strong>of</strong> Rayleigh waveform takes up most <strong>of</strong> the simulationtime in both the functions. However generating Rayleigh waveform at symbol rate ratherthan at chip rate can significantly reduce the simulation time. Another way to reduce thesimulation time is to demodulate the signals from the all the interfering users and count theirerrors towards the BER calculation. However this will increase the complexity <strong>of</strong> the receiverimplementation and we will not have the option <strong>of</strong> assigning different spreading factors fordifferent users.55

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!