当前位置:网站首页>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")
边栏推荐
- 二叉树 | 对称二叉树、相同的树、子树相同 | leecode刷题笔记
- 怎么关闭电脑广告
- "Linux" pagoda panel set up MySQL slow query log, not walk index log
- App 启动速度优化系列:如何用一个placeholderUI来做初始化工作
- 国内vr虚拟全景技术领先的公司
- 有趣并发性能分享:线程池为什么设计成这样?
- 完全自定义MaterialButtonToggleGroup颜色。
- 面试官: AMS在Android起到什么作用,简单的分析下Android的源码
- MySQL之JDBC编程增删改查
- HFCTF 2021 Internal System writeup
猜你喜欢
随机推荐
sklearn.datasets.make_circles
线程池如何监控,才能帮助开发者快速定位线上错误?
生态伙伴开发实践 | 智慧检测实验室应用系统快速接入指令集数字底座
2.0966 铝青铜板CuAl10Ni5Fe4铜棒
数学建模准备知识
二叉树 | 对称二叉树、相同的树、子树相同 | leecode刷题笔记
怎么关闭电脑广告
烘干衣服问题
【秋招】【更新中ing】手撕代码系列
Pytorch面试题面经
点云中的一些名词解释
《剑指offer》题解——week2(持续更新)
Microsoft: Into Focus with Scott Guthrie Scott Hanselman Rajesh Jha and Kevin Scott | KEY11
Tencent Cloud Lightweight Application Server Configuration and Website Building Tutorial
HGAME 2022 Week3 writeup
小程序平台工具如何选择和使用?
C3604环保黄铜带
Google Chrome73~81版本浏览器的跨域问题解决方案
Rust从入门到精通05-语句和表达式
【uniapp】uniapp微信小程序开发:启动微信开发者工具提示no such file or directory错误