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",
"Mapped ssb_idx %u to RO slot-symbol %u-%u, %u-%u-%u/%u\n"
"Nb mapped ROs for this ssb idx: in the association period only %u\n",
ssb_idx,
ro_p->slot,
ro_p->start_symbol,
slot,
ro_in_time,
ro_in_freq,
slot_map->nb_of_prach_occasion_in_freq,
tx_ssb->nb_mapped_ro);
// If all the required SSBs are mapped to this RO, exit the loop of SSBs
if(ro_p->nb_mapped_ssb==ssb_rach_ratio){
ssb_idx++;
break;
}
}// if ssb_idx is transmitted
}// for ssb_idx
// Exit the loop of ROs if there is no more SSB to map
if(MAX_NB_SSB==ssb_idx)break;
}// for ro_in_freq
// Exit the loop of ROs if there is no more SSB to map
if(MAX_NB_SSB==ssb_idx)break;
}// for ro_in_time
// Exit the loop of slots if there is no more SSB to map
if(MAX_NB_SSB==ssb_idx)break;
}// for slot
// Exit the loop frames if there is no more SSB to map
if(MAX_NB_SSB==ssb_idx)break;
}// for frame
// Exit the loop of PRACH configurations if there is no more SSB to map
if(MAX_NB_SSB==ssb_idx)break;
}// for n_prach_conf
// WIP: note that there is no re-mapping of the SSBs within the association period since there is no invalid ROs in the PRACH config periods that would create this situation