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
wangjie
OpenXG-RAN
Commits
311b9768
Commit
311b9768
authored
Jun 16, 2021
by
Thomas Schlichter
Committed by
francescomani
Jun 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gNB: add nrOfLayers to sched_pdsch
parent
40c51ebc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
+8
-4
openair1/SIMULATION/NR_PHY/dlsim.c
openair1/SIMULATION/NR_PHY/dlsim.c
+2
-1
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
+3
-2
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
+2
-1
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
+1
-0
No files found.
openair1/SIMULATION/NR_PHY/dlsim.c
View file @
311b9768
...
@@ -274,6 +274,7 @@ void nr_dlsim_preprocessor(module_id_t module_id,
...
@@ -274,6 +274,7 @@ void nr_dlsim_preprocessor(module_id_t module_id,
* configuration */
* configuration */
ps
->
mcsTableIdx
=
g_mcsTableIdx
;
ps
->
mcsTableIdx
=
g_mcsTableIdx
;
sched_pdsch
->
nrOfLayers
=
g_nrOfLayers
;
sched_pdsch
->
Qm
=
nr_get_Qm_dl
(
sched_pdsch
->
mcs
,
ps
->
mcsTableIdx
);
sched_pdsch
->
Qm
=
nr_get_Qm_dl
(
sched_pdsch
->
mcs
,
ps
->
mcsTableIdx
);
sched_pdsch
->
R
=
nr_get_code_rate_dl
(
sched_pdsch
->
mcs
,
ps
->
mcsTableIdx
);
sched_pdsch
->
R
=
nr_get_code_rate_dl
(
sched_pdsch
->
mcs
,
ps
->
mcsTableIdx
);
sched_pdsch
->
tb_size
=
nr_compute_tbs
(
sched_pdsch
->
Qm
,
sched_pdsch
->
tb_size
=
nr_compute_tbs
(
sched_pdsch
->
Qm
,
...
@@ -283,7 +284,7 @@ void nr_dlsim_preprocessor(module_id_t module_id,
...
@@ -283,7 +284,7 @@ void nr_dlsim_preprocessor(module_id_t module_id,
ps
->
N_PRB_DMRS
*
ps
->
N_DMRS_SLOT
,
ps
->
N_PRB_DMRS
*
ps
->
N_DMRS_SLOT
,
0
/* N_PRB_oh, 0 for initialBWP */
,
0
/* N_PRB_oh, 0 for initialBWP */
,
0
/* tb_scaling */
,
0
/* tb_scaling */
,
1
/* nrOfLayers */
)
sched_pdsch
->
nrOfLayers
)
>>
3
;
>>
3
;
/* the simulator assumes the HARQ PID is equal to the slot number */
/* the simulator assumes the HARQ PID is equal to the slot number */
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_dlsch.c
View file @
311b9768
...
@@ -602,6 +602,7 @@ void pf_dl(module_id_t module_id,
...
@@ -602,6 +602,7 @@ void pf_dl(module_id_t module_id,
/* Calculate coeff */
/* Calculate coeff */
set_dl_mcs
(
sched_pdsch
,
sched_ctrl
,
ps
->
mcsTableIdx
);
set_dl_mcs
(
sched_pdsch
,
sched_ctrl
,
ps
->
mcsTableIdx
);
sched_pdsch
->
nrOfLayers
=
1
;
const
uint8_t
Qm
=
nr_get_Qm_dl
(
sched_pdsch
->
mcs
,
ps
->
mcsTableIdx
);
const
uint8_t
Qm
=
nr_get_Qm_dl
(
sched_pdsch
->
mcs
,
ps
->
mcsTableIdx
);
const
uint16_t
R
=
nr_get_code_rate_dl
(
sched_pdsch
->
mcs
,
ps
->
mcsTableIdx
);
const
uint16_t
R
=
nr_get_code_rate_dl
(
sched_pdsch
->
mcs
,
ps
->
mcsTableIdx
);
uint32_t
tbs
=
nr_compute_tbs
(
Qm
,
uint32_t
tbs
=
nr_compute_tbs
(
Qm
,
...
@@ -611,7 +612,7 @@ void pf_dl(module_id_t module_id,
...
@@ -611,7 +612,7 @@ void pf_dl(module_id_t module_id,
0
,
/* N_PRB_DMRS * N_DMRS_SLOT */
0
,
/* N_PRB_DMRS * N_DMRS_SLOT */
0
/* N_PRB_oh, 0 for initialBWP */
,
0
/* N_PRB_oh, 0 for initialBWP */
,
0
/* tb_scaling */
,
0
/* tb_scaling */
,
1
/* nrOfLayers */
)
>>
3
;
sched_pdsch
->
nrOfLayers
)
>>
3
;
coeff_ue
[
UE_id
]
=
(
float
)
tbs
/
thr_ue
[
UE_id
];
coeff_ue
[
UE_id
]
=
(
float
)
tbs
/
thr_ue
[
UE_id
];
LOG_D
(
NR_MAC
,
"b %d, thr_ue[%d] %f, tbs %d, coeff_ue[%d] %f
\n
"
,
LOG_D
(
NR_MAC
,
"b %d, thr_ue[%d] %f, tbs %d, coeff_ue[%d] %f
\n
"
,
b
,
UE_id
,
thr_ue
[
UE_id
],
tbs
,
UE_id
,
coeff_ue
[
UE_id
]);
b
,
UE_id
,
thr_ue
[
UE_id
],
tbs
,
UE_id
,
coeff_ue
[
UE_id
]);
...
@@ -828,7 +829,7 @@ void nr_schedule_ue_spec(module_id_t module_id,
...
@@ -828,7 +829,7 @@ void nr_schedule_ue_spec(module_id_t module_id,
const
rnti_t
rnti
=
UE_info
->
rnti
[
UE_id
];
const
rnti_t
rnti
=
UE_info
->
rnti
[
UE_id
];
/* POST processing */
/* POST processing */
const
int
nrOfLayers
=
1
;
const
uint8_t
nrOfLayers
=
sched_pdsch
->
nrOfLayers
;
const
uint16_t
R
=
sched_pdsch
->
R
;
const
uint16_t
R
=
sched_pdsch
->
R
;
const
uint8_t
Qm
=
sched_pdsch
->
Qm
;
const
uint8_t
Qm
=
sched_pdsch
->
Qm
;
const
uint32_t
TBS
=
sched_pdsch
->
tb_size
;
const
uint32_t
TBS
=
sched_pdsch
->
tb_size
;
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
View file @
311b9768
...
@@ -370,6 +370,7 @@ void nr_preprocessor_phytest(module_id_t module_id,
...
@@ -370,6 +370,7 @@ void nr_preprocessor_phytest(module_id_t module_id,
nr_set_pdsch_semi_static
(
nr_set_pdsch_semi_static
(
scc
,
UE_info
->
CellGroup
[
UE_id
],
sched_ctrl
->
active_bwp
,
tda
,
num_dmrs_cdm_grps_no_data
,
ps
);
scc
,
UE_info
->
CellGroup
[
UE_id
],
sched_ctrl
->
active_bwp
,
tda
,
num_dmrs_cdm_grps_no_data
,
ps
);
sched_pdsch
->
nrOfLayers
=
1
;
sched_pdsch
->
mcs
=
target_dl_mcs
;
sched_pdsch
->
mcs
=
target_dl_mcs
;
sched_pdsch
->
Qm
=
nr_get_Qm_dl
(
sched_pdsch
->
mcs
,
ps
->
mcsTableIdx
);
sched_pdsch
->
Qm
=
nr_get_Qm_dl
(
sched_pdsch
->
mcs
,
ps
->
mcsTableIdx
);
sched_pdsch
->
R
=
nr_get_code_rate_dl
(
sched_pdsch
->
mcs
,
ps
->
mcsTableIdx
);
sched_pdsch
->
R
=
nr_get_code_rate_dl
(
sched_pdsch
->
mcs
,
ps
->
mcsTableIdx
);
...
@@ -380,7 +381,7 @@ void nr_preprocessor_phytest(module_id_t module_id,
...
@@ -380,7 +381,7 @@ void nr_preprocessor_phytest(module_id_t module_id,
ps
->
N_PRB_DMRS
*
ps
->
N_DMRS_SLOT
,
ps
->
N_PRB_DMRS
*
ps
->
N_DMRS_SLOT
,
0
/* N_PRB_oh, 0 for initialBWP */
,
0
/* N_PRB_oh, 0 for initialBWP */
,
0
/* tb_scaling */
,
0
/* tb_scaling */
,
1
/* nrOfLayers */
)
sched_pdsch
->
nrOfLayers
)
>>
3
;
>>
3
;
/* get the PID of a HARQ process awaiting retransmission, or -1 otherwise */
/* get the PID of a HARQ process awaiting retransmission, or -1 otherwise */
...
...
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
View file @
311b9768
...
@@ -383,6 +383,7 @@ typedef struct NR_sched_pdsch {
...
@@ -383,6 +383,7 @@ typedef struct NR_sched_pdsch {
uint8_t
mcs
;
uint8_t
mcs
;
/// TBS-related info
/// TBS-related info
uint8_t
nrOfLayers
;
uint16_t
R
;
uint16_t
R
;
uint8_t
Qm
;
uint8_t
Qm
;
uint32_t
tb_size
;
uint32_t
tb_size
;
...
...
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