Professional Documents
Culture Documents
Abstract
Chapter1: Multiple Access Techniques
1.1 Introduction
1.2 FDMA
1.3 TDMA
1.4 CDMA
Chapter 2: Types of CDMA Techniques
2.1 Introduction
2.2 General Classification of CDMA
2.3 pseudo Random Noise Code
Chapter 3: Design of CDMA transmitter and receiver
3.1 Introduction
4.1 Introduction
List of Figures:
1
2.4 TDMA/ FDMA hybrid
2.5 CDMA
2.6 Basic CDMA transmissions
2.7 Simple direct sequence modulator
2.8 Direct sequence signals
3
Abstract
4
Chapter 1
INTRODUCTION
1.1 INTRODUCTION
In communication systems an attractive approach for economical, spectral
efficient, and high quality digital cellular and personal communication services is the use
of Direct sequence code division multiple access (DS-CDMA) technique. Due to its
improved privacy and security, increased capacity.
VHDL implementation of DS-CDMA transmitter and receiver has been proposed
in this thesis. Every mobile handset and every wireless base station operates on the same
frequency spectrum .In order to discriminate one conversation from the other, every
handset broadcast a unique code sequence is called as pseudo noise code. In this project
pseudo noise code is generated by using two six bit LFSRs.Code signal is called as chip
signal. The chips modulated by the carrier using adigital modulation technique BPSK.
The carrier is generated by using the technique discrete digital frequency synthesizer.
CDMA base stations must be able to discriminate this different code sequences in order
to distinguish one transmission from other .This discrimination is accomplished by means
of a matched code filter .A matched code filter is a filter whose frequency spectrum is
exactly designed to match the frequency spectrum of the input signal. Here matched code
filter generating the pseudo noise code, generated noise code is correlated with the
received code and detecting original data.
5
To design multi channel transmission must concentrate on reducing cross talk between
adjacent channels.
One of the most promising cellular standards is IS-95 CDMA system[4]. the
advantages of CDMA standard over other standards are security, optimum subscriber
power management , efficient power control, compatability, multipath fading. The
forward link frequency of CDMA is in the range of (869-894) MHZ and the reverse link
frequency is in the range of (824-849)MHZ[2-5]. In mobile communication transmission
from the base station to mobile user are on the forward link and the transmission from
mobile user to base station are on the reverse link. In the recent years the CDMA on
FPGA platform has attracted attention of academic research and industry [5].
The Spartan TM-3E family of Field-Programmable Gate Arrays (FPGAs) is
specifically designed to meet the needs of high volume, cost-sensitive consumer
electronic applications [5]. The five-member family offers densities ranging from
100,000 to 1.6 million system gates. Because of their exceptionally low cost, Spartan -3E
FPGAs are ideally suited to a wide range of consumer electronics applications, including
broadband access, home networking, display/projection, and digital television equitment.
6
For DS-CDMA communication system the transmission side PN sequence
generator, spreader and modulator, reception side not only requires dispreading
device for the extraction of transmission signal, but also demodulator for
detection of code signal. Thus when hardware arrangements used for these
devices the circuit size increased and number of processing steps required for
software. It is required to implement the system using less number of processing
steps.
7
Chapter2
2.1 INTRODUCTION
Multiple access schemes are used to allow many simultaneous users to use the
same fixed bandwidth radio spectrum. In any radio system, the bandwidth that is
allocated to it is always limited. For mobile phone systems the total bandwidth is
typically 50 MHz, which is split in half to provide the forward and reverse links of the
system. Sharing of the spectrum is required in order increase the user capacity of any
wireless network. FDMA, TDMA and CDMA are the three major methods of sharing the
available bandwidth to multiple users in wireless system. There are many extensions, and
hybrid techniques for these methods, such as OFDM, and hybrid TDMA and FDMA
systems. However, an understanding of the three major methods is required for
understanding of any extensions to these methods.
For systems using Frequency Division Multiple Access (FDMA), the available
bandwidth is subdivided into a number of narrower band channels. Each user is allocated
a unique frequency band in which to transmit and receive on. During a call, no other user
can use the same frequency band. Each user is allocated a forward link channel (from the
base station to the mobile phone) and a reverse channel (back to the base station), each
being a single way link. The transmitted signal on each of the channels is continuous
allowing analog transmissions. The channel bandwidth used in most FDMA systems is
typically low (30 kHz) as each channel only needs to support a single user. FDMA is
used as the primary subdivision of large allocated frequency bands and is used as part of
most multi-channel systems.
The following figures show the allocation of the available bandwidth into several
channels.
8
Figure 2.1 FDMA showing that the each narrow band channel is allocated to a single user
Figure 2.2 FDMA spectrums, where the available bandwidth is subdivided into narrower
band channels
Time Division Multiple Access (TDMA) divides the available spectrum into
multiple time slots, by giving each user a time slot in which they can transmit or receive.
Figure 8 shows how the time slots are provided to users in a round robin fashion, with
each user being allotted one time slot per frame.
Figure 2.3 TDMA schemes where each user is allocated a small time slot
9
TDMA systems transmit data in a buffer and burst method, thus the transmission
of each channel is non-continuous. The input data to be transmitted is buffered over the
previous frame and burst transmitted at a higher rate during the time slot for the channel.
TDMA can not send an analog signal directly due to the buffering required, thus is only
used for transmitting digital data. TDMA can suffer from multipath effects as the
transmission rate is generally very high, resulting in significant inter-symbol
interference.
Figure 2.4 TDMA / FDMA hybrid, showing that the bandwidth is split into frequency
channels and time slots
10
Code Division Multiple Access (CDMA) is a spread spectrum technique that uses
neither frequency channels nor time slots. With CDMA, the narrow band message
(typically digitized voice data) is multiplied by a large bandwidth signal that is a pseudo
random noise code (PN code). All users in a CDMA system use the same frequency band
and transmit simultaneously. The transmitted signal is recovered by correlating the
received signal with the PN code used by the transmitter. Figure 5 shows the general use
of the spectrum using CDMA.
CDMA technology was originally developed by the military during World War II.
Researchers were spurred into looking at ways of communicating that would be secure
and work in the presence of jamming. Some of the properties that have made CDMA
useful are:
11
For many years, spread spectrum technology was considered solely for military
applications. However, with rapid developments in LSI and VLSI designs, commercial
systems are starting to be used.
Where BWRF is the transmitted bandwidth after the data is spread, and BWinfo is
the bandwidth of the information data being sent.
12
Figure 2.6 Basic CDMA transmissions.
13
Figure 2 .7 Simple direct sequence modulator
The PN code used to spread the data can be of two main types. A short PN code
(typically 10-128 chips in length) can be used to modulate each data bit. The short PN
code is then repeated for every data bit allowing for quick and simple synchronization of
the receiver. Figure 8 shows the generation of a CDMA signal using a 10-chip length
short code. Alternatively a long PN code can be used. Long codes are generally
thousands to millions of chips in length, thus are only repeated infrequently. Because of
this they are useful for added security as they are more difficult to decode.
The forward link, from the base station to the mobile, of a CDMA system can use
special orthogonal PN codes, called Walsh codes, for separating the multiple users on the
same channel. These are based on a Walsh matrix, which is a square matrix with binary
elements and dimensions that are a power of two. It is generated from the basis that
Walsh (1) = W1 = 0 and that:
14
Walsh codes are orthogonal, which means that the dot product of any two rows is
zero. This is due to the fact that for any two rows exactly half the number of bits match
and half do not.
Each row of a Walsh matrix can be used as the PN code of a user in a CDMA
system. By doing this the signals from each user is orthogonal to every other user,
resulting in no interference between the signals. However, in order for Walsh codes to
work the transmitted chips from all users must be synchronized. If the Walsh code used
by one user is shifted in time by more than about 1/10 of chip period, with respect to all
the other Walsh codes, it looses its orthogonal nature resulting in inter-user interference.
This is not a problem for the forward link as signals for all the users originate from the
base station, ensuring that all the signal remain synchronized.
The reverse link is different to the forward link because the signals from each user
do not originate from a same source as in the forward link. The transmission from each
user will arrive at a different time, due to propagation delay, and synchronization errors.
Due to the unavoidable timing errors between the users, there is little point in using
Walsh codes as they will no longer be orthogonal. For this reason, simple pseudo random
sequences are typically used. These sequences are chosen to have a low cross correlation
to minimize interference between users.
The capacity is different for the forward and the reverse links because of the
differences in modulation. The reverse link is not orthogonal, resulting in significant
inter-user interference. For this reason the reverse channel sets the capacity of the system.
15
Chapter 3
3.1 INTRODUCTION
Based on the modulation method the CDMA technique can be classified into three
categories.
Frequency
Direct sequence
Frequency hopping
Time hopping
Time
Figure 3.1 CDMA types
16
Frequency hopping can either be fast (several hops over one symbol) or slow (several
symbols transmitted during one hop).
CDMA Properties
C D M A
P u r e C D M A H y b r i d C D M A
D S / F HT D M A M / CC D- CM D A M A
D S F H T H D S / T H M T - C D M A
F H / T H
D S / F H / T H
W i d e bN a a n r rd o F w a b s a t n S d l o w
F r e q u F e r ne cq y u e n c y
H o p p Hi n o g p p i n g
17
3.2.1 Direct Sequence
Data Spreading
Device Modulator
Code Carrier
generator generator
18
Data
Data Despreading
Demodulator (matched filter)
Carrier Code
Generator Generator
After transmission of the signal, the receiver (shown in Figure 4) dispreads the SS
signal using a locally generated code sequence.
Direct sequence spread spectrum systems are so called because they employ a
high speed code sequence, along with the basic information being sent, to modulate their
RF carrier. The high speed code sequence is used directly to modulate the carrier, thereby
directly setting the transmitted RF bandwidth.
The most practical, all digital version of SS is direct sequence. A direct sequence
system uses a locally generated pseudo noise code to encode digital data to be
transmitted. The local code runs at much higher rate than the data rate. Data for
transmission is simply logically modulo-2 added (an EXOR operation) with the faster
pseudo noise code. The composite pseudo noise and data can be passed through a data
scrambler to randomize the output spectrum (and thereby remove discrete spectral lines).
A direct sequence modulator is then used to double sideband suppressed carrier modulate
19
the carrier frequency to be transmitted. The resultant DSB suppressed carrier AM
modulation can also be thought of as binary phase shift keying (BPSK). Carrier
modulation other than BPSK is possible with direct sequence. However, binary phase
shift keying is the simplest and most often used SS modulation technique.
An SS receiver uses a locally generated replica pseudo noise code and a receiver
correlator to separate only the desired coded information from all possible signals. A SS
correlator can be thought of as a very special matched filter -- it responds only to signals
that are encoded with a pseudo noise code that matches its own code. Thus, an SS
correlator can be "tuned" to different codes simply by changing its local code. This
correlator does not respond to man made, natural or artificial noise or interference. It
responds only to SS signals with identical matched signal characteristics and encoded
with the identical pseudo noise code.
`In direct-sequence systems the length of the code is the same as the spreading-
factor with the consequence that:
20
Figure 3.5 Direct-sequence spreading
This can also be seen from figure 5, where we show how the PNcode is combined
with the data-signal, the generation of PNcodes is relatively easy, a number of shift-
registers are all that is required. For this reason it is easy to introduce a large processing-
gain in Direct-Sequence systems.
In the receiver, the received signal is multiplied again by the same (synchronized)
PNcode. Since the code existed of +1s and -1s, this operation completely removes the
code from the signal and the original data-signal is left. Another observation is that the
despread operation is the same as the spread operation. The consequence is that a
possible jamming-signal in the radio channel will be spread before data-detection is
performed. So jamming effects are reduced
21
DSSS disadvantage
The main problem with applying Direct Sequence spreading is the so-called Near-
Far effect which is illustrated in figure below. This effect is present when an interfering
transmitter is much closer to the receiver than the intended transmitter. Although the
cross-correlation between codes A and B is low, the correlation between the received
signal from the interfering transmitter and code A can be higher than the correlation
between the received signal from the intended transmitter and code A. The result is that
proper data detection is not possible.
Frequency hopping is the easiest spread spectrum modulation to use. Any radio
with a digitally controlled frequency synthesizer can, theoretically, be converted to a
frequency hopping radio. This conversion requires the addition of a pseudo noise (PN)
code generator to select the frequencies for transmission or reception. Most hopping
systems use uniform frequency hopping over a band of frequencies. This is not absolutely
necessary, if both the transmitter and receiver of the system know in advance what
frequencies are to be skipped. Thus a frequency hopper in two meters, could be made that
skipped over commonly used repeater frequency pairs. A frequency hopped system can
use analog or digital carrier modulation and can be designed using conventional narrow
band radio techniques. De-hopping in the receiver is done by a synchronized pseudo
noise code generator that drives the receiver's local oscillator frequency synthesizer.
22
The wideband frequency spectrum desired is generated in a different manner in a
frequency hopping system. It does just what its name implies. That is, it "hops" from
frequency to frequency over a wide band. The specific order in which frequencies are
occupied is a function of a code sequence, and the rate of hopping from one frequency to
another is a function of the information rate. The transmitted spectrum of a frequency
hopping signal is quite different from that of a direct sequence system. Instead of a [(sin
x)/x]^2-shaped envelope, the frequency hopper's output is flat over the band of
frequencie. hopping system. The bandwidth of a frequency hopping signal is simply w
times the number of frequency slots available, where w is the bandwidth of each hop
channel.
The difference between the FH-SS and the DS-SS frequency usage is illustrated in
Figure 7. Suppose an FH system is transmitting in frequency band 2 during the first time
period. A DS system transmitting in the same time period spreads its signal power over
the whole frequency band so the power transmitted in frequency band 2 will be much less
than that of the FH system. However, the DS system transmits in frequency band 2
23
during all the time periods while the FH system only uses this band part of the time. On
average, both systems will transmit the same power in the frequency band.
The block diagram for an FH-CDMA system is given in Figure 8. The data signal
is baseband modulated. Using a fast frequency synthesizer that is controlled by the code
signal, the carrier frequency is converted up to the transmission frequency.
The inverse process takes place at the receiver. Using a locally generated code
sequence, the received signal is converted down to the baseband. The data is recovered
after (baseband) demodulation. The synchronisation/tracking circuit ensures that the
hopping of the locally generated carrier synchronises to the hopping pattern of the
received carrier so that correct despreading of the signal is possible.
Within frequency hopping CDMA a distinction is made that is based on the
hopping rate of the carrier. If the hopping rate is (much) greater than the symbol rate the
modulation is considered to be fast frequency hopping (F-FH). In this case the carrier
frequency changes a number of times during the transmission of one symbol, so that one
bit is transmitted in different frequencies. If the hopping rate is (much) smaller that the
symbol rate, one speaks of slow frequency hopping (S-FH). In this case multiple
symbols are transmitted at the same frequency.
Data Down
Baseband Up Converter Data Data
Modulator converter Demodulator
FHSS advantages
On the other hand, Frequency-Hopping is less effected by the Near-Far effect than
Direct-Sequence. Frequency-Hopping sequences have only a limited number of ``hits''
with each other. This means that if a near-interferer is present, only a number of
24
“frequency-hops'' will be blocked in stead of the whole signal. From the ``hops'' that are
not blocked it should be possible to recover the original data-message
FHSS disadvantages
A disadvantage of Frequency-Hopping as opposed to Direct-Sequence is that
obtaining a high processing-gain is hard. There is need for a frequency-synthesizer able
performs fast-hopping over the carrier-frequencies. The faster the ``hopping-rate'' is, the
higher the processing gain
A PNcode used for DS-spreading exists of NDS units called chips, these chips can
have 2 values: -1/1 (polar) or 0/1. As we combine every data symbol with a complete
PNcode, the DS processing gain is equal to the code-length. To be usable for direct-
sequence spreading, a PNcode must meet the following constraints:
25
3.3.1 Shift-Register sequences
26
Chapter 4
4.1 INTRODUCTION
In this project two CDMA communication systems are implemented, one with
Maximum Length (ML) sequence PN code and other with gold code. In the PN sequence
generator section both the ML sequence and gold code generators are described. The
following specifications are considered for design and implementation of the CDMA
transmitter and receiver.
The top level block diagram of CDMA transmitter which is implemented in this
project is given in the below figure.
Informatio Data
n bits sampler
PN
sequence
generator
Phase
Clk & Phase Phase
increment
control ckt register translator
register
Rst
Phase accumulator
BPSK modulator
Clock distributor
PN sequence generator
Signal spreader
BPSK modulator
4.2.1 CL
28
The clock distributor of CDMA transmitter derives different clock signals from
master clock, which are required for Spread spectrum signal generation.
4.2.2 PN sequence generator
The important block of DS-CDMA communication system is the PN sequence
generator. The PN sequence generator can be implemented using LFSR’s to generate
several types of PN sequences as discussed in previous chapters. Two types of PN
sequence generators implemented in this project. They are ML sequences and gold codes.
ML sequence generator
A 6-bit LFSR for generating ML sequence of 64bit length will be used to generate the PN
code.
Gold code generator
A gold code PN sequence generator with two 6-bit LFSR’s for generating 128 bit
gold code will be used.
4.2.3 Signal spreader
The function of signal spreader is to generate PN sequence when the information
bit is ‘1’ and generate the complement of the PN sequence if the information bit is ‘0’.
The digital implementation of signal spreader is achieved by using XOR gate controlled
inverter action. The spreaded chip signal is used for modulation by BPSK modulator.
4.2.4 BPSK modulator
The BPSK modulator produces the band pass spread spectrum signal which is
suitable for transmission from the spreaded signal. The BPSK modulator is implemented
using pure digital architecture. The Direct Digital Frequency Synthesis (DDFS) technique
with phase shifting provision is used for the signal generation. The high level block
diagram and various blocks of BPSK modulator are given below.
29
Modulating data
Phase accumulator
Cos
BPSK_OUT
LUT
30
Phase
Phase
increment
register 6
register
The phase increment register stores the instantaneous phase increment values
resulting from frequency modulation control block. This is fed to a 6 bit adder as one of
its input. The other input for adder is phase register output. The phase register holds the
instantaneous phase for each clock pulse. The accumulated phase also is represented by 6
bits, which limits the maximum phase by 111111, and addition by 1 to maximum value
causes the phase to become 000000 This is expected and desired since the Look Up
Tables are programmed to consider 63 as highest phase value and phase increment by one
results next cycle of waveform. Since 6 bits are used to represent the 0O to 360O the
increment in digital phase value by one causes effective increment of 5.625O (results by
dividng 360O with 64 maximum possible combinations of 6 bits) . This also implies that
outputs can’t have more that 64 samples for one cycle.
The output of phase accumulator when the phase increment value is
000001 (decimal four) is given in below figure. It can be observed that the resulting
phase value after each clock pulse is incremented by one to the previous phase value.
Figure Modelsim output for Phase accumulator
Phase shifter
The phase shifter block shifts the instantaneous phase produced by phase
accumulator, according to the spreaded bits. Since in DDFS with 6 bit phase
representation 32 (100000) corresponds to 180O phase, the phase shifter adds the 32
(100000) when symbol ‘1’ is given and adds 0 (000000) when symbol ‘0’ is given. Phase
shifter is implemented by using 6 bit adder.
COS – LUT
31
The COS LUT is used as phase to amplitude converter, which takes digital phase
from phase accumulator and gives corresponding amplitude value of COS wave.
32
Figure 4.4 Block diagram of DS-CDMA receiver
33
Since clock distributor and PN sequence generators are same as the transmitter blocks
they are not repeated here.
4.3.1 BPSK demodulator
Digital coherent BPSK demodulator principle is used in this project for receiving
the DS-CDMA signals. The BPSK demodulator produce 15 (-7 to 7) digital words, unlike
in conventional BPSK demodulator which produces only two symbols (‘1’ and ‘0’). This
is necessary due to the low power spectral density of DS-CDMA signals and it is only
possible to detect the information bits after correlation. This dynamic range of BPSK
demodulator can be changed, for a given specification. Each block of BPSK demodulator
is illustrated in the following sections.
Multiplier
A signed multiplier is used to multiply the incoming signal with the LO output.
The multiplication is performed in 2’s complement and the 15 bit result is given to the
accumulator.
Local oscillator
The Local oscillator produces 6 bit signed bits representing the COS signal. The
same principle DDFS which is used in transmitter is used in the receiver.
Integrate and dump
The accumulator in the receiver corresponds to the integrator in the analog
equivalent. The accumulator accumulates the outputs of multiplier for one symbol
duration and outputs at the beginning of next symbol. The symbol timing recovery issues
are not addressed in this project, hence the symbol clock derived from clock distributor is
used in the integrate and dump circuit.
Scaling device
The scaling device accepts the output of integrate dump circuit and scales its
value to 4 bit signed number range, i.e., -7 to +7. This circuit is used in instead of
decision device which we find in conventional BPSK demodulator.
Serial to parallel converter
The serial to parallel converter, as shown in the high level block diagram of
BPSK demodulator accepts the outputs of the BPSK demodulator and produces parallel
vector with an array of 128 words. This parallel 128 words constitute the most recent 128
outputs of the BPSK demodulator. This becomes input to the correlator.
34
4.3.2 Matched code filter
Matched filter based correlator is used in this project for receiving the DS-CDMA
signals. The correlator accepts the 127 demodulator outputs and multiplies with 127
length PN sequence which is a sequence of +1 and -1. The outputs of multipliers are
accumulated to produce the correlator output. The magnitude of the correlator output
peaks whenever exact match occurs between the PN sequence and BPSK demodulator
outputs. The output of the matched filter is given to the threshold detector, for detecting
the information bits.
PN sequence generator
The PN sequence generator is same as the one which is discussed in transmitter,
except in the output type. In the transmitter side the output of PN sequence generator
continuously produces PN sequence on one bit output. But in the receiver side, since the
complete PN sequence is required every time for correlating with the outputs of BPSK
demodulator it is provided as a parallel vector. Another difference is the ‘1’ of PN
sequence is provided as +1 and ‘0’ is provided as -1, which is the required form for
correlator.
Threshold detector
The threshold detector compares the magnitude of the correlator output with the
threshold value. If the magnitude of the correlator output is higher than the threshold
value, then it rises a flag indicating that one bit is detected. If the sign of the correlator
output is positive, then it will be interpreted as ‘1’. Otherwise it will be declared as ‘0’.
This is the detected information bit.
Multiply and accumulate
This block multiplies the parallel converted demodulated output with PN
sequence represented in -1 (for 0) and +1 (for 1) format.
Decision device
This device decides the demodulated bit is ‘1’ or ‘0’ based on the multiply and
accumulated value is positive or negative.
35
Chapter 5
5.1 INTRODUCTION
36
5.2 CDMA TRANSMITTER:
Main blocks in CDMA transmitter are PN-sequence generator, direct digital
frequency synthesizer, BPSK modulator.
5.2.1 PN Sequence generator:
Yes
Rst=1
No
g1=Key 1
g2=Key 2
No
Clk=1
Z=0
Yes
C=C+1
Chip=Z
37
A linear feedback shift register (LFSR) is the heart of any digital system.
LFSR’s are the functional building blocks of circuits like the pseudo random
noise code generators commonly used in code division multiple access (CDMA)
systems.
LFRS’s sequence through (2 N –1) states, where N is the number of
registers in the LFSR. Here the elements from the taps of the shift register are
linearly combined using modulo-2 addition and are then feedback to the register
depending on the tapping. Here we use two 6-bit LFRS’s to generate two
random number sequences each of 64 bits. The input to the two LFSR’s is the
same, but the tapping varies.
The length of the shift register, the number of taps, and their positions in
the LFSR, are important to generate PN sequences with desirable
autocorrelation and cross-correlation properties.
38
.5.2 Direct Digital Frequency Synthesizer
x = 000000
y = 000001
yes rs
t=
1
No
No Clk = 1 yes
x<= x + y
Z<=x
Phase bits
Phase to amplitude
Converter LUT _COS
39
The phase accumulator consists of a 6-bit frequency register, which stores a
digital phase increment word followed by a 6-bit full adder and a phase register.
The digital input phase increment “000001” word is held in the phase increment register.
Rising edge of each clock pulse phase increment word “000001” added to the data
previously held in the phase register. Initial data in the phase register is “000000”,
represents zero degrees. Rising edge of first clock pulse “000001” added to “000000”.
Then resultant data in the phase register is “000001” represents the (5.60). At the next
clock pulse “000001” adder to “000001”. The phase increment word represents a phase
angle step that is added to previous value at each rising edge of clock to produce linearly
increasing digital value. Final value of phase accumulator is 111111 (3600). Again in next
clock pulse phase accumulator output is initialized to 000000.
The number held in the Accumulator is used to address a look-up table
(LUT_COS) held in ROM which converts phase information to a series of discrete
digitized samples of the amplitude of a cosine wave
Frequency of the carrier generated is fc
fc= fclk/64 = fck/26
Entity is BPSK modulator. Input ports are rst, data_clk (Dclk), samples_clk (clk),
data bit. Out put port is BPSK _OUT. To implement this entity three components
used are phase accumulator, LUT_COS, adder_nbit.
Phase accumulator is instantiated to generate instantaneous phase values.
LUT_COS is instantiated to convert phase values into amplitude bits of Cosine wave.
Adder_nbit is instantiated to implement phase translator.
41
YES
Rst=1
NO
NO
Dclk=1
=1
YES
BPSK_OUT NO
=000000 Read data _Clk=1
bit
YES
X=100000
YES
Read phase bits(Y)
Data From
Z=X+Y Bit=1 Phase accumulator
NO
LUT_COS Z=Y
NO
C = C+1 C=64
YES
BSK_OUT
42
Rising edge of each data_clk pulse data bit enters into BPSK modulator. Another
clk used in this entity is samples_clk. Frequency of samples_ clk is 64 times the data clk.
Rising edge of each samples_ clk pulse, phase accumulator values is incremented by ‘1’.
Phase accumulator generates instantaneous phase values from “000000” to “111111” i.e,
64 values.
If the data bit is ‘1’ then “100000” added to phase accumulator value. This
addition is carried by adder _ nbit. Adder _nbit output is given as input to LUT_COS,
which converts phase bits into amplitude bits. Addition of “100000” to phase
accumulator indicates 1800 phase shift of cosine wave if data bit is’1’. If data bit is ’0’
phase accumulator value directly given as input to LUT_COS.
After completion of 64 samples_ clk pulses, rising edge of next data_clk pulse
occurs then next data bit enters into the BPSK Modulator.
43
5.3 CDMA RECEIVER
CDMA receiver consists of BPSK demodulator, matched code filter
44
C=0
X=000000
Y=000001
YES
rst=
1
NO
Read Amp_bits
NO YES from channel
clk Chip =0
=1
Phase=X
X=X+Y
LUT_COS
Phase to amplitude
I converter
Z=Z+A*I
NO
C= C=C+1
64
YES
YES NO
Chip=1 Z >0 Chip=0
46
BPSK demodulator out(O
I=0
Z=0
YES
Rst=1 Data = 0
NO
Z = Z + P*O
No
I = 127 I=I+1
Yes
Yes No
Demodulated
out put Demodulated out put
Figure: 5.9 Matched Code Filter
47
Figure 5.10 Simmulation results for multiplier
48
Figure 5.12 Simmulation results for single user CDMA transmitter and receiver
Figure 5.13 Simmulation results for four user CDMA transmitter and receiver
49
CHAPTER 6
CONCLUSION
CDMA is one of the most impartant multiple access technique .In this project the
transmitter and receiver were implemented on FPGA. After synthesis simulations are
agreed before synthesis simmulations. The transmitter was connected to the receiver
before synthesis was done to verify functionality of the transmitter and receiver. This has
been tested using an arbitrary chosen data stream, where these data have been transmitted
through implemented transmitter and then received by our implemented receiver. A
comparison has been done between the transmitted and received data and satisfactory
results have been achieved. Increasing the number of bits using the same topology, it is
possible to reach the standard rates specified for CDMA.
This work has the following applications.
Custom CDMA communication setup with specified PN sequence length and
number of users
Standard CDMA systems designs such as used for mobiles and GPS
Implementation of a CDMA communication system with DSSS technique in VHDL
has the following advantages
The design is fully reconfigurable
The number of bits and PN sequence can be changed very easily
Useful for both FPGA and ASIC implementations.
Disadvantages
Complex hardware is involved in receiver design which increases the cost of the
system.
FUTURE SCOPE
The concept can be extended to design the GPS system which is CDMA system
with 1023 chip length technique.
FHSS technique can also be implemented and compared.
50
REFERENCES
51
STUDENT BIO-DATA
Signature
52