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
alex037yang
OpenXG-RAN
Commits
eda3a76e
Commit
eda3a76e
authored
Feb 13, 2020
by
Francesco Mani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix in function to read prach tables
parent
f7611d12
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
17 deletions
+12
-17
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
+10
-16
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.h
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.h
+2
-1
No files found.
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
View file @
eda3a76e
...
@@ -820,25 +820,19 @@ int64_t table_6_3_3_2_4_prachConfig_Index [256][10] = {
...
@@ -820,25 +820,19 @@ int64_t table_6_3_3_2_4_prachConfig_Index [256][10] = {
int
get_nr_prach_info_from_index
(
uint8_t
index
,
int
get_nr_prach_info_from_index
(
uint8_t
index
,
int
frame
,
int
frame
,
int
slot
,
int
slot
,
uint
64_t
frequency
,
uint
32_t
pointa
,
uint8_t
mu
,
uint8_t
mu
,
uint8_t
unpaired
,
uint16_t
*
format
,
uint16_t
*
format
,
uint8_t
*
start_symbol
,
uint8_t
*
start_symbol
,
uint8_t
*
N_t_slot
,
uint8_t
*
N_t_slot
,
uint8_t
*
N_dur
)
{
uint8_t
*
N_dur
)
{
uint16_t
band
=
0
;
int32_t
offset
=
0
;
lte_frame_type_t
unpaired
=
0
;
int
x
,
y
;
int
x
,
y
;
int64_t
s_map
;
int64_t
s_map
;
uint8_t
format2
=
0xff
;
uint8_t
format2
=
0xff
;
get_band
(
frequency
,
if
(
pointa
>
2016666
)
{
//FR2
&
band
,
&
offset
,
&
unpaired
);
if
(
band
>
200
)
{
//FR2
int
y2
;
int
y2
;
uint8_t
slot_60khz
;
uint8_t
slot_60khz
;
x
=
table_6_3_3_2_4_prachConfig_Index
[
index
][
2
];
x
=
table_6_3_3_2_4_prachConfig_Index
[
index
][
2
];
...
@@ -850,8 +844,8 @@ int get_nr_prach_info_from_index(uint8_t index,
...
@@ -850,8 +844,8 @@ int get_nr_prach_info_from_index(uint8_t index,
s_map
=
table_6_3_3_2_4_prachConfig_Index
[
index
][
5
];
s_map
=
table_6_3_3_2_4_prachConfig_Index
[
index
][
5
];
if
(
(
s_map
>>
slot_60khz
)
&
0x01
)
{
if
(
(
s_map
>>
slot_60khz
)
&
0x01
)
{
if
(
mu
==
3
)
{
if
(
mu
==
3
)
{
if
(
(
table_6_3_3_2_4_prachConfig_Index
[
index
][
7
]
==
1
)
&&
(
slot
%
2
==
1
)
)
if
(
(
table_6_3_3_2_4_prachConfig_Index
[
index
][
7
]
==
1
)
&&
(
slot
%
2
==
0
)
)
return
0
;
// no prach in
odd
slots @ 120kHz for 1 prach per 60khz slot
return
0
;
// no prach in
even
slots @ 120kHz for 1 prach per 60khz slot
}
}
*
start_symbol
=
table_6_3_3_2_4_prachConfig_Index
[
index
][
6
];
*
start_symbol
=
table_6_3_3_2_4_prachConfig_Index
[
index
][
6
];
*
N_t_slot
=
table_6_3_3_2_4_prachConfig_Index
[
index
][
8
];
*
N_t_slot
=
table_6_3_3_2_4_prachConfig_Index
[
index
][
8
];
...
@@ -877,8 +871,8 @@ int get_nr_prach_info_from_index(uint8_t index,
...
@@ -877,8 +871,8 @@ int get_nr_prach_info_from_index(uint8_t index,
s_map
=
table_6_3_3_2_3_prachConfig_Index
[
index
][
4
];
s_map
=
table_6_3_3_2_3_prachConfig_Index
[
index
][
4
];
if
(
(
s_map
>>
subframe
)
&
0x01
)
{
if
(
(
s_map
>>
subframe
)
&
0x01
)
{
if
(
mu
==
1
)
{
if
(
mu
==
1
)
{
if
(
(
table_6_3_3_2_3_prachConfig_Index
[
index
][
6
]
==
1
)
&&
(
slot
%
2
==
1
)
)
if
(
(
table_6_3_3_2_3_prachConfig_Index
[
index
][
6
]
==
1
)
&&
(
slot
%
2
==
0
)
)
return
0
;
// no prach in
odd
slots @ 30kHz for 1 prach per subframe
return
0
;
// no prach in
even
slots @ 30kHz for 1 prach per subframe
}
}
*
start_symbol
=
table_6_3_3_2_3_prachConfig_Index
[
index
][
5
];
*
start_symbol
=
table_6_3_3_2_3_prachConfig_Index
[
index
][
5
];
*
N_t_slot
=
table_6_3_3_2_3_prachConfig_Index
[
index
][
7
];
*
N_t_slot
=
table_6_3_3_2_3_prachConfig_Index
[
index
][
7
];
...
@@ -902,8 +896,8 @@ int get_nr_prach_info_from_index(uint8_t index,
...
@@ -902,8 +896,8 @@ int get_nr_prach_info_from_index(uint8_t index,
s_map
=
table_6_3_3_2_2_prachConfig_Index
[
index
][
4
];
s_map
=
table_6_3_3_2_2_prachConfig_Index
[
index
][
4
];
if
(
(
s_map
>>
subframe
)
&
0x01
)
{
if
(
(
s_map
>>
subframe
)
&
0x01
)
{
if
(
mu
==
1
)
{
if
(
mu
==
1
)
{
if
(
(
table_6_3_3_2_2_prachConfig_Index
[
index
][
6
]
==
1
)
&&
(
slot
%
2
==
1
)
)
if
(
(
table_6_3_3_2_2_prachConfig_Index
[
index
][
6
]
==
1
)
&&
(
slot
%
2
==
0
)
)
return
0
;
// no prach in
odd
slots @ 30kHz for 1 prach per subframe
return
0
;
// no prach in
even
slots @ 30kHz for 1 prach per subframe
}
}
*
start_symbol
=
table_6_3_3_2_2_prachConfig_Index
[
index
][
5
];
*
start_symbol
=
table_6_3_3_2_2_prachConfig_Index
[
index
][
5
];
*
N_t_slot
=
table_6_3_3_2_2_prachConfig_Index
[
index
][
7
];
*
N_t_slot
=
table_6_3_3_2_2_prachConfig_Index
[
index
][
7
];
...
...
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.h
View file @
eda3a76e
...
@@ -45,8 +45,9 @@ int16_t fill_dmrs_mask(NR_PDSCH_Config_t *pdsch_Config,int dmrs_TypeA_Position,i
...
@@ -45,8 +45,9 @@ int16_t fill_dmrs_mask(NR_PDSCH_Config_t *pdsch_Config,int dmrs_TypeA_Position,i
int
get_nr_prach_info_from_index
(
uint8_t
index
,
int
get_nr_prach_info_from_index
(
uint8_t
index
,
int
frame
,
int
frame
,
int
slot
,
int
slot
,
uint
64_t
frequency
,
uint
32_t
pointa
,
uint8_t
mu
,
uint8_t
mu
,
uint8_t
unpaired
,
uint16_t
*
format
,
uint16_t
*
format
,
uint8_t
*
start_symbol
,
uint8_t
*
start_symbol
,
uint8_t
*
N_t_slot
,
uint8_t
*
N_t_slot
,
...
...
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