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
a907d3d2
Commit
a907d3d2
authored
Mar 30, 2022
by
rakesh mundlamuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
beam switching logic for sivers
parent
f85ccaa0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
executables/nr-ru.c
executables/nr-ru.c
+16
-0
No files found.
executables/nr-ru.c
View file @
a907d3d2
...
...
@@ -748,6 +748,7 @@ void tx_rf(RU_t *ru,int frame,int slot, uint64_t timestamp) {
// bit 11 enables the gpio programming
// currently we switch beams every 10 slots (should = 1 TDD period in FR2) and we take the beam index of the first symbol of the first slot of this period
int
beam
=
0
;
int
BF_RST
,
BF_INC
=-
1
,
BF_RTN
=
0
;
if
(
slot
%
10
==
0
)
{
if
(
ru
->
common
.
beam_id
&&
(
ru
->
common
.
beam_id
[
0
][
slot
*
fp
->
symbols_per_slot
]
<
8
))
{
...
...
@@ -755,6 +756,21 @@ void tx_rf(RU_t *ru,int frame,int slot, uint64_t timestamp) {
}
}
// reset condition
if
(
slot
==
0
){
BF_RST
=
1
;
}
else
{
BF_RST
=
0
;
}
// beam increment condition. Here we are incrementing for every 10 slots
if
(
slot
!=
0
&&
slot
%
10
==
0
){
BF_INC
=
1
;
}
else
if
(
slot
==
0
||
slot
%
10
==
1
)
{
BF_INC
=
0
;
}
if
(
BF_INC
!=-
1
)
beam
=
BF_RST
|
BF_INC
<<
1
|
BF_RTN
<<
2
|
8
;
/*
if (slot==0 || slot==40) beam=0|8;
if (slot==10 || slot==50) beam=1|8;
...
...
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