dlsch_tbs_full.h 17.3 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/*
 * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The OpenAirInterface Software Alliance licenses this file to You under
 * the OAI Public License, Version 1.0  (the "License"); you may not use this file
 * except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.openairinterface.org/?page_id=698
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *-------------------------------------------------------------------------------
 * For more information about the OpenAirInterface (OAI) Software Alliance:
 *      contact@openairinterface.org
 */
Hongzhi's avatar
Hongzhi committed
21

22
#define TBStable_rowCnt 27
23

24
/** \brief "Transport block size table"
25 26
 *  (Table 7.1.7.2.1-1 in 3GPP TS 36.213 V8.6.0)
 */
Hongzhi's avatar
Hongzhi committed
27

Hongzhi's avatar
Hongzhi committed
28 29 30 31 32 33 34
unsigned int TBStable[TBStable_rowCnt][110] = {{328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,328,504,504,504,504,504,504,856,856,856,856,856,856,856,856,856,856,856,856,1032,1032,1032,1032,1032,1032,1032,1208,1208,1208,1208,1208,1208,1384,1384,1384,1384,1384,1384,1384,1560,1560,1560,1560,1560,1736,1736,1736,1736,1736,1736,1736,1912,1912,1912,1912,1912,2088,2088,2088,2088,2088,2088,2088,2264,2264,2264,2264,2264,2264,2264,2440,2440,2440,2440,2440,2440,2440,2616,2616,2616,2616,2616,2792,2792,2792,2792,2792,2792,2792,2792,2792,2792,2792},
		{328,328,328,328,328,328,328,328,328,328,328,328,328,328,504,504,504,504,856,856,856,856,856,856,856,856,856,856,1032,1032,1032,1032,1032,1208,1208,1208,1208,1384,1384,1384,1384,1384,1384,1560,1560,1560,1736,1736,1736,1736,1736,1736,1912,1912,1912,1912,2088,2088,2088,2088,2088,2264,2264,2264,2264,2264,2440,2440,2440,2440,2440,2440,2616,2616,2616,2792,2792,2792,2792,2792,2792,2792,2792,2792,2792,2792,3240,3240,3240,3240,3368,3368,3368,3496,3496,3496,3496,3624,3624,3624,3752,3752,3752,3752,3848,3848,3848,3848,3848,3848},
		{328,328,328,328,328,328,328,328,328,328,328,504,504,504,504,856,856,856,856,856,856,856,856,1032,1032,1032,1032,1208,1208,1208,1384,1384,1384,1384,1384,1560,1560,1560,1736,1736,1736,1736,1912,1912,1912,2088,2088,2088,2088,2088,2264,2264,2264,2264,2440,2440,2440,2440,2616,2616,2616,2792,2792,2792,2792,2792,2792,2792,2792,2792,3240,3240,3240,3368,3368,3368,3496,3496,3496,3624,3624,3624,3752,3752,3848,3848,3848,3848,3848,3848,3848,3848,3848,4200,4200,4200,4200,4200,4200,4552,4552,4552,4552,4552,4552,4552,4552,4552,4904,4904},
		{328,328,328,328,328,328,328,328,504,504,504,856,856,856,856,856,856,1032,1032,1032,1208,1208,1208,1384,1384,1384,1384,1560,1560,1736,1736,1736,1912,1912,1912,2088,2088,2088,2264,2264,2264,2440,2440,2440,2440,2616,2616,2792,2792,2792,2792,2792,2792,2792,3240,3240,3368,3368,3496,3496,3624,3624,3624,3752,3752,3848,3848,3848,3848,3848,3848,4200,4200,4200,4200,4200,4552,4552,4552,4552,4552,4552,4552,4904,4904,4904,4904,4904,4904,5256,5256,5256,5256,5256,5256,5256,5608,5608,5608,5608,5608,5608,5608,5608,5608,5608,5608,5608,6312,6312},
		{328,328,328,328,328,328,328,504,504,856,856,856,856,856,1032,1032,1032,1208,1208,1384,1384,1384,1560,1736,1736,1736,1912,1912,2088,2088,2088,2264,2264,2264,2440,2440,2616,2616,2792,2792,2792,2792,2792,2792,3240,3240,3368,3496,3496,3624,3624,3752,3752,3848,3848,3848,3848,3848,4200,4200,4200,4200,4552,4552,4552,4552,4552,4904,4904,4904,4904,4904,4904,5256,5256,5256,5256,5256,5608,5608,5608,5608,5608,5608,5608,5608,5608,5608,6312,6312,6312,6312,6312,6312,6312,6312,6312,6312,6312,5608,7016,7016,7016,7016,7016,7016,7720,7720,7720,7720},
		{328,328,328,328,328,504,504,856,856,856,856,1032,1032,1208,1208,1384,1384,1384,1560,1736,1736,1912,1912,2088,2088,2264,2264,2440,2440,2616,2616,2792,2792,2792,2792,2792,3240,3368,3496,3496,3624,3752,3752,3848,3848,3848,3848,4200,4200,4200,4552,4552,4552,4552,4552,4904,4904,4904,4904,5256,5256,5256,5256,5608,5608,5608,5608,5608,5608,5608,5608,5608,6312,6312,6312,6312,6312,6312,6312,6312,7016,7016,7016,7016,7016,7016,7720,7720,7720,7720,7720,7720,7720,7720,7720,8424,8424,8424,8424,8424,8424,9080,9080,9080,9080,9080,9080,9080,9080,9080},
		{328,328,328,328,504,504,856,856,856,1032,1032,1208,1208,1384,1384,1560,1736,1736,1912,2088,2088,2264,2264,2440,2440,2616,2792,2792,2792,2792,3240,3368,3496,3496,3624,3752,3848,3848,3848,3848,4200,4200,4552,4552,4552,4552,4904,4904,4904,4904,5256,5256,5256,5608,5608,5608,5608,5608,5608,5608,6312,6312,6312,6312,6312,6312,6312,6312,7016,7016,7016,7016,7720,7720,7720,7720,7720,7720,7720,7720,8424,8424,8424,8424,8424,9080,9080,9080,9080,9080,9080,9080,9080,9784,9784,9784,9784,9784,9784,11192,10488,10488,10488,10488,10488,10488,10488,11192,11192,11192},
35
		{328,328,328,328,504,856,856,856,1032,1208,1208,1384,1560,1560,1736,1912,2088,2088,2264,2440,2440,2616,2792,2792,2792,3240,3368,3368,3496,3624,3752,3848,3848,3848,4200,4200,4552,4552,4552,4904,4904,4904,5256,5256,5256,5608,5608,5608,5608,5608,5608,6312,6312,6312,6312,6312,6312,6312,7016,7016,7016,7016,7720,7720,7720,7720,7720,7720,8424,8424,8424,8424,8424,9080,9080,9080,9080,9080,9080,9784,9784,9784,9784,9784,9784,10488,10488,10488,10488,10488,10488,11192,11192,11192,11192,11192,11192,11192,11192,11192,11192,11192,11192,11192,12600,12600,12600,12600,12600,12600},
Hongzhi's avatar
Hongzhi committed
36 37 38 39 40 41 42 43
		{328,328,328,504,856,856,856,1032,1208,1384,1384,1560,1736,1912,2088,2088,2264,2440,2616,2792,2792,2792,3240,3368,3496,3624,3752,3848,3848,4200,4200,4552,4552,4552,4904,4904,4904,5256,5256,5256,5608,5608,5608,5608,5608,6312,6312,6312,6312,6312,7016,7016,7016,7016,7720,7720,7720,7720,7720,8424,8424,8424,8424,9080,9080,9080,9080,9080,9080,9784,9784,9784,9784,9784,10488,10488,10488,10488,10488,10488,11192,11192,11192,11192,11192,11192,11192,11192,11192,11192,11192,12600,12600,12600,12600,12600,12600,12600,14008,14008,14008,14008,14008,14008,14008,14008,14008,14008,14008,14008},
		{328,328,328,504,856,856,1032,1208,1384,1384,1736,1736,1912,2088,2264,2440,2616,2792,2792,2792,3368,3496,3624,3752,3848,3848,4200,4200,4552,4552,4904,4904,4904,5256,5256,5608,5608,5608,5608,5608,6312,6312,6312,6312,6312,7016,7016,7016,7720,7720,7720,7720,7720,8424,8424,8424,9080,9080,9080,9080,9080,9784,9784,9784,9784,9784,10488,10488,10488,10488,10488,11192,11192,11192,11192,11192,11192,11192,11192,11192,12600,12600,12600,12600,12600,12600,12600,14008,14008,14008,14008,14008,14008,14008,14008,14008,14008,14008,15416,15416,15416,15416,15416,15416,15416,16824,16824,16824,16824,16824},
		{328,328,504,856,856,1032,1208,1384,1384,1736,1912,2088,2264,2440,2616,2792,2792,2792,3368,3496,3752,3848,3848,4200,4200,4552,4552,4904,4904,5256,5256,5608,5608,5608,5608,5608,6312,6312,6312,6312,7016,7016,7016,7720,7720,7720,7720,8424,8424,8424,9080,9080,9080,9080,9080,9784,9784,9784,9784,10488,10488,10488,10488,11192,11192,11192,11192,11192,11192,11192,11192,11192,12600,12600,12600,12600,12600,12600,14008,14008,14008,14008,14008,14008,14008,14008,14008,14008,15416,15416,15416,15416,15416,15416,16824,16824,16824,16824,16824,16824,16824,16824,16824,16824,16824,16824,18912,18912,18912,18912},
		{328,328,504,856,856,1032,1384,1560,1736,1912,2088,2264,2440,2792,2792,3240,3496,3624,3848,3848,4200,4200,4552,4552,4904,5256,5256,5608,5608,5608,5608,6312,6312,6312,6312,7016,7016,7720,7720,7720,7720,8424,8424,8424,9080,9080,9080,9080,9784,9784,9784,10488,10488,10488,10488,11192,11192,11192,11192,11192,11192,11192,11192,12600,12600,12600,12600,12600,14008,14008,14008,14008,14008,14008,14008,14008,15416,15416,15416,15416,15416,15416,16824,16824,16824,16824,16824,16824,16824,16824,16824,16824,18912,18912,18912,18912,18912,18912,18912,18912,18912,18912,18912,21024,21024,21024,21024,21024,21024,21024},
		{328,328,856,856,1032,1208,1560,1736,1912,2264,2440,2616,2792,3240,3368,3624,3848,3848,4200,4552,4552,4904,5256,5256,5608,5608,5608,6312,6312,6312,6312,7016,7016,7720,7720,7720,8424,8424,8424,9080,9080,9080,9784,9784,9784,10488,10488,10488,10488,11192,11192,11192,11192,11192,11192,11192,12600,12600,12600,12600,14008,14008,14008,14008,14008,14008,14008,14008,15416,15416,15416,15416,15416,16824,16824,16824,16824,16824,16824,16824,16824,18912,18912,18912,18912,18912,18912,18912,18912,18912,18912,21024,21024,21024,21024,21024,21024,21024,21024,21024,21024,23136,23136,23136,23136,23136,23136,23136,23136,25248},
		{328,328,856,856,1208,1384,1736,1912,2264,2440,2792,2792,3368,3624,3848,3848,4200,4552,4904,4904,5256,5608,5608,5608,6312,6312,6312,7016,7016,7720,7720,7720,8424,8424,9080,9080,9080,9784,9784,9784,10488,10488,10488,11192,11192,11192,11192,11192,11192,12600,12600,12600,12600,14008,14008,14008,14008,14008,14008,14008,15416,15416,15416,15416,16824,16824,16824,16824,16824,16824,16824,16824,18912,18912,18912,18912,18912,18912,18912,18912,18912,21024,21024,21024,21024,21024,21024,21024,21024,21024,23136,23136,23136,23136,23136,23136,25248,25248,25248,25248,25248,25248,25248,25248,25248,25248,25248,25248,28040,28040},
		{328,504,856,1032,1384,1736,1912,2264,2440,2792,2792,3496,3752,3848,4200,4552,4904,4904,5256,5608,5608,5608,6312,6312,7016,7016,7720,7720,7720,8424,8424,9080,9080,9784,9784,9784,10488,10488,10488,11192,11192,11192,11192,11192,12600,12600,12600,12600,14008,14008,14008,14008,14008,14008,15416,15416,15416,15416,16824,16824,16824,16824,16824,16824,16824,18912,18912,18912,18912,18912,18912,18912,18912,21024,21024,21024,21024,21024,21024,21024,21024,23136,23136,23136,23136,23136,25248,25248,25248,25248,25248,25248,25248,25248,25248,25248,28040,28040,28040,28040,28040,28040,28040,28040,28040,28040,28040,28040,30856,30856},
		{328,504,856,1208,1384,1736,2088,2440,2616,2792,3368,3624,3848,4200,4552,4904,4904,5256,5608,5608,6312,6312,6312,7016,7720,7720,7720,8424,8424,9080,9080,9784,9784,9784,10488,10488,11192,11192,11192,11192,11192,12600,12600,12600,12600,14008,14008,14008,14008,14008,15416,15416,15416,15416,16824,16824,16824,16824,16824,16824,16824,18912,18912,18912,18912,18912,18912,18912,21024,21024,21024,21024,21024,21024,21024,23136,23136,23136,23136,23136,23136,25248,25248,25248,25248,25248,25248,25248,25248,25248,28040,28040,28040,28040,28040,28040,28040,28040,28040,28040,28040,30856,30856,30856,30856,30856,30856,30856,33672,33672},
Hongzhi's avatar
Hongzhi committed
44
		{328,504,856,1208,1560,1912,2264,2440,2792,3240,3624,3848,4200,4552,4904,4904,5256,5608,5608,6312,6312,7016,7016,7720,7720,8424,8424,9080,9080,9784,9784,9784,10488,10488,11192,11192,11192,11192,11192,12600,12600,12600,14008,14008,14008,14008,14008,15416,15416,15416,15416,16824,16824,16824,16824,16824,16824,18912,18912,18912,18912,18912,18912,18912,21024,21024,21024,21024,21024,21024,21024,23136,23136,23136,23136,23136,25248,25248,25248,25248,25248,25248,25248,25248,25248,28040,28040,28040,28040,28040,28040,28040,28040,28040,28040,30856,30856,30856,30856,30856,30856,30856,33672,33672,33672,33672,35056,35056,35056,35056},
Hongzhi's avatar
Hongzhi committed
45 46 47
		{328,856,1032,1384,1736,2088,2440,2792,3240,3624,3848,4200,4552,4904,5256,5608,5608,6312,6312,7016,7016,7720,7720,8424,9080,9080,9784,9784,9784,10488,10488,11192,11192,11192,11192,12600,12600,12600,14008,14008,14008,14008,14008,15416,15416,15416,16824,16824,16824,16824,16824,18912,18912,18912,18912,18912,18912,18912,21024,21024,21024,21024,21024,21024,23136,23136,23136,23136,23136,25248,25248,25248,25248,25248,25248,25248,25248,28040,28040,28040,28040,28040,28040,28040,28040,28040,30856,30856,30856,30856,30856,30856,33672,33672,33672,35056,35056,35056,35056,35056,35056,35056,35056,35056,35056,35056,38576,38576,38576,38576},
		{328,856,1032,1384,1912,2264,2792,2792,3624,3848,4200,4552,4904,5256,5608,5608,6312,7016,7016,7720,7720,8424,9080,9080,9784,9784,10488,10488,11192,11192,11192,11192,12600,12600,14008,14008,14008,14008,14008,15416,15416,15416,16824,16824,16824,16824,16824,18912,18912,18912,18912,18912,21024,21024,21024,21024,21024,21024,23136,23136,23136,23136,23136,25248,25248,25248,25248,25248,25248,25248,28040,28040,28040,28040,28040,28040,28040,28040,30856,30856,30856,30856,30856,30856,33672,33672,33672,35056,35056,35056,35056,35056,35056,35056,35056,35056,35056,38576,38576,38576,38576,38576,38576,38576,42096,42096,42096,42096,42096,42096},
		{328,856,1208,1736,2088,2440,2792,3496,3848,4200,4552,4904,5256,5608,6312,6312,7016,7720,7720,8424,9080,9080,9784,9784,10488,10488,11192,11192,11192,12600,12600,12600,14008,14008,14008,14008,15416,15416,16824,16824,16824,16824,16824,18912,18912,18912,18912,18912,21024,21024,21024,21024,21024,21024,23136,23136,23136,25248,25248,25248,25248,25248,25248,25248,28040,28040,28040,28040,28040,28040,28040,28040,30856,30856,30856,30856,30856,33672,33672,33672,35056,35056,35056,35056,35056,35056,35056,35056,35056,38576,38576,38576,38576,38576,38576,38576,42096,42096,42096,42096,42096,42096,42096,42096,42096,42096,46296,46296,46296,46296},
Hongzhi's avatar
Hongzhi committed
48 49 50 51 52 53
		{328,856,1384,1736,2264,2792,3240,3752,3848,4552,4904,5256,5608,6312,6312,7016,7720,7720,8424,9080,9784,9784,10488,10488,11192,11192,11192,12600,12600,14008,14008,14008,14008,15416,15416,16824,16824,16824,16824,16824,18912,18912,18912,18912,18912,21024,21024,21024,21024,21024,23136,23136,23136,25248,25248,25248,25248,25248,25248,28040,28040,28040,28040,28040,28040,28040,30856,30856,30856,30856,30856,33672,33672,33672,35056,35056,35056,35056,35056,35056,35056,35056,38576,38576,38576,38576,38576,38576,42096,42096,42096,42096,42096,42096,42096,42096,42096,42096,46296,46296,46296,46296,46296,46296,46296,46296,46296,50520,50520,50520},
		{328,856,1384,1912,2440,2792,3496,3848,4552,4904,5256,5608,6312,6312,7016,7720,8424,9080,9080,9784,10488,10488,11192,11192,11192,12600,12600,14008,14008,14008,15416,15416,15416,16824,16824,16824,16824,18912,18912,18912,18912,21024,21024,21024,21024,21024,23136,23136,23136,25248,25248,25248,25248,25248,25248,28040,28040,28040,28040,28040,28040,30856,30856,30856,30856,30856,33672,33672,35056,35056,35056,35056,35056,35056,35056,35056,38576,38576,38576,38576,38576,38576,42096,42096,42096,42096,42096,42096,42096,42096,42096,46296,46296,46296,46296,46296,46296,46296,46296,50520,50520,50520,50520,50520,50520,50520,50520,54016,54016,54016},
		{504,1032,1560,2088,2616,3240,3752,4200,4552,5256,5608,6312,6312,7016,7720,8424,9080,9080,9784,10488,11192,11192,11192,12600,12600,14008,14008,14008,15416,15416,16824,16824,16824,16824,18912,18912,18912,18912,21024,21024,21024,21024,21024,23136,23136,23136,25248,25248,25248,25248,25248,28040,28040,28040,28040,28040,28040,30856,30856,30856,30856,33672,33672,33672,35056,35056,35056,35056,35056,35056,35056,38576,38576,38576,38576,38576,42096,42096,42096,42096,42096,42096,42096,42096,42096,46296,46296,46296,46296,46296,46296,46296,50520,50520,50520,50520,50520,50520,50520,54016,54016,54016,54016,54016,54016,54016,54016,58944,58944,58944},
		{504,1032,1736,2264,2792,3496,3848,4552,4904,5608,5608,6312,7016,7720,8424,9080,9784,9784,10488,11192,11192,11192,12600,12600,14008,14008,14008,15416,15416,16824,16824,16824,18912,18912,18912,18912,21024,21024,21024,21024,23136,23136,23136,25248,25248,25248,25248,25248,28040,28040,28040,28040,28040,28040,30856,30856,30856,30856,33672,33672,35056,35056,35056,35056,35056,35056,35056,38576,38576,38576,38576,38576,42096,42096,42096,42096,42096,42096,42096,42096,46296,46296,46296,46296,46296,46296,50520,50520,50520,50520,50520,50520,50520,54016,54016,54016,54016,54016,54016,54016,54016,58944,58944,58944,58944,58944,58944,58944,58944,61736},
		{504,1032,1736,2264,2792,3624,4200,4904,5256,5608,6312,7016,7720,8424,9080,9784,9784,10488,11192,11192,12600,12600,14008,14008,14008,15416,15416,16824,16824,16824,18912,18912,18912,18912,21024,21024,21024,21024,23136,23136,25248,25248,25248,25248,25248,28040,28040,28040,28040,28040,30856,30856,30856,30856,33672,33672,35056,35056,35056,35056,35056,35056,35056,38576,38576,38576,38576,42096,42096,42096,42096,42096,42096,42096,42096,46296,46296,46296,46296,46296,46296,50520,50520,50520,50520,50520,50520,50520,54016,54016,54016,54016,54016,54016,54016,58944,58944,58944,58944,58944,58944,58944,61736,61736,61736,61736,61736,61736,61736,61736},
		{504,1208,1736,2440,2792,3752,4200,4904,5608,5608,6312,7016,7720,8424,9080,9784,10488,11192,11192,11192,12600,14008,14008,14008,15416,15416,16824,16824,16824,18912,18912,18912,18912,21024,21024,21024,23136,23136,23136,25248,25248,25248,25248,28040,28040,28040,28040,28040,30856,30856,30856,30856,33672,33672,35056,35056,35056,35056,35056,35056,38576,38576,38576,38576,38576,42096,42096,42096,42096,42096,42096,42096,46296,46296,46296,46296,46296,46296,50520,50520,50520,50520,50520,50520,54016,54016,54016,54016,54016,54016,54016,58944,58944,58944,58944,58944,58944,58944,61736,61736,61736,61736,61736,61736,61736,61736,67368,67368,67368,69456},
Hongzhi's avatar
Hongzhi committed
54
		{856,1384,2088,2792,3752,4200,4904,5608,6312,7016,7720,8424,9080,9784,10488,11192,11192,12600,14008,14008,14008,15416,16824,16824,16824,18912,18912,18912,21024,21024,21024,23136,23136,25248,25248,25248,25248,28040,28040,28040,28040,28040,30856,30856,30856,33672,35056,35056,35056,35056,35056,35056,38576,38576,38576,38576,42096,42096,42096,42096,42096,42096,46296,46296,46296,46296,46296,50520,50520,50520,50520,50520,54016,54016,54016,54016,54016,54016,54016,58944,58944,58944,58944,58944,58944,61736,61736,61736,61736,61736,61736,67368,67368,67368,69456,69456,69456,69456,69456,75792,69456,69456,69456,69456,69456,69456,69456,69456,69456,69456}
55
};
56 57

unsigned int TBStable1C[32] = {40, 56, 72, 120, 136, 144, 176, 208, 224, 256, 280, 296, 328, 336, 392, 488, 552, 600, 632, 696, 776, 840, 904, 1000, 1064, 1128, 1224, 1288, 1384, 1480, 1608, 1736};