merge continue: take develop latest commits, fix compilation for test tools
This commit is contained in:
@@ -1029,7 +1029,7 @@ void lte_ue_measurements(PHY_VARS_UE *ue,
|
|||||||
int N_RB_DL = frame_parms->N_RB_DL;
|
int N_RB_DL = frame_parms->N_RB_DL;
|
||||||
|
|
||||||
|
|
||||||
int rank_tm3_tm4;
|
int rank_tm3_tm4=-1;
|
||||||
|
|
||||||
|
|
||||||
ue->measurements.nb_antennas_rx = frame_parms->nb_antennas_rx;
|
ue->measurements.nb_antennas_rx = frame_parms->nb_antennas_rx;
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ uint16_t pucchfmt3_ChannelEstimation( int16_t SubCarrierDeMapData[NB_ANTENNAS_RX
|
|||||||
uint16_t n3_pucch_array[NUMBER_OF_UE_MAX],
|
uint16_t n3_pucch_array[NUMBER_OF_UE_MAX],
|
||||||
uint8_t ncs_cell[20][7] ) {
|
uint8_t ncs_cell[20][7] ) {
|
||||||
uint32_t aa, symNo, k, slotNo, sym, i, j;
|
uint32_t aa, symNo, k, slotNo, sym, i, j;
|
||||||
int16_t np, np_n, ip_ind;
|
int16_t np, np_n, ip_ind=-1;
|
||||||
//int16_t npucch_sf;
|
//int16_t npucch_sf;
|
||||||
int16_t calctmp[2];
|
int16_t calctmp[2];
|
||||||
int16_t BsCshData[NB_ANTENNAS_RX][D_NSYM1SF][D_NSC1RB][2];
|
int16_t BsCshData[NB_ANTENNAS_RX][D_NSYM1SF][D_NSC1RB][2];
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ int32_t generate_prach( PHY_VARS_UE *ue, uint8_t eNB_id, uint8_t subframe, uint1
|
|||||||
uint16_t *prach_root_sequence_map;
|
uint16_t *prach_root_sequence_map;
|
||||||
uint16_t preamble_offset,preamble_shift;
|
uint16_t preamble_offset,preamble_shift;
|
||||||
uint16_t preamble_index0,n_shift_ra,n_shift_ra_bar;
|
uint16_t preamble_index0,n_shift_ra,n_shift_ra_bar;
|
||||||
uint16_t d_start,numshift;
|
uint16_t d_start=-1,numshift;
|
||||||
uint8_t prach_fmt = get_prach_fmt(prach_ConfigIndex,frame_type);
|
uint8_t prach_fmt = get_prach_fmt(prach_ConfigIndex,frame_type);
|
||||||
//uint8_t Nsp=2;
|
//uint8_t Nsp=2;
|
||||||
//uint8_t f_ra,t1_ra;
|
//uint8_t f_ra,t1_ra;
|
||||||
|
|||||||
@@ -2070,7 +2070,7 @@ uint16_t nr_dci_format_size (PHY_VARS_NR_UE *ue,
|
|||||||
dl_res_alloc_type_1 = 1;
|
dl_res_alloc_type_1 = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t n_bits_freq_dom_res_assign_dl=0,n_dl_RGB_tmp;
|
uint8_t n_bits_freq_dom_res_assign_dl=0,n_dl_RGB_tmp=-1;
|
||||||
|
|
||||||
if (dl_res_alloc_type_0 == 1) { // implementation of Table 5.1.2.2.1-1 TC 38.214 subclause 6.1.2.2.1
|
if (dl_res_alloc_type_0 == 1) { // implementation of Table 5.1.2.2.1-1 TC 38.214 subclause 6.1.2.2.1
|
||||||
// config1: PDSCH-Config IE contains rbg-Size ENUMERATED {config1, config2}
|
// config1: PDSCH-Config IE contains rbg-Size ENUMERATED {config1, config2}
|
||||||
|
|||||||
@@ -585,7 +585,7 @@ int32_t generate_nr_prach( PHY_VARS_NR_UE *ue, uint8_t eNB_id, uint8_t subframe,
|
|||||||
uint16_t *prach_root_sequence_map;
|
uint16_t *prach_root_sequence_map;
|
||||||
uint16_t preamble_offset,preamble_shift;
|
uint16_t preamble_offset,preamble_shift;
|
||||||
uint16_t preamble_index0,n_shift_ra,n_shift_ra_bar;
|
uint16_t preamble_index0,n_shift_ra,n_shift_ra_bar;
|
||||||
uint16_t d_start,numshift;
|
uint16_t d_start=-1,numshift;
|
||||||
|
|
||||||
uint16_t prach_fmt = get_nr_prach_fmt(prach_ConfigIndex);
|
uint16_t prach_fmt = get_nr_prach_fmt(prach_ConfigIndex);
|
||||||
//uint8_t Nsp=2;
|
//uint8_t Nsp=2;
|
||||||
|
|||||||
@@ -29,6 +29,10 @@
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "PHY/sse_intrin.h"
|
#include "PHY/sse_intrin.h"
|
||||||
|
|
||||||
@@ -428,4 +432,8 @@ double interp(double x, double *xs, double *ys, int count);
|
|||||||
|
|
||||||
int write_output(const char *fname,const char *vname,void *data,int length,int dec,char format);
|
int write_output(const char *fname,const char *vname,void *data,int length,int dec,char format);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif //__PHY_TOOLS_DEFS__H__
|
#endif //__PHY_TOOLS_DEFS__H__
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ int set_tdd_config_nr(NR_DL_FRAME_PARMS *frame_parms, int dl_UL_TransmissionPeri
|
|||||||
void add_tdd_dedicated_configuration_nr(NR_DL_FRAME_PARMS *frame_parms, int slotIndex, int nrofDownlinkSymbols, int nrofUplinkSymbols)
|
void add_tdd_dedicated_configuration_nr(NR_DL_FRAME_PARMS *frame_parms, int slotIndex, int nrofDownlinkSymbols, int nrofUplinkSymbols)
|
||||||
{
|
{
|
||||||
TDD_UL_DL_SlotConfig_t *p_TDD_UL_DL_ConfigDedicated = frame_parms->p_TDD_UL_DL_ConfigDedicated;
|
TDD_UL_DL_SlotConfig_t *p_TDD_UL_DL_ConfigDedicated = frame_parms->p_TDD_UL_DL_ConfigDedicated;
|
||||||
TDD_UL_DL_SlotConfig_t *p_previous_TDD_UL_DL_ConfigDedicated;
|
TDD_UL_DL_SlotConfig_t *p_previous_TDD_UL_DL_ConfigDedicated=NULL;
|
||||||
int next = 0;
|
int next = 0;
|
||||||
|
|
||||||
while (p_TDD_UL_DL_ConfigDedicated != NULL) {
|
while (p_TDD_UL_DL_ConfigDedicated != NULL) {
|
||||||
|
|||||||
@@ -515,7 +515,7 @@ int main(int argc, char **argv) {
|
|||||||
char fname[32],vname[32];
|
char fname[32],vname[32];
|
||||||
FILE *bler_fd;
|
FILE *bler_fd;
|
||||||
char bler_fname[256];
|
char bler_fname[256];
|
||||||
FILE *time_meas_fd;
|
FILE *time_meas_fd=NULL;
|
||||||
char time_meas_fname[256];
|
char time_meas_fname[256];
|
||||||
// FILE *tikz_fd;
|
// FILE *tikz_fd;
|
||||||
// char tikz_fname[256];
|
// char tikz_fname[256];
|
||||||
@@ -1446,7 +1446,7 @@ int main(int argc, char **argv) {
|
|||||||
sched_resp.subframe=subframe;
|
sched_resp.subframe=subframe;
|
||||||
sched_resp.frame=proc_eNB->frame_tx;
|
sched_resp.frame=proc_eNB->frame_tx;
|
||||||
eNB->abstraction_flag=0;
|
eNB->abstraction_flag=0;
|
||||||
schedule_response(&sched_resp);
|
schedule_response(&sched_resp, proc_eNB);
|
||||||
phy_procedures_eNB_TX(eNB,proc_eNB,1);
|
phy_procedures_eNB_TX(eNB,proc_eNB,1);
|
||||||
|
|
||||||
if (uncoded_ber_bit == NULL) {
|
if (uncoded_ber_bit == NULL) {
|
||||||
@@ -1480,7 +1480,7 @@ int main(int argc, char **argv) {
|
|||||||
TX_req.tx_request_body.number_of_pdus=0;
|
TX_req.tx_request_body.number_of_pdus=0;
|
||||||
proc_eNB->subframe_tx = subframe+1;
|
proc_eNB->subframe_tx = subframe+1;
|
||||||
sched_resp.subframe=subframe+1;
|
sched_resp.subframe=subframe+1;
|
||||||
schedule_response(&sched_resp);
|
schedule_response(&sched_resp, proc_eNB);
|
||||||
phy_procedures_eNB_TX(eNB,proc_eNB,0);
|
phy_procedures_eNB_TX(eNB,proc_eNB,0);
|
||||||
ru->proc.tti_tx=(subframe+1)%10;
|
ru->proc.tti_tx=(subframe+1)%10;
|
||||||
feptx_prec(ru,proc_eNB->frame_tx,subframe+1);
|
feptx_prec(ru,proc_eNB->frame_tx,subframe+1);
|
||||||
|
|||||||
@@ -995,7 +995,7 @@ int main(int argc, char **argv) {
|
|||||||
srs_flag);
|
srs_flag);
|
||||||
sched_resp.subframe=(subframe+6)%10;
|
sched_resp.subframe=(subframe+6)%10;
|
||||||
sched_resp.frame=(1024+eNB->proc.frame_rx+((subframe<4)?-1:0))&1023;
|
sched_resp.frame=(1024+eNB->proc.frame_rx+((subframe<4)?-1:0))&1023;
|
||||||
schedule_response(&sched_resp);
|
schedule_response(&sched_resp, proc_rxtx);
|
||||||
|
|
||||||
/////////////////////
|
/////////////////////
|
||||||
if (abstx) {
|
if (abstx) {
|
||||||
|
|||||||
@@ -2067,7 +2067,7 @@ void nr_ue_send_sdu(module_id_t module_idP,
|
|||||||
|
|
||||||
if (opt_enabled) {
|
if (opt_enabled) {
|
||||||
trace_pdu(DIRECTION_DOWNLINK, pduP, pdu_len, module_idP, WS_C_RNTI,
|
trace_pdu(DIRECTION_DOWNLINK, pduP, pdu_len, module_idP, WS_C_RNTI,
|
||||||
(int) UE_mac_inst[module_idP].cs_RNTI, frameP, ttiP, 0, 0); //subframeP
|
*UE_mac_inst[module_idP].cs_RNTI, frameP, ttiP, 0, 0); //subframeP
|
||||||
LOG_D(OPT, "[UE %d][DLSCH] Frame %d trace pdu for rnti %p with size %d\n",
|
LOG_D(OPT, "[UE %d][DLSCH] Frame %d trace pdu for rnti %p with size %d\n",
|
||||||
module_idP, frameP, UE_mac_inst[module_idP].cs_RNTI, pdu_len);
|
module_idP, frameP, UE_mac_inst[module_idP].cs_RNTI, pdu_len);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ void (*rlc_rrc_data_ind)(
|
|||||||
const protocol_ctxt_t *const ctxtP,
|
const protocol_ctxt_t *const ctxtP,
|
||||||
const rb_id_t rb_idP,
|
const rb_id_t rb_idP,
|
||||||
const sdu_size_t sdu_sizeP,
|
const sdu_size_t sdu_sizeP,
|
||||||
const uint8_t *const sduP);
|
const uint8_t *const sduP) __attribute__ ((aligned(32)));
|
||||||
|
|
||||||
void (*rlc_rrc_data_conf)(
|
void (*rlc_rrc_data_conf)(
|
||||||
const protocol_ctxt_t *const ctxtP,
|
const protocol_ctxt_t *const ctxtP,
|
||||||
@@ -250,7 +250,7 @@ logical_chan_id_t rlc_mbms_rbid2lcid_eNB[MAX_eNB][NB_RB_MBMS_MAX];
|
|||||||
(((hash_key_t)(sESSION_ID)) << 37) | \
|
(((hash_key_t)(sESSION_ID)) << 37) | \
|
||||||
(((hash_key_t)(0x0000000000000001)) << 63))
|
(((hash_key_t)(0x0000000000000001)) << 63))
|
||||||
|
|
||||||
hash_table_t *rlc_coll_p;
|
hash_table_t *rlc_coll_p __attribute__ ((aligned(32)));
|
||||||
|
|
||||||
/*! \fn tbs_size_t mac_rlc_serialize_tb (char* bufferP, list_t transport_blocksP)
|
/*! \fn tbs_size_t mac_rlc_serialize_tb (char* bufferP, list_t transport_blocksP)
|
||||||
* \brief Serialize a list of transport blocks coming from RLC in order to be processed by MAC.
|
* \brief Serialize a list of transport blocks coming from RLC in order to be processed by MAC.
|
||||||
|
|||||||
Reference in New Issue
Block a user