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
15485075
Commit
15485075
authored
Nov 03, 2021
by
ahadi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'nr_prs' of
https://gitlab.eurecom.fr/oai/openairinterface5g
into nr_prs
parents
de272c7b
177e07d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
openair1/PHY/NR_REFSIG/nr_gold.c
openair1/PHY/NR_REFSIG/nr_gold.c
+17
-0
No files found.
openair1/PHY/NR_REFSIG/nr_gold.c
View file @
15485075
...
@@ -154,6 +154,10 @@ void nr_init_csi_rs(PHY_VARS_gNB* gNB, uint32_t Nid)
...
@@ -154,6 +154,10 @@ void nr_init_csi_rs(PHY_VARS_gNB* gNB, uint32_t Nid)
}
}
void
nr_init_prs
(
PHY_VARS_gNB
*
gNB
,
uint32_t
symNum
)
{
unsigned
int
x1
,
x2
;
uint16_t
Nid
,
i_ssb
,
i_ssb2
;
void
nr_init_prs
(
PHY_VARS_gNB
*
gNB
)
void
nr_init_prs
(
PHY_VARS_gNB
*
gNB
)
{
{
unsigned
int
x1
,
x2
;
unsigned
int
x1
,
x2
;
...
@@ -166,6 +170,14 @@ void nr_init_prs(PHY_VARS_gNB* gNB)
...
@@ -166,6 +170,14 @@ void nr_init_prs(PHY_VARS_gNB* gNB)
Nid
=
cfg
->
cell_config
.
phy_cell_id
.
value
;
Nid
=
cfg
->
cell_config
.
phy_cell_id
.
value
;
//Lmax = fp->Lmax;
//N_hf = (Lmax == 4)? 2:1;
for
(
slotNum
=
0
;
slotNum
<
fp
->
slots_per_frame
-
1
;
slotNum
++
)
{
for
(
symNum
=
0
;
symNum
<
fp
->
symbols_per_slot
-
1
;
symNum
++
)
{
i_ssb
=
sumNum
&
(
symbols_per_slot
-
1
);
i_ssb2
=
i_ssb
+
(
slot
<<
2
);
for
(
slotNum
=
0
;
slotNum
<
fp
->
slots_per_frame
;
slotNum
++
)
{
for
(
slotNum
=
0
;
slotNum
<
fp
->
slots_per_frame
;
slotNum
++
)
{
for
(
symNum
=
0
;
symNum
<
fp
->
symbols_per_slot
;
symNum
++
)
{
for
(
symNum
=
0
;
symNum
<
fp
->
symbols_per_slot
;
symNum
++
)
{
reset
=
1
;
reset
=
1
;
...
@@ -176,6 +188,11 @@ void nr_init_prs(PHY_VARS_gNB* gNB)
...
@@ -176,6 +188,11 @@ void nr_init_prs(PHY_VARS_gNB* gNB)
uint32_t
pow22
=
1
<<
22
;
uint32_t
pow22
=
1
<<
22
;
uint32_t
pow10
=
1
<<
10
;
uint32_t
pow10
=
1
<<
10
;
c_init1
=
pow22
*
ceil
(
Nid
/
1024
);
c_init1
=
pow22
*
ceil
(
Nid
/
1024
);
c_init2
=
pow10
*
(
slotnum
+
symNum
+
1
)
*
(
2
*
(
Nid
%
1024
)
+
1
);
c_init3
=
Nid
%
1024
;
x2
=
c_init1
+
c_init2
+
c_init3
;
c_init2
=
pow10
*
(
slotNum
+
symNum
+
1
)
*
(
2
*
(
Nid
%
1024
)
+
1
);
c_init2
=
pow10
*
(
slotNum
+
symNum
+
1
)
*
(
2
*
(
Nid
%
1024
)
+
1
);
c_init3
=
Nid
%
1024
;
c_init3
=
Nid
%
1024
;
x2
=
c_init1
+
c_init2
+
c_init3
;
x2
=
c_init1
+
c_init2
+
c_init3
;
...
...
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