⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 conv_coding.m

📁 VBLAST的QR实现
💻 M
字号:
function output_bit = conv_coding(input_bit,reset)
% convolution coding for IEEE802.11a
% Refer to Figure114 on page17 of IEEE802.11a.
% Input:    input_bit is the input bit stream.
% Output:   output_bit is the output bit stream with double length of input_bit.
% Copy right T-Square Design. All rights reserved.
% Confidential, do not give this program to anyone outside the T2 IEEE802.11a group.
% Current responsible engineer: Simon Qiu
% When this file is modified, inform Simon Qiu, Andy Lu.
% History
%   2002-07-06  Created by Simon Qiu.

global Code_State;

if reset == 1
    Code_State = zeros(1,6);
else
    DataLength = length(input_bit);
    output_bit = zeros(1,DataLength*2);
    DelayLine = [Code_State,input_bit];
    idx = [1:DataLength];
    output_bit(1:2:end) = bitget(DelayLine(idx+6) + DelayLine(idx+4) + DelayLine(idx+3) + DelayLine(idx+1) + DelayLine(idx+0),1);
    output_bit(2:2:end) = bitget(DelayLine(idx+6) + DelayLine(idx+5) + DelayLine(idx+4) + DelayLine(idx+3) + DelayLine(idx+0),1);
    Code_State = DelayLine(DataLength+1:DataLength+6);
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -