当前位置:网站首页>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")
边栏推荐
猜你喜欢
随机推荐
一、ICESat-2数据查询,下载,与处理
响应式pbootcms模板运动健身类网站
Redis - Use lua script to control the number of wrong passwords and lock the account
CSAPP lab1 DataLab
The Missing Semester of Your CS Education
Mathematical modeling preparation knowledge
开源一夏 | 盘点那些 Golang 标星超过 20 K 的优质项目
矩阵的迹(详解)
(PC+WAP)带手机端pbootcms模板铝合金类网站
ACTF 2022 writeup
How to bounce the shell
解析方法的参数列表(包含参数名称)
十年架构五年生活-08 第一次背锅
确诊了!是Druid1.1.20的锅,查询无法映射LocalDateTime类型(带源码解析及解决方案)
工作记录:DB2查询数据,当字段为空时,赋值
(PC+WAP)带手机端pbootcms模板园林景观类网站
Talk预告 | 中国科学技术大学和微软亚洲研究院联合培养博士生冷燚冲:语音识别的快速纠错模型FastCorrect
细谈APP开发焦点问题:AMS 系统时间调节原理
KRONES克朗斯电源维修0-901-17-350-8技术概论
HPb59-1铅黄铜









