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
lizhongxiao
OpenXG-RAN
Commits
a7db9280
Commit
a7db9280
authored
Dec 19, 2022
by
Roberto Louro Magueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generate SRS sequence only when needed
parent
c6bfb979
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
openair1/PHY/defs_nr_common.h
openair1/PHY/defs_nr_common.h
+1
-0
openair1/SCHED_NR/phy_procedures_nr_gNB.c
openair1/SCHED_NR/phy_procedures_nr_gNB.c
+17
-1
No files found.
openair1/PHY/defs_nr_common.h
View file @
a7db9280
...
@@ -206,6 +206,7 @@ typedef struct {
...
@@ -206,6 +206,7 @@ typedef struct {
uint8_t
k_0_p
[
MAX_NUM_NR_SRS_AP
][
MAX_NUM_NR_SRS_SYMBOLS
];
uint8_t
k_0_p
[
MAX_NUM_NR_SRS_AP
][
MAX_NUM_NR_SRS_SYMBOLS
];
uint8_t
srs_generated_signal_bits
;
uint8_t
srs_generated_signal_bits
;
int32_t
**
srs_generated_signal
;
int32_t
**
srs_generated_signal
;
nfapi_nr_srs_pdu_t
srs_pdu
;
}
nr_srs_info_t
;
}
nr_srs_info_t
;
typedef
struct
{
typedef
struct
{
...
...
openair1/SCHED_NR/phy_procedures_nr_gNB.c
View file @
a7db9280
...
@@ -670,6 +670,20 @@ int fill_srs_channel_matrix(uint8_t *channel_matrix,
...
@@ -670,6 +670,20 @@ int fill_srs_channel_matrix(uint8_t *channel_matrix,
return
0
;
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
)
{
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 */
/* those variables to log T_GNB_PHY_PUCCH_PUSCH_IQ only when we try to decode */
int
pucch_decode_done
=
0
;
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) {
...
@@ -875,7 +889,9 @@ int phy_procedures_gNB_uespec_RX(PHY_VARS_gNB *gNB, int frame_rx, int slot_rx) {
int8_t
snr
;
int8_t
snr
;
start_meas
(
&
gNB
->
generate_srs_stats
);
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
);
stop_meas
(
&
gNB
->
generate_srs_stats
);
start_meas
(
&
gNB
->
get_srs_signal_stats
);
start_meas
(
&
gNB
->
get_srs_signal_stats
);
...
...
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