fixing previous commit
This commit is contained in:
@@ -2802,21 +2802,20 @@ int is_nr_UL_slot(NR_TDD_UL_DL_ConfigCommon_t *tdd_UL_DL_ConfigurationCommon, sl
|
|||||||
int16_t fill_dmrs_mask(NR_PDSCH_Config_t *pdsch_Config,int dmrs_TypeA_Position,int NrOfSymbols,int startSymbol) {
|
int16_t fill_dmrs_mask(NR_PDSCH_Config_t *pdsch_Config,int dmrs_TypeA_Position,int NrOfSymbols,int startSymbol) {
|
||||||
|
|
||||||
int l0;
|
int l0;
|
||||||
int ld = NrOfSymbols;
|
int ld = NrOfSymbols+startSymbol;
|
||||||
if (dmrs_TypeA_Position == NR_ServingCellConfigCommon__dmrs_TypeA_Position_pos2) l0=2;
|
if (dmrs_TypeA_Position == NR_ServingCellConfigCommon__dmrs_TypeA_Position_pos2) l0=2;
|
||||||
else if (dmrs_TypeA_Position == NR_ServingCellConfigCommon__dmrs_TypeA_Position_pos3) l0=3;
|
else if (dmrs_TypeA_Position == NR_ServingCellConfigCommon__dmrs_TypeA_Position_pos3) l0=3;
|
||||||
else AssertFatal(1==0,"Illegal dmrs_TypeA_Position %d\n",(int)dmrs_TypeA_Position);
|
else AssertFatal(1==0,"Illegal dmrs_TypeA_Position %d\n",(int)dmrs_TypeA_Position);
|
||||||
if (pdsch_Config == NULL) { // Initial BWP
|
if (pdsch_Config == NULL) { // Initial BWP
|
||||||
if (NrOfSymbols <= 7) return(1<<l0);
|
if (ld <= 7) return(1<<l0);
|
||||||
else if (NrOfSymbols <= 9) return(1<<l0 | 1<<7);
|
else if (ld <= 9) return(1<<l0 | 1<<7);
|
||||||
else if (NrOfSymbols <= 12) return(1<<l0 | 1<<6 | 1<<9);
|
else if (ld <= 12) return(1<<l0 | 1<<6 | 1<<9);
|
||||||
else if (NrOfSymbols <= 14) return(1<<l0 | 1<<7 | 1<<11);
|
else if (ld <= 14) return(1<<l0 | 1<<7 | 1<<11);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (pdsch_Config->dmrs_DownlinkForPDSCH_MappingTypeA &&
|
if (pdsch_Config->dmrs_DownlinkForPDSCH_MappingTypeA &&
|
||||||
pdsch_Config->dmrs_DownlinkForPDSCH_MappingTypeA->present == NR_SetupRelease_DMRS_DownlinkConfig_PR_setup) {
|
pdsch_Config->dmrs_DownlinkForPDSCH_MappingTypeA->present == NR_SetupRelease_DMRS_DownlinkConfig_PR_setup) {
|
||||||
// Relative to start of slot
|
// Relative to start of slot
|
||||||
ld += startSymbol;
|
|
||||||
NR_DMRS_DownlinkConfig_t *dmrs_config = (NR_DMRS_DownlinkConfig_t *)pdsch_Config->dmrs_DownlinkForPDSCH_MappingTypeA->choice.setup;
|
NR_DMRS_DownlinkConfig_t *dmrs_config = (NR_DMRS_DownlinkConfig_t *)pdsch_Config->dmrs_DownlinkForPDSCH_MappingTypeA->choice.setup;
|
||||||
AssertFatal(ld>1 && ld < 15,"Illegal l_d %d\n",ld);
|
AssertFatal(ld>1 && ld < 15,"Illegal l_d %d\n",ld);
|
||||||
int pos2=0;
|
int pos2=0;
|
||||||
|
|||||||
Reference in New Issue
Block a user