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
86ebebf3
Commit
86ebebf3
authored
Mar 26, 2024
by
Laurent THOMAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix merge conflicts
parent
9a4294eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
openair1/PHY/NR_UE_TRANSPORT/nr_initial_sync.c
openair1/PHY/NR_UE_TRANSPORT/nr_initial_sync.c
+5
-5
No files found.
openair1/PHY/NR_UE_TRANSPORT/nr_initial_sync.c
View file @
86ebebf3
...
...
@@ -57,7 +57,7 @@ int cnt=0;
typedef
struct
NR_UE_SSB
{
uint
i_ssb
;
// i_ssb between 0 and 7 (it corresponds to ssb_index only for Lmax=4,8)
uint
n_hf
;
// n_hf = 0,1 for Lmax =4 or n_hf = 0 for Lmax =8,64
uint32_t
metric
;
// metric to order SSB hypothesis
double
metric
;
// metric to order SSB hypothesis
}
NR_UE_SSB
;
static
int
ssb_sort
(
const
void
*
a
,
const
void
*
b
)
...
...
@@ -81,12 +81,11 @@ static bool nr_pbch_detection(const UE_nr_rxtx_proc_t *proc,
for
(
int
hf
=
0
;
hf
<
N_hf
;
hf
++
)
{
for
(
int
l
=
0
;
l
<
N_L
;
l
++
)
{
// computing correlation between received DMRS symbols and transmitted sequence for current i_ssb and n_hf
c
32
_t
cumul
=
{
0
};
c
d
_t
cumul
=
{
0
};
for
(
int
i
=
pbch_initial_symbol
;
i
<
pbch_initial_symbol
+
3
;
i
++
)
{
c32_t
meas
=
nr_pbch_dmrs_correlation
(
ue
,
proc
,
i
,
i
-
pbch_initial_symbol
,
ue
->
nr_gold_pbch
[
hf
][
l
],
rxdataF
);
csum
(
cumul
,
cumul
,
meas
);
}
// initialization of structure
*
current_ssb
=
(
NR_UE_SSB
){.
i_ssb
=
l
,
.
n_hf
=
hf
,
.
metric
=
squaredMod
(
cumul
)};
current_ssb
++
;
}
...
...
@@ -126,12 +125,13 @@ static bool nr_pbch_detection(const UE_nr_rxtx_proc_t *proc,
1
,
1
);
}
return
false
;
LOG_I
(
PHY
,
"[UE%d] Initial sync: pbch decoded sucessfully, ssb index %d
\n
"
,
ue
->
Mod_id
,
frame_parms
->
ssb_index
);
return
true
;
}
}
LOG_W
(
PHY
,
"[UE%d] Initial sync: pbch not decoded, ssb index %d
\n
"
,
ue
->
Mod_id
,
frame_parms
->
ssb_index
);
return
tru
e
;
return
fals
e
;
}
nr_initial_sync_t
nr_initial_sync
(
UE_nr_rxtx_proc_t
*
proc
,
PHY_VARS_NR_UE
*
ue
,
int
n_frames
,
int
sa
)
...
...
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