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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
2635cf48
Commit
2635cf48
authored
Oct 09, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/remove-dead-code-nrue' into integration_2023_w40
parents
a8fa1b0e
584fb235
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
103 deletions
+0
-103
openair1/PHY/INIT/nr_init.c
openair1/PHY/INIT/nr_init.c
+0
-39
openair1/PHY/defs_gNB.h
openair1/PHY/defs_gNB.h
+0
-40
openair1/SCHED_NR/phy_procedures_nr_gNB.c
openair1/SCHED_NR/phy_procedures_nr_gNB.c
+0
-12
openair1/SIMULATION/NR_PHY/ulsim.c
openair1/SIMULATION/NR_PHY/ulsim.c
+0
-12
No files found.
openair1/PHY/INIT/nr_init.c
View file @
2635cf48
...
@@ -697,24 +697,9 @@ int phy_init_nr_gNB(PHY_VARS_gNB *gNB)
...
@@ -697,24 +697,9 @@ int phy_init_nr_gNB(PHY_VARS_gNB *gNB)
pusch
->
ptrs_phase_per_slot
=
(
int32_t
**
)
malloc16
(
n_buf
*
sizeof
(
int32_t
*
));
pusch
->
ptrs_phase_per_slot
=
(
int32_t
**
)
malloc16
(
n_buf
*
sizeof
(
int32_t
*
));
pusch
->
ul_ch_estimates_time
=
(
int32_t
**
)
malloc16
(
n_buf
*
sizeof
(
int32_t
*
));
pusch
->
ul_ch_estimates_time
=
(
int32_t
**
)
malloc16
(
n_buf
*
sizeof
(
int32_t
*
));
pusch
->
rxdataF_comp
=
(
int32_t
**
)
malloc16
(
n_buf
*
sizeof
(
int32_t
*
));
pusch
->
rxdataF_comp
=
(
int32_t
**
)
malloc16
(
n_buf
*
sizeof
(
int32_t
*
));
pusch
->
ul_ch_mag0
=
(
int32_t
**
)
malloc16
(
n_buf
*
sizeof
(
int32_t
*
));
pusch
->
ul_ch_magb0
=
(
int32_t
**
)
malloc16
(
n_buf
*
sizeof
(
int32_t
*
));
pusch
->
ul_ch_magc0
=
(
int32_t
**
)
malloc16
(
n_buf
*
sizeof
(
int32_t
*
));
pusch
->
ul_ch_mag
=
(
int32_t
**
)
malloc16
(
n_buf
*
sizeof
(
int32_t
*
));
pusch
->
ul_ch_magb
=
(
int32_t
**
)
malloc16
(
n_buf
*
sizeof
(
int32_t
*
));
pusch
->
ul_ch_magc
=
(
int32_t
**
)
malloc16
(
n_buf
*
sizeof
(
int32_t
*
));
pusch
->
rho
=
(
int32_t
***
)
malloc16
(
Prx
*
sizeof
(
int32_t
**
));
pusch
->
llr_layers
=
(
int16_t
**
)
malloc16
(
max_ul_mimo_layers
*
sizeof
(
int32_t
*
));
pusch
->
llr_layers
=
(
int16_t
**
)
malloc16
(
max_ul_mimo_layers
*
sizeof
(
int32_t
*
));
for
(
i
=
0
;
i
<
Prx
;
i
++
)
{
for
(
i
=
0
;
i
<
Prx
;
i
++
)
{
pusch
->
rxdataF_ext
[
i
]
=
(
int32_t
*
)
malloc16_clear
(
sizeof
(
int32_t
)
*
nb_re_pusch2
*
fp
->
symbols_per_slot
);
pusch
->
rxdataF_ext
[
i
]
=
(
int32_t
*
)
malloc16_clear
(
sizeof
(
int32_t
)
*
nb_re_pusch2
*
fp
->
symbols_per_slot
);
pusch
->
rho
[
i
]
=
(
int32_t
**
)
malloc16_clear
(
NR_MAX_NB_LAYERS
*
NR_MAX_NB_LAYERS
*
sizeof
(
int32_t
*
));
for
(
int
j
=
0
;
j
<
max_ul_mimo_layers
;
j
++
)
{
for
(
int
k
=
0
;
k
<
max_ul_mimo_layers
;
k
++
)
{
pusch
->
rho
[
i
][
j
*
max_ul_mimo_layers
+
k
]
=
(
int32_t
*
)
malloc16_clear
(
sizeof
(
int32_t
)
*
nb_re_pusch2
*
fp
->
symbols_per_slot
);
}
}
}
}
for
(
i
=
0
;
i
<
n_buf
;
i
++
)
{
for
(
i
=
0
;
i
<
n_buf
;
i
++
)
{
pusch
->
ul_ch_estimates
[
i
]
=
(
int32_t
*
)
malloc16_clear
(
sizeof
(
int32_t
)
*
fp
->
ofdm_symbol_size
*
fp
->
symbols_per_slot
);
pusch
->
ul_ch_estimates
[
i
]
=
(
int32_t
*
)
malloc16_clear
(
sizeof
(
int32_t
)
*
fp
->
ofdm_symbol_size
*
fp
->
symbols_per_slot
);
...
@@ -722,12 +707,6 @@ int phy_init_nr_gNB(PHY_VARS_gNB *gNB)
...
@@ -722,12 +707,6 @@ int phy_init_nr_gNB(PHY_VARS_gNB *gNB)
pusch
->
ul_ch_estimates_time
[
i
]
=
(
int32_t
*
)
malloc16_clear
(
sizeof
(
int32_t
)
*
fp
->
ofdm_symbol_size
);
pusch
->
ul_ch_estimates_time
[
i
]
=
(
int32_t
*
)
malloc16_clear
(
sizeof
(
int32_t
)
*
fp
->
ofdm_symbol_size
);
pusch
->
ptrs_phase_per_slot
[
i
]
=
(
int32_t
*
)
malloc16_clear
(
sizeof
(
int32_t
)
*
fp
->
symbols_per_slot
);
// symbols per slot
pusch
->
ptrs_phase_per_slot
[
i
]
=
(
int32_t
*
)
malloc16_clear
(
sizeof
(
int32_t
)
*
fp
->
symbols_per_slot
);
// symbols per slot
pusch
->
rxdataF_comp
[
i
]
=
(
int32_t
*
)
malloc16_clear
(
sizeof
(
int32_t
)
*
nb_re_pusch2
*
fp
->
symbols_per_slot
);
pusch
->
rxdataF_comp
[
i
]
=
(
int32_t
*
)
malloc16_clear
(
sizeof
(
int32_t
)
*
nb_re_pusch2
*
fp
->
symbols_per_slot
);
pusch
->
ul_ch_mag0
[
i
]
=
(
int32_t
*
)
malloc16_clear
(
sizeof
(
int32_t
)
*
nb_re_pusch2
*
fp
->
symbols_per_slot
);
pusch
->
ul_ch_magb0
[
i
]
=
(
int32_t
*
)
malloc16_clear
(
sizeof
(
int32_t
)
*
nb_re_pusch2
*
fp
->
symbols_per_slot
);
pusch
->
ul_ch_magc0
[
i
]
=
(
int32_t
*
)
malloc16_clear
(
sizeof
(
int32_t
)
*
nb_re_pusch2
*
fp
->
symbols_per_slot
);
pusch
->
ul_ch_mag
[
i
]
=
(
int32_t
*
)
malloc16_clear
(
sizeof
(
int32_t
)
*
nb_re_pusch2
*
fp
->
symbols_per_slot
);
pusch
->
ul_ch_magb
[
i
]
=
(
int32_t
*
)
malloc16_clear
(
sizeof
(
int32_t
)
*
nb_re_pusch2
*
fp
->
symbols_per_slot
);
pusch
->
ul_ch_magc
[
i
]
=
(
int32_t
*
)
malloc16_clear
(
sizeof
(
int32_t
)
*
nb_re_pusch2
*
fp
->
symbols_per_slot
);
}
}
for
(
i
=
0
;
i
<
max_ul_mimo_layers
;
i
++
)
{
for
(
i
=
0
;
i
<
max_ul_mimo_layers
;
i
++
)
{
...
@@ -851,11 +830,6 @@ void phy_free_nr_gNB(PHY_VARS_gNB *gNB)
...
@@ -851,11 +830,6 @@ void phy_free_nr_gNB(PHY_VARS_gNB *gNB)
free_and_zero
(
pusch_vars
->
llr_layers
[
i
]);
free_and_zero
(
pusch_vars
->
llr_layers
[
i
]);
for
(
int
i
=
0
;
i
<
Prx
;
i
++
)
{
for
(
int
i
=
0
;
i
<
Prx
;
i
++
)
{
free_and_zero
(
pusch_vars
->
rxdataF_ext
[
i
]);
free_and_zero
(
pusch_vars
->
rxdataF_ext
[
i
]);
for
(
int
j
=
0
;
j
<
max_ul_mimo_layers
;
j
++
)
{
for
(
int
k
=
0
;
k
<
max_ul_mimo_layers
;
k
++
)
free_and_zero
(
pusch_vars
->
rho
[
i
][
j
*
max_ul_mimo_layers
+
k
]);
}
free_and_zero
(
pusch_vars
->
rho
[
i
]);
}
}
for
(
int
i
=
0
;
i
<
n_buf
;
i
++
)
{
for
(
int
i
=
0
;
i
<
n_buf
;
i
++
)
{
free_and_zero
(
pusch_vars
->
ul_ch_estimates
[
i
]);
free_and_zero
(
pusch_vars
->
ul_ch_estimates
[
i
]);
...
@@ -863,12 +837,6 @@ void phy_free_nr_gNB(PHY_VARS_gNB *gNB)
...
@@ -863,12 +837,6 @@ void phy_free_nr_gNB(PHY_VARS_gNB *gNB)
free_and_zero
(
pusch_vars
->
ul_ch_estimates_time
[
i
]);
free_and_zero
(
pusch_vars
->
ul_ch_estimates_time
[
i
]);
free_and_zero
(
pusch_vars
->
ptrs_phase_per_slot
[
i
]);
free_and_zero
(
pusch_vars
->
ptrs_phase_per_slot
[
i
]);
free_and_zero
(
pusch_vars
->
rxdataF_comp
[
i
]);
free_and_zero
(
pusch_vars
->
rxdataF_comp
[
i
]);
free_and_zero
(
pusch_vars
->
ul_ch_mag0
[
i
]);
free_and_zero
(
pusch_vars
->
ul_ch_magb0
[
i
]);
free_and_zero
(
pusch_vars
->
ul_ch_magc0
[
i
]);
free_and_zero
(
pusch_vars
->
ul_ch_mag
[
i
]);
free_and_zero
(
pusch_vars
->
ul_ch_magb
[
i
]);
free_and_zero
(
pusch_vars
->
ul_ch_magc
[
i
]);
}
}
free_and_zero
(
pusch_vars
->
llr_layers
);
free_and_zero
(
pusch_vars
->
llr_layers
);
free_and_zero
(
pusch_vars
->
rxdataF_ext
);
free_and_zero
(
pusch_vars
->
rxdataF_ext
);
...
@@ -878,13 +846,6 @@ void phy_free_nr_gNB(PHY_VARS_gNB *gNB)
...
@@ -878,13 +846,6 @@ void phy_free_nr_gNB(PHY_VARS_gNB *gNB)
free_and_zero
(
pusch_vars
->
ul_ch_estimates_time
);
free_and_zero
(
pusch_vars
->
ul_ch_estimates_time
);
free_and_zero
(
pusch_vars
->
ul_valid_re_per_slot
);
free_and_zero
(
pusch_vars
->
ul_valid_re_per_slot
);
free_and_zero
(
pusch_vars
->
rxdataF_comp
);
free_and_zero
(
pusch_vars
->
rxdataF_comp
);
free_and_zero
(
pusch_vars
->
ul_ch_mag0
);
free_and_zero
(
pusch_vars
->
ul_ch_magb0
);
free_and_zero
(
pusch_vars
->
ul_ch_magc0
);
free_and_zero
(
pusch_vars
->
ul_ch_mag
);
free_and_zero
(
pusch_vars
->
ul_ch_magb
);
free_and_zero
(
pusch_vars
->
ul_ch_magc
);
free_and_zero
(
pusch_vars
->
rho
);
free_and_zero
(
pusch_vars
->
llr
);
free_and_zero
(
pusch_vars
->
llr
);
}
// ULSCH_id
}
// ULSCH_id
...
...
openair1/PHY/defs_gNB.h
View file @
2635cf48
...
@@ -345,48 +345,8 @@ typedef struct {
...
@@ -345,48 +345,8 @@ typedef struct {
/// - first index: rx antenna id [0..nb_antennas_rx[
/// - first index: rx antenna id [0..nb_antennas_rx[
/// - second index: ? [0..12*N_RB_UL*frame_parms->symbols_per_tti[
/// - second index: ? [0..12*N_RB_UL*frame_parms->symbols_per_tti[
int32_t
**
rxdataF_comp
;
int32_t
**
rxdataF_comp
;
/// \brief Magnitude of the UL channel estimates. Used for 2nd-bit level thresholds in LLR computation
/// - first index: rx antenna id [0..nb_antennas_rx[
/// - second index: ? [0..12*N_RB_UL*frame_parms->symbols_per_tti[
int32_t
**
ul_ch_mag
;
/// \brief Magnitude of the UL channel estimates scaled for 3rd bit level thresholds in LLR computation
/// - first index: rx antenna id [0..nb_antennas_rx[
/// - second index: ? [0..12*N_RB_UL*frame_parms->symbols_per_tti[
int32_t
**
ul_ch_magb
;
/// \brief Magnitude of the UL channel estimates scaled for 4th bit level thresholds in LLR computation
/// - first index: rx antenna id [0..nb_antennas_rx[
/// - second index: ? [0..12*N_RB_UL*frame_parms->symbols_per_tti[
int32_t
**
ul_ch_magc
;
/// \brief Cross-correlation of two UE signals.
/// - first index: rx antenna [0..nb_antennas_rx[
/// - second index: symbol [0..]
int32_t
***
rho
;
/// \f$\log_2(\max|H_i|^2)\f$
/// \f$\log_2(\max|H_i|^2)\f$
int16_t
log2_maxh
;
int16_t
log2_maxh
;
/// \brief Magnitude of Uplink Channel first layer (16QAM level/First 64QAM level/First 256QAM level).
/// - first index: ? [0..7] (hard coded) FIXME! accessed via \c nb_antennas_rx
/// - second index: ? [0..168*N_RB_UL[
int32_t
**
ul_ch_mag0
;
/// \brief Magnitude of Uplink Channel second layer (16QAM level/First 64QAM level/First 256QAM level).
/// - first index: ? [0..7] (hard coded) FIXME! accessed via \c nb_antennas_rx
/// - second index: ? [0..168*N_RB_UL[
int32_t
**
ul_ch_mag1
[
8
][
8
];
/// \brief Magnitude of Uplink Channel, first layer (2nd 64QAM/256QAM level).
/// - first index: ? [0..7] (hard coded) FIXME! accessed via \c nb_antennas_rx
/// - second index: ? [0..168*N_RB_UL[
int32_t
**
ul_ch_magb0
;
/// \brief Magnitude of Uplink Channel second layer (2nd 64QAM/256QAM level).
/// - first index: ? [0..7] (hard coded) FIXME! accessed via \c nb_antennas_rx
/// - second index: ? [0..168*N_RB_UL[
int32_t
**
ul_ch_magb1
[
8
][
8
];
/// \brief Magnitude of Uplink Channel, first layer (3rd 256QAM level).
/// - first index: ? [0..7] (hard coded) FIXME! accessed via \c nb_antennas_rx
/// - second index: ? [0..168*N_RB_UL[
int32_t
**
ul_ch_magc0
;
/// \brief Magnitude of Uplink Channel second layer (3rd 256QAM level).
/// - first index: ? [0..7] (hard coded) FIXME! accessed via \c nb_antennas_rx
/// - second index: ? [0..168*N_RB_UL[
int32_t
**
ul_ch_magc1
[
8
][
8
];
/// measured RX power based on DRS
/// measured RX power based on DRS
int
ulsch_power
[
8
];
int
ulsch_power
[
8
];
/// total signal over antennas
/// total signal over antennas
...
...
openair1/SCHED_NR/phy_procedures_nr_gNB.c
View file @
2635cf48
...
@@ -465,12 +465,6 @@ void nr_fill_indication(PHY_VARS_gNB *gNB, int frame, int slot_rx, int ULSCH_id,
...
@@ -465,12 +465,6 @@ void nr_fill_indication(PHY_VARS_gNB *gNB, int frame, int slot_rx, int ULSCH_id,
int
off
=
((
pusch_pdu
->
rb_size
&
1
)
==
1
)
?
4
:
0
;
int
off
=
((
pusch_pdu
->
rb_size
&
1
)
==
1
)
?
4
:
0
;
LOG_M
(
"rxsigF0.m"
,
"rxsF0"
,
&
gNB
->
common_vars
.
rxdataF
[
0
][(
slot_rx
&
3
)
*
gNB
->
frame_parms
.
ofdm_symbol_size
*
gNB
->
frame_parms
.
symbols_per_slot
],
gNB
->
frame_parms
.
ofdm_symbol_size
*
gNB
->
frame_parms
.
symbols_per_slot
,
1
,
1
);
LOG_M
(
"rxsigF0.m"
,
"rxsF0"
,
&
gNB
->
common_vars
.
rxdataF
[
0
][(
slot_rx
&
3
)
*
gNB
->
frame_parms
.
ofdm_symbol_size
*
gNB
->
frame_parms
.
symbols_per_slot
],
gNB
->
frame_parms
.
ofdm_symbol_size
*
gNB
->
frame_parms
.
symbols_per_slot
,
1
,
1
);
LOG_M
(
"rxsigF0_ext.m"
,
"rxsF0_ext"
,
&
gNB
->
pusch_vars
[
0
].
rxdataF_ext
[
0
][
pusch_pdu
->
start_symbol_index
*
NR_NB_SC_PER_RB
*
pusch_pdu
->
rb_size
],
pusch_pdu
->
nr_of_symbols
*
(
off
+
(
NR_NB_SC_PER_RB
*
pusch_pdu
->
rb_size
)),
1
,
1
);
LOG_M
(
"chestF0.m"
,
LOG_M
(
"chestF0.m"
,
"chF0"
,
"chF0"
,
&
gNB
->
pusch_vars
[
0
].
ul_ch_estimates
[
0
][
pusch_pdu
->
start_symbol_index
*
gNB
->
frame_parms
.
ofdm_symbol_size
],
&
gNB
->
pusch_vars
[
0
].
ul_ch_estimates
[
0
][
pusch_pdu
->
start_symbol_index
*
gNB
->
frame_parms
.
ofdm_symbol_size
],
...
@@ -498,12 +492,6 @@ void nr_fill_indication(PHY_VARS_gNB *gNB, int frame, int slot_rx, int ULSCH_id,
...
@@ -498,12 +492,6 @@ void nr_fill_indication(PHY_VARS_gNB *gNB, int frame, int slot_rx, int ULSCH_id,
0
);
0
);
if
(
gNB
->
frame_parms
.
nb_antennas_rx
>
1
)
{
if
(
gNB
->
frame_parms
.
nb_antennas_rx
>
1
)
{
LOG_M
(
"rxsigF1.m"
,
"rxsF1"
,
&
gNB
->
common_vars
.
rxdataF
[
1
][(
slot_rx
&
3
)
*
gNB
->
frame_parms
.
ofdm_symbol_size
*
gNB
->
frame_parms
.
symbols_per_slot
],
gNB
->
frame_parms
.
ofdm_symbol_size
*
gNB
->
frame_parms
.
symbols_per_slot
,
1
,
1
);
LOG_M
(
"rxsigF1.m"
,
"rxsF1"
,
&
gNB
->
common_vars
.
rxdataF
[
1
][(
slot_rx
&
3
)
*
gNB
->
frame_parms
.
ofdm_symbol_size
*
gNB
->
frame_parms
.
symbols_per_slot
],
gNB
->
frame_parms
.
ofdm_symbol_size
*
gNB
->
frame_parms
.
symbols_per_slot
,
1
,
1
);
LOG_M
(
"rxsigF1_ext.m"
,
"rxsF1_ext"
,
&
gNB
->
pusch_vars
[
0
].
rxdataF_ext
[
1
][
pusch_pdu
->
start_symbol_index
*
NR_NB_SC_PER_RB
*
pusch_pdu
->
rb_size
],
pusch_pdu
->
nr_of_symbols
*
(
off
+
(
NR_NB_SC_PER_RB
*
pusch_pdu
->
rb_size
)),
1
,
1
);
LOG_M
(
"chestF1.m"
,
LOG_M
(
"chestF1.m"
,
"chF1"
,
"chF1"
,
&
gNB
->
pusch_vars
[
0
].
ul_ch_estimates
[
1
][
pusch_pdu
->
start_symbol_index
*
gNB
->
frame_parms
.
ofdm_symbol_size
],
&
gNB
->
pusch_vars
[
0
].
ul_ch_estimates
[
1
][
pusch_pdu
->
start_symbol_index
*
gNB
->
frame_parms
.
ofdm_symbol_size
],
...
...
openair1/SIMULATION/NR_PHY/ulsim.c
View file @
2635cf48
...
@@ -1296,18 +1296,6 @@ int main(int argc, char *argv[])
...
@@ -1296,18 +1296,6 @@ int main(int argc, char *argv[])
nb_symb_sch
*
(
off
+
(
NR_NB_SC_PER_RB
*
pusch_pdu
->
rb_size
)),
nb_symb_sch
*
(
off
+
(
NR_NB_SC_PER_RB
*
pusch_pdu
->
rb_size
)),
1
,
1
,
1
);
1
);
LOG_M
(
"chmagF0.m"
,
"chmF0"
,
&
pusch_vars
->
ul_ch_mag
[
0
][
start_symbol
*
(
off
+
(
NR_NB_SC_PER_RB
*
pusch_pdu
->
rb_size
))],
nb_symb_sch
*
(
off
+
(
NR_NB_SC_PER_RB
*
pusch_pdu
->
rb_size
)),
1
,
1
);
LOG_M
(
"chmagbF0.m"
,
"chmbF0"
,
&
pusch_vars
->
ul_ch_magb
[
0
][
start_symbol
*
(
off
+
(
NR_NB_SC_PER_RB
*
pusch_pdu
->
rb_size
))],
nb_symb_sch
*
(
off
+
(
NR_NB_SC_PER_RB
*
pusch_pdu
->
rb_size
)),
1
,
1
);
LOG_M
(
"rxsigF0_llrlayers0.m"
,
LOG_M
(
"rxsigF0_llrlayers0.m"
,
"rxsF0_llrlayers0"
,
"rxsF0_llrlayers0"
,
&
pusch_vars
->
llr_layers
[
0
][
0
],
&
pusch_vars
->
llr_layers
[
0
][
0
],
...
...
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