X hits on this document

PDF document

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

303 views

0 shares

0 downloads

0 comments

89 / 107

Appendix

Matlab code for IEEE 802.16 OFDM transmitter, receiver and SUI channel model.

% IEEE 802.16 TX

% randomizer function randomized_data = randomizer(data) % randomizer(data): randomizes each alocation of data block as specified in % 802.16

global IEEE80216params;

%initialization value for PRBS generator if (IEEE80216params.Link.DIUC == 0 ) && (IEEE80216params.Link.direction == 'Dlink') seed_value=[0 0 0 0 0 0 0 1 0 1 0 1 0 0 1]; else % At the start of each burst except burst#1, the randomizer shall % be initialized with the following seed_value seed1=de2bi(IEEE80216params.Link.BSID,4,'left­msb'); seed2=de2bi(IEEE80216params.Link.DIUC,4,'left­msb'); seed3=de2bi(IEEE80216params.Link.FrameNo,4,'left­msb'); %The frame number %used for initialization refers to the frame in which the downlink burst is transmitted

s e e d _ v a l u e = h o r z c a t ( s e e d 1 , h o r z c a t ( [ 1 1 ] , h o r z c a t ( s e e d 2 , h o r z c a t ( [ 1 ] , s e e d 3 ) ) ) ) ;

end;

% data randomization

for i=1:size(data,2)

% XORing of bit X15 and bit X14 xor_out= bitxor(seed_value(15), seed_value(14)); %randomized data value randomized_data(i)= bitxor(xor_out, data(i)); %new seed value seed_value=[xor_out seed_value(1:14)]; end randomized_data; clear seed_value clear data

% RS encoder function rs_encoded_data=rs_encoder(data)

%% rs_encoder(data):Shortend and punctured RS encoder to enablae variable block sizes and %% variable error correction capability %% Has been derived from a systematic RS(N=255,K=239,T=8)code using GF(2^8) global IEEE80216params;

%get parameters for RS encoder

78

Document info
Document views303
Page views309
Page last viewedFri Dec 09 13:40:18 UTC 2016
Pages107
Paragraphs1573
Words17747

Comments