Merge branch 'enhancement-10-harmony' of https://gitlab.eurecom.fr/oai/openairinterface5g into enhancement-10-harmony
Conflicts: openair1/PHY/LTE_TRANSPORT/ulsch_decoding.c
This commit is contained in:
@@ -1381,6 +1381,7 @@ int main(int argc, char **argv)
|
||||
char csv_fname[32];
|
||||
int dci_flag=1;
|
||||
int llr8_flag=1;
|
||||
int two_thread_flag=0;
|
||||
int DLSCH_RB_ALLOC;
|
||||
|
||||
#if defined(__arm__)
|
||||
@@ -1412,7 +1413,7 @@ int main(int argc, char **argv)
|
||||
// num_layers = 1;
|
||||
perfect_ce = 0;
|
||||
|
||||
while ((c = getopt (argc, argv, "ahdpZDe:Em:n:o:s:f:t:c:g:r:F:x:y:z:AM:N:I:i:O:R:S:C:T:b:u:v:w:B:PLl:XY")) != -1) {
|
||||
while ((c = getopt (argc, argv, "ahdpZDe:Em:n:o:s:f:t:c:g:r:F:x:y:z:AM:N:I:i:O:R:S:C:T:b:u:v:w:B:PLl:WXY")) != -1) {
|
||||
switch (c) {
|
||||
case 'a':
|
||||
awgn_flag = 1;
|
||||
@@ -1479,7 +1480,10 @@ int main(int argc, char **argv)
|
||||
case 'L':
|
||||
llr8_flag=1;
|
||||
break;
|
||||
|
||||
|
||||
case 'W':
|
||||
two_thread_flag = 1;
|
||||
break;
|
||||
case 'l':
|
||||
offset_mumimo_llr_drange_fix=atoi(optarg);
|
||||
break;
|
||||
@@ -1779,6 +1783,15 @@ int main(int argc, char **argv)
|
||||
perfect_ce);
|
||||
|
||||
eNB->mac_enabled=1;
|
||||
if (two_thread_flag == 0) {
|
||||
eNB->te = dlsch_encoding;
|
||||
}
|
||||
else {
|
||||
eNB->te = dlsch_encoding_2threads;
|
||||
init_td_thread(eNB,NULL);
|
||||
init_te_thread(eNB,NULL);
|
||||
}
|
||||
|
||||
// callback functions required for phy_procedures_tx
|
||||
mac_xface->get_dci_sdu = get_dci_sdu;
|
||||
mac_xface->get_dlsch_sdu = get_dlsch_sdu;
|
||||
@@ -2272,7 +2285,6 @@ int main(int argc, char **argv)
|
||||
|
||||
if (input_fd==NULL) {
|
||||
|
||||
start_meas(&eNB->phy_proc_tx);
|
||||
|
||||
// Simulate HARQ procedures!!!
|
||||
memset(CCE_table,0,800*sizeof(int));
|
||||
@@ -2345,7 +2357,7 @@ int main(int argc, char **argv)
|
||||
proc_eNB->subframe_tx = subframe;
|
||||
eNB->abstraction_flag=0;
|
||||
|
||||
phy_procedures_eNB_TX(eNB,proc_eNB,no_relay,NULL);
|
||||
phy_procedures_eNB_TX(eNB,proc_eNB,no_relay,NULL,1);
|
||||
|
||||
|
||||
start_meas(&eNB->ofdm_mod_stats);
|
||||
@@ -2366,7 +2378,7 @@ int main(int argc, char **argv)
|
||||
|
||||
proc_eNB->subframe_tx = subframe+1;
|
||||
|
||||
phy_procedures_eNB_TX(eNB,proc_eNB,no_relay,NULL);
|
||||
phy_procedures_eNB_TX(eNB,proc_eNB,no_relay,NULL,0);
|
||||
|
||||
do_OFDM_mod_l(eNB->common_vars.txdataF[eNB_id],
|
||||
eNB->common_vars.txdata[eNB_id],
|
||||
|
||||
@@ -676,8 +676,10 @@ int main(int argc, char **argv)
|
||||
eNB->ulsch[0] = new_eNB_ulsch(max_turbo_iterations,N_RB_DL,0);
|
||||
UE->ulsch[0] = new_ue_ulsch(N_RB_DL,0);
|
||||
|
||||
if (parallel_flag == 1) init_fep_thread(eNB,&eNB->proc.attr_fep);
|
||||
|
||||
if (parallel_flag == 1) {
|
||||
init_fep_thread(eNB,NULL);
|
||||
init_td_thread(eNB,NULL);
|
||||
}
|
||||
// Create transport channel structures for 2 transport blocks (MIMO)
|
||||
for (i=0; i<2; i++) {
|
||||
eNB->dlsch[0][i] = new_eNB_dlsch(1,8,1827072,N_RB_DL,0);
|
||||
@@ -1171,7 +1173,8 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
|
||||
eNB->fep = (parallel_flag == 1) ? eNB_fep_full_2thread : eNB_fep_full;
|
||||
eNB->fep = (parallel_flag == 1) ? eNB_fep_full_2thread : eNB_fep_full;
|
||||
eNB->td = (parallel_flag == 1) ? ulsch_decoding_data_2thread : ulsch_decoding_data;
|
||||
eNB->do_prach = NULL;
|
||||
|
||||
phy_procedures_eNB_common_RX(eNB);
|
||||
|
||||
Reference in New Issue
Block a user