Professional Documents
Culture Documents
Altera. Direct Sequence Spread Spectrum (DSSS) Modem Reference Design. 2010
Altera. Direct Sequence Spread Spectrum (DSSS) Modem Reference Design. 2010
f Refer to Stratix EP1S25 DSP Development Board Data Sheet for more
information on the Stratix EP1S25 DSP development board. Refer to
Stratix EP1S80 DSP Development Board Data Sheet for more information on
the Stratix EP1S80 DSP development board.
AN 289-2.0
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
DCH0 DCH0
DCH1 DCH1
DCH2 DCH2
DSSS Channel DSSS
DCH3 DCH3
Modulator Model Demodulator
DCH4 DCH4
PCH PCH
Features
■ DSSS modulator
■ Channel model
■ DSSS demodulator
■ System simulation & analysis
■ Design walkthrough
When you install the software from the DSP Development Kit, Stratix
Edition CD-ROM, the DSSS modem reference design is installed into the
directory structure shown in Figure 2.
2 Altera Corporation
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
dsss
doc
Contains the reference design documentation
Projects
Contains the ModelSim, Quartus II, and RTL source files.
ModelSim
Contains the ModelSim files.
tcl
Contains the ModelSim Tcl scripts.
testbench
Contains the simulation testbench.
Quartus
Contains the Quartus II design files.
sof
Contains the SRAM Object File (.sof) for the design.
RTL_Source
Contains the RTL source files.
Related Links
■ Third Generation Partnership Project, www.3gpp.org
■ Altera web site, www.altera.com/products/devkits/altera/kit-
dsp_stratix.html
DSSS The input to the DSSS modulator, which is typically the output of an inner
channel coding layer in the system, is a set of five independent serial data
Modulator streams (i.e., DCH0 to DCH4). Additionally, there is a pilot channel (i.e.,
PCH), which consists of a known repeating pattern, and a synchronization
channel (i.e., SCH). The demodulated pilot stream in the receiver is
checked against a local pilot stream copy to determine if I-Q switching or
inversion occurs, while the information contained in SCH is used to
accomplish code synchronization in the receiver.
Altera Corporation 3
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
Cch,16,0 FIR3
RRC
Re{}
25-Tap
Σ
FIR Filter
DCH1 Interpolation x4
Ex BW: 22%
Cch,16,1 gi
K
DCH2
sin(wn)
FIR1 FIR2 NCO IF signal
Cch,16,2 LPF LPF Frequency
Length 256 2-Channel 2-Channel Resolution: 0.03Hz
SCH Gold Code 87-Tap 47-Tap SFDR: 112dB
Spreader FIR Filter FIR Filter
Interpolation Interpolation cos(wn)
x2 x4
Carrier Phase
Increment
DCH3
FIR3
Cch,16,8 RRC
gq 25-Tap
FIR Filter
Σ
Im{} Interpolation x4
DCH4 Ex BW: 22%
Cch,16,9
K
PCH
Cch,16,10
C ch ,1 C ch ,1
C ch ,2 = = 1 1
C ch ,1 – C ch ,1 1 –1
C ch ,n ⁄ 2 C ch ,n ⁄ 2
C ch ,n =
C ch ,n ⁄ 2 –C ch ,n ⁄ 2
4 Altera Corporation
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
The codes cch,16,i are then selected by row from the recursively-generated
Hadamard Matrix Cch,16 of dimension 16. Table 1 indicates the codes
selected for each of the channels.
Channel Code
DCH0 cch,16,0
DCH1 cch,16,1
DCH2 cch,16,2
DCH3 cch,16,8
DCH4 cch,16,9
PCH cch,16,10
Data channels DCH0, DCH1, and DCH2 are combined via addition to form
the I-component data. Data channels DCH3, DCH4, and the pilot channel,
PCH, are added to form the Q-component data. Prior to addition with the
complex Gold Code, the sequences are scaled by a non-linear factor K to
balance the signal level of the spread data amplitude relative to the
synchronization channel amplitude level. This ensures that both the
synchronization channel and data channels are decipherable in the
receiver.
Altera Corporation 5
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
m-sequence 1
gci
gi
m-sequence 2
m-sequence 3
gcq
gq
m-sequence 4
Figure 5 shows the auto-correlation functions of Gold Codes gci and gcq.
6 Altera Corporation
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
f Refer to FIR Compiler MegaCore® Function User Guide, for more information
on generating FIR filters customized for Altera devices.
The first filter stage is a 47-tap, half-band, low-pass filter designed with a
Hanning window. Figure 6 (FIR filter #1) shows the magnitude of the FIR
filter’s frequency response over the full bandwidth of the system.
Altera Corporation 7
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
The filter has an input resolution of four bits and thus, a two-channel, fully
serial implementation is chosen, yielding a very efficient FIR filter in terms
of device resource usage. The I and Q channels are first multiplexed into
a single sample stream of 7.68 MSPS. The serial filter is clocked at
30.72 MHz and yields an up-sampled interpolated data, time-division
multiplexed stream of 15.36 MSPS at its output.
8 Altera Corporation
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
Figure 7. FIR Filter Compiler Architecture Page Settings for FIR Filter Stage Two
The third and final filter stage is a root-raised cosine, pulse-shaping filter
with an interpolation factor of four. The third filter has 25-taps and its
input is the output of the second stage FIR filter truncated to 16 bits. The
coefficients are also 16 bits. Figure 6 (FIR filter #3) shows the frequency
response of the third FIR filter. The input stream is demultiplexed into the
individual I- and Q-channels, each with a sample rate of 30.72 MSPS. Each
channel is filtered by an individual filter clocked at 122.88 MHz to yield
the final 122.88 MSPS data streams to be modulated onto the IF carrier.
Because of the relatively higher input data rates, a multi-bit serial
architecture with four serial units is selected from within the FIR
Compiler wizard.
Altera Corporation 9
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
Modulator NCO
Specification Requirement
Output Frequency 15.36 MHz
Frequency Resolution 0.03 Hz
Spurious Free Dynamic Range 110 dB
Output Sample Rate 122.88 MSPS
The NCO was designed using the Altera NCO Compiler MegaCore
function. Figure 8 shows a screenshot of the NCO parameterization.
10 Altera Corporation
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
Because the architecture is very efficient for the NCO’s high SFDR and
relatively high-performance requirements, a multiplier-based NCO is
selected in the MegaWizard. This architecture uses the Stratix device’s
DSP blocks to efficiently reduce the memory requirements for such a
highly-precise oscillator. Phase dithering is also employed to reduce the
harmonic spurs inherent in the fixed precision implementation of NCOs.
To achieve the optimum dithering level for the chosen architecture and
clock-to-output frequency ratio, the NCO Compiler allows you to tune the
dither level and observe the effects immediately in graphical
representation of the spectrum, as Figure 8 shows. The required phase
accumulator precision is deduced from the specification of the frequency
resolution.
Rounded to the nearest integer and substituting 122.88 x 106 and 0.03 for
fCLK and fRES, respectively, the required resolution of the phase
accumulator is 32 bits. Utilizing the spectral SFDR plot in the NCO
Compiler wizard, the following is required to meet the specification:
Altera Corporation 11
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
12 Altera Corporation
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
Altera Corporation 13
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
Channel Model The channel model is designed to exercise the symbol and carrier recovery
circuitry, AGC loop, and despreading code synchronization portions of
the receiver.
Y ( jω ) = X ( j ω ) H ( j ω ) + N ( j ω )
α(n) v(n)
14 Altera Corporation
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
DSSS The DSSS demodulator receives the channel-degraded signal from the IF
signal and recovers the original data transmitted. It consists of a down-
Demodulator conversion stage that is responsible for recovering the spread data from
the received modulated signal and a despreader unit, which is used to
despread the demodulated I-Q arms to render the transmitted data
streams. An AGC loop, a carrier recovery loop, and a PN synchronization
loop, work in concert with a pilot monitor and an I-Q derotation module
to maintain receiver synchronization, under channel degradations and
phase shifting. See Figure 11.
FIR
Altera RRC
31-Tap FIR Filter
8 pn_lock
Excess BW: 22%
Gold Code
Fixed Rate Peak max_index
Correlator
Detector
From IF 4x
NCO Oversampling
Frequency Carrier
AGC Recovery
Resolution: 0.03Hz Data
Channel
SFDR: 112dB Loop Outputs
1. . 5
Free-Running
Phase Increment
I-Q
Buffer Hadamard
Derotate
Despreader
FIR
Altera RRC 8
Figure 12 shows the AGC circuit. The AGC loop should be a slowly-
tracking loop, and not provide gain based on rapid fluctuations in the
received signal x[n]. The input is down-sampled by a factor of eight, and
then the down-sampled data is squared to yield a short-term power
estimate of the received signal.
Altera Corporation 15
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
Dead-Bander
w[n]
Up/Down g[n]
Counter Gain
LUT
The loop filter is implemented as a cascade of two IIR filters, and both
filters are designed using the Altera IIR Compiler. The Altera IIR
Compiler allows you to analyze the floating-to-fixed point conversion of
coefficients and the widths and slices of interest of the feed-forward and
feedback paths in addition to saturation and rounding effects. Figure 13
shows a screenshot indicating these settings in the design of the first order
stage.
16 Altera Corporation
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
The first filter stage is a second order low-pass filter, and the second stage
is a first order low-pass filter. The combined third order overall response
has a sufficiently narrow bandwidth to yield a long-term power level
estimate ensuring that rapid fluctuations in the received signal do not
cause a large shift in the applied gain. The magnitude response of the
overall AGC Loop filter is shown in Figure 14, which is generated by
multiplying the constituent responses of the two IIR filters and not taking
fixed-point quantization effects into account.
Altera Corporation 17
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
A dead-band is applied to the loop filter output, which has the effect of
limiting the control signal’s swing to the up/down counter, preventing
oscillation of the loop. The deadband is chosen to be wide enough so in
the event that the deduced signal level of x(n) is not exactly at the
optimum point—but close enough to allow for correct demodulation—the
gain level is held constant.
The up/down counter scales the incoming signal in the opposite direction
of its deficit with respect to the optimum received signal level. Presented
with an attenuated input signal, the AGC loop recognizes that the
received signal level is below the optimum level. The deficit causes the
counter to increment, which applies increasing gain until the loop filter
output is once again within the dead-band region. If the loop filter output
signal level is forced above the dead-band region by the applied gain, the
counter decrements, which decreases the applied gain until the output is
again within the range where correct demodulation of the received signal
can occur.
18 Altera Corporation
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
Altera Corporation 19
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
Where si[n] and sq[n] are the signs of i[n] and q[n] respectively. The result
is low-pass filtered to remove higher order terms, which leaves a term
proportional to sin ( ∆φ ). The loop filter in Figure 16 is a second-order IIR
low-pass filter, designed using the Altera IIR Compiler. The filtered phase
difference is input to the frequency modulation input of the demodulator
NCO, varying its output frequency about its free-running frequency and
forcing ∆φ towards zero.
20 Altera Corporation
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
s [n]
i
Loop
NCO Filter
sq [n]
Free-Running
Phase Increment Sign-detect
8
LPF q[n]
To filter out higher order terms resulting from the mixing process, a pair
of root-raised, cosine filters is implemented on each of the I-Q arms,
following the demodulation multipliers. The root-raised cosine window
of the filter also provides an overall raised cosine response to the
transmitted pulse. The filters each have 31-taps, 8-bit input resolution and
9-bit coefficients with an excess bandwidth of 22%. The filters are
designed with the Altera FIR Compiler. Because of the relatively high
input data rates of 122.88 MSPS to the filters, a parallel architecture is
used. The filters are clocked at the sample rate and output is decimated by
a factor of 8 to bring the sample rate down to 4× the chip rate or 15.36
MSPS.
Altera Corporation 21
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
1023
R sc [ k ] = ∑ s [ n ]cg∗ [ n – k ]
n=0
1023
= ∑ ( i [ n ] + jq [ n ] ) ( cgi [ n – k ] – jcgq [ n – k ] )
n=0
1023 1023
= ∑ i [ n ]c gi [ n – k ] + ∑ q [ n ]c gq [ n – k ] +
n = 0 n=0
1023 1023
j ∑ i [ n ]c gq [ n – k ] – ∑ q [ n ]c gi [ n – k ]
n = 0 n=0
= ( R sci [ k ] + jR scq [ k ] )
It can be seen from the complex correlation equation that there are four
distinct correlation operations that must be performed. However, it
should also be noted that the real and imaginary parts are each required
to be correlated against the real and imaginary parts of the complex code.
The four continuous correlations can therefore be implemented as two
separate FIR filtering operations, one with a coefficient set consisting of
the values of cgi[n], while the other with a coefficient set consisting of
values of cgq [n]. The input values are alternatively taken from the input
streams i[n] and q[n], four samples at a time and multiplexed.
22 Altera Corporation
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
Because there are only 256 distinct values in each code, these filters can be
implemented very efficiently in a multi-channel FIR structure. Each group
of four over-sampled input data points is required to be multiplied by the
same coefficient value, so each oversampling phase of the input data is
assigned to an individual channel. Given that the input data is
oversampled by a factor of four and both quadrature arm components
(i.e., i[n] and q[n]) are required to be processed by each coefficient set, two
256-tap, 8-channel filters are required to compute the 1024 complex over-
sampling correlation lag results. The four TDM results from the filters for
each quadrature component are required to be added every four cycles
before being combined as per the complex correlation equation, which
yields the multiplexed lag outputs, Rsci and Rscq corresponding to the
1024 input samples of i[n] and q[n]. Figure 17 shows the implementation
of the complex correlation.
D Q
i[n]
(i[n],q[n]) 8-channel Rsci[k]
256 Tap FIR
Coefficient Set Ci D Q
D Q Rscq[k]
8-channel
q[n] 256 Tap FIR
(q[n],i[n]) Coefficient Set Cq
D Q
The fundamental input data rate to each of the filters is the system chip
rate of 3.84 MSPS. Because there are eight channels per filter, and the input
resolution to the filters is 8-bits, a mult-bit serial architecture utilizing two
serial units is chosen from within the FIR Compiler wizard. The filters are
required to be clocked at a rate of 122.88 MHz (8 x 4 x 3.84 MSPS) to
perform the complex correlation. The real and imaginary parts, Rsci and
Rscq, are truncated to 18 bits before being passed to the peak dector to
estimate the offset in time between the transmitter and receiver.
Altera Corporation 23
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
Peak Detector
kmax
Counter
Rscq(k) ( )2
Z-1
pn_lock
max{R2sci[k]+R2scq[k]}
Threshold
The index for which the peak of the complex magnitude squared sequence
is detected corresponds directly to the lag time between the received
sequence and the local copies of the codes in the receiver. Once PN-
synchronization lock has been achieved, kmax is used to initialize the read-
side address of the buffer between the down-converter and the Hadamard
Despreader.
24 Altera Corporation
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
Hadamard Despreader
Data from the demodulator filter pairs is buffered while the code offset is
detected by the Gold Code correlator. The data is written in pairs into the
buffer, with each memory location storing the 8-bit decimated I and Q
component samples concatenated as a 16-bit word. The buffer is arranged
as a quadruple circular one, which allows demodulated I-Q data storage
beyond the latency of the Gold Code correlation calculation. The result is
to allow the storage of 4,096 I-Q pairs (i.e., 4× correlator window length)
before results are overwritten by the newly calculated outputs from the
Gold Code correlator. Figure 19 shows the Hadamard Despreader
interface’s block diagram.
R sci[k]
Complex Gold
Code Correlator Peak
Output Lags Rscq[k] Detector
k
pn_lock max
Write Read
Address Address
Generator Generator
Buffer
Once the Gold Code sequence point of alignment has been detected, the I-
Q data is read from the buffer starting with the data written to the location
in memory, corresponding to the offset index, kmax . The data is passed
into an eight-channel Hadamard Despreader that implements
despreading of up to eight spread-spectrum channels. In the DSSS
reference design, because only six channels are required, two of the
channels are idle. The redundancy provides for a simple interface
between the buffer and the despreader.
Altera Corporation 25
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
i
Control Code Memory
m
c [m] DCH0
i
Sign Detect DCH1
sclr DCH2
8-Channel
Idle
i[n]
d[n] Signed DCH3
Accumulator DCH4
q[n]
PCH
Idle
The I-Q data is multiplexed into a single, 8-bit data stream d[n] with
successive samples taken from I and Q component arms every four clock
cycles. Each of the oversampled phases is signed according to the bit ci[m]
prior to being accumulated, see the following equation:
63
Where i is the channelization code index and m is the bit index within that
channelization code. The code selection index is updated every clock
cycle, while m is updated every 32 clock cycles because each oversampled
phase should be accumulated with the same indexed sign bit for each of
the eight channels. Every 64 samples, the accumulated value RHi[n] is
passed to a one-bit slicer to detect its sign, and the accumulated value for
that channel is cleared for processing of the next data symbol. The
despreader module is clocked at a rate of 122.88 MSPS to process the eight
15.36 MSPS oversampled channels.
Pilot Monitor
The pilot monitor compares the detected-demodulated pilot sequence
with a local copy and checks for errors. Every time a new pilot bit is output
by the Hadamard Despreader and is different to that expected by the pilot
monitor an error counter is incremented. When the error count exceeds
the specified error threshold, I-Q rotation due to shifted phase lock in the
Costas Loop is assumed and a separate 2-bit rotator index counter is
incremented and output to the I-Q derotator. Figure 21 shows a simplified
block diagram illustrating the functionality.
26 Altera Corporation
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
Detected Pilot
Rotator
Sequence
Index
Counter Counter
I-Q Derotation
The derived rotator index is fed back into an I-Q derotator, which
effectively implements shifts in the demodulated I-Q components by
n π /2 radians, n ∈ ( 0, 1, 2, 3 ) . The rotator is implemented as a look-up
table that, based on the index, switches and/or inverts the I- and
Q-component inputs to the Hadamard Despreader. Table 5 lists the
demodulator design files.
Altera Corporation 27
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
System To observe the DSSS modem reference design operation under various
channel conditions, you can simulate the design using the ModelSim®
Simulation & simulation software. This section discusses DSSS modem reference design
simulation and analysis.
Analysis
DSSS Modem Simulation Testbench
The modem can be exercised via the top-level simulation DSSS modem
testbench, dsss_interface. Figure 22 shows the interface’s principle
functional units, which consist of a set of input data sources arranged
appropriately and stored as a ROM in the Stratix device’s internal
memory. The data is read from the ROM and input to the modem via the
corresponding data and pilot channel ports.
28 Altera Corporation
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
GND
β=1
Input DSSS β=0
Data Modulator
Source
Output Data
γ =0 DSSS
α=0 GND Demodulator
1
γ=1
α= 1
K
A
Clock
Generator
Noise
Generator NL
Control
■ <START/END>_ATTEN_TIME
■ <START/END>_SIGNAL_NULL_TIME
■ <START/END>_ADD_NOISE_TIME
Altera Corporation 29
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
30 Altera Corporation
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
Altera Corporation 31
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
Channel Parameterization
Parameter Value
ATTEN_FACTOR 18
NOISE_LEVEL 5
START_ATTEN_TIME 2000 µs
END_ATTEN_TIME 16000 µs
START_SIGNAL_NULL_TIME 6500 µs
END_SIGNAL_NULL_TIME 7500 µs
START_ADD_NOISE_TIME 1 µs
END_ADD_NOISE_TIME 16000 µs
=0 otherwise
=0 otherwise
=0 otherwise
Demodulator Performance
32 Altera Corporation
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
Figure 24. DSSS Modem Reference Design Test Case Channel Output
Altera Corporation 33
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
Figure 25. DSSS Modem Output Error Metrices Given Channel Degradations Previously Specified
After reset is set low, the DSSS demodulator performs its initial
acquisition of code and carrier synchronization as well as AGC gain level.
Figure 26 shows a plot of the phase offset between the modulator and
demodulator carriers against time. The Costas Loop deduces a phase
offset between the received signal and the demodulator carriers, and then
drives the demodulator output phase to lock to the received modulated
signal as shown in Figure 27. At this point, the Costas Loop continues to
track any phase and/or frequency offsets detected.
34 Altera Corporation
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
The plots in Figures 26 and 27 compare the phase offset between the
modulator and demodulator NCO sine output; thus, the plots do not
account for channel latency and the AGC loop in the modulator. Figure 25
shows that this action incurs errors in the demodulated sequence, which
is the result of the Costas Loop driving the oscillator to lock 90° out of
phase—with respect to the demodulator I-Q arms. Thus, the pilot
monitor’s error threshold is quickly exceeded, causing an I-Q rotation.
Following the I-Q rotation, full correct input data demodulation occurs
and the output of the error counter remains fixed, which implies zero new
errors. The AGC gain level applied can also be seen to settle to a deduced
optimum operation point during this interval.
Altera Corporation 35
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
Figure 27. Phase Offset Between Modulator & Demodulator Over Initial 1ms Interval
At t = 2000 µs, the signal input power level is reduced by 18 dB, causing
errors to occur in the demodulated output. The AGC loop immediately
begins to compensate, increasing the gain applied to the input signal up
to a normalized value of K = 7.84, at which time no further errors are
detected at the demodulator output. The attenuation of the signal in the
channel also causes a brief increase in phase offset detected by the Costas
Loop, the output of which is quickly driven again towards zero as the
AGC loop compensates for the attenuation.
36 Altera Corporation
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
Altera Corporation 37
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
Hardware The DSSS modem reference design can be downloaded to the Stratix
EP1S25 or EP1S80 DSP development board for hardware verification
Verification on purposes.
the Stratix If you are using the Stratix EP1S25 DSP development board a
EP1S25 or synthesizable testbench is located in the file <install
directory>\Stratix_DSP_kit-v<version>\Reference_Designs\dsss\
EP1S80 DSP quartus\dsss_interface.vhd. If you are using the Stratix EP1S80 DSP
Development development kit a synthesizable testbench is located in the file <install
directory>\Stratix_DSP_pro_kit-v<version>\Reference_Designs\dsss\
Board quartus\dsss_interface.vhd.
To view the output data from the modem on the Stratix EP1S25 or EP1S80
DSP development board, the SignalTap® II Logic Analyzer is used.
38 Altera Corporation
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
When code synchronization has been lost and then reacquired, the signal
lock in the Gold Code correlator peak detector is driven from low to high.
The signal is therefore used to trigger the SignalTap II Logic Analyzer to
upload data to the Quartus II software where it is displayed in the
SignalTap II Waveform Viewer. The data is clocked into the memory of
the internal logic analyzer by the 3.84 MHz clock generated by the Stratix
PLL. The trigger position is set to Pre indicating that 12% of the 16K
samples saved will be from the period of time before code
synchronization is acquired (or required), while the remaining samples
are from the period of time after code synchronization. This allows the
adjustment of the receiver to the actions that have caused a loss in lock
(i.e., system reset, signal attenuation, or nulling) to be observed, with
output data matching expected output after this period of adjustment.
SW2 channel_beta
SW3p1 channel_gamma
GND
channel_alpha = 1 channel_gamma = 1
XTAL KA
Stratix PLL
Noise
Generator NL
Control
sysreset
SW0
Altera Corporation 39
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
40 Altera Corporation
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
To run the SignalTap II Logic Analyzer to view the modem output and
expected output, perform the following steps:
3. Induce channel effects. While the modem runs on the Stratix device,
nulling the channel output signal component can be achieved by
asserting the push-button switch SW2 on the Stratix EP1S25 or
EP1S80 DSP development board. This has the effect of causing the
receiver to lose synchronization again because its input consists of
noise only. When the switch is released, the receiver reacquires
Altera Corporation 41
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
Figure 31 shows the region either side of the SignalTap II Logic Analyzer
trigger event, enlarged to illustrate the result of applying the system reset
during modem operation. Initially, both the output and the expected
output are grounded while the reset is held. Thereafter, a period of time
follows where the output data is not as expected, i.e., it contains errors.
This is the acquisition interval of the modem where the AGC level and
carrier and code synchronization are obtained. After the receiver has
compensated for these effects, the output data matches the expected data
and the demodulator correctly recovers the transmitted data from the
received IF signal.
42 Altera Corporation
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
Table 8 lists the resource usage of the DSSS modem reference design’s
primary functional units.
Design Entity Logic M512 RAM M4K RAM MegaRAM DSP Block PLL
Elements Elements
DSSS modulator 9943 1 8 0 12 0
DSSS channel model 73 0 0 0 0 0
DSSS demodulator 12196 60 8 1 60 0
DSSS control, (1) 160 0 96 0 0 1
Note:
(1) Includes resource usage for the system control signal generation, clock generation, testbench input data storage, and
SignalTap Logic Analyzer.
The following device power usage estimates were obtained from the
Quartus II software over 100 µs of timing simulation.
Power mW
Total internal power 506.50
Total standby internal power 75.00
Total logic element internal power 282.71
Total IO buffer internal power 0.11
Total M512 RAM internal power 0.27
Total M4K RAM internal power 14.15
Total Clocktree internal power 175.05
Total DSP internal power 23.13
Total PLL internal power 78.03
Total power 506.50
Altera Corporation 43
Direct Sequence Spread Spectrum (DSSS) Modem Reference Design
Copyright © 2003 Altera Corporation. All rights reserved. Altera, The Programmable Solutions Company, the
stylized Altera logo, specific device designations, and all other words and logos that are identified as
trademarks and/or service marks are, unless noted otherwise, the trademarks and service marks of Altera
Corporation in the U.S. and other countries. All other product or service names are the property of their
respective holders. Altera products are protected under numerous U.S. and foreign patents and pending
applications, mask work rights, and copyrights. Altera warrants performance of its semiconductor products
to current specifications in accordance with Altera’s standard warranty, but reserves the right to make changes
to any products and services at any time without notice. Altera assumes no responsibility or liability arising
out of the application or use of any information, product, or service described herein except as expressly
agreed to in writing by Altera Corporation. Altera customers are advised to obtain the latest version of device
specifications before relying on any published information and before placing orders for products or services.
This reference design file, and your use thereof, is subject to and governed by the terms and conditions of the
applicable Altera Reference Design License Agreement (found at www.altera.com). By using this reference
101 Innovation Drive design file, you indicate your acceptance of such terms and conditions between you and Altera Corporation.
In the event that you do not agree with such terms and conditions, you may not use the reference design file
San Jose, CA 95134 and please promptly destroy any copies you have made.
(408) 544-7000
www.altera.com This reference design file being provided on an "as-is" basis and as an accommodation and
therefore all warranties, representations or guarantees of any kind (whether express,
Applications Hotline: implied or statutory) including, without limitation, warranties of merchantability, non-
(800) 800-EPLD infringement, or fitness for a particular purpose, are specifically disclaimed. By making
Literature Services: this reference design file available, Altera expressly does not recommend, suggest or
require that this reference design file be used in combination with any other product not
lit_req@altera.com provided by Altera.
44 Altera Corporation