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
spbro
OpenXG-RAN
Commits
4fe691f4
Commit
4fe691f4
authored
Dec 17, 2019
by
Khalid Ahmed
Committed by
Thomas Schlichter
Dec 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing nr_ulsim configuration for DMRS
parent
8e00f8df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
23 deletions
+5
-23
openair1/SIMULATION/NR_PHY/ulsim.c
openair1/SIMULATION/NR_PHY/ulsim.c
+5
-23
No files found.
openair1/SIMULATION/NR_PHY/ulsim.c
View file @
4fe691f4
...
@@ -150,7 +150,7 @@ int main(int argc, char **argv)
...
@@ -150,7 +150,7 @@ int main(int argc, char **argv)
NR_DL_FRAME_PARMS
*
frame_parms
;
NR_DL_FRAME_PARMS
*
frame_parms
;
int
loglvl
=
OAILOG_WARNING
;
int
loglvl
=
OAILOG_WARNING
;
uint64_t
SSB_positions
=
0x01
;
uint64_t
SSB_positions
=
0x01
;
uint16_t
nb_symb_sch
=
1
4
;
uint16_t
nb_symb_sch
=
1
2
;
int
start_symbol
=
0
;
int
start_symbol
=
0
;
uint16_t
nb_rb
=
50
;
uint16_t
nb_rb
=
50
;
uint8_t
Imcs
=
9
;
uint8_t
Imcs
=
9
;
...
@@ -441,18 +441,6 @@ int main(int argc, char **argv)
...
@@ -441,18 +441,6 @@ int main(int argc, char **argv)
}
}
unsigned
char
harq_pid
=
0
;
unsigned
char
harq_pid
=
0
;
unsigned
int
TBS
;
unsigned
int
available_bits
;
uint8_t
nb_re_dmrs
=
UE
->
dmrs_UplinkConfig
.
pusch_maxLength
*
(
UE
->
dmrs_UplinkConfig
.
pusch_dmrs_type
==
pusch_dmrs_type1
?
6
:
4
);
uint8_t
length_dmrs
=
1
;
unsigned
char
mod_order
;
uint16_t
code_rate
;
mod_order
=
nr_get_Qm_ul
(
Imcs
,
0
);
code_rate
=
nr_get_code_rate_ul
(
Imcs
,
0
);
available_bits
=
nr_get_G
(
nb_rb
,
nb_symb_sch
,
nb_re_dmrs
,
length_dmrs
,
mod_order
,
1
);
TBS
=
nr_compute_tbs
(
mod_order
,
code_rate
,
nb_rb
,
nb_symb_sch
,
nb_re_dmrs
*
length_dmrs
,
0
,
precod_nbr_layers
);
NR_gNB_ULSCH_t
*
ulsch_gNB
=
gNB
->
ulsch
[
UE_id
][
0
];
NR_gNB_ULSCH_t
*
ulsch_gNB
=
gNB
->
ulsch
[
UE_id
][
0
];
//nfapi_nr_ul_config_ulsch_pdu *rel15_ul = &ulsch_gNB->harq_processes[harq_pid]->ulsch_pdu;
//nfapi_nr_ul_config_ulsch_pdu *rel15_ul = &ulsch_gNB->harq_processes[harq_pid]->ulsch_pdu;
...
@@ -481,7 +469,7 @@ int main(int argc, char **argv)
...
@@ -481,7 +469,7 @@ int main(int argc, char **argv)
unsigned
char
mod_order
;
unsigned
char
mod_order
;
uint16_t
code_rate
;
uint16_t
code_rate
;
for
(
i
=
0
;
i
<
NR_SYMBOLS_PER_SLOT
;
i
++
)
for
(
i
=
start_symbol
;
i
<
nb_symb_sch
;
i
++
)
number_dmrs_symbols
+=
is_dmrs_symbol
(
i
,
number_dmrs_symbols
+=
is_dmrs_symbol
(
i
,
0
,
0
,
0
,
0
,
...
@@ -541,8 +529,8 @@ int main(int argc, char **argv)
...
@@ -541,8 +529,8 @@ int main(int argc, char **argv)
pusch_pdu
->
rnti
=
n_rnti
;
pusch_pdu
->
rnti
=
n_rnti
;
pusch_pdu
->
mcs_index
=
Imcs
;
pusch_pdu
->
mcs_index
=
Imcs
;
pusch_pdu
->
mcs_table
=
0
;
pusch_pdu
->
mcs_table
=
0
;
pusch_pdu
->
target_code_rate
=
nr_get_code_rate_ul
(
pusch_pdu
->
mcs_index
,
pusch_pdu
->
mcs_table
);
pusch_pdu
->
target_code_rate
=
code_rate
;
pusch_pdu
->
qam_mod_order
=
nr_get_Qm_ul
(
pusch_pdu
->
mcs_index
,
pusch_pdu
->
mcs_table
)
;
pusch_pdu
->
qam_mod_order
=
mod_order
;
pusch_pdu
->
transform_precoding
=
0
;
pusch_pdu
->
transform_precoding
=
0
;
pusch_pdu
->
data_scrambling_id
=
0
;
pusch_pdu
->
data_scrambling_id
=
0
;
pusch_pdu
->
nrOfLayers
=
1
;
pusch_pdu
->
nrOfLayers
=
1
;
...
@@ -561,13 +549,7 @@ int main(int argc, char **argv)
...
@@ -561,13 +549,7 @@ int main(int argc, char **argv)
pusch_pdu
->
pusch_data
.
rv_index
=
0
;
pusch_pdu
->
pusch_data
.
rv_index
=
0
;
pusch_pdu
->
pusch_data
.
harq_process_id
=
0
;
pusch_pdu
->
pusch_data
.
harq_process_id
=
0
;
pusch_pdu
->
pusch_data
.
new_data_indicator
=
0
;
pusch_pdu
->
pusch_data
.
new_data_indicator
=
0
;
pusch_pdu
->
pusch_data
.
tb_size
=
nr_compute_tbs
(
pusch_pdu
->
mcs_index
,
pusch_pdu
->
pusch_data
.
tb_size
=
TBS
;
pusch_pdu
->
target_code_rate
,
pusch_pdu
->
rb_size
,
pusch_pdu
->
nr_of_symbols
,
nb_re_dmrs
*
length_dmrs
,
0
,
pusch_pdu
->
nrOfLayers
=
1
);
pusch_pdu
->
pusch_data
.
num_cb
=
0
;
pusch_pdu
->
pusch_data
.
num_cb
=
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