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
84eb7763
Commit
84eb7763
authored
Feb 15, 2022
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
using config file parameters in init_codebook_gNB
parent
ec4ae32a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
openair1/PHY/INIT/nr_init.c
openair1/PHY/INIT/nr_init.c
+10
-12
No files found.
openair1/PHY/INIT/nr_init.c
View file @
84eb7763
...
@@ -75,25 +75,23 @@ int init_codebook_gNB(PHY_VARS_gNB *gNB) {
...
@@ -75,25 +75,23 @@ int init_codebook_gNB(PHY_VARS_gNB *gNB) {
if
(
gNB
->
frame_parms
.
nb_antennas_tx
>
1
){
if
(
gNB
->
frame_parms
.
nb_antennas_tx
>
1
){
//NR Codebook Generation for codebook type1 SinglePanel
//NR Codebook Generation for codebook type1 SinglePanel
//csi_reportconfig->codebookConfig->codebookType.choice.type1->subType.present
int
N1
=
gNB
->
ap_N1
;
int
N1
;
int
N2
=
gNB
->
ap_N2
;
int
N2
;
int
O1
;
int
O2
;
int
CSI_RS_antenna_ports
;
//Uniform Planner Array: UPA
//Uniform Planner Array: UPA
// X X X X ... X
// X X X X ... X
// X X X X ... X
// X X X X ... X
// N2 . . . . ... .
// N2 . . . . ... .
// X X X X ... X
// X X X X ... X
// |<-----N1---->|
// |<-----N1---->|
int
x_polarization
=
2
;
//1 or 2
int
x_polarization
=
gNB
->
ap_XP
;
//Get the uniform planar array parameters
//Get the uniform planar array parameters
N2
=
1
;
//one-dimenstional array (1, 2, 3, 4 are supported in 5G)
// To be confirmed
O2
=
1
;
//Vertical beam oversampling (1 or 4)
int
O2
=
N2
>
1
?
4
:
1
;
//Vertical beam oversampling (1 or 4)
N1
=
gNB
->
frame_parms
.
nb_antennas_tx
/
(
N2
*
x_polarization
);
//
int
O1
=
4
;
//Horizontal beam oversampling (1 or 4)
O1
=
1
;
//Horizontal beam oversampling (1 or 4)
int
CSI_RS_antenna_ports
=
gNB
->
frame_parms
.
nb_antennas_tx
;
CSI_RS_antenna_ports
=
gNB
->
frame_parms
.
nb_antennas_tx
;
AssertFatal
(
CSI_RS_antenna_ports
==
N1
*
N2
*
x_polarization
,
"Nb of antenna ports at PHY %d does not correspond to what passed down with fapi %d
\n
"
,
N1
*
N2
*
x_polarization
,
CSI_RS_antenna_ports
);
LOG_D
(
PHY
,
"NR Codebook Config: antenna ports: %d N1 %d N2 %d
\n
"
,
CSI_RS_antenna_ports
,
N1
,
N2
);
LOG_D
(
PHY
,
"NR Codebook Config: antenna ports: %d N1 %d N2 %d
\n
"
,
CSI_RS_antenna_ports
,
N1
,
N2
);
// Generation of codebook Type1 with codebookMode 1 (CSI_RS_antenna_ports < 16)
// Generation of codebook Type1 with codebookMode 1 (CSI_RS_antenna_ports < 16)
...
...
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