当前位置:网站首页>oai 采样频率计算
oai 采样频率计算
2022-08-10 23:22:00 【洪大宇】
N_RB_DL_TABLE = {
}
N_RB_DL_TABLE["61.44mhz"] = 106
N_RB_DL_TABLE["122.88mhz"] = 106 << 1
N_RB_DL_TABLE["245.76mhz"] = 106 << 2 #Max sampples
def samples_rate_nr_soft_modem(CONFIG_N_RB_DL: str):
""" 5G NR Soft Caculaters samples rate nr soft modem Args: CONFIG_N_RB_DL (str): _description_ """
try:
N_RB_DL = N_RB_DL_TABLE[CONFIG_N_RB_DL]
ofdm_symbol_size = 512
mu = 1 # scs30khz caculte ofdm_symbol_size
symbols_per_slot = 14
solts_per_subframe = 2
solts_per_frame = 10*solts_per_subframe
while ofdm_symbol_size < N_RB_DL * 12:
ofdm_symbol_size <<= 1
first_carrier_offset = ofdm_symbol_size - (N_RB_DL*12/2)
nb_prefix_samples = ofdm_symbol_size/128*9
nb_prefix_samples0 = ofdm_symbol_size/128*(9+(1 << mu))
samples_per_subframe = (nb_prefix_samples0 + ofdm_symbol_size)*2 + \
(nb_prefix_samples+ofdm_symbol_size) * \
(symbols_per_slot*solts_per_subframe - 2)
print(
f"ofdm_symbol: {
ofdm_symbol_size} nb_prefix_samples: {
nb_prefix_samples} nb_prefix_samples0: {
nb_prefix_samples0}")
print(f"samples_per_frame: {
10*samples_per_subframe}")
print(f"2framers_samples: {
2*10*samples_per_subframe}")
print(f"Normal samples is {
(10*samples_per_subframe/1e-2)/1e6} Mhz")
except LookupError as e: # querry out of ranges
print(f"{
e.args[0]} out range of table")
if __name__ == '__main__':
samples_rate_nr_soft_modem("61.44mhz")
边栏推荐
猜你喜欢
随机推荐
Configuring vim(7) from scratch - autocommands
二叉树 | 代码随想录学习笔记
Metasploit——客户端渗透
还在用 Xshell?你 out 了,推荐一个更现代的终端连接工具,好用到爆!
CSDN21天学习挑战赛之折半查找
【uniapp】uniapp微信小程序开发:启动微信开发者工具提示no such file or directory错误
使用PageHelper自定义PageInfo进行分页+模糊查询
祥云杯 2021 PackageManager writeup
一文带你了解 ViewModel 的使用及源码解析
C194铜合金C19400铁铜合金
KRONES克朗斯电源维修0-901-17-350-8技术概论
虎符CTF 2022 Quest-Crash Writeup
VMware 虚拟机开启Ip地址自动更换解决
Talk预告 | 中国科学技术大学和微软亚洲研究院联合培养博士生冷燚冲:语音识别的快速纠错模型FastCorrect
XSLeaks side channel attack (unfinished)
[Autumn Recruitment] [Updating ing] Hand Tear Code Series
62.【彻底改变你对C语言指针的厌恶(超详细)】
[uniapp] uniapp WeChat applet development: no such file or directory error when starting the WeChat developer tool
Android | 安卓好用软件来袭,多御安全浏览器免费又强大
二叉树 | 递归遍历 | leecode刷题笔记









