diff --git a/openair1/PHY/MODULATION/slot_fep_nr.c b/openair1/PHY/MODULATION/slot_fep_nr.c index 0815055889c92aefd6f3331e6633a7c5aa57c4a3..078deca51417633efcb19b0de449ec0df449abae 100644 --- a/openair1/PHY/MODULATION/slot_fep_nr.c +++ b/openair1/PHY/MODULATION/slot_fep_nr.c @@ -55,8 +55,8 @@ int nr_slot_fep(PHY_VARS_NR_UE *ue, unsigned int frame_length_samples = frame_parms->samples_per_subframe * 10; unsigned int rx_offset; NR_UE_PDCCH *pdcch_vars = ue->pdcch_vars[ue->current_thread_id[Ns>>1]][0]; - uint16_t coreset_start_subcarrier = frame_parms->first_carrier_offset;//+((int)floor(frame_parms->ssb_start_subcarrier/NR_NB_SC_PER_RB)+pdcch_vars->coreset[0].rb_offset)*NR_NB_SC_PER_RB; - uint16_t nb_rb_coreset = 24; + uint16_t coreset_start_subcarrier = frame_parms->first_carrier_offset + pdcch_vars->coreset[0].rb_offset*NR_NB_SC_PER_RB;//+((int)floor(frame_parms->ssb_start_subcarrier/NR_NB_SC_PER_RB)+pdcch_vars->coreset[0].rb_offset)*NR_NB_SC_PER_RB; + uint16_t nb_rb_coreset = pdcch_vars->coreset[0].rb_offset; uint16_t bwp_start_subcarrier = frame_parms->first_carrier_offset;//+516; uint16_t nb_rb_pdsch = 50; uint8_t p=0; diff --git a/openair1/PHY/NR_TRANSPORT/nr_dci.c b/openair1/PHY/NR_TRANSPORT/nr_dci.c index 5d376c21a6c591d1e336dba0903049f3e79c17a5..b4004083fe98269b90eb880bc1b96fa1e379a63b 100644 --- a/openair1/PHY/NR_TRANSPORT/nr_dci.c +++ b/openair1/PHY/NR_TRANSPORT/nr_dci.c @@ -32,7 +32,7 @@ #include "nr_dci.h" -//#define DEBUG_PDCCH_DMRS +#define DEBUG_PDCCH_DMRS #define DEBUG_DCI #define DEBUG_CHANNEL_CODING @@ -207,12 +207,12 @@ uint8_t nr_generate_dci_top(NR_gNB_PDCCH pdcch_vars, /// DMRS QPSK modulation /*There is a need to shift from which index the pregenerated DMRS sequence is used * see 38211 r15.2.0 section 7.4.1.3.2: assumption is the reference point for k refers to the DMRS sequence*/ - if (pdcch_params.config_type == NFAPI_NR_CSET_CONFIG_PDCCH_CONFIG) { + /*if (pdcch_params.config_type == NFAPI_NR_CSET_CONFIG_PDCCH_CONFIG) { for (int symb=cset_start_symb; symb<cset_start_symb + pdcch_params.n_symb; symb++) gold_pdcch_dmrs[symb] += (pdcch_params.rb_offset*3)>>5; dmrs_offset = (pdcch_params.rb_offset*3)&0x1f; LOG_I(PHY, "PDCCH DMRS offset %d\n", dmrs_offset); - } + }*/ // DMRS shift currently disable for compatibility with the OAI UE for (int symb=cset_start_symb; symb<cset_start_symb + pdcch_params.n_symb; symb++) { if (dmrs_offset) { diff --git a/openair1/PHY/NR_TRANSPORT/nr_tbs_tools.c b/openair1/PHY/NR_TRANSPORT/nr_tbs_tools.c index 0b8ab563293acbd71a8f51ec45a0c144dea78026..c150634fa602278a335e9ec0667afa0fb2c7cfde 100644 --- a/openair1/PHY/NR_TRANSPORT/nr_tbs_tools.c +++ b/openair1/PHY/NR_TRANSPORT/nr_tbs_tools.c @@ -21,7 +21,7 @@ /*! \file PHY/LTE_TRANSPORT/dlsch_coding.c * \brief Top-level routines for implementing LDPC-coded (DLSCH) transport channels from 38-212, 15.2 -* \author H.Wang +* \author H.Wang, Guy De Souza * \date 2018 * \version 0.1 * \company Eurecom diff --git a/openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c b/openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c index 33d1f2d7586f5a49e601a8af178845586c16f6dd..ee235c72f3dcfb41bf54f03b0a825fe54d4c86e2 100644 --- a/openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c +++ b/openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c @@ -29,7 +29,7 @@ #include "filt16a_32.h" #include "T.h" //#define DEBUG_PDSCH -//#define DEBUG_PDCCH +#define DEBUG_PDCCH int nr_pbch_channel_estimation(PHY_VARS_NR_UE *ue, @@ -262,7 +262,7 @@ int nr_pdcch_channel_estimation(PHY_VARS_NR_UE *ue, unsigned short coreset_start_subcarrier, unsigned short nb_rb_coreset) { - int pilot[200] __attribute__((aligned(16))); + int pilot[300] __attribute__((aligned(16))); unsigned char aarx,p; unsigned short k; unsigned int pilot_cnt; diff --git a/openair1/SIMULATION/NR_PHY/dlsim.c b/openair1/SIMULATION/NR_PHY/dlsim.c index 1a47e6c5e47a6117bc5143e12ec8cc304a4fde77..1d49e248a08fb9ce6d94eb2330997ed2bd851125 100644 --- a/openair1/SIMULATION/NR_PHY/dlsim.c +++ b/openair1/SIMULATION/NR_PHY/dlsim.c @@ -604,7 +604,7 @@ int main(int argc, char **argv) uint64_t mask = 0x0; uint16_t num_rbs=24; - uint16_t rb_offset=0; + uint16_t rb_offset=24; uint16_t cell_id=0; uint16_t num_symbols=2; for(i=0; i<(num_rbs/6); ++i){ // 38.331 Each bit corresponds a group of 6 RBs diff --git a/openair2/LAYER2/NR_MAC_gNB/main.c b/openair2/LAYER2/NR_MAC_gNB/main.c index 7e6705d87f9c2ab161adf75c6c10fd207a4874f4..39656c4e5927b3b8e2cff7d15e758b10311976bd 100644 --- a/openair2/LAYER2/NR_MAC_gNB/main.c +++ b/openair2/LAYER2/NR_MAC_gNB/main.c @@ -47,7 +47,7 @@ extern RAN_CONTEXT_t RC; void nr_init_coreset(nfapi_nr_coreset_t *coreset) { coreset->coreset_id = 1; - coreset->frequency_domain_resources = 0x1E0000000000;//0x1FFFE0000000; // 96 RB starting from CRB0 + coreset->frequency_domain_resources = 0x1E000000000;//0x1FFFE0000000; // 96 RB starting from CRB0 coreset->duration = 2; coreset->cce_reg_mapping_type = NFAPI_NR_CCE_REG_MAPPING_NON_INTERLEAVED; coreset->reg_bundle_size = 6;