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
lizhongxiao
OpenXG-RAN
Commits
233aa55f
Commit
233aa55f
authored
Jul 21, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/remove-ue-dead-var' into integration_2023_w29
parents
b0b3c7ee
089180b0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
27 deletions
+5
-27
openair1/PHY/INIT/nr_init_ue.c
openair1/PHY/INIT/nr_init_ue.c
+0
-4
openair1/PHY/defs_nr_UE.h
openair1/PHY/defs_nr_UE.h
+0
-13
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
+1
-2
openair1/SIMULATION/NR_PHY/ulsim.c
openair1/SIMULATION/NR_PHY/ulsim.c
+4
-8
No files found.
openair1/PHY/INIT/nr_init_ue.c
View file @
233aa55f
...
...
@@ -299,11 +299,9 @@ int init_nr_ue_signal(PHY_VARS_NR_UE *ue, int nb_connected_gNB)
// init RX buffers
common_vars
->
rxdata
=
malloc16
(
fp
->
nb_antennas_rx
*
sizeof
(
c16_t
*
));
common_vars
->
rxdataF
=
malloc16
(
fp
->
nb_antennas_rx
*
sizeof
(
c16_t
*
));
for
(
i
=
0
;
i
<
fp
->
nb_antennas_rx
;
i
++
)
{
common_vars
->
rxdata
[
i
]
=
malloc16_clear
((
2
*
(
fp
->
samples_per_frame
)
+
fp
->
ofdm_symbol_size
)
*
sizeof
(
c16_t
));
common_vars
->
rxdataF
[
i
]
=
malloc16_clear
((
2
*
(
fp
->
samples_per_frame
)
+
fp
->
ofdm_symbol_size
)
*
sizeof
(
c16_t
));
}
// ceil(((NB_RB<<1)*3)/32) // 3 RE *2(QPSK)
...
...
@@ -415,10 +413,8 @@ void term_nr_ue_signal(PHY_VARS_NR_UE *ue, int nb_connected_gNB)
for
(
int
i
=
0
;
i
<
fp
->
nb_antennas_rx
;
i
++
)
{
free_and_zero
(
common_vars
->
rxdata
[
i
]);
free_and_zero
(
common_vars
->
rxdataF
[
i
]);
}
free_and_zero
(
common_vars
->
rxdata
);
free_and_zero
(
common_vars
->
rxdataF
);
for
(
int
slot
=
0
;
slot
<
fp
->
slots_per_frame
;
slot
++
)
{
for
(
int
symb
=
0
;
symb
<
fp
->
symbols_per_slot
;
symb
++
)
...
...
openair1/PHY/defs_nr_UE.h
View file @
233aa55f
...
...
@@ -222,11 +222,6 @@ typedef struct {
/// - first index: tx antenna [0..nb_antennas_tx[
/// - second index: sample [0..FRAME_LENGTH_COMPLEX_SAMPLES[
c16_t
**
txData
;
/// \brief Holds the transmit data in the frequency domain.
/// For IFFT_FPGA this points to the same memory as PHY_vars->rx_vars[a].RX_DMA_BUFFER.
/// - first index: tx antenna [0..nb_antennas_tx[
/// - second index: sample [0..FRAME_LENGTH_COMPLEX_SAMPLES_NO_PREFIX[
c16_t
**
txdataF
;
/// \brief Holds the received data in time domain.
/// Should point to the same memory as PHY_vars->rx_vars[a].RX_DMA_BUFFER.
...
...
@@ -234,14 +229,6 @@ typedef struct {
/// - second index: sample [0..2*FRAME_LENGTH_COMPLEX_SAMPLES+2048[
c16_t
**
rxdata
;
/// \brief Holds the received data in time domain.
/// Should point to the same memory as PHY_vars->rx_vars[a].RX_DMA_BUFFER.
/// - first index: rx antenna [0..nb_antennas_rx[
/// - second index: sample [0..2*FRAME_LENGTH_COMPLEX_SAMPLES+2048[
c16_t
**
rxdataF
;
/// holds output of the sync correlator
int32_t
*
sync_corr
;
/// estimated frequency offset (in radians) for all subcarriers
int32_t
freq_offset
;
/// nid2 is the PSS value, the PCI (physical cell id) will be: 3*NID1 (SSS value) + NID2 (PSS value)
...
...
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
View file @
233aa55f
...
...
@@ -335,8 +335,7 @@ void nr_ue_measurement_procedures(uint16_t l,
T_INT
((
int
)(
ue
->
measurements
.
rx_power_avg_dB
[
0
]
-
ue
->
measurements
.
n0_power_avg_dB
)),
T_INT
((
int
)
ue
->
measurements
.
rx_power_avg_dB
[
0
]),
T_INT
((
int
)
ue
->
measurements
.
n0_power_avg_dB
),
T_INT
((
int
)
ue
->
measurements
.
wideband_cqi_avg
[
0
]),
T_INT
((
int
)
ue
->
common_vars
.
freq_offset
));
T_INT
((
int
)
ue
->
measurements
.
wideband_cqi_avg
[
0
]));
#endif
}
...
...
openair1/SIMULATION/NR_PHY/ulsim.c
View file @
233aa55f
...
...
@@ -1184,15 +1184,11 @@ int main(int argc, char **argv)
if
(
n_trials
==
1
)
{
LOG_M
(
"txsig0.m"
,
"txs0"
,
&
UE
->
common_vars
.
txData
[
0
][
slot_offset
],
slot_length
,
1
,
1
);
LOG_M
(
"txsig0F.m"
,
"txs0F"
,
UE
->
common_vars
.
txdataF
[
0
],
frame_parms
->
ofdm_symbol_size
*
14
,
1
,
1
);
if
(
precod_nbr_layers
>
1
)
{
LOG_M
(
"txsig1.m"
,
"txs1"
,
&
UE
->
common_vars
.
txData
[
1
][
slot_offset
],
slot_length
,
1
,
1
);
LOG_M
(
"txsig1F.m"
,
"txs1F"
,
UE
->
common_vars
.
txdataF
[
1
],
frame_parms
->
ofdm_symbol_size
*
14
,
1
,
1
);
if
(
precod_nbr_layers
==
4
)
{
LOG_M
(
"txsig2.m"
,
"txs2"
,
&
UE
->
common_vars
.
txData
[
2
][
slot_offset
],
slot_length
,
1
,
1
);
LOG_M
(
"txsig3.m"
,
"txs3"
,
&
UE
->
common_vars
.
txData
[
3
][
slot_offset
],
slot_length
,
1
,
1
);
LOG_M
(
"txsig2F.m"
,
"txs2F"
,
UE
->
common_vars
.
txdataF
[
2
],
frame_parms
->
ofdm_symbol_size
*
14
,
1
,
1
);
LOG_M
(
"txsig3F.m"
,
"txs3F"
,
UE
->
common_vars
.
txdataF
[
3
],
frame_parms
->
ofdm_symbol_size
*
14
,
1
,
1
);
LOG_M
(
"txsig1.m"
,
"txs1"
,
&
UE
->
common_vars
.
txData
[
1
][
slot_offset
],
slot_length
,
1
,
1
);
if
(
precod_nbr_layers
==
4
)
{
LOG_M
(
"txsig2.m"
,
"txs2"
,
&
UE
->
common_vars
.
txData
[
2
][
slot_offset
],
slot_length
,
1
,
1
);
LOG_M
(
"txsig3.m"
,
"txs3"
,
&
UE
->
common_vars
.
txData
[
3
][
slot_offset
],
slot_length
,
1
,
1
);
}
}
}
...
...
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