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
spbro
OpenXG-RAN
Commits
b2c49fbc
Commit
b2c49fbc
authored
Sep 30, 2024
by
Bartosz Podrygajlo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add time-domain scope to gNB imscope.
parent
80f90b55
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
3 deletions
+17
-3
executables/nr-ru.c
executables/nr-ru.c
+1
-0
openair1/PHY/TOOLS/imscope/imscope.cpp
openair1/PHY/TOOLS/imscope/imscope.cpp
+11
-0
openair1/PHY/TOOLS/phy_scope_interface.h
openair1/PHY/TOOLS/phy_scope_interface.h
+3
-2
openair1/PHY/defs_RU.h
openair1/PHY/defs_RU.h
+2
-1
No files found.
executables/nr-ru.c
View file @
b2c49fbc
...
...
@@ -622,6 +622,7 @@ static void rx_rf(RU_t *ru, int *frame, int *slot)
rxp
,
samples_per_slot
,
ru
->
nb_rx
);
gNBscopeCopy
(
ru
,
gNbTimeDomainSamples
,
rxp
[
0
],
sizeof
(
c16_t
),
1
,
samples_per_slot
,
0
);
}
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_TRX_READ
,
0
);
...
...
openair1/PHY/TOOLS/imscope/imscope.cpp
View file @
b2c49fbc
...
...
@@ -581,6 +581,16 @@ void ShowGnbScope(PHY_VARS_gNB *gNB, float t)
pusch_llr_plot
->
Draw
(
t
,
gNBPuschLlr
,
"PUSCH LLR"
);
ImGui
::
TreePop
();
}
if
(
ImGui
::
TreeNode
(
"Time domain samples"
))
{
static
auto
iq_data
=
new
IQData
();
static
auto
time_domain_iq
=
new
IQHist
(
"Time domain samples"
);
bool
new_data
=
false
;
if
(
time_domain_iq
->
ShouldReadData
())
{
new_data
=
iq_data
->
TryCollect
(
&
scope_array
[
gNbTimeDomainSamples
],
t
,
time_domain_iq
->
GetEpsilon
());
}
time_domain_iq
->
Draw
(
iq_data
,
t
,
new_data
);
ImGui
::
TreePop
();
}
}
void
*
imscope_thread
(
void
*
data_void_ptr
)
...
...
@@ -751,6 +761,7 @@ extern "C" void imscope_autoinit(void *dataptr)
scope
->
copyDataUnsafeWithOffset
=
copyDataUnsafeWithOffset
;
scope
->
unlockScopeData
=
unlockScopeData
;
scope_params
->
gNB
->
scopeData
=
scope
;
scope_params
->
ru
->
scopeData
=
scope
;
}
else
{
PHY_VARS_NR_UE
*
ue
=
(
PHY_VARS_NR_UE
*
)
dataptr
;
scopeData_t
*
scope
=
(
scopeData_t
*
)
calloc
(
1
,
sizeof
(
scopeData_t
));
...
...
openair1/PHY/TOOLS/phy_scope_interface.h
View file @
b2c49fbc
...
...
@@ -75,6 +75,7 @@ enum scopeDataType {
gNBPuschLlr
,
ueTimeDomainSamples
,
ueTimeDomainSamplesBeforeSync
,
gNbTimeDomainSamples
,
EXTRA_SCOPE_TYPES
};
...
...
@@ -129,12 +130,12 @@ void copyData(void *, enum scopeDataType type, void *dataIn, int elementSz, int
}
#define gNBscopeCopyWithMetadata(gnb, type, ...) \
if (gnb->scopeData) { \
((scopeData_t *)gnb->scopeData)->copyData((scopeData_t *)g
NB
->scopeData, type, ##__VA_ARGS__); \
((scopeData_t *)gnb->scopeData)->copyData((scopeData_t *)g
nb
->scopeData, type, ##__VA_ARGS__); \
}
#define gNBscopeCopy(gnb, type, ...) \
if (gnb->scopeData) { \
metadata mt = {.slot = -1, .frame = -1}; \
((scopeData_t *)gnb->scopeData)->copyData((scopeData_t *)g
NB
->scopeData, type, ##__VA_ARGS__, &mt); \
((scopeData_t *)gnb->scopeData)->copyData((scopeData_t *)g
nb
->scopeData, type, ##__VA_ARGS__, &mt); \
}
#define GnbScopeUpdate(gnb, type, numElt) \
if (gnb->scopeData) \
...
...
openair1/PHY/defs_RU.h
View file @
b2c49fbc
...
...
@@ -661,7 +661,8 @@ typedef struct RU_t_s {
/// number of cores for RU ThreadPool
int
num_tpcores
;
/// structure for analyzing high-level RT measurements
rt_ru_profiling_t
rt_ru_profiling
;
rt_ru_profiling_t
rt_ru_profiling
;
void
*
scopeData
;
}
RU_t
;
...
...
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