Removed conflict header and fixed dlsim
This commit is contained in:
@@ -982,17 +982,21 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
gNB->threadPool = (tpool_t*)malloc(sizeof(tpool_t));
|
gNB->threadPool = (tpool_t*)malloc(sizeof(tpool_t));
|
||||||
initTpool(gNBthreads, gNB->threadPool, true);
|
initTpool(gNBthreads, gNB->threadPool, true);
|
||||||
gNB->resp_L1_tx = (notifiedFIFO_t*) malloc(sizeof(notifiedFIFO_t));
|
gNB->L1_tx_free = (notifiedFIFO_t*) malloc(sizeof(notifiedFIFO_t));
|
||||||
initNotifiedFIFO(gNB->resp_L1_tx);
|
gNB->L1_tx_filled = (notifiedFIFO_t*) malloc(sizeof(notifiedFIFO_t));
|
||||||
// we create 2 threads for L1 tx processing
|
gNB->L1_tx_out = (notifiedFIFO_t*) malloc(sizeof(notifiedFIFO_t));
|
||||||
notifiedFIFO_elt_t *msgL1Tx = newNotifiedFIFO_elt(sizeof(processingData_L1tx_t),0,gNB->resp_L1_tx,processSlotTX);
|
initNotifiedFIFO(gNB->L1_tx_free);
|
||||||
processingData_L1tx_t *msgDataTx = (processingData_L1tx_t *)NotifiedFifoData(msgL1Tx);
|
initNotifiedFIFO(gNB->L1_tx_filled);
|
||||||
|
initNotifiedFIFO(gNB->L1_tx_out);
|
||||||
|
// we create 1 threads for L1 tx processing
|
||||||
|
processingData_L1tx_t *msgDataTx;
|
||||||
|
notifiedFIFO_elt_t *msgL1Tx;
|
||||||
|
msgL1Tx = newNotifiedFIFO_elt(sizeof(processingData_L1tx_t),0,gNB->L1_tx_out,NULL);
|
||||||
|
msgDataTx = (processingData_L1tx_t *)NotifiedFifoData(msgL1Tx);
|
||||||
init_DLSCH_struct(gNB, msgDataTx);
|
init_DLSCH_struct(gNB, msgDataTx);
|
||||||
msgDataTx->slot = slot;
|
|
||||||
msgDataTx->frame = frame;
|
|
||||||
memset(msgDataTx->ssb, 0, 64*sizeof(NR_gNB_SSB_t));
|
memset(msgDataTx->ssb, 0, 64*sizeof(NR_gNB_SSB_t));
|
||||||
reset_meas(&msgDataTx->phy_proc_tx);
|
reset_meas(&msgDataTx->phy_proc_tx);
|
||||||
gNB->phy_proc_tx[0] = &msgDataTx->phy_proc_tx;
|
gNB->phy_proc_tx[i] = &msgDataTx->phy_proc_tx;
|
||||||
|
|
||||||
for (SNR = snr0; SNR < snr1; SNR += .2) {
|
for (SNR = snr0; SNR < snr1; SNR += .2) {
|
||||||
|
|
||||||
@@ -1071,7 +1075,7 @@ int main(int argc, char **argv)
|
|||||||
Sched_INFO.UL_tti_req = gNB_mac->UL_tti_req_ahead[slot];
|
Sched_INFO.UL_tti_req = gNB_mac->UL_tti_req_ahead[slot];
|
||||||
Sched_INFO.UL_dci_req = NULL;
|
Sched_INFO.UL_dci_req = NULL;
|
||||||
Sched_INFO.TX_req = &gNB_mac->TX_req[0];
|
Sched_INFO.TX_req = &gNB_mac->TX_req[0];
|
||||||
pushNotifiedFIFO(gNB->L1_tx_free,msgL1Tx);
|
pushNotifiedFIFO(gNB->L1_tx_free,msgL1Tx);
|
||||||
nr_schedule_response(&Sched_INFO);
|
nr_schedule_response(&Sched_INFO);
|
||||||
|
|
||||||
/* PTRS values for DLSIM calculations */
|
/* PTRS values for DLSIM calculations */
|
||||||
@@ -1307,15 +1311,8 @@ int main(int argc, char **argv)
|
|||||||
if (print_perf==1) {
|
if (print_perf==1) {
|
||||||
printf("\ngNB TX function statistics (per %d us slot, NPRB %d, mcs %d, TBS %d)\n",
|
printf("\ngNB TX function statistics (per %d us slot, NPRB %d, mcs %d, TBS %d)\n",
|
||||||
1000>>*scc->ssbSubcarrierSpacing, g_rbSize, g_mcsIndex,
|
1000>>*scc->ssbSubcarrierSpacing, g_rbSize, g_mcsIndex,
|
||||||
<<<<<<< HEAD
|
|
||||||
msgDataTx->dlsch[0][0]->harq_process.pdsch_pdu.pdsch_pdu_rel15.TBSize[0]<<3,
|
|
||||||
msgDataTx->dlsch[0][0]->harq_process.K,
|
|
||||||
msgDataTx->dlsch[0][0]->harq_process.K/((msgDataTx->dlsch[0][0]->harq_process.pdsch_pdu.pdsch_pdu_rel15.TBSize[0]<<3)>3824?22:10));
|
|
||||||
printDistribution(gNB->phy_proc_tx[0],table_tx,"PHY proc tx");
|
|
||||||
=======
|
|
||||||
msgDataTx->dlsch[0][0]->harq_process.pdsch_pdu.pdsch_pdu_rel15.TBSize[0]<<3);
|
msgDataTx->dlsch[0][0]->harq_process.pdsch_pdu.pdsch_pdu_rel15.TBSize[0]<<3);
|
||||||
printDistribution(gNB->phy_proc_tx_0,table_tx,"PHY proc tx");
|
printDistribution(gNB->phy_proc_tx[0],table_tx,"PHY proc tx");
|
||||||
>>>>>>> 264e829922fc68e4caa3611b70d921c131e7ca68
|
|
||||||
printStatIndent2(&gNB->dlsch_encoding_stats,"DLSCH encoding time");
|
printStatIndent2(&gNB->dlsch_encoding_stats,"DLSCH encoding time");
|
||||||
printStatIndent3(&gNB->dlsch_segmentation_stats,"DLSCH segmentation time");
|
printStatIndent3(&gNB->dlsch_segmentation_stats,"DLSCH segmentation time");
|
||||||
printStatIndent3(&gNB->tinput,"DLSCH LDPC input processing time");
|
printStatIndent3(&gNB->tinput,"DLSCH LDPC input processing time");
|
||||||
|
|||||||
Reference in New Issue
Block a user