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
32c3bb7a
Commit
32c3bb7a
authored
May 07, 2024
by
Jaroslava Fiedlerova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
T2 - offload TB for encoding on UE side
parent
94860a40
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
6 deletions
+12
-6
executables/nr-uesoftmodem.c
executables/nr-uesoftmodem.c
+6
-1
executables/nr-uesoftmodem.h
executables/nr-uesoftmodem.h
+2
-0
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_coding.c
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_coding.c
+3
-5
openair1/PHY/defs_nr_UE.h
openair1/PHY/defs_nr_UE.h
+1
-0
No files found.
executables/nr-uesoftmodem.c
View file @
32c3bb7a
...
@@ -286,6 +286,7 @@ void set_options(int CC_id, PHY_VARS_NR_UE *UE){
...
@@ -286,6 +286,7 @@ void set_options(int CC_id, PHY_VARS_NR_UE *UE){
UE
->
rf_map
.
card
=
card_offset
;
UE
->
rf_map
.
card
=
card_offset
;
UE
->
rf_map
.
chain
=
CC_id
+
chain_offset
;
UE
->
rf_map
.
chain
=
CC_id
+
chain_offset
;
UE
->
max_ldpc_iterations
=
nrUE_params
.
max_ldpc_iterations
;
UE
->
max_ldpc_iterations
=
nrUE_params
.
max_ldpc_iterations
;
UE
->
ldpc_offload_enable
=
nrUE_params
.
ldpc_offload_flag
;
UE
->
UE_scan_carrier
=
nrUE_params
.
UE_scan_carrier
;
UE
->
UE_scan_carrier
=
nrUE_params
.
UE_scan_carrier
;
UE
->
UE_fo_compensation
=
nrUE_params
.
UE_fo_compensation
;
UE
->
UE_fo_compensation
=
nrUE_params
.
UE_fo_compensation
;
UE
->
if_freq
=
nrUE_params
.
if_freq
;
UE
->
if_freq
=
nrUE_params
.
if_freq
;
...
@@ -491,7 +492,11 @@ int main(int argc, char **argv)
...
@@ -491,7 +492,11 @@ int main(int argc, char **argv)
cpuf
=
get_cpu_freq_GHz
();
cpuf
=
get_cpu_freq_GHz
();
itti_init
(
TASK_MAX
,
tasks_info
);
itti_init
(
TASK_MAX
,
tasks_info
);
init_opt
()
;
init_opt
();
if
(
nrUE_params
.
ldpc_offload_flag
)
load_LDPClib
(
"_t2"
,
&
ldpc_interface_offload
);
load_LDPClib
(
NULL
,
&
ldpc_interface
);
load_LDPClib
(
NULL
,
&
ldpc_interface
);
if
(
ouput_vcd
)
{
if
(
ouput_vcd
)
{
...
...
executables/nr-uesoftmodem.h
View file @
32c3bb7a
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
{"dlsch-parallel", CONFIG_HLP_DLSCH_PARA, 0, .u8ptr=NULL, .defintval=0, TYPE_UINT8, 0}, \
{"dlsch-parallel", CONFIG_HLP_DLSCH_PARA, 0, .u8ptr=NULL, .defintval=0, TYPE_UINT8, 0}, \
{"offset-divisor", CONFIG_HLP_OFFSET_DIV, 0, .uptr=&nrUE_params.ofdm_offset_divisor, .defuintval=8, TYPE_UINT32, 0}, \
{"offset-divisor", CONFIG_HLP_OFFSET_DIV, 0, .uptr=&nrUE_params.ofdm_offset_divisor, .defuintval=8, TYPE_UINT32, 0}, \
{"max-ldpc-iterations", CONFIG_HLP_MAX_LDPC_ITERATIONS, 0, .iptr=&nrUE_params.max_ldpc_iterations, .defuintval=8, TYPE_UINT8, 0}, \
{"max-ldpc-iterations", CONFIG_HLP_MAX_LDPC_ITERATIONS, 0, .iptr=&nrUE_params.max_ldpc_iterations, .defuintval=8, TYPE_UINT8, 0}, \
{"ldpc-offload-enable", CONFIG_HLP_LDPC_OFFLOAD, PARAMFLAG_BOOL, .iptr=&(nrUE_params.ldpc_offload_flag), .defintval=0, TYPE_INT, 0}, \
{"nr-dlsch-demod-shift", CONFIG_HLP_DLSHIFT, 0, .iptr=(int32_t *)&nr_dlsch_demod_shift, .defintval=0, TYPE_INT, 0}, \
{"nr-dlsch-demod-shift", CONFIG_HLP_DLSHIFT, 0, .iptr=(int32_t *)&nr_dlsch_demod_shift, .defintval=0, TYPE_INT, 0}, \
{"V" , CONFIG_HLP_VCD, PARAMFLAG_BOOL, .iptr=&vcdflag, .defintval=0, TYPE_INT, 0}, \
{"V" , CONFIG_HLP_VCD, PARAMFLAG_BOOL, .iptr=&vcdflag, .defintval=0, TYPE_INT, 0}, \
{"uecap_file", CONFIG_HLP_UECAP_FILE, 0, .strptr=&uecap_file, .defstrval="./uecap_ports1.xml", TYPE_STRING, 0}, \
{"uecap_file", CONFIG_HLP_UECAP_FILE, 0, .strptr=&uecap_file, .defstrval="./uecap_ports1.xml", TYPE_STRING, 0}, \
...
@@ -80,6 +81,7 @@ typedef struct {
...
@@ -80,6 +81,7 @@ typedef struct {
int
nb_antennas_tx
;
int
nb_antennas_tx
;
int
N_RB_DL
;
int
N_RB_DL
;
int
ssb_start_subcarrier
;
int
ssb_start_subcarrier
;
int
ldpc_offload_flag
;
}
nrUE_params_t
;
}
nrUE_params_t
;
extern
uint64_t
get_nrUE_optmask
(
void
);
extern
uint64_t
get_nrUE_optmask
(
void
);
extern
uint64_t
set_nrUE_optmask
(
uint64_t
bitmask
);
extern
uint64_t
set_nrUE_optmask
(
uint64_t
bitmask
);
...
...
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_coding.c
View file @
32c3bb7a
...
@@ -149,13 +149,11 @@ int nr_ulsch_encoding(PHY_VARS_NR_UE *ue,
...
@@ -149,13 +149,11 @@ int nr_ulsch_encoding(PHY_VARS_NR_UE *ue,
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_LDPC_ENCODER_OPTIM
,
VCD_FUNCTION_IN
);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_LDPC_ENCODER_OPTIM
,
VCD_FUNCTION_IN
);
}
}
start_meas
(
&
ue
->
ulsch_ldpc_encoding_stats
);
start_meas
(
&
ue
->
ulsch_ldpc_encoding_stats
);
if
(
0
)
{
if
(
ldpc_interface_offload
.
LDPCencoder
)
{
for
(
int
j
=
0
;
j
<
impp
.
n_segments
;
j
++
)
{
for
(
int
j
=
0
;
j
<
impp
.
n_segments
;
j
++
)
{
impp
.
E
=
nr_get_E
(
G
,
impp
.
n_segments
,
impp
.
Qm
,
ulsch
->
pusch_pdu
.
nrOfLayers
,
j
);
impp
.
E_cb
[
j
]
=
nr_get_E
(
G
,
impp
.
n_segments
,
impp
.
Qm
,
ulsch
->
pusch_pdu
.
nrOfLayers
,
j
);
uint8_t
*
f
=
harq_process
->
f
+
r_offset
;
ldpc_interface_offload
.
LDPCencoder
(
&
harq_process
->
c
[
j
],
&
f
,
&
impp
);
r_offset
+=
impp
.
E
;
}
}
ldpc_interface_offload
.
LDPCencoder
(
harq_process
->
c
,
&
harq_process
->
f
,
&
impp
);
}
else
{
}
else
{
if
(
ulsch
->
pusch_pdu
.
pusch_data
.
new_data_indicator
)
{
if
(
ulsch
->
pusch_pdu
.
pusch_data
.
new_data_indicator
)
{
for
(
int
j
=
0
;
j
<
(
impp
.
n_segments
/
8
+
1
);
j
++
)
{
for
(
int
j
=
0
;
j
<
(
impp
.
n_segments
/
8
+
1
);
j
++
)
{
...
...
openair1/PHY/defs_nr_UE.h
View file @
32c3bb7a
...
@@ -504,6 +504,7 @@ typedef struct PHY_VARS_NR_UE_s {
...
@@ -504,6 +504,7 @@ typedef struct PHY_VARS_NR_UE_s {
uint8_t
max_ldpc_iterations
;
uint8_t
max_ldpc_iterations
;
int
ldpc_offload_enable
;
/// SRS variables
/// SRS variables
nr_srs_info_t
*
nr_srs_info
;
nr_srs_info_t
*
nr_srs_info
;
...
...
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