资源简介
完全按照LTE协议编写的速率匹配代码,可以直接用于LTE的相关研究
代码片段和文件信息
%% ---------------------------------------------
% 本代码用于验证速率匹配模块正确性
% Turbo编码输入192*3比特,编码输出192*3*3+12比特,每路为192*3+4个比特
% 经速率匹配后共输出192*3*2个比特
% 张化通
%% ---------------------------------------------
clc;
clear all;
a = load(‘C:\Documents and Settings\Administrator\桌面\data1.txt‘);
b = reshape(a3length(a)/3);
Nub_OFDM = 192;
N = Nub_OFDM*3+4;
col_num = 32;
row_num = ceil(N/32);
num_nullbit = col_num*row_num - N;
N_cb = 3*col_num*row_num;
P = [0 16 8 24 4 20 12 28 2 18 10 26 6 22 14 30 1 17 9 25 5 21 13 29 3 19 11 27 7 23 15 31];
PI = zeros(1col_num*row_num);
v0 = zeros(1col_num*row_num);
v1 = zeros(1col_num*row_num);
v2 = zeros(1col_num*row_num);
for k = 0:col_num*row_num-1
PI(k+1) = mod((P(floor(k/row_num)+1)+col_num*(mod(krow_num))+1)col_num*row_num);
end
DD0 = zeros(row_numcol_num);
DD1 = zeros(row_numcol_num);
DD2 = zeros(row_numcol_num);
% d0 = randint(1N);
% d1 = randint(1
- 上一篇:MatConvNet CPU版 编译文件
- 下一篇:水轮发电机组建模研究
评论
共有 条评论