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
81398971
Commit
81398971
authored
Sep 03, 2020
by
cig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set tb_size in bytes and A in bits @ UE
- now is consistent for both UE and gNB
parent
9ac6dfee
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_coding.c
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_coding.c
+1
-1
openair1/SIMULATION/NR_PHY/ulschsim.c
openair1/SIMULATION/NR_PHY/ulschsim.c
+2
-2
openair1/SIMULATION/NR_PHY/ulsim.c
openair1/SIMULATION/NR_PHY/ulsim.c
+3
-3
openair2/LAYER2/NR_MAC_UE/rar_tools_nrUE.c
openair2/LAYER2/NR_MAC_UE/rar_tools_nrUE.c
+1
-1
No files found.
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_coding.c
View file @
81398971
...
...
@@ -248,7 +248,7 @@ int nr_ulsch_encoding(NR_UE_ULSCH_t *ulsch,
crc
=
1
;
harq_process
=
ulsch
->
harq_processes
[
harq_pid
];
nb_rb
=
harq_process
->
pusch_pdu
.
rb_size
;
A
=
harq_process
->
pusch_pdu
.
pusch_data
.
tb_size
;
A
=
harq_process
->
pusch_pdu
.
pusch_data
.
tb_size
*
8
;
pz
=
&
Z
;
mod_order
=
nr_get_Qm_ul
(
harq_process
->
pusch_pdu
.
mcs_index
,
harq_process
->
pusch_pdu
.
mcs_table
);
R
=
nr_get_code_rate_ul
(
harq_process
->
pusch_pdu
.
mcs_index
,
harq_process
->
pusch_pdu
.
mcs_table
);
...
...
openair1/SIMULATION/NR_PHY/ulschsim.c
View file @
81398971
...
...
@@ -405,7 +405,7 @@ int main(int argc, char **argv)
rel15_ul
->
pusch_data
.
rv_index
=
rvidx
;
rel15_ul
->
nrOfLayers
=
Nl
;
rel15_ul
->
target_code_rate
=
code_rate
;
rel15_ul
->
pusch_data
.
tb_size
=
TBS
>>
3
;
rel15_ul
->
pusch_data
.
tb_size
=
TBS
/
8
;
///////////////////////////////////////////////////
double
*
modulated_input
=
malloc16
(
sizeof
(
double
)
*
16
*
68
*
384
);
// [hna] 16 segments, 68*Zc
...
...
@@ -441,7 +441,7 @@ int main(int argc, char **argv)
harq_process_ul_ue
->
pusch_pdu
.
nr_of_symbols
=
nb_symb_sch
;
harq_process_ul_ue
->
num_of_mod_symbols
=
N_RE_prime
*
nb_rb
*
nb_codewords
;
harq_process_ul_ue
->
pusch_pdu
.
pusch_data
.
rv_index
=
rvidx
;
harq_process_ul_ue
->
pusch_pdu
.
pusch_data
.
tb_size
=
TBS
;
harq_process_ul_ue
->
pusch_pdu
.
pusch_data
.
tb_size
=
TBS
/
8
;
harq_process_ul_ue
->
a
=
&
test_input
[
0
];
}
...
...
openair1/SIMULATION/NR_PHY/ulsim.c
View file @
81398971
...
...
@@ -710,14 +710,14 @@ int main(int argc, char **argv)
available_bits
=
nr_get_G
(
nb_rb
,
nb_symb_sch
,
nb_re_dmrs
,
number_dmrs_symbols
,
mod_order
,
1
);
TBS
=
nr_compute_tbs
(
mod_order
,
code_rate
,
nb_rb
,
nb_symb_sch
,
nb_re_dmrs
*
number_dmrs_symbols
,
0
,
0
,
precod_nbr_layers
);
pusch_pdu
->
pusch_data
.
tb_size
=
TBS
>>
3
;
ul_config
.
ul_config_list
[
0
].
pusch_config_pdu
.
pusch_data
.
tb_size
=
TBS
;
pusch_pdu
->
pusch_data
.
tb_size
=
TBS
/
8
;
ul_config
.
ul_config_list
[
0
].
pusch_config_pdu
.
pusch_data
.
tb_size
=
TBS
/
8
;
nr_fill_ulsch
(
gNB
,
frame
,
slot
,
pusch_pdu
);
int
slot_offset
=
frame_parms
->
get_samples_slot_timestamp
(
slot
,
frame_parms
,
0
);
// - (int)(800*factor);
int
slot_length
=
slot_offset
-
frame_parms
->
get_samples_slot_timestamp
(
slot
-
1
,
frame_parms
,
0
);
for
(
int
i
=
0
;
i
<
(
TBS
>>
3
);
i
++
)
ulsch_ue
[
0
]
->
harq_processes
[
harq_pid
]
->
a
[
i
]
=
i
&
0xff
;
for
(
int
i
=
0
;
i
<
(
TBS
/
8
);
i
++
)
ulsch_ue
[
0
]
->
harq_processes
[
harq_pid
]
->
a
[
i
]
=
i
&
0xff
;
double
scale
=
1
;
if
(
input_fd
==
NULL
)
{
...
...
openair2/LAYER2/NR_MAC_UE/rar_tools_nrUE.c
View file @
81398971
...
...
@@ -189,7 +189,7 @@ void nr_config_Msg3_pdu(NR_UE_MAC_INST_t *mac,
nb_dmrs_re_per_rb
*
number_dmrs_symbols
,
N_PRB_oh
,
0
,
// TBR to verify tb scaling
pusch_config_pdu
->
nrOfLayers
);
pusch_config_pdu
->
nrOfLayers
)
/
8
;
}
...
...
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