Documente Academic
Documente Profesional
Documente Cultură
Decoder Overview
2 10/5/2019 WCDMA Layer 1 Tutorial
Decoder
Introduction
• Decoder module is responsible for following action in physical layer software
– CCTrCh table management for mDSP.
– CCTrCh management (enable/disable) with in L1 S/W.
– Maintainance/Computation of various values in CCTrCh table
• Rate matching parameter computation
• TrCh coding parameters computation
• DRM buffer allocation
– Processing of downlink data and passing it to higher layers.
– Blind transport format detection (BTFD) processing.
– Provide input to outer loop power control module in DCH state.
– Estimate DPCCH SIR every radio frame, monitors in-sync and out-of-sync conditions and
maintains its timers.
• Decoder modules interacts with other modules, layers and hardware through
defined interfaces.
• Suggested Reading
– TS 25.211
– TS 25.212
– TS 25.302
– WCDMA Modem DSP-Microprocessor Interface.
3 10/5/2019 WCDMA Layer 1 Tutorial
Decoder
Rate Matching
• RM parameters are computed for the worst case. Hence the number of
DTX bits may vary per CCTrCh.
• Repetition leads to better coding gain and the reverse holds true for
puncturing.
• RM attribute of a TrCh specify the relative importance of that TrCh.
7 10/5/2019 WCDMA Layer 1 Tutorial
Decoder
• In nonACQ state
– The first two CCTrCh are used for non BCH type channels. Only 1 can be used/configured at a
time. The other is used for reconfiguration purposes.
– Last 2 can be used for any BCH (SBCH/NBCH) setup.
– The NBCH can be setup in DCH state for timing (CFN to SFN diff) measurement.
– The NBCH can be setup in non DCH state for acquiring neighbor cell parameters for cell
reselection.
• There are many slot format in which TFCI bits are not present or
network may choose not to transmit TFCI bits. In such cases BTFD
processing is used.
• All TrCh on that CCTrCh need to have fixed position rate matching.
• Unlike TFCI’s, the transport format in use has to be determined
indirectly. Requires extra computational effort.
• In BTFD processing there are 2 types of TrCh:
• Explicitly detectable TrCh
– These TrCh must have non zero CRC bits attached to it.
– These may serve as guiding TrCh.
• Guided TrCh
– These TrCh have 0 bits of CRC attached to TrCh.
– Need help from guiding TrCh.
– A TrCh is called guiding TrCh only when it has same TF of guided TrCh in TFCS for each TF of
guiding TrCh. In a figure showing CCTrCh, TrCh #0 can be guiding TrCh for #1 and #2. but not
for #3.
10 10/5/2019 WCDMA Layer 1 Tutorial
Decoder
CCTrCh Setup
CRC bits
DOB status
Path energy matric
Symbol error/Quality bits
TBset data
TB #0
Padding
TB #1
H/W DOB
Padding
TB #2
CCTrCh table index Padding
DOB status TrCh index
FIFO TF index TB #3
CFN Padding
TFCI decode result
DOB address
mDSP DOB
status FIFO
15 10/5/2019 WCDMA Layer 1 Tutorial
Decoder
– TB data read.
• The TB read process is divided into two phases to reduce the fatness of
the event on Rx timeline.
• Transport Block Header Event
– Read DOB status from DOB (first 3 W32).
– DOB status FIFO may belong to CCTrCh that may be internal to L1 (BCH only) or data may need
to be passed to MAC.
– Internal BCH use
• Decodes SFN of BCH block if CRC is good and pass it to demod block as local command.
– CCTrCh for delivery to MAC
• Checks CRC if not in loopback mode.
• If CRC fails drop the block.
16 10/5/2019 WCDMA Layer 1 Tutorial
Decoder
F3 Messages
F3 Messages
• CCTrCH Enable/Disable
– Enable CCTrCH, index = 3
• dldec.c 02893 CC_SET_ST:t_idx 3 enable 1 CFN 16MSG
– Disable CCTrCH, index = 2
• dldec.c 02893 CC_SET_ST:t_idx 2 enable 0 CFN 16MSG
F3 Messages
• Idle State
– No F3 messages
F3 Messages
F3 Messages
F3 Messages
– Reconfiguring the CCTrCH table
• dldec.c 01663 Seamless reconfig
– Register Callback functions to query TB size for failed TFCI/BTFD
• dldec.c 07157 Registered CC 1 Tr 0 CBfunc ec0561MSG
– Read TB header from DOB status FIFO
• dldec.c 06220 Retained Blks for CC 1 Tr 0 TF 2
• Few MSG_ERRORS
– Setting up non-existent CCTrCH
• dldec.c 01596 CCTRCH_SETUP:CCTrCh Id 5 non-existing
– Ciphering Key Validation failed
• dldec.c 01356 CIPH_KEY_VLDT: validation failed
– Transport channel not valid for loopback
• CCTRCH_SETUP:CC 2 TrCh 1 type 0 not valid for loopback
– No free TFCI table
• CCTRCH_SETUP:No free TFCI table
– Enabling a already freed CCTrCH table
• dldec.c 02838 CC_SET_ST:t_idx 0 is free
– Freeing a already freed CCTrCH table
• dldec.c 04091 CCTRCH_FREE:t_idx 0 already free
24 10/5/2019 WCDMA Layer 1 Tutorial
Decoder
F3 Messages
– Freeing an invalid CCTrCH table
• dldec.c 02829 CC_SET_ST:t_idx %d invalid
– CCTrCH info pointer NULL
• dldec.c CCSTP_VLDT:CCTrCh info ptr is NULL
– No free NBCH CCTrCH table to set up
• dldec.c 03189 NBCH CCTrCh maxed out.In use 2 max 2
– If DMA transfer timeout counter is being updated by mistake
• dldec.c 04649 DL_DMA_XFER_TOUT:Not counting timeout
25 10/5/2019 WCDMA Layer 1 Tutorial
Decoder
Files/Functions/ISRs
Q&A