LOG_D(PHY,"In %s: received 1 DL %s PDU of %d total DL PDUs:\n",__FUNCTION__,dl_pdu_type[dl_config->dl_config_list[i].pdu_type-1],dl_config->number_pdus);
AssertFatal(ul_config->ul_config_list[i].pdu_type<=FAPI_NR_UL_CONFIG_TYPES,"pdu_type %d out of bounds\n",ul_config->ul_config_list[i].pdu_type);
LOG_D(PHY,"In %s: processing %s PDU of %d total UL PDUs (ul_config %p) \n",__FUNCTION__,ul_pdu_type[ul_config->ul_config_list[i].pdu_type-1],ul_config->number_pdus,ul_config);
@@ -61,7 +61,7 @@ void fill_ul_config(fapi_nr_ul_config_request_t *ul_config, frame_t frame_tx, in
ul_config->sfn=frame_tx;
ul_config->number_pdus++;
LOG_D(MAC,"In %s: Set config request for UL transmission in [%d.%d], number of UL PDUs: %d\n",__FUNCTION__,ul_config->sfn,ul_config->slot,ul_config->number_pdus);
LOG_D(NR_MAC,"In %s: Set config request for UL transmission in [%d.%d], number of UL PDUs: %d\n",__FUNCTION__,ul_config->sfn,ul_config->slot,ul_config->number_pdus);
}
...
...
@@ -111,7 +111,7 @@ long get_k2(NR_UE_MAC_INST_t *mac, uint8_t time_domain_ind) {
LOG_D(MAC,"In %s:[%d.%d]: number of UL PDUs: %d with UL transmission in [%d.%d]\n",__FUNCTION__,frame_tx,slot_tx,ul_config->number_pdus,ul_config->sfn,ul_config->slot);
LOG_I(NR_MAC,"In %s:[%d.%d]: number of UL PDUs: %d with UL transmission in [%d.%d]\n",__FUNCTION__,frame_tx,slot_tx,ul_config->number_pdus,ul_config->sfn,ul_config->slot);
@@ -1110,7 +1123,7 @@ int nr_ue_pusch_scheduler(NR_UE_MAC_INST_t *mac,
}
LOG_D(MAC,"In %s: currently at [%d.%d] UL transmission in [%d.%d] (k2 %d delta %d)\n",__FUNCTION__,current_frame,current_slot,*frame_tx,*slot_tx,k2,delta);
LOG_D(NR_MAC,"In %s: currently at [%d.%d] UL transmission in [%d.%d] (k2 %d delta %d)\n",__FUNCTION__,current_frame,current_slot,*frame_tx,*slot_tx,k2,delta);
LOG_D(MAC,"Adding a PRACH occasion: frame %u, slot-symbol %d-%d, occ_in_time-occ_in-freq %d-%d, nb ROs in conf period %d, for this slot: RO# in time %d, RO# in freq %d\n",
LOG_D(NR_MAC,"Adding a PRACH occasion: frame %u, slot-symbol %d-%d, occ_in_time-occ_in-freq %d-%d, nb ROs in conf period %d, for this slot: RO# in time %d, RO# in freq %d\n",
// WIP: Assumption for now is that all the PRACH configuration periods within a maximum association pattern period have the same number of PRACH occasions
// (No PRACH occasions are conflicting with SSBs nor TDD_UL_DL_ConfigurationCommon schedule)
// There is only one possible association period which can contain up to 16 PRACH configuration periods
LOG_D(MAC,"Evaluate the number of PRACH configuration periods required to map all the SSBs and set the association period\n");
LOG_D(NR_MAC,"Evaluate the number of PRACH configuration periods required to map all the SSBs and set the association period\n");
AssertFatal(MAX_NB_RO_PER_SSB_IN_ASSOCIATION_PATTERN>ssb_list.tx_ssb[ssb_idx].nb_mapped_ro,"Too many mapped ROs (%d) to a single SSB\n",ssb_list.tx_ssb[ssb_idx].nb_mapped_ro);
LOG_D(MAC,"Mapped ssb_idx %u to RO slot-symbol %u-%u, %u-%u-%u/%u\n",ssb_idx,ro_p->slot,ro_p->start_symbol,slot,ro_in_time,ro_in_freq,prach_conf_period_p->prach_occasion_slot_map[frame][slot].nb_of_prach_occasion_in_freq);
LOG_D(MAC,"Nb mapped ROs for this ssb idx: in the association period only %u\n",ssb_list.tx_ssb[ssb_idx].nb_mapped_ro);
LOG_D(NR_MAC,"Mapped ssb_idx %u to RO slot-symbol %u-%u, %u-%u-%u/%u\n",ssb_idx,ro_p->slot,ro_p->start_symbol,slot,ro_in_time,ro_in_freq,prach_conf_period_p->prach_occasion_slot_map[frame][slot].nb_of_prach_occasion_in_freq);
LOG_D(NR_MAC,"Nb mapped ROs for this ssb idx: in the association period only %u\n",ssb_list.tx_ssb[ssb_idx].nb_mapped_ro);
// If all the required SSBs are mapped to this RO, exit the loop of SSBs
AssertFatal(MAX_NB_RO_PER_SSB_IN_ASSOCIATION_PATTERN>ssb_list.tx_ssb[ssb_idx].nb_mapped_ro,"Too many mapped ROs (%d) to a single SSB\n",ssb_list.tx_ssb[ssb_idx].nb_mapped_ro);
nb_mapped_ro_in_association_period++;
LOG_D(MAC,"Mapped ssb_idx %u to RO slot-symbol %u-%u, %u-%u-%u/%u\n",ssb_idx,ro_p->slot,ro_p->start_symbol,slot,ro_in_time,ro_in_freq,prach_conf_period_p->prach_occasion_slot_map[frame][slot].nb_of_prach_occasion_in_freq);
LOG_D(MAC,"Nb mapped ROs for this ssb idx: in the association period only %u / total %u\n",ssb_list.tx_ssb[ssb_idx].nb_mapped_ro,nb_mapped_ro_in_association_period);
LOG_D(NR_MAC,"Mapped ssb_idx %u to RO slot-symbol %u-%u, %u-%u-%u/%u\n",ssb_idx,ro_p->slot,ro_p->start_symbol,slot,ro_in_time,ro_in_freq,prach_conf_period_p->prach_occasion_slot_map[frame][slot].nb_of_prach_occasion_in_freq);
LOG_D(NR_MAC,"Nb mapped ROs for this ssb idx: in the association period only %u / total %u\n",ssb_list.tx_ssb[ssb_idx].nb_mapped_ro,nb_mapped_ro_in_association_period);
// Exit the loop if this SSB has been mapped to all the required ROs
// WIP: Assuming that ssb_rach_ratio equals the maximum nb of times a given ssb_idx is mapped within an association period:
...
...
@@ -1671,9 +1684,9 @@ static int get_nr_prach_info_from_ssb_index(uint8_t ssb_idx,
// - exact slot number
// - frame offset
ssb_info_p=&ssb_list.tx_ssb[ssb_idx];
LOG_D(MAC,"checking for prach : ssb_info_p->nb_mapped_ro %d\n",ssb_info_p->nb_mapped_ro);
LOG_D(NR_MAC,"checking for prach : ssb_info_p->nb_mapped_ro %d\n",ssb_info_p->nb_mapped_ro);