+ return numPrb;
+}
+/**
+* @brief calculation of transport block size.
+*
+* @details
+*
+* Function: schCalcTbSizeFromNPrb
+*
+* This function calculates the transport block size
+*
+* @param[in] nPrb is num PRB
+* @param[in] mcs
+* @param[in] number of symbols
+* @return tbSize
+**/
+uint16_t schCalcTbSizeFromNPrb(uint16_t numPrb, uint16_t mcs, uint8_t numSymbols)
+{
+ uint16_t tbSize = 0;
+ uint16_t tbsIndex = 0;
+ uint16_t nre = 0;
+ uint16_t nreDash = 0;
+ uint8_t qm = mcsTable[mcs][1];
+ uint16_t rValue = mcsTable[mcs][2];
+ uint8_t numLayer = 1; /* v value */
+
+ /* formula used for calculation of rbSize, 38.213 section 5.1.3.2 *
+ * Ninfo = Nre . R . Qm . v where [ NInfo is tbSize] *
+ * Nre' = Nsc . NsymPdsch - NdmrsSymb - Noh *
+ * Nre = min(156,Nre') . nPrb */
+
+ nreDash = ceil( (12 * numSymbols) - NUM_DMRS_SYMBOLS - 0);
+
+ if(nreDash > 156)
+ nreDash = 156;
+
+ nre = nreDash * numPrb;
+ tbSize = ceil(nre * qm * numLayer * rValue/1024.0);
+ tbSize = ceil(tbSize/8.0);
+
+ while(tbSize > tbSizeTable[tbsIndex])
+ {
+ tbsIndex++;
+ }
+ tbSize = tbSizeTable[tbsIndex];
+
+ return tbSize;
+
+}
+/**
+ * @brief fetching ueCb from cellCb
+ *
+ * @details
+ *
+ * Function: schGetUeCb
+ *
+ * This function fetched UeCb based on crnti from cellCb
+ *
+ * @param[in] cellCb
+ * @param[in] crnti
+ * @return ueCb
+ **/
+SchUeCb* schGetUeCb(SchCellCb *cellCb, uint16_t crnti)
+{
+ uint16_t ueIdx;
+ GET_UE_IDX(crnti, ueIdx);
+ return &(cellCb->ueCb[ueIdx -1]);
+}
+
+/**
+ * @brief initialize UL slot info
+ *
+ * @details
+ *
+ * Function: schInitUlSlot
+ *
+ * This function intializes UL slot of the cell
+ *
+ * @param[in] schUlSlotInfo
+ * @return void
+ **/
+void schInitUlSlot(SchUlSlotInfo *schUlSlotInfo)
+{
+ memset(schUlSlotInfo, 0, sizeof(SchUlSlotInfo));
+ schUlSlotInfo->totalPrb = MAX_NUM_RB;
+ for(uint8_t itr=0; itr<SCH_SYMBOL_PER_SLOT; itr++)
+ {
+ schUlSlotInfo->assignedPrb[itr] = 0;
+ }
+ schUlSlotInfo->puschCurrentPrb = PUSCH_START_RB;
+ schUlSlotInfo->schPuschInfo = NULLP;
+
+}
+
+/**
+ * @brief initialize DL slot info
+ *
+ * @details
+ *
+ * Function: schInitDlSlot
+ *
+ * This function intializes DL slot of the cell
+ *
+ * @param[in] schDlSlotInfo
+ * @return void
+ **/
+void schInitDlSlot(SchDlSlotInfo *schDlSlotInfo)
+{
+ memset(schDlSlotInfo, 0, sizeof(SchDlSlotInfo));
+ schDlSlotInfo->totalPrb = MAX_NUM_RB;
+ for(uint8_t itr=0; itr<SCH_SYMBOL_PER_SLOT; itr++)
+ {
+ schDlSlotInfo->assignedPrb[itr] = 0;
+ }
+
+ for(uint8_t itr=0; itr<MAX_SSB_IDX; itr++)
+ {
+ memset(&schDlSlotInfo->ssbInfo[itr], 0, sizeof(SsbInfo));
+ }