LOG_I(PHY,"mdci %d, length %d: rnti %x, L %d, prb_pairs %d, ce_mode %d, i0 %d, ss %d ,coded_bits %d\n",
LOG_I(PHY,"mdci %d, length %d: rnti %x, L %d, prb_pairs %d, ce_mode %d, transmission type %s, i0 %d, ss %d ,coded_bits %d\n",
i,mdci->dci_length,mdci->rnti,
i,mdci->dci_length,mdci->rnti,
mdci->L,mdci->number_of_prb_pairs,
mdci->L,mdci->number_of_prb_pairs,
mdci->ce_mode,mdci->i0,mdci->start_symbol,
mdci->ce_mode,
mdci->transmission_type==1?"dist":"loc",
mdci->i0,mdci->start_symbol,
coded_bits);
coded_bits);
// Note: We only have to run this every Nacc subframes during repetitions, data and scrambling are constant, but we do it for now to simplify during testing
// Note: We only have to run this every Nacc subframes during repetitions, data and scrambling are constant, but we do it for now to simplify during testing
dl_config_pdu->mpdcch_pdu.mpdcch_pdu_rel13.resource_block_assignment=0;// Note: this can be dynamic
dl_config_pdu->mpdcch_pdu.mpdcch_pdu_rel13.resource_block_assignment=0;// Note: this can be dynamic
dl_config_pdu->mpdcch_pdu.mpdcch_pdu_rel13.mpdcch_tansmission_type=1;// imposed (9.1.5 in 213) for Type 2 Common search space
dl_config_pdu->mpdcch_pdu.mpdcch_pdu_rel13.mpdcch_tansmission_type=1;// imposed (9.1.5 in 213) for Type 2 Common search space
AssertFatal(cc[CC_idP].sib1_v13ext->bandwidthReducedAccessRelatedInfo_r13!=NULL,"cc[CC_id].sib1_v13ext->bandwidthReducedAccessRelatedInfo_r13 is null\n");
AssertFatal(cc[CC_idP].sib1_v13ext->bandwidthReducedAccessRelatedInfo_r13!=NULL,"cc[CC_idP].sib1_v13ext->bandwidthReducedAccessRelatedInfo_r13 is null\n");
dl_config_pdu->mpdcch_pdu.mpdcch_pdu_rel13.resource_block_assignment=0;// Note: this can be dynamic
dl_config_pdu->mpdcch_pdu.mpdcch_pdu_rel13.resource_block_assignment=0;// Note: this can be dynamic
dl_config_pdu->mpdcch_pdu.mpdcch_pdu_rel13.mpdcch_tansmission_type=1;// imposed (9.1.5 in 213) for Type 2 Common search space
dl_config_pdu->mpdcch_pdu.mpdcch_pdu_rel13.mpdcch_tansmission_type=1;// imposed (9.1.5 in 213) for Type 2 Common search space
AssertFatal(cc[CC_idP].sib1_v13ext->bandwidthReducedAccessRelatedInfo_r13!=NULL,"cc[CC_id].sib1_v13ext->bandwidthReducedAccessRelatedInfo_r13 is null\n");
AssertFatal(cc[CC_idP].sib1_v13ext->bandwidthReducedAccessRelatedInfo_r13!=NULL,"cc[CC_idP].sib1_v13ext->bandwidthReducedAccessRelatedInfo_r13 is null\n");
dl_config_pdu->dlsch_pdu.dlsch_pdu_rel8.resource_block_coding=getRIV(to_prb(cc[CC_id].mib->message.dl_Bandwidth),first_rb,6);// check that this isn't getRIV(6,0,6)
// if there is information on bsr of DCCH, DTCH or if there is UL_SR, or if there is a packet to retransmit, or we want to schedule a periodic feedback every 10 frames
// if there is information on bsr of DCCH, DTCH or if there is UL_SR, or if there is a packet to retransmit, or we want to schedule a periodic feedback every 10 frames