Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
spbro
OpenXG-RAN
Commits
bb766be0
Commit
bb766be0
authored
Jul 26, 2024
by
Laurent THOMAS
Committed by
Robert Schmidt
Jul 30, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reformatting and cleanup
parent
8e92df78
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
32 deletions
+18
-32
openair1/PHY/INIT/nr_init_ue.c
openair1/PHY/INIT/nr_init_ue.c
+8
-11
openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c
openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c
+7
-18
openair1/PHY/defs_nr_UE.h
openair1/PHY/defs_nr_UE.h
+2
-2
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
+1
-1
No files found.
openair1/PHY/INIT/nr_init_ue.c
View file @
bb766be0
...
...
@@ -174,8 +174,6 @@ int init_nr_ue_signal(PHY_VARS_NR_UE *ue, int nb_connected_gNB)
NR_UE_CSI_RS
**
const
csirs_vars
=
ue
->
csirs_vars
;
NR_UE_SRS
**
const
srs_vars
=
ue
->
srs_vars
;
int
i
,
gNB_id
;
LOG_I
(
PHY
,
"Initializing UE vars for gNB TXant %u, UE RXant %u
\n
"
,
fp
->
nb_antennas_tx
,
fp
->
nb_antennas_rx
);
phy_init_nr_top
(
ue
);
...
...
@@ -184,10 +182,10 @@ int init_nr_ue_signal(PHY_VARS_NR_UE *ue, int nb_connected_gNB)
AssertFatal
(
nb_connected_gNB
<=
NUMBER_OF_CONNECTED_gNB_MAX
,
"n_connected_gNB is too large"
);
// init phy_vars_ue
for
(
i
=
0
;
i
<
fp
->
Lmax
;
i
++
)
for
(
i
nt
i
=
0
;
i
<
fp
->
Lmax
;
i
++
)
ue
->
measurements
.
ssb_rsrp_dBm
[
i
]
=
INT_MIN
;
for
(
i
=
0
;
i
<
4
;
i
++
)
{
for
(
i
nt
i
=
0
;
i
<
4
;
i
++
)
{
ue
->
rx_gain_max
[
i
]
=
135
;
ue
->
rx_gain_med
[
i
]
=
128
;
ue
->
rx_gain_byp
[
i
]
=
120
;
...
...
@@ -195,12 +193,11 @@ int init_nr_ue_signal(PHY_VARS_NR_UE *ue, int nb_connected_gNB)
ue
->
n_connected_gNB
=
nb_connected_gNB
;
for
(
gNB_id
=
0
;
gNB_id
<
ue
->
n_connected_gNB
;
gNB_id
++
)
{
for
(
int
gNB_id
=
0
;
gNB_id
<
ue
->
n_connected_gNB
;
gNB_id
++
)
{
ue
->
total_TBS
[
gNB_id
]
=
0
;
ue
->
total_TBS_last
[
gNB_id
]
=
0
;
ue
->
bitrate
[
gNB_id
]
=
0
;
ue
->
total_received_bits
[
gNB_id
]
=
0
;
}
// init NR modulation lookup tables
nr_generate_modulation_table
();
...
...
@@ -237,13 +234,13 @@ int init_nr_ue_signal(PHY_VARS_NR_UE *ue, int nb_connected_gNB)
///////////
////////////////////////////////////////////////////////////////////////////////////////////
for
(
i
=
0
;
i
<
10
;
i
++
)
for
(
i
nt
i
=
0
;
i
<
10
;
i
++
)
ue
->
tx_power_dBm
[
i
]
=-
127
;
// init TX buffers
common_vars
->
txData
=
malloc16
(
fp
->
nb_antennas_tx
*
sizeof
(
c16_t
*
));
for
(
i
=
0
;
i
<
fp
->
nb_antennas_tx
;
i
++
)
{
for
(
i
nt
i
=
0
;
i
<
fp
->
nb_antennas_tx
;
i
++
)
{
common_vars
->
txData
[
i
]
=
malloc16_clear
((
fp
->
samples_per_frame
)
*
sizeof
(
c16_t
));
}
...
...
@@ -254,12 +251,12 @@ int init_nr_ue_signal(PHY_VARS_NR_UE *ue, int nb_connected_gNB)
if
(
ue
->
sl_mode
==
2
)
num_samples
=
(
SL_NR_PSBCH_REPETITION_IN_FRAMES
*
fp
->
samples_per_frame
)
+
fp
->
ofdm_symbol_size
;
for
(
i
=
0
;
i
<
fp
->
nb_antennas_rx
;
i
++
)
{
for
(
i
nt
i
=
0
;
i
<
fp
->
nb_antennas_rx
;
i
++
)
{
common_vars
->
rxdata
[
i
]
=
malloc16_clear
(
num_samples
*
sizeof
(
c16_t
));
}
// DLSCH
for
(
gNB_id
=
0
;
gNB_id
<
ue
->
n_connected_gNB
;
gNB_id
++
)
{
for
(
int
gNB_id
=
0
;
gNB_id
<
ue
->
n_connected_gNB
;
gNB_id
++
)
{
prach_vars
[
gNB_id
]
=
malloc16_clear
(
sizeof
(
NR_UE_PRACH
));
csiim_vars
[
gNB_id
]
=
malloc16_clear
(
sizeof
(
NR_UE_CSI_IM
));
csirs_vars
[
gNB_id
]
=
malloc16_clear
(
sizeof
(
NR_UE_CSI_RS
));
...
...
@@ -272,7 +269,7 @@ int init_nr_ue_signal(PHY_VARS_NR_UE *ue, int nb_connected_gNB)
// ceil((NB_RB*8(max allocation per RB)*2(QPSK))/32)
ue
->
nr_csi_info
=
malloc16_clear
(
sizeof
(
nr_csi_info_t
));
ue
->
nr_csi_info
->
csi_rs_generated_signal
=
malloc16
(
NR_MAX_NB_PORTS
*
sizeof
(
int32_t
*
));
for
(
i
=
0
;
i
<
NR_MAX_NB_PORTS
;
i
++
)
{
for
(
i
nt
i
=
0
;
i
<
NR_MAX_NB_PORTS
;
i
++
)
{
ue
->
nr_csi_info
->
csi_rs_generated_signal
[
i
]
=
malloc16_clear
(
fp
->
samples_per_frame_wCP
*
sizeof
(
int32_t
));
}
...
...
openair1/PHY/NR_UE_ESTIMATION/nr_dl_channel_estimation.c
View file @
bb766be0
...
...
@@ -1450,8 +1450,7 @@ int nr_pdsch_channel_estimation(PHY_VARS_NR_UE *ue,
delay_t
delay
=
{
0
};
for
(
int
aarx
=
0
;
aarx
<
ue
->
frame_parms
.
nb_antennas_rx
;
aarx
++
)
{
for
(
int
aarx
=
0
;
aarx
<
fp
->
nb_antennas_rx
;
aarx
++
)
{
#ifdef DEBUG_PDSCH
printf
(
"
\n
============================================
\n
"
);
printf
(
"==== Tx port %i, Rx antenna %i, Symbol %i ====
\n
"
,
p
,
aarx
,
symbol
);
...
...
@@ -1459,8 +1458,8 @@ int nr_pdsch_channel_estimation(PHY_VARS_NR_UE *ue,
#endif
c16_t
*
rxF
=
&
rxdataF
[
aarx
][
symbol_offset
+
delta
];
c16_t
*
dl_ch
=
(
c16_t
*
)
&
dl_ch_estimates
[
nl
*
ue
->
frame_parms
.
nb_antennas_rx
+
aarx
][
ch_offset
];
memset
(
dl_ch
,
0
,
sizeof
(
*
dl_ch
)
*
ue
->
frame_parms
.
ofdm_symbol_size
);
c16_t
*
dl_ch
=
(
c16_t
*
)
&
dl_ch_estimates
[
nl
*
fp
->
nb_antennas_rx
+
aarx
][
ch_offset
];
memset
(
dl_ch
,
0
,
sizeof
(
*
dl_ch
)
*
fp
->
ofdm_symbol_size
);
if
(
config_type
==
NFAPI_NR_DMRS_TYPE1
&&
ue
->
chest_freq
==
0
)
{
NFAPI_NR_DMRS_TYPE1_linear_interp
(
&
ue
->
frame_parms
,
...
...
@@ -1474,7 +1473,7 @@ int nr_pdsch_channel_estimation(PHY_VARS_NR_UE *ue,
nvar
);
}
else
if
(
config_type
==
NFAPI_NR_DMRS_TYPE2
&&
ue
->
chest_freq
==
0
)
{
NFAPI_NR_DMRS_TYPE2_linear_interp
(
&
ue
->
frame_parms
,
NFAPI_NR_DMRS_TYPE2_linear_interp
(
fp
,
rxF
,
&
pilot
[
4
*
rb_offset
],
dl_ch
,
...
...
@@ -1486,24 +1485,14 @@ int nr_pdsch_channel_estimation(PHY_VARS_NR_UE *ue,
nvar
);
}
else
if
(
config_type
==
NFAPI_NR_DMRS_TYPE1
)
{
NFAPI_NR_DMRS_TYPE1_average_prb
(
&
ue
->
frame_parms
,
rxF
,
&
pilot
[
6
*
rb_offset
],
dl_ch
,
bwp_start_subcarrier
,
nb_rb_pdsch
);
NFAPI_NR_DMRS_TYPE1_average_prb
(
fp
,
rxF
,
&
pilot
[
6
*
rb_offset
],
dl_ch
,
bwp_start_subcarrier
,
nb_rb_pdsch
);
}
else
{
NFAPI_NR_DMRS_TYPE2_average_prb
(
&
ue
->
frame_parms
,
rxF
,
&
pilot
[
4
*
rb_offset
],
dl_ch
,
bwp_start_subcarrier
,
nb_rb_pdsch
);
NFAPI_NR_DMRS_TYPE2_average_prb
(
fp
,
rxF
,
&
pilot
[
4
*
rb_offset
],
dl_ch
,
bwp_start_subcarrier
,
nb_rb_pdsch
);
}
#ifdef DEBUG_PDSCH
dl_ch
=
(
c16_t
*
)
&
dl_ch_estimates
[
nl
*
ue
->
frame_parms
.
nb_antennas_rx
+
aarx
][
ch_offset
];
dl_ch
=
(
c16_t
*
)
&
dl_ch_estimates
[
nl
*
fp
->
nb_antennas_rx
+
aarx
][
ch_offset
];
for
(
uint16_t
idxP
=
0
;
idxP
<
ceil
((
float
)
nb_rb_pdsch
*
12
/
8
);
idxP
++
)
{
for
(
uint8_t
idxI
=
0
;
idxI
<
8
;
idxI
++
)
{
printf
(
"%4d
\t
%4d
\t
"
,
dl_ch
[
idxP
*
8
+
idxI
].
r
,
dl_ch
[
idxP
*
8
+
idxI
].
i
);
...
...
openair1/PHY/defs_nr_UE.h
View file @
bb766be0
...
...
@@ -440,15 +440,15 @@ typedef struct PHY_VARS_NR_UE_s {
int
dlsch_ra_errors
[
NUMBER_OF_CONNECTED_gNB_MAX
];
int
dlsch_p_received
[
NUMBER_OF_CONNECTED_gNB_MAX
];
int
dlsch_p_errors
[
NUMBER_OF_CONNECTED_gNB_MAX
];
int
dlsch_mch_received_sf
[
MAX_MBSFN_AREA
][
NUMBER_OF_CONNECTED_gNB_MAX
];
int
dlsch_mch_received
[
NUMBER_OF_CONNECTED_gNB_MAX
];
int
current_dlsch_cqi
[
NUMBER_OF_CONNECTED_gNB_MAX
];
int
dlsch_mch_received_sf
[
MAX_MBSFN_AREA
][
NUMBER_OF_CONNECTED_gNB_MAX
];
int
dlsch_mcch_received
[
MAX_MBSFN_AREA
][
NUMBER_OF_CONNECTED_gNB_MAX
];
int
dlsch_mtch_received
[
MAX_MBSFN_AREA
][
NUMBER_OF_CONNECTED_gNB_MAX
];
int
dlsch_mcch_errors
[
MAX_MBSFN_AREA
][
NUMBER_OF_CONNECTED_gNB_MAX
];
int
dlsch_mtch_errors
[
MAX_MBSFN_AREA
][
NUMBER_OF_CONNECTED_gNB_MAX
];
int
dlsch_mcch_trials
[
MAX_MBSFN_AREA
][
NUMBER_OF_CONNECTED_gNB_MAX
];
int
dlsch_mtch_trials
[
MAX_MBSFN_AREA
][
NUMBER_OF_CONNECTED_gNB_MAX
];
int
current_dlsch_cqi
[
NUMBER_OF_CONNECTED_gNB_MAX
];
uint8_t
decode_SIB
;
uint8_t
decode_MIB
;
uint8_t
init_sync_frame
;
...
...
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
View file @
bb766be0
...
...
@@ -1036,7 +1036,7 @@ int pbch_pdcch_processing(PHY_VARS_NR_UE *ue, const UE_nr_rxtx_proc_t *proc, nr_
}
dci_cnt
=
dci_cnt
+
nr_ue_pdcch_procedures
(
ue
,
proc
,
pdcch_est_size
,
pdcch_dl_ch_estimates
,
phy_data
,
n_ss
,
rxdataF
);
}
LOG_D
(
PHY
,
"[UE %d] Frame %d, nr_slot_rx %d: found %d DCIs
\n
"
,
ue
->
Mod_id
,
frame_rx
,
nr_slot_rx
,
dci_cnt
);
LOG_D
(
PHY
,
"[UE %d] Frame %d, nr_slot_rx %d: found %d DCIs
\n
"
,
ue
->
Mod_id
,
frame_rx
,
nr_slot_rx
,
dci_cnt
);
phy_pdcch_config
->
nb_search_space
=
0
;
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_UE_SLOT_FEP_PDCCH
,
VCD_FUNCTION_OUT
);
return
sampleShift
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment