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
Michael Black
OpenXG-RAN
Commits
7e8dd298
Commit
7e8dd298
authored
Nov 11, 2021
by
rmagueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add SRS debug
parent
dc59ed65
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
openair1/PHY/NR_UE_TRANSPORT/srs_modulation_nr.c
openair1/PHY/NR_UE_TRANSPORT/srs_modulation_nr.c
+24
-0
openair1/SCHED_NR/phy_procedures_nr_gNB.c
openair1/SCHED_NR/phy_procedures_nr_gNB.c
+1
-1
No files found.
openair1/PHY/NR_UE_TRANSPORT/srs_modulation_nr.c
View file @
7e8dd298
...
@@ -47,6 +47,8 @@
...
@@ -47,6 +47,8 @@
#include "PHY/NR_UE_TRANSPORT/srs_modulation_nr.h"
#include "PHY/NR_UE_TRANSPORT/srs_modulation_nr.h"
#undef DEFINE_VARIABLES_SRS_MODULATION_NR_H
#undef DEFINE_VARIABLES_SRS_MODULATION_NR_H
#define SRS_DEBUG
/*******************************************************************
/*******************************************************************
*
*
* NAME : generate_srs
* NAME : generate_srs
...
@@ -429,6 +431,14 @@ int ue_srs_procedures_nr(PHY_VARS_NR_UE *ue, UE_nr_rxtx_proc_t *proc, uint8_t gN
...
@@ -429,6 +431,14 @@ int ue_srs_procedures_nr(PHY_VARS_NR_UE *ue, UE_nr_rxtx_proc_t *proc, uint8_t gN
SRS_ResourceSet_t
*
p_srs_resource_set
=
frame_parms
->
srs_nr
.
p_SRS_ResourceSetList
[
p_srs_nr
->
active_srs_Resource_Set
];
SRS_ResourceSet_t
*
p_srs_resource_set
=
frame_parms
->
srs_nr
.
p_SRS_ResourceSetList
[
p_srs_nr
->
active_srs_Resource_Set
];
int
generate_srs
=
0
;
int
generate_srs
=
0
;
#ifdef SRS_DEBUG
LOG_I
(
NR_PHY
,
"p_srs_nr = 0x%x
\n
"
,
p_srs_nr
);
if
(
p_srs_nr
)
LOG_I
(
NR_PHY
,
"p_srs_nr->number_srs_Resource_Set = %i
\n
"
,
p_srs_nr
->
number_srs_Resource_Set
);
if
(
p_srs_nr
)
LOG_I
(
NR_PHY
,
"p_srs_nr->active_srs_Resource_Set = %i
\n
"
,
p_srs_nr
->
active_srs_Resource_Set
);
LOG_I
(
NR_PHY
,
"p_srs_resource_set = 0x%x
\n
"
,
p_srs_resource_set
);
if
(
p_srs_resource_set
)
LOG_I
(
NR_PHY
,
"p_srs_resource_set->resourceType = %i
\n
"
,
p_srs_resource_set
->
resourceType
);
#endif
/* is there any resource set which has been configurated ? */
/* is there any resource set which has been configurated ? */
if
(
p_srs_nr
->
number_srs_Resource_Set
!=
0
)
{
if
(
p_srs_nr
->
number_srs_Resource_Set
!=
0
)
{
...
@@ -460,6 +470,20 @@ int ue_srs_procedures_nr(PHY_VARS_NR_UE *ue, UE_nr_rxtx_proc_t *proc, uint8_t gN
...
@@ -460,6 +470,20 @@ int ue_srs_procedures_nr(PHY_VARS_NR_UE *ue, UE_nr_rxtx_proc_t *proc, uint8_t gN
int16_t
txptr
=
AMP
;
int16_t
txptr
=
AMP
;
uint16_t
nsymb
=
(
ue
->
frame_parms
.
Ncp
==
0
)
?
14
:
12
;
uint16_t
nsymb
=
(
ue
->
frame_parms
.
Ncp
==
0
)
?
14
:
12
;
uint16_t
symbol_offset
=
(
int
)
ue
->
frame_parms
.
ofdm_symbol_size
*
((
proc
->
nr_slot_tx
*
nsymb
)
+
(
nsymb
-
1
));
uint16_t
symbol_offset
=
(
int
)
ue
->
frame_parms
.
ofdm_symbol_size
*
((
proc
->
nr_slot_tx
*
nsymb
)
+
(
nsymb
-
1
));
#ifdef SRS_DEBUG
LOG_I
(
NR_PHY
,
"nsymb = %i, symbol_offset = %i
\n
"
,
nsymb
,
symbol_offset
);
LOG_I
(
NR_PHY
,
"p_srs_resource_set->srs_ResourceSetId = %i
\n
"
,
p_srs_resource_set
->
srs_ResourceSetId
);
LOG_I
(
NR_PHY
,
"p_srs_resource_set->number_srs_Resource = %i"
,
p_srs_resource_set
->
number_srs_Resource
);
LOG_I
(
NR_PHY
,
"p_srs_resource_set->resourceType = %i
\n
"
,
p_srs_resource_set
->
resourceType
);
LOG_I
(
NR_PHY
,
"p_srs_resource_set->p_srs_ResourceList[0]->SRS_Periodicity = %i
\n
"
,
p_srs_resource_set
->
p_srs_ResourceList
[
0
]
->
SRS_Periodicity
);
LOG_I
(
NR_PHY
,
"p_srs_resource_set->p_srs_ResourceList[0]->combOffset = %i
\n
"
,
p_srs_resource_set
->
p_srs_ResourceList
[
0
]
->
combOffset
);
LOG_I
(
NR_PHY
,
"p_srs_resource_set->p_srs_ResourceList[0]->freqDomainPosition = %i
\n
"
,
p_srs_resource_set
->
p_srs_ResourceList
[
0
]
->
freqDomainPosition
);
LOG_I
(
NR_PHY
,
"p_srs_resource_set->p_srs_ResourceList[0]->freqHopping_b_SRS = %i
\n
"
,
p_srs_resource_set
->
p_srs_ResourceList
[
0
]
->
freqHopping_b_SRS
);
LOG_I
(
NR_PHY
,
"p_srs_resource_set->p_srs_ResourceList[0]->freqHopping_b_hop = %i
\n
"
,
p_srs_resource_set
->
p_srs_ResourceList
[
0
]
->
freqHopping_b_hop
);
LOG_I
(
NR_PHY
,
"p_srs_resource_set->p_srs_ResourceList[0]->freqHopping_c_SRS = %i
\n
"
,
p_srs_resource_set
->
p_srs_ResourceList
[
0
]
->
freqHopping_c_SRS
);
#endif
if
(
generate_srs_nr
(
p_srs_resource_set
,
frame_parms
,
&
ue
->
common_vars
.
txdataF
[
gNB_id
][
symbol_offset
],
txptr
,
proc
)
==
0
)
{
if
(
generate_srs_nr
(
p_srs_resource_set
,
frame_parms
,
&
ue
->
common_vars
.
txdataF
[
gNB_id
][
symbol_offset
],
txptr
,
proc
)
==
0
)
{
return
0
;
return
0
;
}
}
...
...
openair1/SCHED_NR/phy_procedures_nr_gNB.c
View file @
7e8dd298
...
@@ -202,7 +202,7 @@ void phy_procedures_gNB_TX(processingData_L1tx_t *msgTx,
...
@@ -202,7 +202,7 @@ void phy_procedures_gNB_TX(processingData_L1tx_t *msgTx,
void
srs_procedures_nr
(
PHY_VARS_gNB
*
gNB
,
int
frame_rx
,
int
slot_rx
)
{
void
srs_procedures_nr
(
PHY_VARS_gNB
*
gNB
,
int
frame_rx
,
int
slot_rx
)
{
if
(
is_srs_occasion_nr
(
gNB
->
frame_parms
,
frame_rx
,
slot_rx
))
{
if
(
is_srs_occasion_nr
(
gNB
->
frame_parms
,
frame_rx
,
slot_rx
))
{
LOG_W
(
NR_PHY
,
"SRS procedures are not implemented yet!"
);
LOG_W
(
NR_PHY
,
"SRS procedures are not implemented yet!
\n
"
);
}
}
}
}
...
...
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