Design & Implementation of a DS-CDMA RAKE Receiver on TMS320 C6711 DSK and its Performance Analysis Muhammad Danish Nisar, [email protected] Student, National University of Science & Technology, Pakistan

Abstract The growing demand for capacity in wireless communications is the major motivational force behind improvements in established networks and development of new communication technologies Direct Sequence Code Division Multiple Access (DSCDMA) being one of them. Capacity calculations show that DS-CDMA, the underlying technology for 3rd Generation wireless communication offers greater capacity than the combination of time and frequency division multiple accesses, used in the 2G era. This, combined with the emerging concept of software radio motivated us to aim at a real-time DSP Board implementation of DS-CDMA receiver that could combat all wireless channel effects. This paper presents a comprehensive review of the implementation details followed by an extensive analysis of receiver performance under varied channel conditions and system parameters.1

1. Introduction

User # 1 Data bits generated by user, either from a text or from a vocoder

User # 2

User # 3

Computer Direct sequence spreading of each user’s data by unique orthogonal codes, followed by up-sampling and digital modulation.

Pilot bits

DSP Board (TMS320C DSK 6711) Extracted data bits may be organized into a text message or fed to a vocoder.

Receiver processing, includes code sync, multipath scanning and extraction of data of desired user

Transmission of baseband signal over the transmission media. Presently the medium is wire but we will be simulating the characteristics of the wireless channel by introducing Multipath and the additive white Gaussian noise (AWGN).

This paper is an outcome of the undergraduate design project undertaken by the author alongwith Ahsin Shakil and Fadil Aleem at NUST, Pakistan, in collaboration with Center for Advanced Research in Engineering (CARE).

The system under-consideration basically mimics the forward link (Base station to Mobile Station) of a typical CDMA based cellular network. We consider, however, the case of baseband transmission, with blocks of spectrum up- and down-conversion at transmitter and receiver assumed to be ideal. This assumption sought its roots from the hardware constraints like the sampling frequency of the codec on the DSP Board. Employing a spreading factor of eight the system is able to support up to eight users.

Audio Codec

1

2. System Description

Sound Card

Direct Sequence Code Division Multiple Access (DS-CDMA) grants access of the same channel to a number of users, by distinguishing them in the so called ‘code-domain’. Unlike TDMA and FDMA systems, users can then transmit their messages simultaneously and over the entire bandwidth. Process of message orthogonalization (encoding user messages through orthogonal codes) achieves this and is as such the key to the operation of DS-CDMA systems. Given the task of extracting the desired user’s signal out of the received composite signal, the receiver needs to generate a replica of the desired user’s code in synchronism with the code contained in the signal being received. Correlating it with the incoming signal, isolates user signal (Symbol level

Matched filtering). It may be notified here that in case of multipath environment RAKE receiver is employed to resolve the multipath components and then add them coherently through Maximal Ratio Combing (MRC) to yield the final soft decision values. Error decoding and source decoding proceed then to complete the message recovery process.

Figure 1: Modular overview of the Designed system

2.1. Functional Description of Transmitter The designed DS-CDMA transmitter accepts messages from users in digital format. Any suitable source coding technique can be adopted to serve this requirement of transmitter. For speech transmission use of low bit rate LPC encoding schemes is recommended keeping in view the low values of allowed bit rates (primarily because of the codec’s sampling frequency). For text messages AASCII conversion has been found suitable. Source Coding

Source Coding

Pilot Signal

LPC for Speech & AASCII for text

LPC for Speech & AASCII for text

Error Coding

Error Coding

Convolutional Encoder Rate ½ Cnstrnt Length 3

Convolutional Encoder Rate ½ Cnstrnt Length 3

Stream of all ones, to be code multiplexed with the user signals. It helps in the process of code acquisition at

Orthogonalizer

Orthogonalizer

Orthogonalizer

Modified Walsh Codes with SF of 8

Modified Walsh Codes with SF of 8

Modified Walsh Codes with SF of 8

Pulse Shaping

Pulse Shaping

Pulse Shaping

Up-sampling factor 4, RRC filter, roll-off 0.32

Up-sampling factor 4, RRC filter, roll-off 0.32

Up-sampling factor 4, RRC filter, roll-off 0.32

... .

WN = HN DN

where DN is an orthogonal diagonal matrix such that

The orthogonality2 of WN is guaranteed by the relation WN WNT = HN DN (HN DN)T = HN DN DNT HNT = k IN HN HNT = k IN

The much improved correlation properties not only helps in code acquisition but also specially in case of multipath environments. The orthogonalized messages are then up-sampled by a factor of 4, passed through a RRC filter3 with roll-off factor of 0.32 and length 65. As recommended by CDMA standards we have employed BPSK as the digital modulation technique in our system. Finally the composite signal is transmitted via soundcard onto the channel.

the receiver.

2.2. Channel Effects under consideration

Composite Signal

Figure 2: Functional Block Diagram of DS-CDMA Transmitter. Convolutional Encoding, the best suited error coding technique for wireless channels and real time implementations, has been adopted for FEC. Code Rate ½ encoder as recommended in the DS-CDMA standards has been implemented with a constraint length of 3. The optimum connections for this encoder (7,5)8 have been realized. We have modified the Walsh Hadamard Codes of length eight for improving their autocorrelation and cross-correlation properties. The modification process [6] is briefly described as under. Let HN denote the original Hadamard Matrix then a new orthogonal matrix WN can be achieved by

Although baseband transmission and reception of the composite signal has been realized, but the system has been configured to combat major wireless channel effects. First and foremost among these is the Additive White Gaussian Noise (AWGN), a consequent of the Central limit theorem applied over random thermal vibrations of electrons and also over random interfering signals. It is characterized by the Signal to Noise Ratio (SNR) with nominal values of 10-15dB recommended for data communications. Secondly we consider multipath effect, signals being received after traveling through different paths and undergoing different attenuations. It leads to signal dispersion in time domain characterized by ‘Delay spread’4. Since different signal versions combine constructively and destructively so fading results. This is characterized in frequency domain by ‘Coherence Bandwidth’5 leading to frequency selective or nonselective fading. A two ray model has been used to simulate multipath environments of rural, urban and hilly terrains with attenuation determined by Gaussian distribution. 2

A matrix ‘AN’ is said to be orthogonal if it satisfies AN ANT = k IN RRC filter at transmitter as Pulse shaper combined with RRC filter at receiver as Matched filter yields effectively RC filter fulfilling Nyquist Criterion of zero ISI 4 Delay spread is the time interval between the earliest and latest signal versions being received at the receiver. It is lowest for rural, moderate for urban and highest for hilly terrain. 5 Coherence Bandwidth of a channel is the range of frequencies that undergo fading almost to the same extent. 3

The time variance of channel has been ignored keeping in view the bursty and short duration of signal transmission we consider.

2.3. Functional Description of Receiver The first and foremost task of a DS-CDMA receiver is to attain code synchronization normally termed as ‘Code Acquisition’. It basically refers to the generation of user code locally which is in exact synchronism with the code contained in the incoming signal. Code multiplexed pilot signal is used for this purpose. Attempts are made to demodulate pilot bits (correlating pilot code with incoming signal) with different code offsets and the code offset(s) giving best result is selected. The fastest parallel search code acquisition has been implemented here. Incoming Signal

RAKE Receiver Recover soft decision values from each of the multipaths separately

Bit level Synchr onizer, start & end bit of msg

MRC Combine r Scale & add soft decision values coherently

Viterbi Decod er For Conv code

Source Decoding Code Acquisitio n Search for best code offset(s) by correlating with pilot code

As Appropriate

Figure 3: Functional Block Diagram of DS-CDMA Receiver In cases where multipath channel is being simulated, two distinct correlation peaks are observed during code acquisition whose heights are indicative of multipath strength and distance (in terms of number of code offsets) represents the delay between two versions. In such a case both offsets are passed onto RAKE receiver which correlates user code with both of these offsets to recover separate set of soft decision values from each of the multipath component. The values from both of these braches of RAKE Receiver need to be combined coherently and after suitable scaling. Bit alignment is achieved through 16 bit pre-amble and post-amble sequences6 padded at the start and end

6 Length 15 Maximal Length sequences with an extra ‘1’ padded have been used for this purpose because of their low autocorrelation peaks.

of user messages at the transmitter solely for this purpose. Maximal Ratio Combining (MRC) is preferred over Equal Gain Combining (EGC) because it scales the soft decision values according to their reliability. The degree of reliability is determined by the heights of correlation peaks at the output of code acquisition module. Viterbi Decoding, the optimum decoding algorithm for convolutional encoding, is finally applied on hard decision values obtained at the output of MRC combiner. The algorithm searches for the minimum error path through the trellis and uses it to estimate the likely bit sequence even though some of the received encoded bits are in error.

3. Receiver Implementation Communication system designers of today are focusing on the concept of “Software Radio”, a highly flexible and programmable receiver that accomplishes most of its baseband processing in the digital domain. The underlying theme behind this revolutionary idea is to avoid the necessity of specific hardware equipments and the rigidity of design process. With the system implemented on software radio concept any of the system parameters can be easily changed and desired modification in processing can be accomplished. In this section details of accomplishing the complex task of signal reception on the DSP Board by Texas Instrument TMS 320 C6711 DSK are presented. It is a floating-point multiprocessor DSP specifically designed for real-time signal processing with processor speed of 150MHz. The implementation details of the receiver on the DSP board can be classified into two broad categories  Reception of samples: How the samples of the incoming signal find their way to the processor.  Processing of samples: How the samples are processed to extract data of single desired user. The DSP board has an analog input terminal to which the codec AD0343 with fixed sampling rate of 8 kHz is interfaced. Multi channel Buffered Serial Port (McBSP) is a dedicated port that serially transfers samples from codec’s receive register (DRR) to the memory. A common way to configure signal reception is to generate McBSP interrupts to the processor on the reception of each sample. An alternative configuration, that we have employed, is to use Direct Memory Access (DMA)7 for the transfer of incoming samples to the memory. The 7

Memory access by controller without the intervention of processor.

processor now may be involved in execution of instructions and the samples would be transferred from DRR to memory through DMA side by side. Keeping in view its suitability for real time applications, its monitoring tools and its faster routines we selected the DSP/BIOS8 based programming approach. It provides Software Interrupts (SWI) and Pipe (PIP) objects to accomplish EDMA based transfer of signal samples to the memory. The PIP object help in realizing a continuous flow of data form the codec to memory without the intervention of processor. After a pre-specified number of samples have been collected the concerned SWI could be called for accomplishing the processing task. Modular description of the methodology is presented below.

4. Performance Analysis Culmination of design process is marked by the analysis of the system designed and its comparison with the benchmark results. In this section performance analysis of the receiver that we designed and implemented on the DSP Board is presented. Additive White Gaussian Noise (AWGN) is indeed the channel effect that every system is to combat against. As is mostly the case we have employed Matched Filter detection to fight against it. A performance curve of the system under AWGN, for the case of 37.5% system loading, is shown below. Effect of SNR on BER (Two active users)

0

10

-1

10

) R E B ( et a R r o rr E ti B

-2

10

-3

10

-4

10

-5

10

-15

-10 -5 0 Signal to Noise Ratio (SNR in dBs)

5

Figure 6: Receiver performance under varying SNR values (fixed loading).

Figure 4: Modular Description of the adopted strategy for reception of samples The execution graph below shows the typical execution flow of the processor. As indicted ‘audioSwi’ the SWI for receiver processing is finished well before its next call, so that the implementation is quite easily meeting its real time deadlines.

Multiple access interference is one of the major factors in determining the CDMA system capacity. Figure 7 below gives a curve of the BER versus number of users (MAI) for our system under AWGN channel conditions. Graceful Degradation of CDMA systems with increasing load

0

10

-1

10

-2

10 ) R E B ( oi t a R r or r E ti B

Figure 5: DSP/BIOS Execution Graph

-3

10

-4

10

SNR SNR SNR SNR SNR

-5

10

-6

10

8

Real time analysis tool by TI that allows designer to access and configure processor peripherals directly through its configuration file.

1

2

3

4 Number of Users

5

= = = = =

6

+5.0dB +2.5dB 0.0dB -2.5dB -5.0dB 7

Figure 7: Performance of DS-CDMA improves as loading decreases unlike T- and F-DMA systems

One of the unique features of CDMA unlike those in 2G era, is that it is soft capacity system (system capacity is limited only by acceptable level of MAI provided suitable code sequences have been selected). Figure 8 below presents system performance in a more comprehensive manner, taking into account not only degradation due to decrease in SNR but also due to increase in MAI. As can be noted from figure the effect of MAI is more pronounced at higher SNRs. Also note that at lower MAI the effect of increases in SNR results into considerable improvement. 0

10

# of users # of users # of users # of users # of users # of users # of users

-1

10

= = = = = = =

1 2 3 4 5 6 7

-2

) 10 R E B( et a R -3 r or 10 r E ti B

For the same multipath channel the correlation peaks at the receiver are remarkably different. Presence, strength and delay between multipath signals is evident in case of modified Walsh sequences but that is not the case if original sequence is used for spreading. Determining optimum signal power level for the pilot signal has been the topic of research during the development and implementation of CDMA systems. Too low pilot power leads to problems in code acquisition, which heavily relies on the pilot signal. Too large pilot power on the other hand overshadows the user signal which is of prime concern to receiver. Here we attempt to determine the optimum power level for pilot signal in our case. Figure 10 below presents receiver performance with different fractions of pilot power in the composite signal’s power. All of the performance curves are plotted for a SNR value of 2dB. 0

10

Effect of Pilot signal's power level on BER

-1

10

-4

10

-5

10

-10

-8

-6 -4 -2 0 2 Signal to Noise Ratio (SNR in dBs)

4

6

Figure 8: Curves indicating system performance with respect to both SNR and MAI As notified earlier we have modified the Walsh Hadamard spreading sequences being used in our system for improvement in their correlation properties. The advantage they offer becomes obvious in multipath environments as graphed below.

) R E B ( et a R r or r E ti B

-2

10

-3

10

-4

10

-5

10

0.1

# # # # # # #

of Users of Users of Users of Users of Users of Users of Users

0.2 0.3 0.4 0.5 0.6 0.7 0.8 Pilot power level as fraction of total (composite) signal power

= = = = = = =

1 2 3 4 5 6 7 0.9

Figure 10: Effect of Pilot Signal power on Receiver performance.

Code Acqusition with Original Walsh Hadamard codes 20 10 0 -10 -20

Multipath Effects not evident

0

2

4

6

8

10

12

14

16

Code Acqusition with Modified Walsh Hadamard codes 40 20 0 -20 Code Offsets 4 and 11 would be selected -40

0

2

4

6

8 Code Offsets

10

12

14

16

Figure 9: Improvement in Code Acquisition module because of modified Walsh Hadamard Codes.

Pilot power of 20% is found to be the most optimum value as it yields lowest BERs for most of the cases. This is indeed confirmed by the recommendations of various DS-CDMA standards. Rake Receiver, introduced in 1958, has been renowned for its ability to fight against multipath effects in wireless environments. It gathers energy from various distinguishable multipaths and adds them coherently to obtain a better soft decision value for bit detection. It may be notified here that in order to better analyze our RAKE receiver (operating in a system with SF of only 8), we have introduced exaggerated multipath environments where the delay spread varies from 62-93µsec for rural, 100-140µsec for urban and 150-190µsec for hilly environment.

Improvement in BER through RAKE Receiver (Maximal Ratio Combining) Rural Environment ; Delay Spread 62.5microsec - 93microsec. 0

10

Multipath component # 1 Multipath component # 2 Maximal Ratio Combining -1

10

6. Conclusion

-2

10 ) R E B ( et a R r o rr E ti B

-3

10

-4

10

-5

10

-6

10

-8

-6

-4

-2 0 2 4 Signal to Noise Ratio (SNR in dBs)

6

8

Improvement in BER through RAKE Receiver (Maximal Ratio Combining) 0 Urban Environment ; Delay Spread 101.5microsec - 140.6microsec.

10

Multipath component # 1 Multipath component # 2 Maximal Ratio Combining -1

10

-2

10 ) R E B ( et a R r o rr E ti B

-3

10

-4

10

-5

10

-6

10

-8

-6

-4 -2 0 2 4 Signal to Noise Ratio (SNR in dBs)

6

8

Improvement in BER through RAKE Receiver (Maximal Ratio Combining) Hilly Terrain ; Delay Spread 148.4microsec - 187.5microsec. 0

10

Multipath component # 1 Multipath component # 2 Maximal Ratio Combining -1

10

-2

10 ) R E B ( et a R r o rr E ti B

-3

10

-4

10

-5

10

-6

10

-8

As can be noted MRC Rake Receiver is able to lower BER by as much as 100 to 1000 times. The effectiveness is anticipated to be more in case of higher SNR values as indicated by these graphs.

-6

-4 -2 0 2 4 Signal to Noise Ratio (SNR in dBs)

6

8

Figure 11: Performance improvement by RAKE Receiver in rural, urban & hilly terrains.

This paper presents the design and implementation details of a DS-CDMA based communication link on TMS 320 C6711 DSK by Texas Instrument. The system is demonstrated to successfully combat against channel effects of rural, urban and hilly terrains because of its RAKE Receiver architecture. A review of system performance with different system parameters (pilot power level and spreading codes) has also been presented.

7. References [1] Ramjee Prasad, “An Overview of CDMA Evolution towards Wideband CDMA”, Delft University of Technology, Tero Ojanperä [2] Esmael H. Dinan and Bijan Jabbari, Spreading Codes for DSCDMA and W-CDMA Cellular Networks, George Mason University [3] Boris D. Andreev And Edward L. Titlebaum, Searching for a Preferable Set among the UMTS Short Codes: Analysis and Selection, University of Rochester, New York [4] Beata J Wysocki, Tadeusz A Wysocki, Orthogonal Binary Sequences with wide range of Correlation Properties University of Wollongong, Australia [5] Bernard Sklar, Rayleigh Fading Channels In Mobile Digital Communication Systems [6] Moe Z. Win, George Chrisikos, and Andreas F. Molisch, “Wideband Diversity In Multipath Channels With Nonuniform Power Delay Profiles”, MERL, Inc., 2003, Massachusetts [7] B.B. Ibrahim, A.H. Aghwami, Direct Sequence Spread Spectrum Matched Filter Acquisition on Frequency-Selective Rayleigh Fading Channels. IEEE Journal on Selected Areas In Comm., June 1994 [8] George Vardoulias, “Receiver Synchronisation Techniques For CDMA Mobile Radio Communications Based on The Use of A Priori Information”, The University of Edinburgh., September 2001 [9] Jari Iinatti, DS Code Acquisition In Slowly Fading Multi-Path Channel, University of Oulu, Finland [10] Robert Voleskyiowa, IS-95 Standard-Power Control And Rake Receiver, State University, 2000 [11] Kimmo Kettunen, Enhanced Maximal Ratio Combining For Rake Receivers In Mobile CDMA Terminals, Nokia Group, Finland, [12] Sriram Swaminathan, Russell Tessier, Dennis Goeckel, Wayne Burleson, A Dynamically Reconfigurable Adaptive Viterbi Decoder, University of Massachusetts [17] Andrew J. Viterbi, "Error Bounds For Convolutional Codes And An Asymptotically Optimum Decoding Algorithm," Published In IEEE Transactions on Information Theory, April, 1967. [13] S. Verdu, “Minimum Probability of Error For Asynchronous Gaussian Multiple Access Channels” IEEE Trans. Info. Th., Jan. 1986 [14] Claude Winborn, CDMA Baseband Processing on A TMS320C54X DSP, University of Texas At Dallas

Design & Implementation of a DS-CDMA RAKE ...

recovery process. 2. System ... the forward link (Base station to Mobile Station) of a ... Data bits generated by user, either from a text or from a vocoder. Direct.

308KB Sizes 0 Downloads 165 Views

Recommend Documents

Design & Implementation of a DS-CDMA RAKE ...
Communication system designers of today are focusing on the concept of “Software Radio”, a highly flexible and programmable receiver that accomplishes most of its baseband processing in the digital domain. The underlying theme behind this revolut

design and implementation of a high spatial resolution remote sensing ...
Therefore, the object-oriented image analysis for extraction of information from remote sensing ... Data Science Journal, Volume 6, Supplement, 4 August 2007.

The Design and Implementation of a Large-Scale ...
a quadratic analytical initial step serving to create a quick coarse placement ..... GORDIAN [35] is another tool that uses a classical quadratic objective function ...... porting environment of software components with higher levels of functionality

Design and Implementation of e-AODV: A Comparative Study ... - IJRIT
IJRIT International Journal of Research in Information Technology, Volume 2, Issue 6, ... In order to maximize the network life time, the cost function defined in [9] ...

design and implementation of a high spatial resolution remote sensing ...
Aug 4, 2007 - 3College of Resources Science and Technology, Beijing Normal University, Xinjiekou Outer St. 19th, Haidian ..... 02JJBY005), and the Research Foundation of the Education ... Photogrammetric Record 20(110): 162-171.

Design and implementation of a new tinnitus ... -
School of Electronics and Information Engineering, Sichuan University, ... Xavier Etchevers; Thierry Coupaye; Fabienne Boyer; Noël de Palma; Gwen ...

Design and Implementation of a Fast Inter Domain ...
Jul 6, 2006 - proximity of virtual machines sharing data and events can .... that share file systems is already being investigated [14] [15]. [16]. It is not ...

design and implementation of a high spatial resolution remote sensing ...
Aug 4, 2007 - 3College of Resources Science and Technology, Beijing Normal University, ..... 02JJBY005), and the Research Foundation of the Education.

Design, Simulation and Implementation of a MIMO ...
2011 JOT http://sites.google.com/site/journaloftelecommunications/. Design, Simulation and Implementation of a. MIMO MC-CDMA based trans-receiver system.

Design and Implementation of e-AODV: A Comparative Study ... - IJRIT
IJRIT International Journal of Research in Information Technology, Volume 2, Issue 6, ... Keywords: Wireless mobile ad hoc networks, AODV routing protocol, energy ... In order to maximize the network life time, the cost function defined in [9] ...

design & implementation of a ds-cdma based ...
The communication engineers have recently developed a multiple access technique, CDMA, for the ... Telecommunication from the College of Signals, NUST. ...... designed and built at the Naval Post Graduate School in Monterey, California.

Design and Implementation of a Ubiquitous Robotic ...
three proposed spaces are similar to the work conducted by Saffiotti and colleagues [8]. .... tential parent nodes around the mobile node by calling NLME-NET- .... to investigate and interact with the physical space in an intuitive way. Fusion of ...

design and implementation of a voronoi diagrams ...
There are various legal systems in place to protect consumers. Electronic fraud related to ... at lower prices. Online companies are trying their best to attract and ...

Design and Implementation of a Log-Structured File ... - IEEE Xplore
We introduce the design principles for SSD-based file systems. They should exploit the performance character- istics of SSD and directly utilize file block level statistics. In fact, the architectural differences between SSD and. HDD result in differ

The-Art-Of-Taming-A-Rake-Legendary-Lovers.pdf
... can fire up a BitTorrent client and download complete ebook libraries or just hunt and peck in. driveI7UM259433.fusionsbook.com/ search benefits for PDF files; this roundup, nevertheless, is focused on legitimate. channels for acquiring new readi

design and implementation of a computer systems ...
for a specialised diagnosis service arose which would give the management system the ability to predict failure causes ...... taccesspolicy.xml and crossdomain.xml files at the root of the domain where the service is hosted. ...... Algorithm types Li

The Design and Implementation of a Large-Scale ...
Figure 2.3: GORDIAN: Center of Gravity Constraints: The average location of ..... as via a distributable solution framework for both global and detailed placement phases. ...... BonnPlace calls this step repartitioning, we call it re-warping.

Design and Implementation of a Combinatorial Test Suite Strategy ...
Design and Implementation of a Combinatorial Test Su ... rategy Using Adaptive Cuckoo Search Algorithm_ p.pdf. Design and Implementation of a ...

Design and implementation of Interactive ...
Processing can be deployed within the development environment, in Java projects, as well as in HTML/JSP pages in tags. For web pages integration, processing.js extension is needed. Its main purpose is to translate the whole sketch into the Javascrip

Design and implementation of Interactive visualization of GHSOM ...
presented the GHSOM (Growing Hierarchical Self Organizing Map) algorithm, which is an extension of the standard ... frequently labeled as text mining) is in comparison with classic methods of knowledge discovery in .... Portal provides a coherent sys

A Hardware Implementation of POET -
and LT , dedicated registers have been con- sidered to store the corresponding values. The design supports only the message blocks with a size of a factor of 128 bits (16 bytes). The user can set the secret key SK, with which the other constants are