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
3bb82a02
Commit
3bb82a02
authored
Mar 26, 2020
by
cig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UE: N_TA_offset configuration depending on SCS and N_RB_DL
parent
04a9c72d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
7 deletions
+41
-7
executables/nr-uesoftmodem.c
executables/nr-uesoftmodem.c
+41
-7
No files found.
executables/nr-uesoftmodem.c
View file @
3bb82a02
...
@@ -759,15 +759,49 @@ int main( int argc, char **argv ) {
...
@@ -759,15 +759,49 @@ int main( int argc, char **argv ) {
UE
[
CC_id
]
->
rx_total_gain_dB
=
(
int
)
rx_gain
[
CC_id
][
0
]
+
rx_gain_off
;
UE
[
CC_id
]
->
rx_total_gain_dB
=
(
int
)
rx_gain
[
CC_id
][
0
]
+
rx_gain_off
;
UE
[
CC_id
]
->
tx_power_max_dBm
=
tx_max_power
[
CC_id
];
UE
[
CC_id
]
->
tx_power_max_dBm
=
tx_max_power
[
CC_id
];
if
(
frame_parms
[
CC_id
]
->
frame_type
==
FDD
)
{
if
(
UE
[
CC_id
]
->
frame_parms
.
frame_type
==
FDD
)
{
UE
[
CC_id
]
->
N_TA_offset
=
0
;
UE
[
CC_id
]
->
N_TA_offset
=
0
;
}
else
{
}
else
{
if
(
frame_parms
[
CC_id
]
->
N_RB_DL
==
100
)
int
N_RB
=
UE
[
CC_id
]
->
frame_parms
.
N_RB_DL
;
UE
[
CC_id
]
->
N_TA_offset
=
624
;
int
N_TA_offset
=
UE
[
CC_id
]
->
frame_parms
.
ul_CarrierFreq
<
6e9
?
400
:
431
;
// reference samples for 25600Tc @ 30.72 Ms/s for FR1, same @ 61.44 Ms/s for FR2
else
if
(
frame_parms
[
CC_id
]
->
N_RB_DL
==
50
)
double
factor
=
1
;
UE
[
CC_id
]
->
N_TA_offset
=
624
/
2
;
switch
(
UE
[
CC_id
]
->
frame_parms
.
numerology_index
)
{
else
if
(
frame_parms
[
CC_id
]
->
N_RB_DL
==
25
)
case
0
:
//15 kHz scs
UE
[
CC_id
]
->
N_TA_offset
=
624
/
4
;
AssertFatal
(
N_TA_offset
==
400
,
"scs_common 15kHz only for FR1
\n
"
);
if
(
N_RB
<=
25
)
factor
=
.
25
;
// 7.68 Ms/s
else
if
(
N_RB
<=
50
)
factor
=
.
5
;
// 15.36 Ms/s
else
if
(
N_RB
<=
75
)
factor
=
1
.
0
;
// 30.72 Ms/s
else
if
(
N_RB
<=
100
)
factor
=
1
.
0
;
// 30.72 Ms/s
else
AssertFatal
(
1
==
0
,
"Too many PRBS for mu=0
\n
"
);
break
;
case
1
:
//30 kHz sc
AssertFatal
(
N_TA_offset
==
400
,
"scs_common 30kHz only for FR1
\n
"
);
if
(
N_RB
<=
106
)
factor
=
2
.
0
;
// 61.44 Ms/s
else
if
(
N_RB
<=
275
)
factor
=
4
.
0
;
// 122.88 Ms/s
break
;
case
2
:
//60 kHz scs
AssertFatal
(
1
==
0
,
"scs_common should not be 60 kHz
\n
"
);
break
;
case
3
:
//120 kHz scs
AssertFatal
(
N_TA_offset
==
431
,
"scs_common 120kHz only for FR2
\n
"
);
break
;
case
4
:
//240 kHz scs
AssertFatal
(
1
==
0
,
"scs_common should not be 60 kHz
\n
"
);
if
(
N_RB
<=
32
)
factor
=
1
.
0
;
// 61.44 Ms/s
else
if
(
N_RB
<=
66
)
factor
=
2
.
0
;
// 122.88 Ms/s
else
AssertFatal
(
1
==
0
,
"N_RB %d is too big for curretn FR2 implementation
\n
"
,
N_RB
);
break
;
if
(
N_RB
==
100
)
UE
[
CC_id
]
->
N_TA_offset
=
624
;
else
if
(
N_RB
==
50
)
UE
[
CC_id
]
->
N_TA_offset
=
624
/
2
;
else
if
(
N_RB
==
25
)
UE
[
CC_id
]
->
N_TA_offset
=
624
/
4
;
}
if
(
UE
[
CC_id
]
->
frame_parms
.
threequarter_fs
==
1
)
factor
=
factor
*
.
75
;
UE
[
CC_id
]
->
N_TA_offset
=
(
int
)(
N_TA_offset
*
factor
);
LOG_I
(
PHY
,
"UE %d Setting N_TA_offset to %d samples (factor %f, UL Freq %d, N_RB %d)
\n
"
,
UE
[
CC_id
]
->
Mod_id
,
UE
[
CC_id
]
->
N_TA_offset
,
factor
,
UE
[
CC_id
]
->
frame_parms
.
ul_CarrierFreq
,
N_RB
);
}
}
}
}
...
...
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