Skip to content

Commit

Permalink
Resource Allocation and PDSCH: handle Rel-16 PBCH repetition. Repeate…
Browse files Browse the repository at this point in the history
…d symbols are not used in PBCH decoding, just taken out of PDSCH. 5G-MAG#9
  • Loading branch information
kuehnhammer committed Oct 5, 2023
1 parent 9b5644a commit 4e359bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/srsran
4 changes: 3 additions & 1 deletion src/Phy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,13 @@ const uint32_t kSubframesPerFrame = 10;

const uint32_t kMaxCellsToDiscover = 3;

Phy::Phy(const libconfig::Config& /*cfg*/, get_samples_t cb, uint8_t cs_nof_prb, //NOLINT
Phy::Phy(const libconfig::Config& cfg, get_samples_t cb, uint8_t cs_nof_prb, //NOLINT
int8_t override_nof_prb, uint8_t rx_channels)
: _sample_cb(std::move(cb))
, _cs_nof_prb(cs_nof_prb)
, _override_nof_prb(override_nof_prb)
, _rx_channels(rx_channels) {
cfg.lookupValue("modem.phy.pbch_repetition_r16", _has_pbch_repetition_r16);
_buffer_max_samples = kMaxBufferSamples;
_mib_buffer[0] = static_cast<cf_t*>(malloc(_buffer_max_samples * sizeof(cf_t))); // NOLINT
_mib_buffer[1] = static_cast<cf_t*>(malloc(_buffer_max_samples * sizeof(cf_t))); // NOLINT
Expand Down Expand Up @@ -168,6 +169,7 @@ auto Phy::cell_search() -> bool {

_cell = new_cell;
_cell.mbsfn_prb = _cell.nof_prb;
_cell.has_pbch_repetition_r16 = _has_pbch_repetition_r16;

if (srsran_ue_sync_set_cell(&_ue_sync, cell()) != 0) {
spdlog::error("Phy: failed to set cell.\n");
Expand Down
2 changes: 2 additions & 0 deletions src/Phy.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,4 +240,6 @@ class Phy {
int8_t _override_nof_prb;
uint8_t _rx_channels;
bool _search_extended_cp = true;

bool _has_pbch_repetition_r16 = false;
};

0 comments on commit 4e359bf

Please sign in to comment.