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
7715db28
Commit
7715db28
authored
Oct 27, 2021
by
Mohsen Ahadi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update nr_gold.c
parent
1f86c34f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
openair1/PHY/NR_REFSIG/nr_gold.c
openair1/PHY/NR_REFSIG/nr_gold.c
+11
-10
No files found.
openair1/PHY/NR_REFSIG/nr_gold.c
View file @
7715db28
...
@@ -154,24 +154,25 @@ void nr_init_csi_rs(PHY_VARS_gNB* gNB, uint32_t Nid)
...
@@ -154,24 +154,25 @@ void nr_init_csi_rs(PHY_VARS_gNB* gNB, uint32_t Nid)
}
}
void
nr_init_prs
(
PHY_VARS_gNB
*
gNB
,
uint32_t
Nid
,
uint32_t
slotnum
,
uint32_t
symNum
)
void
nr_init_prs
(
PHY_VARS_gNB
*
gNB
,
uint32_t
symNum
)
{
{
unsigned
int
x1
,
x2
;
unsigned
int
x1
,
x2
;
uint16_t
Nid
,
i_ssb
,
i_ssb2
;
uint16_t
Nid
,
i_ssb
,
i_ssb2
;
unsigned
char
Lmax
,
l
,
n_hf
,
N_hf
;
//
unsigned char Lmax, l, n_hf, N_hf;
nfapi_nr_config_request_scf_t
*
cfg
=
&
gNB
->
gNB_config
;
nfapi_nr_config_request_scf_t
*
cfg
=
&
gNB
->
gNB_config
;
NR_DL_FRAME_PARMS
*
fp
=
&
gNB
->
frame_parms
;
NR_DL_FRAME_PARMS
*
fp
=
&
gNB
->
frame_parms
;
uint8_t
reset
;
uint8_t
reset
;
uint8_t
slotNum
,
symNum
;
Nid
=
cfg
->
cell_config
.
phy_cell_id
.
value
;
Nid
=
cfg
->
cell_config
.
phy_cell_id
.
value
;
Lmax
=
fp
->
Lmax
;
//
Lmax = fp->Lmax;
N_hf
=
(
Lmax
==
4
)
?
2
:
1
;
//
N_hf = (Lmax == 4)? 2:1;
for
(
n_hf
=
0
;
n_hf
<
N_hf
;
n_hf
++
)
{
for
(
slotNum
=
0
;
slotNum
<
fp
->
slots_per_frame
-
1
;
slotNum
++
)
{
for
(
l
=
0
;
l
<
Lmax
;
l
++
)
{
for
(
symNum
=
0
;
symNum
<
fp
->
symbols_per_slot
-
1
;
symNum
++
)
{
i_ssb
=
l
&
(
Lmax
-
1
);
i_ssb
=
sumNum
&
(
symbols_per_slot
-
1
);
i_ssb2
=
i_ssb
+
(
n_hf
<<
2
);
i_ssb2
=
i_ssb
+
(
slot
<<
2
);
reset
=
1
;
reset
=
1
;
// initial x2 for prs as 38.211
// initial x2 for prs as 38.211
...
@@ -184,8 +185,8 @@ void nr_init_prs(PHY_VARS_gNB* gNB, uint32_t Nid, uint32_t slotnum, uint32_t sym
...
@@ -184,8 +185,8 @@ void nr_init_prs(PHY_VARS_gNB* gNB, uint32_t Nid, uint32_t slotnum, uint32_t sym
x2
=
c_init1
+
c_init2
+
c_init3
;
x2
=
c_init1
+
c_init2
+
c_init3
;
for
(
uint8_t
n
=
0
;
n
<
NR_
PBCH_DMRS
_LENGTH_DWORD
;
n
++
)
{
for
(
uint8_t
n
=
0
;
n
<
NR_
MAX_PRS_INIT
_LENGTH_DWORD
;
n
++
)
{
gNB
->
nr_gold_prs
[
n_hf
][
l
][
n
]
=
lte_gold_generic
(
&
x1
,
&
x2
,
reset
);
gNB
->
nr_gold_prs
[
slotNum
][
symNum
][
n
]
=
lte_gold_generic
(
&
x1
,
&
x2
,
reset
);
reset
=
0
;
reset
=
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