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
f37f6053
Commit
f37f6053
authored
Sep 08, 2020
by
Rakesh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding is_ssb_in_slot to check whether ssb is present in the slot as per the bitmap from rrc
parent
3959c35e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
0 deletions
+54
-0
openair1/SCHED_NR_UE/defs.h
openair1/SCHED_NR_UE/defs.h
+1
-0
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
+53
-0
No files found.
openair1/SCHED_NR_UE/defs.h
View file @
f37f6053
...
...
@@ -387,6 +387,7 @@ void set_tx_harq_id(NR_UE_ULSCH_t *ulsch, int harq_pid, int slot_tx);
int
get_tx_harq_id
(
NR_UE_ULSCH_t
*
ulsch
,
int
slot_tx
);
int
is_pbch_in_slot
(
fapi_nr_config_request_t
*
config
,
int
frame
,
int
slot
,
NR_DL_FRAME_PARMS
*
fp
);
int
is_ssb_in_slot
(
fapi_nr_config_request_t
*
config
,
int
frame
,
int
slot
,
NR_DL_FRAME_PARMS
*
fp
);
/*@}*/
...
...
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
View file @
f37f6053
...
...
@@ -3999,6 +3999,59 @@ void *UE_thread_slot1_dl_processing(void *arg) {
}
#endif
int
is_ssb_in_slot
(
fapi_nr_config_request_t
*
config
,
int
frame
,
int
slot
,
NR_DL_FRAME_PARMS
*
fp
)
{
int
mu
=
fp
->
numerology_index
;
//uint8_t half_frame_index = fp->half_frame_bit;
//uint8_t i_ssb = fp->ssb_index;
uint8_t
Lmax
=
fp
->
Lmax
;
if
(
!
(
frame
%
(
1
<<
(
config
->
ssb_table
.
ssb_period
-
1
)))){
if
(
Lmax
<=
8
)
{
if
(
slot
<=
3
&&
(((
config
->
ssb_table
.
ssb_mask_list
[
0
].
ssb_mask
<<
2
*
slot
)
&
0x80000000
)
==
0x80000000
||
((
config
->
ssb_table
.
ssb_mask_list
[
0
].
ssb_mask
<<
(
2
*
slot
+
1
))
&
0x80000000
)
==
0x80000000
))
return
1
;
else
return
0
;
}
else
if
(
Lmax
==
64
)
{
if
(
mu
==
NR_MU_3
){
if
(
slot
>=
0
&&
slot
<=
7
){
if
(((
config
->
ssb_table
.
ssb_mask_list
[
0
].
ssb_mask
<<
2
*
slot
)
&
0x80000000
)
==
0x80000000
||
((
config
->
ssb_table
.
ssb_mask_list
[
0
].
ssb_mask
<<
(
2
*
slot
+
1
))
&
0x80000000
)
==
0x80000000
)
return
1
;
else
return
0
;
}
else
if
(
slot
>=
10
&&
slot
<=
17
){
if
(((
config
->
ssb_table
.
ssb_mask_list
[
0
].
ssb_mask
<<
2
*
(
slot
-
2
))
&
0x80000000
)
==
0x80000000
||
((
config
->
ssb_table
.
ssb_mask_list
[
0
].
ssb_mask
<<
(
2
*
(
slot
-
2
)
+
1
))
&
0x80000000
)
==
0x80000000
)
return
1
;
else
return
0
;
}
else
if
(
slot
>=
20
&&
slot
<=
27
){
if
(((
config
->
ssb_table
.
ssb_mask_list
[
1
].
ssb_mask
<<
2
*
(
slot
-
20
))
&
0x80000000
)
==
0x80000000
||
((
config
->
ssb_table
.
ssb_mask_list
[
1
].
ssb_mask
<<
(
2
*
(
slot
-
20
)
+
1
))
&
0x80000000
)
==
0x80000000
)
return
1
;
else
return
0
;
}
else
if
(
slot
>=
30
&&
slot
<=
37
){
if
(((
config
->
ssb_table
.
ssb_mask_list
[
1
].
ssb_mask
<<
2
*
(
slot
-
22
))
&
0x80000000
)
==
0x80000000
||
((
config
->
ssb_table
.
ssb_mask_list
[
1
].
ssb_mask
<<
(
2
*
(
slot
-
22
)
+
1
))
&
0x80000000
)
==
0x80000000
)
return
1
;
else
return
0
;
}
else
return
0
;
}
else
if
(
mu
==
NR_MU_4
)
{
AssertFatal
(
0
==
1
,
"not implemented for mu = %d yet
\n
"
,
mu
);
}
else
AssertFatal
(
0
==
1
,
"Invalid numerology index %d for the synchronization block
\n
"
,
mu
);
}
else
AssertFatal
(
0
==
1
,
"Invalid Lmax %d for the synchronization block
\n
"
,
Lmax
);
}
else
return
0
;
}
int
is_pbch_in_slot
(
fapi_nr_config_request_t
*
config
,
int
frame
,
int
slot
,
NR_DL_FRAME_PARMS
*
fp
)
{
...
...
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