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
1f548532
Commit
1f548532
authored
Apr 20, 2023
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build ok after merge.
issue still with nr_ulsim (Bus Error on aarch64)
parent
aab08c65
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
11 deletions
+15
-11
openair1/PHY/INIT/nr_init.c
openair1/PHY/INIT/nr_init.c
+1
-1
openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c
openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c
+3
-3
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
+1
-1
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
+3
-3
openair1/PHY/defs_gNB.h
openair1/PHY/defs_gNB.h
+0
-2
openair1/SCHED_NR/phy_procedures_nr_gNB.c
openair1/SCHED_NR/phy_procedures_nr_gNB.c
+7
-1
No files found.
openair1/PHY/INIT/nr_init.c
View file @
1f548532
...
...
@@ -696,7 +696,7 @@ int phy_init_nr_gNB(PHY_VARS_gNB *gNB)
int
nb_re_pusch2
=
nb_re_pusch
+
(
nb_re_pusch
&
7
);
gNB
->
pusch_vars
=
(
NR_gNB_PUSCH
*
)
malloc16_clear
(
gNB
->
max_nb_pusch
*
sizeof
(
NR_gNB_PUSCH
));
for
(
int
ULSCH_id
=
0
;
ULSCH_id
<
gNB
->
number_of_nr_ulsch_max
;
ULSCH_id
++
)
{
for
(
int
ULSCH_id
=
0
;
ULSCH_id
<
gNB
->
max_nb_pusch
;
ULSCH_id
++
)
{
NR_gNB_PUSCH
*
pusch
=
&
gNB
->
pusch_vars
[
ULSCH_id
];
pusch
->
rxdataF_ext
=
(
int32_t
**
)
malloc16
(
Prx
*
sizeof
(
int32_t
*
)
);
pusch
->
ul_ch_estimates
=
(
int32_t
**
)
malloc16
(
n_buf
*
sizeof
(
int32_t
*
)
);
...
...
openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c
View file @
1f548532
...
...
@@ -206,14 +206,14 @@ int nr_pusch_channel_estimation(PHY_VARS_gNB *gNB,
}
else
l0
=
nb_rb_pusch
;
LOG_D
(
PHY
,
"In
%s:
ch_offset %d, soffset %d, symbol_offset %d OFDM size %d, Ns = %d, k = %d symbol %d l0 %d l1 %d have_half_prb %d
\n
"
,
ch_offset
,
soffset
,
LOG_D
(
PHY
,
"In
nr_pusch_channel_estimation: pusch_pdu %p
ch_offset %d, soffset %d, symbol_offset %d OFDM size %d, Ns = %d, k = %d symbol %d l0 %d l1 %d have_half_prb %d
\n
"
,
pusch_pdu
,
ch_offset
,
soffset
,
symbol_offset
,
symbolSize
,
Ns
,
k
,
symbol
,
l0
,
l1
,
have_half_prb
);
//------------------generate DMRS------------------//
if
(
pusch_pdu
->
ul_dmrs_scrambling_id
!=
gNB
->
pusch_gold_init
[
pusch_pdu
->
scid
])
{
...
...
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
View file @
1f548532
...
...
@@ -671,7 +671,7 @@ uint32_t nr_ulsch_decoding(PHY_VARS_gNB *phy_vars_gNB,
notifiedFIFO_elt_t
*
req
=
newNotifiedFIFO_elt
(
sizeof
(
ldpcDecode_t
),
id
.
p
,
&
phy_vars_gNB
->
respDecode
,
nr_processULSegment_ptr
);
ldpcDecode_t
*
rdata
=
(
ldpcDecode_t
*
)
NotifiedFifoData
(
req
);
#endif
decParams
.
R
=
nr_get_R_ldpc_decoder
(
pusch_pdu
->
pusch_data
.
rv_index
,
E
,
decParams
.
BG
,
decParams
.
Z
,
&
harq_process
->
llrLen
,
harq_process
->
round
);
rdata
->
gNB
=
phy_vars_gNB
;
rdata
->
ulsch_harq
=
harq_process
;
rdata
->
decoderParms
=
decParams
;
...
...
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
View file @
1f548532
...
...
@@ -325,7 +325,7 @@ void nr_idft(int32_t *z, uint32_t Msc_PUSCH)
}
void
nr_ulsch_extract_rbs0
(
int32
_t
*
rxdataF
,
void
nr_ulsch_extract_rbs0
(
c16
_t
*
rxdataF
,
int32_t
*
chF
,
int32_t
*
rxFext
,
int32_t
*
chFext
,
...
...
@@ -343,7 +343,7 @@ void nr_ulsch_extract_rbs0(int32_t *rxdataF,
int
nb_re_pusch
=
NR_NB_SC_PER_RB
*
pusch_pdu
->
rb_size
;
int32_t
*
rxF
=
&
rxdataF
[
rxoffset
];
int32_t
*
rxF
=
(
int32_t
*
)
&
rxdataF
[
rxoffset
];
int32_t
*
rxF_ext
=
&
rxFext
[
0
];
int32_t
*
ul_ch0
=
&
chF
[
choffset
];
int32_t
*
ul_ch0_ext
=
&
chFext
[
0
];
...
...
@@ -3181,7 +3181,7 @@ int nr_rx_pusch_tp(PHY_VARS_gNB *gNB,
start_meas
(
&
gNB
->
ulsch_channel_estimation_stats
);
int
max_ch
=
0
;
for
(
uint8_t
symbol
=
rel15_ul
->
start_symbol_index
;
symbol
<
(
rel15_ul
->
start_symbol_index
+
rel15_ul
->
nr_of_symbols
);
symbol
++
)
{
uint8_t
dmrs_symbol_flag
=
(
rel15_ul
->
ul_dmrs_symb_pos
>>
symbol
)
&
0x01
;
LOG_D
(
PHY
,
"symbol %d, dmrs_symbol_flag :%d
\n
"
,
symbol
,
dmrs_symbol_flag
);
if
(
dmrs_symbol_flag
==
1
)
{
...
...
openair1/PHY/defs_gNB.h
View file @
1f548532
...
...
@@ -775,8 +775,6 @@ typedef struct PHY_VARS_gNB_s {
int
nbDecode
;
int
use_pusch_tp
;
int
num_pusch_symbols_per_thread
;
int
number_of_nr_dlsch_max
;
int
number_of_nr_ulsch_max
;
void
*
scopeData
;
/// structure for analyzing high-level RT measurements
rt_L1_profiling_t
rt_L1_profiling
;
...
...
openair1/SCHED_NR/phy_procedures_nr_gNB.c
View file @
1f548532
...
...
@@ -399,7 +399,12 @@ void nr_ulsch_procedures(PHY_VARS_gNB *gNB, int frame_rx, int slot_rx, int ULSCH
nfapi_nr_pusch_pdu_t
*
pusch_pdu
=
&
gNB
->
ulsch
[
ULSCH_id
].
harq_process
->
ulsch_pdu
;
uint16_t
nb_re_dmrs
;
#ifndef TASK_MANAGER
#ifndef OMP_TP
uint8_t
enable_ldpc_offload
=
gNB
->
ldpc_offload_flag
;
#endif
#endif
uint16_t
start_symbol
=
pusch_pdu
->
start_symbol_index
;
uint16_t
number_symbols
=
pusch_pdu
->
nr_of_symbols
;
...
...
@@ -433,7 +438,8 @@ void nr_ulsch_procedures(PHY_VARS_gNB *gNB, int frame_rx, int slot_rx, int ULSCH
pusch_pdu
->
ul_dmrs_symb_pos
,
number_dmrs_symbols
,
// number of dmrs symbols irrespective of single or double symbol dmrs
pusch_pdu
->
qam_mod_order
,
pusch_pdu
->
nrOfLayers
);
pusch_pdu
->
nrOfLayers
,
G
);
if
(
gNB
->
use_pusch_tp
==
0
)
{
nr_ulsch_layer_demapping
(
gNB
->
pusch_vars
[
ULSCH_id
].
llr
,
...
...
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