当前位置:网站首页>The cyclic shift of PUCCH in NR channel is generated by MATLAB
The cyclic shift of PUCCH in NR channel is generated by MATLAB
2022-07-03 09:38:00 【Communication pawn】
One . Circular shift related protocols :


Two pseudo-random sequence generation :
Pseudo random sequences have been specifically mentioned in previous articles , If necessary, you can click the following article to view : Add link description
Three below is pucch Channel generates pseudo-random sequence matlab Code :
%--- according to 38.211 Inside 6.3.2.2.2 and 5.21 To write ---------------------------------------------------------------------
%N_CELL_ID Refers to the physical cell ID
%N_UL_symb It means a slot How many symbols
%Nc yes 1600, The agreement has stated
%Mpn This can be set by yourself , As long as it is longer than the length you need , This is larger than 14*20*8
%x10=1 The agreement has given
%x11 yes 0 The agreement has given
%ns Pointer is slot Number
% This time m0 =0 mcs =0 These two values need to be different according to different formats
N_CELL_ID = 55;
N_UL_symb = 14;
Nc = 1600;
Mpn=3000;
m0 =0 ;
mcs =0;
% Generate pseudo-random sequence
x10 =1;
x11 = zeros(1,30);
x1 = [x10 x11];% to x1 The first cycle of the sequence is initialized
% Generate x1 Sequence
for i = 1:(Nc +Mpn - 31)
x1(i + 31) = mod((x1(i + 3) + x1(i)),2);
end
% ------------------------
cinit=N_CELL_ID;
x20 = de2bi(cinit);
len = length(x20);
x21 = zeros(1,31-len);
x2 = [x20 x21]; % to x2 The first cycle of the sequence is initialized ;
%- Generate x2 Sequence
for i = 1:(Nc + Mpn- 31)
x2(i + 31) = mod((x2(i + 3) + x2(i + 2) + x2(i + 1) + x2(i)),2);
end
% Generate pseudo-random sequence
c_pseudo=zeros(1,Mpn);
for i = 1: Mpn % Generate pseudo-random sequence c(i)
c_pseudo(i) = mod((x1(i + Nc) + x2(i + Nc)),2);
end
n_cs=zeros(20,N_UL_symb);
a=zeros(20,N_UL_symb);
for ns = 0:19
for l=0:13
for i=0:7
n_cs(ns+1,l+1)=n_cs(ns+1,l+1)+c_pseudo(8*N_UL_symb*ns+8*l+i+1)*2^i;
end
a(ns+1,l+1) =mod(n_cs(ns+1,l+1)+m0+mcs,12);
end
end
边栏推荐
- LeetCode每日一题(1856. Maximum Subarray Min-Product)
- PolyWorks script development learning notes (II) -treeview basic operations
- 解决Editor.md上传图片获取不到图片地址问题
- Solve the problem of disordered code in vscode development, output Chinese and open source code
- LeetCode每日一题(2115. Find All Possible Recipes from Given Supplies)
- Installation and uninstallation of pyenv
- 制作jetson nano最基本的根文件系统、服务器挂载NFS文件系统
- Flink learning notes (IX) status programming
- Difference of EOF
- How MySQL modifies null to not null
猜你喜欢
![[CSDN] C1 training problem analysis_ Part III_ JS Foundation](/img/b2/68d53ad09688f7fc922ac65e104f15.png)
[CSDN] C1 training problem analysis_ Part III_ JS Foundation

Trial of the combination of RDS and crawler

Leetcode daily question (931. minimum falling path sum)
![顺利毕业[2]-学生健康管理系统 功能开发中。。。](/img/91/72cdea3eb3f61315595330d2c9016d.png)
顺利毕业[2]-学生健康管理系统 功能开发中。。。

MySQL environment variable configuration

Win10安装ELK

Leetcode daily question (2212. maximum points in an archery competition)

How MySQL modifies null to not null

Learning C language from scratch -- installation and configuration of 01 MinGW

Utilisation de hudi dans idea
随机推荐
数字身份验证服务商ADVANCE.AI顺利加入深跨协 推进跨境电商行业可持续性发展
Getting started with shell programming
Nodemcu-esp8266 development (vscode+platformio+arduino framework): Part 2 --blinker_ Hello_ WiFi (lighting technology - Mobile App control routine)
Install local sources using yum
Convert IP address to int
Desktop icon recognition based on OpenCV
LeetCode每日一题(2212. Maximum Points in an Archery Competition)
Patent inquiry website
[CSDN]C1训练题解析_第四部分_Web进阶
MySQL Data Definition Language DDL common commands
LeetCode每日一题(1300. Sum of Mutated Array Closest to Target)
从0开始使用pnpm构建一个Monorepo方式管理的demo
Hudi learning notes (III) analysis of core concepts
专利查询网站
Uncle Wang's blog directory [constantly updating]
Leetcode daily question (516. long palindromic subsequence)
Leetcode daily question (968. binary tree cameras)
There is no open in default browser option in the right click of the vscade editor
[solution to the new version of Flink without bat startup file]
Development of electrical fire system