Commit 61d95c73 authored by francescomani's avatar francescomani Committed by Laurent THOMAS

adding assertion for cset0 start prb

parent 458b4a62
...@@ -757,7 +757,11 @@ void SLIV2SL(int SLIV,int *S,int *L) { ...@@ -757,7 +757,11 @@ void SLIV2SL(int SLIV,int *S,int *L) {
nr_sco_info_t get_ssb_subcarrier_offset(int scs, uint32_t absoluteFrequencySSB, uint32_t absoluteFrequencyPointA) nr_sco_info_t get_ssb_subcarrier_offset(int scs, uint32_t absoluteFrequencySSB, uint32_t absoluteFrequencyPointA)
{ {
nr_sco_info_t sco; nr_sco_info_t sco = {
.absolute_diff = absoluteFrequencySSB - absoluteFrequencyPointA,
.scaling = 1,
.subcarrier_offset = 0
};
// for FR1 k_SSB expressed in terms of 15kHz SCS // for FR1 k_SSB expressed in terms of 15kHz SCS
// for FR2 k_SSB expressed in terms of the subcarrier spacing provided by the higher-layer parameter subCarrierSpacingCommon // for FR2 k_SSB expressed in terms of the subcarrier spacing provided by the higher-layer parameter subCarrierSpacingCommon
sco.absolute_diff = (absoluteFrequencySSB - absoluteFrequencyPointA); sco.absolute_diff = (absoluteFrequencySSB - absoluteFrequencyPointA);
......
...@@ -480,7 +480,7 @@ typedef struct Type0_PDCCH_CSS_config_s { ...@@ -480,7 +480,7 @@ typedef struct Type0_PDCCH_CSS_config_s {
uint32_t search_space_frame_period; // in slots uint32_t search_space_frame_period; // in slots
uint32_t ssb_length; uint32_t ssb_length;
uint32_t ssb_index; uint32_t ssb_index;
uint32_t cset_start_rb; int32_t cset_start_rb;
NR_SubcarrierSpacing_t scs_pdcch; NR_SubcarrierSpacing_t scs_pdcch;
bool active; bool active;
} NR_Type0_PDCCH_CSS_config_t; } NR_Type0_PDCCH_CSS_config_t;
......
...@@ -4442,6 +4442,8 @@ void get_type0_PDCCH_CSS_config_parameters(NR_Type0_PDCCH_CSS_config_t *type0_PD ...@@ -4442,6 +4442,8 @@ void get_type0_PDCCH_CSS_config_parameters(NR_Type0_PDCCH_CSS_config_t *type0_PD
type0_PDCCH_CSS_config->n_0 = ((uint32_t)(big_o*(1<<scs_pdcch)) + (uint32_t)(type0_PDCCH_CSS_config->ssb_index*big_m))%num_slot_per_frame; type0_PDCCH_CSS_config->n_0 = ((uint32_t)(big_o*(1<<scs_pdcch)) + (uint32_t)(type0_PDCCH_CSS_config->ssb_index*big_m))%num_slot_per_frame;
type0_PDCCH_CSS_config->cset_start_rb = ssb_offset_point_a - type0_PDCCH_CSS_config->rb_offset; type0_PDCCH_CSS_config->cset_start_rb = ssb_offset_point_a - type0_PDCCH_CSS_config->rb_offset;
AssertFatal(type0_PDCCH_CSS_config->cset_start_rb >= 0, "Invalid CSET0 start PRB %d SSB offset point A %d RB offset %d\n",
type0_PDCCH_CSS_config->cset_start_rb, ssb_offset_point_a, type0_PDCCH_CSS_config->rb_offset);
} }
void fill_coresetZero(NR_ControlResourceSet_t *coreset0, NR_Type0_PDCCH_CSS_config_t *type0_PDCCH_CSS_config) void fill_coresetZero(NR_ControlResourceSet_t *coreset0, NR_Type0_PDCCH_CSS_config_t *type0_PDCCH_CSS_config)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment