NR RB转带宽

NR RB转带宽

  • 通常我们在5G中使用RB(Resource Block)资源块数量来表示带宽宽度,我们可以通过查表的方法找到对应的值。
  • 需要注意FDD和TDD对应的SCS(sub-carrier space)子载波间隔是不同的。
    在这里插入图片描述

代码描述

	    //(BW) 5	10	15	20	25	30	40	50	60	80	90	100
		//(fdd)25	52	79	106	133	160	216	270	N/A N/A N/A	N/A
		//(tdd)11	24	38	51	65	78	106	133	162	217	245	273
		/// 
		/// rb转带宽
		/// 
		/// 0:fdd;1:tdd
		/// 
		/// 
		public static int Rb_To_Bandwidth(int tdd_fdd, int rb_num)
        {
			int band = 0;

			if(tdd_fdd == 0)//fdd
            {
				switch (rb_num)
				{
					case 25: band = 5; break;
					case 52: band = 10; break;
					case 79: band = 15; break;
					case 106: band = 20; break;
					case 133: band = 25; break;
					case 160: band = 30; break;
					case 216: band = 40; break;
					case 270: band = 50; break;
					default: break;
				}				
			}
			else if(tdd_fdd == 1)//tdd
            {
				switch (rb_num)
				{
					case 11: band = 5; break;
					case 24: band = 10; break;
					case 38: band = 15; break;
					case 51: band = 20; break;
					case 65: band = 25; break;
					case 78: band = 30; break;
					case 106: band = 40; break;
					case 133: band = 50; break;
					case 162: band = 60; break;
					case 217: band = 80; break;
					case 245: band = 90; break;
					case 273: band = 100; break;
					default: break;
				}
			}

			return band;
        }

你可能感兴趣的:(NR,5G,RB,TDD,FDD)