Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
openairinterface5G
Commits
a7db9280
Commit
a7db9280
authored
2 years ago
by
Roberto Louro Magueta
Browse files
Options
Downloads
Patches
Plain Diff
Generate SRS sequence only when needed
parent
c6bfb979
No related branches found
No related tags found
2 merge requests
!1906
integration_2023_w02
,
!1874
Processing time optimization for SRS
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
openair1/PHY/defs_nr_common.h
+1
-0
1 addition, 0 deletions
openair1/PHY/defs_nr_common.h
openair1/SCHED_NR/phy_procedures_nr_gNB.c
+17
-1
17 additions, 1 deletion
openair1/SCHED_NR/phy_procedures_nr_gNB.c
with
18 additions
and
1 deletion
openair1/PHY/defs_nr_common.h
+
1
−
0
View file @
a7db9280
...
...
@@ -206,6 +206,7 @@ typedef struct {
uint8_t
k_0_p
[
MAX_NUM_NR_SRS_AP
][
MAX_NUM_NR_SRS_SYMBOLS
];
uint8_t
srs_generated_signal_bits
;
int32_t
**
srs_generated_signal
;
nfapi_nr_srs_pdu_t
srs_pdu
;
}
nr_srs_info_t
;
typedef
struct
{
...
...
This diff is collapsed.
Click to expand it.
openair1/SCHED_NR/phy_procedures_nr_gNB.c
+
17
−
1
View file @
a7db9280
...
...
@@ -670,6 +670,20 @@ int fill_srs_channel_matrix(uint8_t *channel_matrix,
return
0
;
}
int
check_srs_pdu
(
const
nfapi_nr_srs_pdu_t
*
srs_pdu
,
nfapi_nr_srs_pdu_t
*
saved_srs_pdu
)
{
if
(
saved_srs_pdu
->
bwp_start
==
srs_pdu
->
bwp_start
&&
saved_srs_pdu
->
bwp_size
==
srs_pdu
->
bwp_size
&&
saved_srs_pdu
->
num_ant_ports
==
srs_pdu
->
num_ant_ports
&&
saved_srs_pdu
->
time_start_position
==
srs_pdu
->
time_start_position
&&
saved_srs_pdu
->
num_symbols
==
srs_pdu
->
num_symbols
&&
saved_srs_pdu
->
config_index
==
srs_pdu
->
config_index
)
{
return
1
;
}
*
saved_srs_pdu
=
*
srs_pdu
;
return
0
;
}
int
phy_procedures_gNB_uespec_RX
(
PHY_VARS_gNB
*
gNB
,
int
frame_rx
,
int
slot_rx
)
{
/* those variables to log T_GNB_PHY_PUCCH_PUSCH_IQ only when we try to decode */
int
pucch_decode_done
=
0
;
...
...
@@ -875,7 +889,9 @@ int phy_procedures_gNB_uespec_RX(PHY_VARS_gNB *gNB, int frame_rx, int slot_rx) {
int8_t
snr
;
start_meas
(
&
gNB
->
generate_srs_stats
);
generate_srs_nr
(
srs_pdu
,
frame_parms
,
gNB
->
nr_srs_info
[
i
]
->
srs_generated_signal
,
0
,
gNB
->
nr_srs_info
[
i
],
AMP
,
frame_rx
,
slot_rx
);
if
(
check_srs_pdu
(
srs_pdu
,
&
gNB
->
nr_srs_info
[
i
]
->
srs_pdu
)
==
0
)
{
generate_srs_nr
(
srs_pdu
,
frame_parms
,
gNB
->
nr_srs_info
[
i
]
->
srs_generated_signal
,
0
,
gNB
->
nr_srs_info
[
i
],
AMP
,
frame_rx
,
slot_rx
);
}
stop_meas
(
&
gNB
->
generate_srs_stats
);
start_meas
(
&
gNB
->
get_srs_signal_stats
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment