当前位置:网站首页>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
边栏推荐
- Integrated use of interlij idea and sonarqube
- Flink learning notes (VIII) multi stream conversion
- The rise and fall of mobile phones in my perspective these 10 years
- Flink学习笔记(十一)Table API 和 SQL
- 基于opencv实现桌面图标识别
- PowerDesigner does not display table fields, only displays table names and references, which can be modified synchronously
- Analysis of the implementation principle of an open source markdown to rich text editor
- Shell logic case
- Call the contents of Excel cells opened at the same time - button line feed
- Common software open source protocols
猜你喜欢
Development of fire power monitoring system
Hudi quick experience (including detailed operation steps and screenshots)
Nodemcu-esp8266 development (vscode+platformio+arduino framework): Part 4 --blinker_ DHT_ WiFi (lighting technology app control + temperature and humidity data app display)
Vscode Arduino installation Library
Flink CDC practice (including practical steps and screenshots)
Flink学习笔记(九)状态编程
Leetcode daily question (931. minimum falling path sum)
LeetCode每日一题(2090. K Radius Subarray Averages)
Uncle Wang's blog directory [constantly updating]
Shell logic case
随机推荐
LeetCode每日一题(931. Minimum Falling Path Sum)
Nodemcu-esp8266 development (vscode+platformio+arduino framework): Part 5 --blinker_ MIOT_ MULTI_ Outside (lighting technology app + Xiaoai classmate control socket multiple jacks)
Hudi quick experience (including detailed operation steps and screenshots)
[solution to the new version of Flink without bat startup file]
Leetcode daily question (745. prefix and suffix search)
Flink学习笔记(十一)Table API 和 SQL
WARNING: You are using pip version 21.3.1; however, version 22.0.3 is available. Prompt to upgrade pip
unbuntu(debian)下TFTP服务器搭建及测试
Django operates Excel files through openpyxl to import data into the database in batches.
Logstash+jdbc data synchronization +head display problems
用Redis实现分布式锁
Getting started with shell programming
Hudi data management and storage overview
Electronic product design
Filter comments to filter out uncommented and default values
Spark 集群安装与部署
Convert IP address to int
LeetCode每日一题(985. Sum of Even Numbers After Queries)
Jetson Nano 自定义启动图标kernel Logo cboot logo
PolyWorks script development learning notes (I) - script development environment