Modeling
Simulation
Implementation
User’s Guide
Version 1
For Use with Simulink
®
CDMA Reference
Blockset
How to Contact The MathWorks:
508-647-7000 Phone
508-647-7001 Fax
The MathWorks, Inc. Mail
3AppleHillDrive
Natick, MA 01760-2098
http://www.mathworks.com Web
ftp.mathworks.com Anonymous FTP server
comp.soft-sys.matlab Newsgroup
support@mathworks.com Technical support
suggest@mathworks.com Product enhancement suggestions
bugs@mathworks.com Bug reports
doc@mathworks.com Documentation error reports
subscribe@mathworks.com Subscribing user registration
service@mathworks.com Order status, license renewals, passcodes
info@mathworks.com Sales, pricing, and general information
CDMA Reference Blockset User’s Guide
COPYRIGHT 2000 by The MathWorks, Inc. and ALGOREX, Inc.
The software described in this document is furnished under a license agreement. The software may be used
or copied only under the terms of the license agreement. No part of this manual may be photocopied or repro-
duced in any form without prior written consent from The MathWorks, Inc.
FEDERAL ACQUISITION: This provision applies to all acquisitions of the Program and Documentation by
or for the federal government of the United States. By accepting delivery of the Program, the government
hereby agrees that this software qualifies as "commercial" computer software within the meaning of FAR
Part12.212,DFARS Part 227.7202-1,DFARS Part 227.7202-3, DFARS Part 252.227-7013,and DFARS Part
252.227-7014. The terms and conditions of The MathWorks, Inc. Software License Agreement shall pertain
to the government’s use and disclosure of the Program and Documentation, and shall supersede any
conflicting contractual terms or conditions. If this license fails to meet the government’s minimum needs or
is inconsistent in any respect with federal procurement law, the government agrees to return the Program
and Documentation, unused, to MathWorks.
MATLAB, Simulink, Stateflow, Handle Graphics, and Real-Time Workshop are registered trademarks, and
Target Language Compiler is a trademark of The MathWorks, Inc.
Other product or brand names are trademarks or registered trademarks of their respective holders.
Printing History: September 2000 First printing Revised for Version 1.0.2 (Release 12)
i
Contents
Preface
What Is the CDMA Reference Blockset? ................. viii
UsingtheCDMAReferenceBlockset..................... viii
Related Products ....................................... x
Using This Guide ...................................... xi
ExpectedBackground .................................. xi
OrganizationoftheDocument ........................... xi
OnlineHelp ..........................................xii
Technical Conventions ................................ xiii
Typographical Conventions ........................... xiv
1
Tutorial
Wireless Communication and CDMA .................... 1-2
GrowthofWirelessCommunicationsServices ............. 1-2
CellularMobileRadioSystems.......................... 1-3
OverviewofCDMA ................................... 1-4
FundamentalsoftheIS-95ACDMASystem ............... 1-6
Main Library Structure .............................. 1-12
MainLibraryStructureOverview ...................... 1-12
Library Summaries .................................. 1-14
IS-95ABaseStationTransmitterLibrary ................ 1-14
IS-95AMobileStationReceiverLibrary ................. 1-15
IS-95AMobileStationTransmitterLibrary .............. 1-16
ii Contents
IS-95ABaseStationReceiverLibrary ................... 1-17
IS-95ACommonLibrary .............................. 1-18
Hints for Using the CDMA Reference Blockset .......... 1-19
UnderstandingRatesandRateSets..................... 1-19
UnderstandingFrameContentsandPadding ............. 1-20
Demo Models ........................................ 1-22
UsingtheDemos .................................... 1-23
IS-95AForwardTrafficChannelDetectionDemo.......... 1-25
IS-95AReverseTrafficChannelDetectionDemo .......... 1-30
IS-95AForwardTrafficChannelCodecDemo............. 1-35
IS-95AReverseTrafficChannelCodecDemo ............. 1-39
IS-95A Reverse Traffic Channel Transmitter Demo . . . . . . . . 1-43
Selected Bibliography ................................ 1-48
2
Block Reference
Alphabetical List of Blocks ............................. 2-6
IS-95ACRCGenerator ................................ 2-7
IS-95AFrameQualityDetector ........................ 2-11
IS-95A Fwd Ch Base Station Transmitter Interface . . . . . . . . 2-15
IS-95AFwdChConvolutionalEncoder .................. 2-17
IS-95AFwdChDescrambler........................... 2-21
IS-95AFwdChDetector .............................. 2-23
IS-95AFwdChInterleaver/Deinterleaver ................ 2-28
IS-95AFwdChPowerBitExtractor..................... 2-30
IS-95AFwdChRakeDemodulator...................... 2-32
IS-95AFwdChRakeFinger ........................... 2-34
IS-95AFwdChRepeater/Derepeater .................... 2-37
IS-95AFwdChScrambler............................. 2-41
iii
IS-95AFwdChViterbiDecoder ........................ 2-44
IS-95ALongCodeGenerator........................... 2-48
IS-95ARevChBurstRandomizer ...................... 2-51
IS-95ARevChConvolutionalEncoder................... 2-53
IS-95ARevChDetector............................... 2-56
IS-95ARevChInterleaver/Deinterleaver ................ 2-60
IS-95ARevChRakeFinger ........................... 2-62
IS-95ARevChRepeater/Derepeater .................... 2-65
IS-95ARevChShortCodeDespreader .................. 2-68
IS-95ARevChViterbiDecoder......................... 2-70
IS-95ARevChWalshCorrelator ....................... 2-75
IS-95ARevChWalshDemodulator ..................... 2-77
IS-95ARevChWalshModulationandSpreading.......... 2-79
IS-95ARevChWalshModulator ....................... 2-82
IS-95AShortCodeGenerator .......................... 2-84
IS-95ASyndromeDetector ............................ 2-86
IS-95AWalshCodeGenerator ......................... 2-89