Please could you check nr_dlsch_extract_rbs_multiple for the sake of comparison.
The array dimension is NR_MAX_NB_PORTS
Hi Francesco, yes, you are true. However, the error caused by
if (CellGroup && CellGroup->spCellConfig && CellGroup->spCellConfig && CellGroup->spCellConfig->spCellConfigDedicated)
compute_csi_bitlen (CellGroup->spCellConfig->spCellConfigDedicated->csi_MeasConfig->choice.setup, UE_info, UE_id, mod_idP);
Thank you for your clarification. The function now is int init_codebook_gNB(PHY_VARS_gNB *gNB) I removed the dependency on MAC parameters. However, this means PHY should have knowledge on Antenna elements parameters such as nrOfAntennaPorts, n1_n2, and Pannel Type. So, I added these missing parameters to the frame parameter Struct to allow PHY generating the codebook independently.
/// Number of Physical transmit antennas in node (corresponds to nrOfAntennaPorts)
uint8_t nb_antennas_tx;
/// UPA Panel Antenna configuration: two_one, two_two, four_one, three_two, six_one, etc
uint8_t antennas_tx_n1_n2;
/// UPA Panel Antenna Type: non, Single panel, or multiple
uint8_t antennas_tx_panel_type;
Hi Francesco, I will modify the code such that when the CSI configuration is not provided, we generate and allocate a unity precoder matrix. In addition, we should move the function to be within the MAC initialization.