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
promise
OpenXG-RAN
Commits
8be18c36
Commit
8be18c36
authored
Jan 15, 2017
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugging for RRU if4p5 TDD
parent
2da964bb
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
17 deletions
+51
-17
openair2/UTIL/LOG/vcd_signal_dumper.c
openair2/UTIL/LOG/vcd_signal_dumper.c
+1
-0
openair2/UTIL/LOG/vcd_signal_dumper.h
openair2/UTIL/LOG/vcd_signal_dumper.h
+1
-0
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
+11
-4
targets/RT/USER/lte-enb.c
targets/RT/USER/lte-enb.c
+30
-8
targets/RT/USER/rru_if4p5_usrp.gtkw
targets/RT/USER/rru_if4p5_usrp.gtkw
+8
-5
No files found.
openair2/UTIL/LOG/vcd_signal_dumper.c
View file @
8be18c36
...
...
@@ -98,6 +98,7 @@ const char* eurecomVariablesNames[] = {
"rxcnt"
,
"trx_ts"
,
"trx_tst"
,
"trx_write_flags"
,
"tx_ts"
,
"rx_ts"
,
"hw_cnt_rx"
,
...
...
openair2/UTIL/LOG/vcd_signal_dumper.h
View file @
8be18c36
...
...
@@ -70,6 +70,7 @@ typedef enum {
VCD_SIGNAL_DUMPER_VARIABLES_RXCNT
,
VCD_SIGNAL_DUMPER_VARIABLES_TRX_TS
,
VCD_SIGNAL_DUMPER_VARIABLES_TRX_TST
,
VCD_SIGNAL_DUMPER_VARIABLES_TRX_WRITE_FLAGS
,
VCD_SIGNAL_DUMPER_VARIABLES_TX_TS
,
VCD_SIGNAL_DUMPER_VARIABLES_RX_TS
,
VCD_SIGNAL_DUMPER_VARIABLES_RX_HWCNT
,
...
...
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
View file @
8be18c36
...
...
@@ -177,17 +177,24 @@ static int trx_usrp_write(openair0_device *device, openair0_timestamp timestamp,
s
->
tx_md
.
time_spec
=
uhd
::
time_spec_t
::
from_ticks
(
timestamp
,
s
->
sample_rate
);
if
(
flags
)
if
(
flags
>
0
)
s
->
tx_md
.
has_time_spec
=
true
;
else
s
->
tx_md
.
has_time_spec
=
false
;
if
(
device
->
openair0_cfg
[
0
].
tx_freq
[
0
]
==
device
->
openair0_cfg
[
0
].
rx_freq
[
0
])
{
// for TDD each write should be considered as a burst to trigger the switch on GPIO
if
(
flags
==
2
)
{
// start of burst
s
->
tx_md
.
start_of_burst
=
true
;
s
->
tx_md
.
end_of_burst
=
false
;
}
else
if
(
flags
==
3
)
{
// end of burst
s
->
tx_md
.
start_of_burst
=
false
;
s
->
tx_md
.
end_of_burst
=
true
;
}
else
{
else
if
(
flags
==
4
)
{
// start and end
s
->
tx_md
.
start_of_burst
=
true
;
s
->
tx_md
.
end_of_burst
=
true
;
}
else
if
(
flags
==
1
)
{
// middle of burst
s
->
tx_md
.
start_of_burst
=
false
;
s
->
tx_md
.
end_of_burst
=
false
;
}
...
...
targets/RT/USER/lte-enb.c
View file @
8be18c36
...
...
@@ -900,25 +900,47 @@ void rx_rf(PHY_VARS_eNB *eNB,int *frame,int *subframe) {
VCD_SIGNAL_DUMPER_DUMP_VARIABLE_BY_NAME
(
VCD_SIGNAL_DUMPER_VARIABLES_TRX_TST
,
(
proc
->
timestamp_rx
+
(
tx_sfoffset
*
fp
->
samples_per_tti
)
-
openair0_cfg
[
0
].
tx_sample_advance
)
&
0xffffffff
);
// prepare tx buffer pointers
if
((
subframe_select
(
fp
,
proc
->
subframe_rx
+
tx_sfoffset
)
==
SF_DL
)
||
(
subframe_select
(
fp
,
proc
->
subframe_rx
+
tx_sfoffset
)
==
SF_S
))
{
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_TRX_WRITE
,
1
);
lte_subframe_t
SF_type
=
subframe_select
(
fp
,(
proc
->
subframe_rx
+
tx_sfoffset
)
%
10
);
lte_subframe_t
prevSF_type
=
subframe_select
(
fp
,(
proc
->
subframe_rx
+
tx_sfoffset
+
9
)
%
10
);
lte_subframe_t
nextSF_type
=
subframe_select
(
fp
,(
proc
->
subframe_rx
+
tx_sfoffset
+
1
)
%
10
);
if
((
SF_type
==
SF_DL
)
||
(
SF_type
==
SF_S
))
{
for
(
i
=
0
;
i
<
fp
->
nb_antennas_tx
;
i
++
)
txp
[
i
]
=
(
void
*
)
&
eNB
->
common_vars
.
txdata
[
0
][
i
][((
proc
->
subframe_rx
+
tx_sfoffset
)
%
10
)
*
fp
->
samples_per_tti
];
int
siglen
=
fp
->
samples_per_tti
,
flags
=
1
;
if
(
SF_type
==
SF_S
)
{
siglen
=
fp
->
dl_symbols_in_S_subframe
*
(
fp
->
ofdm_symbol_size
+
fp
->
nb_prefix_samples0
);
flags
=
3
;
// end of burst
}
if
((
fp
->
frame_type
==
TDD
)
&&
(
SF_type
==
SF_DL
)
&&
(
prevSF_type
==
SF_UL
)
&&
(
nextSF_type
==
SF_DL
))
flags
=
2
;
// start of burst
if
((
fp
->
frame_type
==
TDD
)
&&
(
SF_type
==
SF_DL
)
&&
(
prevSF_type
==
SF_UL
)
&&
(
nextSF_type
==
SF_UL
))
flags
=
4
;
// start of burst and end of burst (only one DL SF between two UL)
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_TRX_WRITE
,
1
);
VCD_SIGNAL_DUMPER_DUMP_VARIABLE_BY_NAME
(
VCD_SIGNAL_DUMPER_VARIABLES_TRX_WRITE_FLAGS
,
flags
);
txs
=
eNB
->
rfdevice
.
trx_write_func
(
&
eNB
->
rfdevice
,
proc
->
timestamp_rx
+
eNB
->
ts_offset
+
(
tx_sfoffset
*
fp
->
samples_per_tti
)
-
openair0_cfg
[
0
].
tx_sample_advance
,
txp
,
fp
->
samples_per_tti
,
siglen
,
fp
->
nb_antennas_tx
,
1
);
flags
);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_TRX_WRITE
,
0
);
if
(
txs
!=
fp
->
samples_per_tti
)
{
if
(
txs
!=
siglen
)
{
LOG_E
(
PHY
,
"TX : Timeout (sent %d/%d)
\n
"
,
txs
,
fp
->
samples_per_tti
);
exit_fun
(
"problem transmitting samples"
);
}
...
...
targets/RT/USER/rru_if4p5_usrp.gtkw
View file @
8be18c36
[*]
[*] GTKWave Analyzer v3.3.58 (w)1999-2014 BSI
[*]
Thu Jan 5 06:19:58
2017
[*]
Sun Jan 15 07:26:50
2017
[*]
[dumpfile] "/tmp/openair_dump_eNB.vcd"
[dumpfile_mtime] "
Thu Jan 5 06:09:13
2017"
[dumpfile_size]
24570356
[dumpfile_mtime] "
Sun Jan 15 07:04:19
2017"
[dumpfile_size]
18140627
[savefile] "/home/uprru1/oai/openairinterface5g/targets/RT/USER/rru_if4p5_usrp.gtkw"
[timestart] 2
3491157
000
[timestart] 2
9977510
000
[size] 1301 716
[pos] 309 0
*-
19
.793451 29983948856 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
*-
21
.793451 29983948856 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
[sst_width] 284
[signals_width] 262
[sst_expanded] 1
...
...
@@ -17,6 +17,9 @@
@28
functions.trx_read
functions.trx_write
@25
variables.trx_write_flags[63:0]
@28
functions.trx_write_if
functions.send_if4
functions.trx_read_if
...
...
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