当前位置:网站首页>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
边栏推荐
- 制作jetson nano最基本的根文件系统、服务器挂载NFS文件系统
- Long类型的相等判断
- PolyWorks script development learning notes (III) -treeview advanced operation
- Common software open source protocols
- There is no open in default browser option in the right click of the vscade editor
- LeetCode每日一题(745. Prefix and Suffix Search)
- Spark 集群安装与部署
- Call the contents of Excel cells opened at the same time - button line feed
- Overview of image restoration methods -- paper notes
- Serializer rewrite: update and create methods
猜你喜欢

Django operates Excel files through openpyxl to import data into the database in batches.
![[CSDN]C1训练题解析_第四部分_Web进阶](/img/ee/2e9756cc0e2e6eda83e1b2304c0bd6.png)
[CSDN]C1训练题解析_第四部分_Web进阶
![[CSDN]C1训练题解析_第二部分_Web基础](/img/91/72cdea3eb3f61315595330d2c9016d.png)
[CSDN]C1训练题解析_第二部分_Web基础

LeetCode每日一题(1162. As Far from Land as Possible)

【22毕业季】我是毕业生yo~

How MySQL modifies null to not null
![[CSDN]C1训练题解析_第三部分_JS基础](/img/b2/68d53ad09688f7fc922ac65e104f15.png)
[CSDN]C1训练题解析_第三部分_JS基础

小王叔叔的博客目录【持续更新中】

numpy. Reshape() and resize() functions

Development of electrical fire system
随机推荐
Install database -linux-5.7
Modify idea code
Getting started with shell programming
numpy. Reshape() and resize() functions
Nodemcu-esp8266 development (vscode+platformio+arduino framework): Part 4 --blinker_ DHT_ WiFi (lighting technology app control + temperature and humidity data app display)
Flink学习笔记(八)多流转换
CATIA automation object architecture - detailed explanation of application objects (I) document/settingcontrollers
Leetcode daily question (1856. maximum subarray min product)
Nodemcu-esp8266 development board to build Arduino ide development environment
Trial of the combination of RDS and crawler
解决Editor.md上传图片获取不到图片地址问题
[csdn] C1 analyse des questions de formation Partie III Bar _ JS Foundation
LeetCode每日一题(931. Minimum Falling Path Sum)
Construction and test of TFTP server under unbuntu (Debian)
Vscode Arduino installation Library
LeetCode每日一题(1996. The Number of Weak Characters in the Game)
1300. sum of varied array closed to target
Leetcode daily question (2212. maximum points in an archery competition)
Hudi learning notes (III) analysis of core concepts
Flink learning notes (IX) status programming