|
|
|
@ -105,6 +105,15 @@ public:
|
|
|
|
|
*/
|
|
|
|
|
double get_ul_center_freq(const srsran_carrier_nr_t& carrier);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Compute the absolute frequency point A for a arfcn
|
|
|
|
|
*
|
|
|
|
|
* @param nof_prb Number of PRBs.
|
|
|
|
|
* @param arfcn Given ARFCN.
|
|
|
|
|
* @return frequency point A in arfcn notation.
|
|
|
|
|
*/
|
|
|
|
|
uint32_t get_abs_freq_point_a_arfcn(uint32_t nof_prb, uint32_t arfcn);
|
|
|
|
|
|
|
|
|
|
class sync_raster_t
|
|
|
|
|
{
|
|
|
|
|
protected:
|
|
|
|
@ -139,6 +148,8 @@ private:
|
|
|
|
|
// internal helper
|
|
|
|
|
double get_center_freq_from_abs_freq_point_a(uint32_t nof_prb, uint32_t freq_point_a_arfcn);
|
|
|
|
|
|
|
|
|
|
double get_abs_freq_point_a_from_center_freq(uint32_t nof_prb, double center_freq);
|
|
|
|
|
|
|
|
|
|
// Elements of TS 38.101-1 Table 5.2-1: NR operating bands in FR1
|
|
|
|
|
struct nr_operating_band {
|
|
|
|
|
uint16_t band;
|
|
|
|
@ -288,23 +299,22 @@ private:
|
|
|
|
|
{83, KHZ_100, 140600, 20, 149600, 0, 0, 0},
|
|
|
|
|
{84, KHZ_100, 384000, 20, 396000, 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 constexpr std::array<nr_band, nof_nr_bands_fr2> nr_band_table_fr2 = {{
|
|
|
|
|
{257, KHZ_60, 2054166, 1, 2104165, 2054166, 1, 2104165},
|
|
|
|
|
{257, KHZ_120, 2054167, 2, 2104165, 2054167, 20, 2104165},
|
|
|
|
|
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_120, 2054167, 2, 2104165, 2054167, 20, 2104165},
|
|
|
|
|
|
|
|
|
|
{258, KHZ_60, 2016667, 1, 2070832, 2016667, 1, 2070832},
|
|
|
|
|
{258, KHZ_120, 2016667, 2, 2070831, 2016667, 2, 2070832},
|
|
|
|
|
{258, KHZ_60, 2016667, 1, 2070832, 2016667, 1, 2070832},
|
|
|
|
|
{258, KHZ_120, 2016667, 2, 2070831, 2016667, 2, 2070832},
|
|
|
|
|
|
|
|
|
|
{260, KHZ_60, 2229166, 1, 2279165, 2229166, 1, 2279165},
|
|
|
|
|
{260, KHZ_120, 2229167, 2, 2279165, 2229167, 2, 2279165},
|
|
|
|
|
{260, KHZ_60, 2229166, 1, 2279165, 2229166, 1, 2279165},
|
|
|
|
|
{260, KHZ_120, 2229167, 2, 2279165, 2229167, 2, 2279165},
|
|
|
|
|
|
|
|
|
|
{261, KHZ_60, 2070833, 1, 2084999, 2070833, 1, 2084999},
|
|
|
|
|
{261, KHZ_120, 2070833, 2, 2084999, 2070833, 2, 2084999}
|
|
|
|
|
}};
|
|
|
|
|
{261, KHZ_60, 2070833, 1, 2084999, 2070833, 1, 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
|
|
|
|
|
struct nr_band_ss_raster {
|
|
|
|
@ -317,35 +327,35 @@ private:
|
|
|
|
|
};
|
|
|
|
|
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 = {{
|
|
|
|
|
{1, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 5279, 1, 5419},
|
|
|
|
|
{2, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 4829, 1, 4969},
|
|
|
|
|
{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_30kHz, SRSRAN_SSB_PATTERN_B, 2183, 1, 2224},
|
|
|
|
|
{7, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 6554, 1, 6718},
|
|
|
|
|
{8, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 2318, 1, 2395},
|
|
|
|
|
{12, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 1828, 1, 1858},
|
|
|
|
|
{20, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 1982, 1, 2047},
|
|
|
|
|
{25, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 4829, 1, 4981},
|
|
|
|
|
{28, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 1901, 1, 2002},
|
|
|
|
|
{34, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 5030, 1, 5056},
|
|
|
|
|
{38, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 6431, 1, 6544},
|
|
|
|
|
{39, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 4706, 1, 4795},
|
|
|
|
|
{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_30kHz, SRSRAN_SSB_PATTERN_C, 6252, 3, 6714},
|
|
|
|
|
{50, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 3584, 1, 3787},
|
|
|
|
|
{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_30kHz, SRSRAN_SSB_PATTERN_B, 5285, 1, 5488},
|
|
|
|
|
{70, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 4993, 1, 5044},
|
|
|
|
|
{71, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 1547, 1, 1624},
|
|
|
|
|
{74, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 3692, 1, 3790},
|
|
|
|
|
{75, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 3584, 1, 3787},
|
|
|
|
|
{76, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 3572, 1, 3574},
|
|
|
|
|
{77, srsran_subcarrier_spacing_30kHz, SRSRAN_SSB_PATTERN_C, 7711, 1, 8329},
|
|
|
|
|
{78, srsran_subcarrier_spacing_30kHz, SRSRAN_SSB_PATTERN_C, 7711, 1, 8051},
|
|
|
|
|
{79, srsran_subcarrier_spacing_30kHz, SRSRAN_SSB_PATTERN_C, 8480, 16, 8880},
|
|
|
|
|
{1, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 5279, 1, 5419},
|
|
|
|
|
{2, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 4829, 1, 4969},
|
|
|
|
|
{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_30kHz, SRSRAN_SSB_PATTERN_B, 2183, 1, 2224},
|
|
|
|
|
{7, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 6554, 1, 6718},
|
|
|
|
|
{8, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 2318, 1, 2395},
|
|
|
|
|
{12, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 1828, 1, 1858},
|
|
|
|
|
{20, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 1982, 1, 2047},
|
|
|
|
|
{25, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 4829, 1, 4981},
|
|
|
|
|
{28, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 1901, 1, 2002},
|
|
|
|
|
{34, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 5030, 1, 5056},
|
|
|
|
|
{38, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 6431, 1, 6544},
|
|
|
|
|
{39, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 4706, 1, 4795},
|
|
|
|
|
{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_30kHz, SRSRAN_SSB_PATTERN_C, 6252, 3, 6714},
|
|
|
|
|
{50, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 3584, 1, 3787},
|
|
|
|
|
{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_30kHz, SRSRAN_SSB_PATTERN_B, 5285, 1, 5488},
|
|
|
|
|
{70, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 4993, 1, 5044},
|
|
|
|
|
{71, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 1547, 1, 1624},
|
|
|
|
|
{74, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 3692, 1, 3790},
|
|
|
|
|
{75, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 3584, 1, 3787},
|
|
|
|
|
{76, srsran_subcarrier_spacing_15kHz, SRSRAN_SSB_PATTERN_A, 3572, 1, 3574},
|
|
|
|
|
{77, srsran_subcarrier_spacing_30kHz, SRSRAN_SSB_PATTERN_C, 7711, 1, 8329},
|
|
|
|
|
{78, srsran_subcarrier_spacing_30kHz, SRSRAN_SSB_PATTERN_C, 7711, 1, 8051},
|
|
|
|
|
{79, srsran_subcarrier_spacing_30kHz, SRSRAN_SSB_PATTERN_C, 8480, 16, 8880},
|
|
|
|
|
}};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|