X hits on this document

PDF document

Performance Evaluation of WiMAX/IEEE 802.16 OFDM Physical Layer - page 91 / 107

245 views

0 shares

0 downloads

0 comments

91 / 107

%CC Encoder function conv_encoded_data=conv_encoder(data)

%conv_encoder(data): encodes RS encoded block with puncturing pattern and %serialization order as specified in Table 214 global IEEE80216params;

%Code Rate p/q p=IEEE80216params.CC.p; q=IEEE80216params.CC.q;

%determine number of blocks num_blocks=size(data,1)

%CC encoding of each block for i=1:num_blocks

conv_encoded_data(i,:)=convenc(data(i,:),IEEE80216params.CC.trellis); end clear num_blocks;

% puncturing pattern and serialization order according to TABLE 214 of IEEE802.16­2004 Spec. (Page 433) % for rate of (1/2)no puncturing is required.

if (p==2)&&(q==3) %X1Y1Y2: conv_encoded_data(:,3:4:end)=[];

else if (p==3)&&(q==4) %X1Y1Y2Y3 conv_encoded_data(:,3:6:end)=[]; conv_encoded_data(:,5:5:end)=[]; else if (p==5)&&(q==6) %X1Y1Y2X3Y4X5 conv_encoded_data(:,3:10:end)=[]; conv_encoded_data(:,5:9:end)=[]; conv_encoded_data(:,5:8:end)=[]; conv_encoded_data(:,7:7:end)=[]; end end end clear p; clear q;

%interleaver

function interleaved_data = interleaver(data) %% interleaver(data): interleave all encoded data with a block size %% corresponding to the number of coded bits per the allocated subchannels %% per OFDM symbol (Ncbps) global IEEE80216params; %% global phys_profile

switch (IEEE80216params.Modulation.Type) %% this will come from set phy_profile so add that as global after making that

case 'BPSK' Ncbps= 12* IEEE80216params.Modulation.subchn;

80

Document info
Document views245
Page views251
Page last viewedSat Dec 03 17:46:44 UTC 2016
Pages107
Paragraphs1573
Words17747

Comments