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
4f56bf90
Commit
4f56bf90
authored
Nov 30, 2024
by
Sakthivel Velumani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Helper function to get center frequency
from point A.
parent
5ac703b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
executables/nr-ue.c
executables/nr-ue.c
+10
-4
No files found.
executables/nr-ue.c
View file @
4f56bf90
...
...
@@ -558,6 +558,13 @@ void processSlotTX(void *arg)
TracyCZoneEnd
(
ctx
);
}
static
uint64_t
get_carrier_frequency
(
const
int
N_RB
,
const
int
mu
,
const
uint32_t
pointA_freq_khz
)
{
const
uint64_t
bw
=
(
NR_NB_SC_PER_RB
*
N_RB
)
*
MU_SCS
(
mu
);
const
uint64_t
carrier_freq
=
(
pointA_freq_khz
+
bw
/
2
)
*
1000
;
return
carrier_freq
;
}
static
int
UE_dl_preprocessing
(
PHY_VARS_NR_UE
*
UE
,
const
UE_nr_rxtx_proc_t
*
proc
,
int
*
tx_wait_for_dlsch
,
...
...
@@ -584,10 +591,9 @@ static int UE_dl_preprocessing(PHY_VARS_NR_UE *UE,
UE
->
target_Nid_cell
=
UE
->
synch_request
.
synch_req
.
target_Nid_cell
;
UE
->
target_Nid_cell
=
synch_req
->
target_Nid_cell
;
uint64_t
dl_bw
=
(
12
*
fp
->
N_RB_DL
)
*
(
15000
<<
fp
->
numerology_index
);
uint64_t
dl_CarrierFreq
=
(
dl_bw
>>
1
)
+
(
uint64_t
)
UE
->
nrUE_config
.
carrier_config
.
dl_frequency
*
1000
;
uint64_t
ul_bw
=
(
12
*
fp
->
N_RB_UL
)
*
(
15000
<<
fp
->
numerology_index
);
uint64_t
ul_CarrierFreq
=
(
ul_bw
>>
1
)
+
(
uint64_t
)
UE
->
nrUE_config
.
carrier_config
.
uplink_frequency
*
1000
;
const
fapi_nr_ue_carrier_config_t
*
cfg
=
&
UE
->
nrUE_config
.
carrier_config
;
uint64_t
dl_CarrierFreq
=
get_carrier_frequency
(
fp
->
N_RB_DL
,
fp
->
numerology_index
,
cfg
->
dl_frequency
);
uint64_t
ul_CarrierFreq
=
get_carrier_frequency
(
fp
->
N_RB_UL
,
fp
->
numerology_index
,
cfg
->
uplink_frequency
);
if
(
dl_CarrierFreq
!=
fp
->
dl_CarrierFreq
||
ul_CarrierFreq
!=
fp
->
ul_CarrierFreq
)
{
fp
->
dl_CarrierFreq
=
dl_CarrierFreq
;
fp
->
ul_CarrierFreq
=
ul_CarrierFreq
;
...
...
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