5g new radio polar coding -凯发k8网页登录
this example highlights the new polar channel coding technique chosen for 5g new radio (nr) communications system. of the two main types of code constructions specified by 3gpp, this example models the crc-aided polar (ca-polar) coding scheme. this example describes the main components of the polar coding scheme with individual components for code construction, encoding and decoding along-with rate-matching. it models a polar-coded qpsk-modulated link over awgn and presents block-error-rate results for different message lengths and code rates for the coding scheme.
introduction
the selection of polar codes as the channel coding technique for control channels for 5g nr communications system has proven the merits of arikan's [ 1 ] discovery and will establish their application in commercial systems [ 6 ]. based on the concept of channel polarization, this new coding family is capacity achieving as opposed to just capacity approaching. with better or comparable performance than ldpc and turbo codes, it supersedes the tail-biting convolutional codes used in lte systems for control channels. it is applied for downlink and uplink control information (dci/uci) for the enhanced mobile broadband (embb) use case, as well as the broadcast channel (bch). alternatively, the channel coding scheme for data channels for embb is specified to be flexible ldpc for all block sizes.
this example highlights the components to enable a polar coding downlink simulation using qpsk modulation over an awgn channel. in the following sections, the individual polar coding components are further detailed.
s = rng(100); % seed the rng for repeatability
specify the code parameters used for a simulation.
% code parameters k = 54; % message length in bits, including crc, k > 30 e = 124; % rate matched output length, e <= 8192 ebno = 0.8; % ebno in db l = 8; % list length, a power of two, [1 2 4 8] numframes = 10; % number of frames to simulate linkdir = 'dl'; % link direction: downlink ('dl') or uplink ('ul')
polar encoding
the following schematic details the transmit-end processing for the downlink, with relevant components and their parameters highlighted.
for the downlink, the input bits are interleaved prior to polar encoding. the crc bits appended at the end of the information bits are thus distributed for the ca-polar scheme. this interleaving is not specified for the uplink.
the polar encoding uses an snr-independent method where the reliability of each subchannel is computed offline and the ordered sequence stored for a maximum code length [ 6 ]. the nested property of polar codes allows this sequence to be used for any code rate and all code lengths smaller than the maximum code length.
this sequence is computed for given rate-matched output length, e
, and information length, k
, by the function , which implements the non-systematic encoding of the input k
bits.
if strcmpi(linkdir,'dl') % downlink scenario (k >= 36, including crc bits) crclen = 24; % number of crc bits for dl, section 5.1, [6] poly = '24c'; % crc polynomial npc = 0; % number of parity check bits, section 5.3.1.2, [6] nmax = 9; % maximum value of n, for 2^n, section 7.3.3, [6] iil = true; % interleave input, section 5.3.1.1, [6] ibil = false; % interleave coded bits, section 5.4.1.3, [6] else % uplink scenario (k > 30, including crc bits) crclen = 11; poly = '11'; npc = 0; nmax = 10; iil = false; ibil = true; end
the following schematic details the transmit-end processing for the uplink, for a payload size greater than 19
bits and no code-block segmentation, with relevant components and their parameters highlighted.
rate matching and rate recovery
the polar encoded set of bits (n
) are rate-matched to output the specified number of bits (e
) for resource element mapping [ 7 ]. the coded bits are sub-block interleaved and passed to a circular buffer of length n
. depending on the desired code rate and selected values of k
, e
, and n
, either of repetition (e >= n
), and puncturing or shortening (e < n
) is realized by reading the output bits from the buffer.
for puncturing,
e
bits are taken from the endfor shortening,
e
bits are taken from the startfor repetition,
e
bits are repeated modulon
.
for the downlink, the selected bits are passed on to the modulation mapper, while for the uplink, they are further interleaved prior to mapping. the rate-matching processing is implemented by the function .
at the receiver end, rate recovery is accomplished for each of the cases
for puncturing, corresponding llrs for the bits removed are set to zero
for shortening, corresponding llrs for the bits removed are set to a large value
for repetition, the set of llrs corresponding to first
n
bits are selected.
the rate-recovery processing is implemented by the function .
r = k/e; % effective code rate bps = 2; % bits per symbol, 1 for bpsk, 2 for qpsk esno = ebno 10*log10(bps); snrdb = esno 10*log10(r); % in db noisevar = 1./(10.^(snrdb/10)); % channel chan = comm.awgnchannel('noisemethod','variance','variance',noisevar);
polar decoding
the implicit crc encoding of the downlink (dci or bch) or uplink (uci) message bits dictates the use of the crc-aided successive cancellation list decoding (ca-scl) [ 3 ] as the channel decoder algorithm. it is well known that ca-scl decoding can outperform turbo or ldpc codes [ 4 ] and this was one of the major factors in the adoption of polar codes by 3gpp.
tal & vardy [ 2 ] describe the scl decoding algorithm in terms of likelihoods (probabilities). however, due to underflow, the inherent computations are numerically unstable. to overcome this issue, stimming et.al. [ 5 ] offer the scl decoding solely in the log-likelihood ratio (llr) domain. the list decoding is characterized by the l
parameter, which represents the number of most likely decoding paths retained. at the end of the decoding, the most likely code-path among the l
paths is the decoder output. as l
is increased, the decoder performance also improves, however, with a diminishing-returns effect.
for an input message which is concatenated with a crc, ca-scl decoding prunes out any of the paths for which the crc is invalid, if at least one path has the correct crc. this additional insight in the final path selection improves the performance further, when compared to scl decoding. for the downlink, a crc of 24 bits is used, while for the uplink crcs of 6 and 11 bits are specified, which vary on the value of k
.
the decoder is implemented by the function , which supports all three crc lengths. the decoder function also accounts for the input bit interleaving specified at the transmitter for the downlink, prior to outputting the decoded bits.
% error meter
ber = comm.errorrate;
frame processing loop
this section shows how the prior described components for polar coding are used in a block error rate (bler) simulation. the simulation link is highlighted in the following schematic.
for each frame processed, the following steps are performed:
k-crclen
random bits are generated,a crc is computed and appended to these bits
the crc appended bits are polar encoded to the mother code block length
rate-matching is performed to transmit
e
bitsthe
e
bits are qpsk modulatedwhite gaussian noise of specified power is added
the noisy signal is soft qpsk demodulated to output llr values
rate recovery is performed accounting for either of puncturing, shortening or repetition
the recovered llr values are polar decoded using the ca-scl algorithm, including deinterleaving.
off the decoded
k
bits, the firstk-crclen
bits are compared with those transmitted to update the bler and bit-error-rate (ber) metrics.
at the end of the simulation, the two performance indicators, bler and ber, are reported.
numferr = 0; for i = 1:numframes % generate a random message msg = randi([0 1],k-crclen,1); % attach crc msgcrc = nrcrcencode(msg,poly); % polar encode encout = nrpolarencode(msgcrc,e,nmax,iil); n = length(encout); % rate match modin = nrratematchpolar(encout,k,e,ibil); % modulate modout = nrsymbolmodulate(modin,'qpsk'); % add white gaussian noise rsig = chan(modout); % soft demodulate rxllr = nrsymboldemodulate(rsig,'qpsk',noisevar); % rate recover decin = nrraterecoverpolar(rxllr,k,n,ibil); % polar decode decbits = nrpolardecode(decin,k,e,l,nmax,iil,crclen); % compare msg and decoded bits errstats = ber(double(decbits(1:k-crclen)), msg); numferr = numferr any(decbits(1:k-crclen)~=msg); end disp(['block error rate: ' num2str(numferr/numframes) ... ', bit error rate: ' num2str(errstats(1)) ... ', at snr = ' num2str(snrdb) ' db']) rng(s); % restore rng
block error rate: 0, bit error rate: 0, at snr = 0.20002 db
results
to get meaningful results, simulations have to be run for a longer duration. using scripts which encapsulate the above processing into a function that supports c-code generation, the following results for different code rates and message lengths are presented for both link directions with qpsk modulation.
the above results were generated by simulating, for each snr point, up to 1000 frame errors or a maximum of 100e3 frames, whichever occurred first.
the bler performance results indicate the suitability of polar codes in a communication link and their implicit support for rate-compatibility at the bit-level granularity.
the use of c-code generation tools for the components reduces the execution time, a key concern for simulations. the c-code generation is enabled by matlab coder™.
summary and further exploration
this example highlights one of the polar coding schemes (crc-aided polar) specified by 3gpp for new radio control channel information (dci, uci) and broadcast channel (bch). it shows the use of components for all stages of the processing (encoding, rate-matching, rate-recovery and decoding) and uses them in a link with qpsk over an awgn channel. highlighted performance results for different code rates and message lengths show agreement to published trends, within parametric and simulation assumption variations.
explore simple parameter variations (k
, e
, l
) and their effect on bler performance. the polar coding functions are implemented as open matlab® code to enable their application for both downlink/uplink control information and broadcast channel. the ca-polar scheme is applicable for both
downlink, for all message lengths, and
uplink, for
k > 30
, withcrclen = 11
,npc = 0
,nmax = 10
,iil = false
, andibil = true
.
refer to modeling downlink control information and nr cell search and mib and sib1 recovery examples, for the use of polar coding functions within the dci and bch functions respectively.
the highlighted polar coding functions also support the parity-check polar coding construction and encoding. this is applicable for the uplink with uci payloads in range 18 <= k <= 25
. this is supported by the uplink control coding functions nruciencode
and nrucidecode
, which include code-block segmentation as well for appropriate values of k
and e
.
selected references
arikan, e., "channel polarization: a method for constructing capacity-achieving codes for symmetric binary-input memoryless channels," ieee transactions on information theory, vol. 55, no. 7, pp. 3051-3073, july 2009.
tal, i, and vardy, a., "list decoding of polar codes", ieee transactions on information theory, vol. 61, no. 5, pp. 2213-2226, may 2015.
niu, k., and chen, k., "crc-aided decoding of polar codes," ieee communications letters, vol. 16, no. 10, pp. 1668-1671, oct. 2012.
niu, k., chen, k., and lin, j.r., "beyond turbo codes: rate compatible punctured polar codes", ieee international conference on communications, pp. 3423-3427, 2013.
stimming, a. b., parizi, m. b., and burg, a., "llr-based successive cancellation list decoding of polar codes", ieee transaction on signal processing, vol. 63, no. 19, pp.5165-5179, 2015.
3gpp ts 38.212. "nr; multiplexing and channel coding" 3rd generation partnership project; technical specification group radio access network.
r1-1711729. "wf on circular buffer of polar code", 3gpp tsg ran wg1 meeting nr ad-hoc#2, ericsson, qualcomm, mediatek, lge. june 2017.
see also
functions
- | | |