|
|
@ -115,7 +115,7 @@ public:
|
|
|
|
uint32_t get_abs_freq_point_a_arfcn(uint32_t nof_prb, uint32_t arfcn);
|
|
|
|
uint32_t get_abs_freq_point_a_arfcn(uint32_t nof_prb, uint32_t arfcn);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @brief Compute the absolute frequency of the SSB for a DL ARFCN and a band. sThis selects an SSB center frequency
|
|
|
|
* @brief Compute the absolute frequency of the SSB for a DL ARFCN and a band. This selects an SSB center frequency
|
|
|
|
* following the band SS/PBCH frequency raster provided by 38.104 table 5.4.3.1-1 as close as possible to PointA
|
|
|
|
* following the band SS/PBCH frequency raster provided by 38.104 table 5.4.3.1-1 as close as possible to PointA
|
|
|
|
* without letting any SS/PBCH subcarrier below PointA
|
|
|
|
* without letting any SS/PBCH subcarrier below PointA
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -126,6 +126,13 @@ public:
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
uint32_t get_abs_freq_ssb_arfcn(uint16_t band, srsran_subcarrier_spacing_t scs, uint32_t freq_point_a_arfcn);
|
|
|
|
uint32_t get_abs_freq_ssb_arfcn(uint16_t band, srsran_subcarrier_spacing_t scs, uint32_t freq_point_a_arfcn);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @brief Compute SSB center frequency for NR carrier
|
|
|
|
|
|
|
|
* @param carrier Const Reference to a carrier struct including PRB, abs. frequency point A and carrier offset.
|
|
|
|
|
|
|
|
* @return double Frequency in Hz
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
double get_ssb_center_freq(const srsran_carrier_nr_t& carrier);
|
|
|
|
|
|
|
|
|
|
|
|
class sync_raster_t
|
|
|
|
class sync_raster_t
|
|
|
|
{
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
protected:
|
|
|
@ -309,22 +316,23 @@ private:
|
|
|
|
{83, KHZ_100, 140600, 20, 149600, 0, 0, 0},
|
|
|
|
{83, KHZ_100, 140600, 20, 149600, 0, 0, 0},
|
|
|
|
{84, KHZ_100, 384000, 20, 396000, 0, 0, 0},
|
|
|
|
{84, KHZ_100, 384000, 20, 396000, 0, 0, 0},
|
|
|
|
{86, KHZ_100, 342000, 20, 356000, 0, 0, 0}
|
|
|
|
{86, KHZ_100, 342000, 20, 356000, 0, 0, 0}
|
|
|
|
// clang-format on
|
|
|
|
// clang-format on
|
|
|
|
}};
|
|
|
|
}};
|
|
|
|
|
|
|
|
|
|
|
|
static const uint32_t nof_nr_bands_fr2 = 8;
|
|
|
|
static const uint32_t nof_nr_bands_fr2 = 8;
|
|
|
|
static constexpr std::array<nr_band, nof_nr_bands_fr2> nr_band_table_fr2 = {
|
|
|
|
static constexpr std::array<nr_band, nof_nr_bands_fr2> nr_band_table_fr2 = {{
|
|
|
|
{{257, KHZ_60, 2054166, 1, 2104165, 2054166, 1, 2104165},
|
|
|
|
{257, KHZ_60, 2054166, 1, 2104165, 2054166, 1, 2104165},
|
|
|
|
{257, KHZ_120, 2054167, 2, 2104165, 2054167, 20, 2104165},
|
|
|
|
{257, KHZ_120, 2054167, 2, 2104165, 2054167, 20, 2104165},
|
|
|
|
|
|
|
|
|
|
|
|
{258, KHZ_60, 2016667, 1, 2070832, 2016667, 1, 2070832},
|
|
|
|
{258, KHZ_60, 2016667, 1, 2070832, 2016667, 1, 2070832},
|
|
|
|
{258, KHZ_120, 2016667, 2, 2070831, 2016667, 2, 2070832},
|
|
|
|
{258, KHZ_120, 2016667, 2, 2070831, 2016667, 2, 2070832},
|
|
|
|
|
|
|
|
|
|
|
|
{260, KHZ_60, 2229166, 1, 2279165, 2229166, 1, 2279165},
|
|
|
|
{260, KHZ_60, 2229166, 1, 2279165, 2229166, 1, 2279165},
|
|
|
|
{260, KHZ_120, 2229167, 2, 2279165, 2229167, 2, 2279165},
|
|
|
|
{260, KHZ_120, 2229167, 2, 2279165, 2229167, 2, 2279165},
|
|
|
|
|
|
|
|
|
|
|
|
{261, KHZ_60, 2070833, 1, 2084999, 2070833, 1, 2084999},
|
|
|
|
{261, KHZ_60, 2070833, 1, 2084999, 2070833, 1, 2084999},
|
|
|
|
{261, KHZ_120, 2070833, 2, 2084999, 2070833, 2, 2084999}}};
|
|
|
|
{261, KHZ_120, 2070833, 2, 2084999, 2070833, 2, 2084999}
|
|
|
|
|
|
|
|
}};
|
|
|
|
|
|
|
|
|
|
|
|
// Elements of TS 38.101-1 Table 5.4.3.3-1 : Applicable SS raster entries per operating band
|
|
|
|
// Elements of TS 38.101-1 Table 5.4.3.3-1 : Applicable SS raster entries per operating band
|
|
|
|
struct nr_band_ss_raster {
|
|
|
|
struct nr_band_ss_raster {
|
|
|
@ -337,35 +345,35 @@ private:
|
|
|
|
};
|
|
|
|
};
|
|
|
|
static const uint32_t nof_nr_band_ss_raster = 29;
|
|
|
|
static const uint32_t nof_nr_band_ss_raster = 29;
|
|
|
|
static constexpr std::array<nr_band_ss_raster, nof_nr_band_ss_raster> nr_band_ss_raster_table = {{
|
|
|
|
static constexpr std::array<nr_band_ss_raster, nof_nr_band_ss_raster> nr_band_ss_raster_table = {{
|
|
|
|
{1, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 5279, 1, 5419},
|
|
|
|
{1, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 5279, 1, 5419},
|
|
|
|
{2, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 4829, 1, 4969},
|
|
|
|
{2, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 4829, 1, 4969},
|
|
|
|
{3, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 4517, 1, 4693},
|
|
|
|
{3, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 4517, 1, 4693},
|
|
|
|
{5, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 2177, 1, 2230},
|
|
|
|
{5, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 2177, 1, 2230},
|
|
|
|
{5, srsran_subcarrier_spacing_30kHz, SRSRAN_SSB_PATTERN_B, 2183, 1, 2224},
|
|
|
|
{5, srsran_subcarrier_spacing_30kHz, SRSRAN_SSB_PATTERN_B, 2183, 1, 2224},
|
|
|
|
{7, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 6554, 1, 6718},
|
|
|
|
{7, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 6554, 1, 6718},
|
|
|
|
{8, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 2318, 1, 2395},
|
|
|
|
{8, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 2318, 1, 2395},
|
|
|
|
{12, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 1828, 1, 1858},
|
|
|
|
{12, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 1828, 1, 1858},
|
|
|
|
{20, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 1982, 1, 2047},
|
|
|
|
{20, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 1982, 1, 2047},
|
|
|
|
{25, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 4829, 1, 4981},
|
|
|
|
{25, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 4829, 1, 4981},
|
|
|
|
{28, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 1901, 1, 2002},
|
|
|
|
{28, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 1901, 1, 2002},
|
|
|
|
{34, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 5030, 1, 5056},
|
|
|
|
{34, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 5030, 1, 5056},
|
|
|
|
{38, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 6431, 1, 6544},
|
|
|
|
{38, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 6431, 1, 6544},
|
|
|
|
{39, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 4706, 1, 4795},
|
|
|
|
{39, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 4706, 1, 4795},
|
|
|
|
{40, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 5756, 1, 5995},
|
|
|
|
{40, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 5756, 1, 5995},
|
|
|
|
{41, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 6246, 3, 6717},
|
|
|
|
{41, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 6246, 3, 6717},
|
|
|
|
{41, srsran_subcarrier_spacing_30kHz, SRSRAN_SSB_PATTERN_C, 6252, 3, 6714},
|
|
|
|
{41, srsran_subcarrier_spacing_30kHz, SRSRAN_SSB_PATTERN_C, 6252, 3, 6714},
|
|
|
|
{50, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 3584, 1, 3787},
|
|
|
|
{50, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 3584, 1, 3787},
|
|
|
|
{51, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 3572, 1, 3574},
|
|
|
|
{51, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 3572, 1, 3574},
|
|
|
|
{66, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 5279, 1, 5494},
|
|
|
|
{66, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 5279, 1, 5494},
|
|
|
|
{66, srsran_subcarrier_spacing_30kHz, SRSRAN_SSB_PATTERN_B, 5285, 1, 5488},
|
|
|
|
{66, srsran_subcarrier_spacing_30kHz, SRSRAN_SSB_PATTERN_B, 5285, 1, 5488},
|
|
|
|
{70, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 4993, 1, 5044},
|
|
|
|
{70, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 4993, 1, 5044},
|
|
|
|
{71, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 1547, 1, 1624},
|
|
|
|
{71, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 1547, 1, 1624},
|
|
|
|
{74, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 3692, 1, 3790},
|
|
|
|
{74, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 3692, 1, 3790},
|
|
|
|
{75, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 3584, 1, 3787},
|
|
|
|
{75, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 3584, 1, 3787},
|
|
|
|
{76, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 3572, 1, 3574},
|
|
|
|
{76, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 3572, 1, 3574},
|
|
|
|
{77, srsran_subcarrier_spacing_30kHz, SRSRAN_SSB_PATTERN_C, 7711, 1, 8329},
|
|
|
|
{77, srsran_subcarrier_spacing_30kHz, SRSRAN_SSB_PATTERN_C, 7711, 1, 8329},
|
|
|
|
{78, srsran_subcarrier_spacing_30kHz, SRSRAN_SSB_PATTERN_C, 7711, 1, 8051},
|
|
|
|
{78, srsran_subcarrier_spacing_30kHz, SRSRAN_SSB_PATTERN_C, 7711, 1, 8051},
|
|
|
|
{79, srsran_subcarrier_spacing_30kHz, SRSRAN_SSB_PATTERN_C, 8480, 16, 8880},
|
|
|
|
{79, srsran_subcarrier_spacing_30kHz, SRSRAN_SSB_PATTERN_C, 8480, 16, 8880},
|
|
|
|
}};
|
|
|
|
}};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|