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
43327686
Commit
43327686
authored
Feb 17, 2017
by
Xiwen JIANG
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TDD workaround (unfinished)
parent
22868cc1
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
41 additions
and
28 deletions
+41
-28
openair1/PHY/INIT/lte_init.c
openair1/PHY/INIT/lte_init.c
+3
-0
openair1/PHY/LTE_TRANSPORT/prach.c
openair1/PHY/LTE_TRANSPORT/prach.c
+6
-1
openair1/PHY/MODULATION/gen_1_4_fs.m
openair1/PHY/MODULATION/gen_1_4_fs.m
+5
-3
openair1/PHY/MODULATION/ul_1_4_fs.c
openair1/PHY/MODULATION/ul_1_4_fs.c
+4
-4
openair1/SCHED/phy_procedures_lte_eNb.c
openair1/SCHED/phy_procedures_lte_eNb.c
+9
-0
targets/ARCH/EXMIMO/USERSPACE/LIB/openair0_lib.c
targets/ARCH/EXMIMO/USERSPACE/LIB/openair0_lib.c
+5
-5
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band38.tm1.exmimo2.conf
...PROJECTS/GENERIC-LTE-EPC/CONF/enb.band38.tm1.exmimo2.conf
+1
-1
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band38.tm7.exmimo2.conf
...PROJECTS/GENERIC-LTE-EPC/CONF/enb.band38.tm7.exmimo2.conf
+1
-1
targets/RT/USER/eNB_exmimo2.gtkw
targets/RT/USER/eNB_exmimo2.gtkw
+7
-7
targets/RT/USER/lte-enb.c
targets/RT/USER/lte-enb.c
+0
-6
No files found.
openair1/PHY/INIT/lte_init.c
View file @
43327686
...
...
@@ -1362,6 +1362,7 @@ int phy_init_lte_eNB(PHY_VARS_eNB *eNB,
if
(
eNB
->
node_function
!=
NGFI_RCC_IF4p5
)
{
common_vars
->
rxdata
[
eNB_id
]
=
(
int32_t
**
)
malloc16
(
fp
->
nb_antennas_rx
*
sizeof
(
int32_t
*
)
);
common_vars
->
rxdata_7_5kHz
[
eNB_id
]
=
(
int32_t
**
)
malloc16
(
fp
->
nb_antennas_rx
*
sizeof
(
int32_t
*
)
);
common_vars
->
rxdata_1_4fs
[
eNB_id
]
=
(
int32_t
**
)
malloc16
(
fp
->
nb_antennas_rx
*
sizeof
(
int32_t
*
)
);
}
common_vars
->
rxdataF
[
eNB_id
]
=
(
int32_t
**
)
malloc16
(
fp
->
nb_antennas_rx
*
sizeof
(
int32_t
*
)
);
...
...
@@ -1369,9 +1370,11 @@ int phy_init_lte_eNB(PHY_VARS_eNB *eNB,
if
(
eNB
->
node_function
!=
NGFI_RCC_IF4p5
)
{
common_vars
->
rxdata
[
eNB_id
][
i
]
=
(
int32_t
*
)
malloc16_clear
(
fp
->
samples_per_tti
*
10
*
sizeof
(
int32_t
)
);
common_vars
->
rxdata_7_5kHz
[
eNB_id
][
i
]
=
(
int32_t
*
)
malloc16_clear
(
fp
->
samples_per_tti
*
sizeof
(
int32_t
)
);
common_vars
->
rxdata_1_4fs
[
eNB_id
][
i
]
=
(
int32_t
*
)
malloc16_clear
(
fp
->
samples_per_tti
*
sizeof
(
int32_t
)
);
#ifdef DEBUG_PHY
printf
(
"[openair][LTE_PHY][INIT] common_vars->rxdata[%d][%d] = %p
\n
"
,
eNB_id
,
i
,
common_vars
->
rxdata
[
eNB_id
][
i
]);
printf
(
"[openair][LTE_PHY][INIT] common_vars->rxdata_7_5kHz[%d][%d] = %p
\n
"
,
eNB_id
,
i
,
common_vars
->
rxdata_7_5kHz
[
eNB_id
][
i
]);
printf
(
"[openair][LTE_PHY][INIT] common_vars->rxdata_1_4fs[%d][%d] = %p
\n
"
,
eNB_id
,
i
,
common_vars
->
rxdata_1_4fs
[
eNB_id
][
i
]);
#endif
}
common_vars
->
rxdataF
[
eNB_id
][
i
]
=
(
int32_t
*
)
malloc16_clear
(
sizeof
(
int32_t
)
*
(
fp
->
ofdm_symbol_size
*
fp
->
symbols_per_tti
)
);
...
...
openair1/PHY/LTE_TRANSPORT/prach.c
View file @
43327686
...
...
@@ -1127,7 +1127,12 @@ void rx_prach(PHY_VARS_eNB *eNB,
// int en;
for
(
aa
=
0
;
aa
<
nb_ant_rx
;
aa
++
)
{
if
((
eNB
->
rfdevice
.
type
==
EXMIMO_DEV
)
&&
(
eNB
->
frame_parms
.
frame_type
==
TDD
))
{
//TDD workaround
remove_1_4_fs
(
eNB
,
subframe
<<
1
);
// TDD workaround for EXMIMO2 card
remove_1_4_fs
(
eNB
,
1
+
(
subframe
<<
1
));
}
for
(
aa
=
0
;
aa
<
nb_ant_rx
;
aa
++
)
{
prach
[
aa
]
=
(
int16_t
*
)
&
eNB
->
common_vars
.
rxdata
[
0
][
aa
][
subframe
*
eNB
->
frame_parms
.
samples_per_tti
-
eNB
->
N_TA_offset
];
}
...
...
openair1/PHY/MODULATION/gen_1_4_fs.m
View file @
43327686
...
...
@@ -92,13 +92,15 @@ function [s_n2, s_e2] = gen_sig(RB)
ofdm_size
=
ofdm_size
*
ratio
;
len
=
len
*
ratio
;
s_n0
=
floor
(
32767
*
exp
(
-
sqrt
(
-
1
)
*
2
*
pi
*
(
-
cp0
:
ofdm_size
-
1
)
*
(
0.25
+
7.5e3
/
samplerate
)));
s_n1
=
floor
(
32767
*
exp
(
-
sqrt
(
-
1
)
*
2
*
pi
*
(
-
cp
:
ofdm_size
-
1
)
*
(
0.25
+
7.5e3
/
samplerate
)));
%s_n0 = floor(32767*exp(-sqrt(-1)*2*pi*(-cp0:ofdm_size-1)*(0.25+7.5e3/samplerate)));
%s_n1 = floor(32767*exp(-sqrt(-1)*2*pi*(-cp:ofdm_size-1)*(0.25+7.5e3/samplerate)));
s_n0
=
floor
(
32767
*
exp
(
-
sqrt
(
-
1
)
*
2
*
pi
*
(
-
cp0
:
ofdm_size
-
1
)
*
(
0.25
)));
s_n1
=
floor
(
32767
*
exp
(
-
sqrt
(
-
1
)
*
2
*
pi
*
(
-
cp
:
ofdm_size
-
1
)
*
(
0.25
)));
s_n
=
[
s_n0
s_n1
s_n1
s_n1
s_n1
s_n1
s_n1
];
s_n2
=
zeros
(
1
,
2
*
len
);
s_n2
(
1
:
2
:
end
)
=
real
(
s_n
);
s_n2
(
2
:
2
:
end
)
=
imag
(
s_n
);
s_e
=
floor
(
32767
*
exp
(
-
sqrt
(
-
1
)
*
2
*
pi
*
(
-
cpe
:
ofdm_size
-
1
)
*
(
0.25
+
7.5e3
/
samplerate
)));
s_e
=
floor
(
32767
*
exp
(
-
sqrt
(
-
1
)
*
2
*
pi
*
(
-
cpe
:
ofdm_size
-
1
)
*
(
0.25
)));
s_e
=
[
s_e
s_e
s_e
s_e
s_e
s_e
];
s_e2
=
zeros
(
1
,
2
*
len
);
s_e2
(
1
:
2
:
end
)
=
real
(
s_e
);
...
...
openair1/PHY/MODULATION/ul_1_4_fs.c
View file @
43327686
...
...
@@ -38,7 +38,7 @@ short conjugate14_2[8]__attribute__((aligned(16))) = {1,-1,1,-1,1,-1,1,-1} ;
void
remove_1_4_fs
(
PHY_VARS_eNB
*
eNB
,
uint8_t
slot
)
{
int32_t
**
rxdata
=
eNB
->
common_vars
.
rxdata
[
0
];
int32_t
**
rxdata_1_4fs
=
eNB
->
common_vars
.
rxdata
_7_5kHz
[
0
];
int32_t
**
rxdata_1_4fs
=
eNB
->
common_vars
.
rxdata
[
0
];
uint16_t
len
;
uint32_t
*
fs1_4ptr
;
#if defined(__x86_64__) || defined(__i386__)
...
...
@@ -87,7 +87,7 @@ void remove_1_4_fs(PHY_VARS_eNB *eNB,uint8_t slot)
slot_offset
=
(
uint32_t
)
slot
*
frame_parms
->
samples_per_tti
/
2
-
eNB
->
N_TA_offset
;
slot_offset2
=
(
uint32_t
)(
slot
&
1
)
*
frame_parms
->
samples_per_tti
/
2
;
//
slot_offset2 = (uint32_t)(slot&1) * frame_parms->samples_per_tti/2;
len
=
frame_parms
->
samples_per_tti
/
2
;
...
...
@@ -95,11 +95,11 @@ void remove_1_4_fs(PHY_VARS_eNB *eNB,uint8_t slot)
#if defined(__x86_64__) || defined(__i386__)
rxptr128
=
(
__m128i
*
)
&
rxdata
[
aa
][
slot_offset
];
rxptr128_1_4fs
=
(
__m128i
*
)
&
rxdata_1_4fs
[
aa
][
slot_offset
2
];
rxptr128_1_4fs
=
(
__m128i
*
)
&
rxdata_1_4fs
[
aa
][
slot_offset
];
fs1_4ptr128
=
(
__m128i
*
)
fs1_4ptr
;
#elif defined(__arm__)
rxptr128
=
(
int16x8_t
*
)
&
rxdata
[
aa
][
slot_offset
];
rxptr128_1_4fs
=
(
int16x8_t
*
)
&
rxdata_1_4fs
[
aa
][
slot_offset
2
];
rxptr128_1_4fs
=
(
int16x8_t
*
)
&
rxdata_1_4fs
[
aa
][
slot_offset
];
fs1_4ptr128
=
(
int16x8_t
*
)
fs1_4ptr
;
#endif
// remove 7.5 kHz + 1/4*fs
...
...
openair1/SCHED/phy_procedures_lte_eNb.c
View file @
43327686
...
...
@@ -2583,6 +2583,9 @@ void fep0(PHY_VARS_eNB *eNB,int slot) {
int
l
;
// printf("fep0: slot %d\n",slot);
if
((
eNB
->
rfdevice
.
type
==
EXMIMO_DEV
)
&&
(
eNB
->
frame_parms
.
frame_type
==
TDD
))
remove_1_4_fs
(
eNB
,(
slot
&+
1
)
+
(
proc
->
subframe_rx
<<
1
));
// TDD workaround for EXMIMO2 card
remove_7_5_kHz
(
eNB
,(
slot
&
1
)
+
(
proc
->
subframe_rx
<<
1
));
for
(
l
=
0
;
l
<
fp
->
symbols_per_tti
/
2
;
l
++
)
{
slot_fep_ul
(
fp
,
...
...
@@ -2724,6 +2727,12 @@ void eNB_fep_full(PHY_VARS_eNB *eNB) {
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_ENB_SLOT_FEP
,
1
);
start_meas
(
&
eNB
->
ofdm_demod_stats
);
// TDD workaround
if
((
eNB
->
rfdevice
.
type
==
EXMIMO_DEV
)
&&
(
eNB
->
frame_parms
.
frame_type
==
TDD
))
{
remove_1_4_fs
(
eNB
,
proc
->
subframe_rx
<<
1
);
// TDD workaround for EXMIMO2 card
remove_1_4_fs
(
eNB
,
1
+
(
proc
->
subframe_rx
<<
1
));
}
remove_7_5_kHz
(
eNB
,
proc
->
subframe_rx
<<
1
);
remove_7_5_kHz
(
eNB
,
1
+
(
proc
->
subframe_rx
<<
1
));
...
...
targets/ARCH/EXMIMO/USERSPACE/LIB/openair0_lib.c
View file @
43327686
...
...
@@ -839,9 +839,9 @@ int openair0_config(openair0_config_t *openair0_cfg, int UE_flag)
tx_filter
=
TXLPF5
;
}
else
if
(
openair0_cfg
[
card
].
sample_rate
==
7.68e6
)
{
resampling_factor
=
2
;
//
if (openair0_cfg[card].duplex_mode==duplex_mode_TDD) // TDD workaround for EXMIMO
//
rx_filter = RXLPF5;
//
else
if
(
openair0_cfg
[
card
].
duplex_mode
==
duplex_mode_TDD
)
// TDD workaround for EXMIMO
rx_filter
=
RXLPF5
;
else
rx_filter
=
RXLPF25
;
tx_filter
=
TXLPF25
;
}
else
{
...
...
@@ -899,8 +899,8 @@ int openair0_config(openair0_config_t *openair0_cfg, int UE_flag)
p_exmimo_config
->
rf
.
rf_freq_rx
[
ant
]
=
(
unsigned
int
)
openair0_cfg
[
card
].
rx_freq
[
ant
];
// TDD workaround
//
if (openair0_cfg[card].duplex_mode==duplex_mode_TDD)
// p_exmimo_config->rf.rf_freq_rx[ant] +
= openair0_cfg[card].sample_rate/4;
if
(
openair0_cfg
[
card
].
duplex_mode
==
duplex_mode_TDD
)
p_exmimo_config
->
rf
.
rf_freq_rx
[
ant
]
-
=
openair0_cfg
[
card
].
sample_rate
/
4
;
switch
(
openair0_cfg
[
card
].
rxg_mode
[
ant
])
{
default:
...
...
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band38.tm1.exmimo2.conf
View file @
43327686
...
...
@@ -32,7 +32,7 @@ eNBs =
prefix_type
=
"NORMAL"
;
eutra_band
=
38
;
downlink_frequency
=
2580000000
L
;
uplink_frequency_offset
=
0
; //-
120000000
;
uplink_frequency_offset
=
-
350
;//
1920000
; //
0
; //-
120000000
;
Nid_cell
=
0
;
N_RB_DL
=
25
;
Nid_cell_mbsfn
=
0
;
...
...
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band38.tm7.exmimo2.conf
View file @
43327686
...
...
@@ -32,7 +32,7 @@ eNBs =
prefix_type
=
"NORMAL"
;
eutra_band
=
38
;
downlink_frequency
=
2580000000
L
;
uplink_frequency_offset
= -
1920000
; //-
120000000
;
uplink_frequency_offset
=
0
; //
-
1920000
; //-
120000000
;
Nid_cell
=
0
;
N_RB_DL
=
25
;
Nid_cell_mbsfn
=
0
;
...
...
targets/RT/USER/eNB_exmimo2.gtkw
View file @
43327686
[*]
[*] GTKWave Analyzer v3.3.58 (w)1999-2014 BSI
[*]
Thu Jan 19 09:15:03
2017
[*]
Wed Jan 18 09:49:05
2017
[*]
[dumpfile] "/tmp/openair_dump_eNB.vcd"
[dumpfile_mtime] "
Thu Jan 19 08:56:09
2017"
[dumpfile_size]
239663092
[savefile] "/homes/
kaltenbe/Devel/openair
/openairinterface5g/targets/RT/USER/eNB_exmimo2.gtkw"
[timestart]
15103256
0000
[size] 1
215 1000
[dumpfile_mtime] "
Wed Jan 18 09:43:36
2017"
[dumpfile_size]
892531
[savefile] "/homes/
jiangx/openair5G
/openairinterface5g/targets/RT/USER/eNB_exmimo2.gtkw"
[timestart]
2125680
0000
[size] 1
615 1026
[pos] -1 -1
*-2
1.445595 151034994068
-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
*-2
2.787832 21257630000
-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] 374
[signals_width] 262
[sst_expanded] 1
...
...
targets/RT/USER/lte-enb.c
View file @
43327686
...
...
@@ -573,12 +573,6 @@ static inline int rxtx(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc, char *thread_nam
start_meas
(
&
softmodem_stats_rxtx_sf
);
// ****************************************
// TDD workaround
//if ((eNB->rfdevice.type == EXMIMO_DEV) && (eNB->frame_parms.frame_type == TDD)) {
// remove_1_4_fs(eNB,proc->subframe_rx<<1); // TDD workaround for EXMIMO2 card
// remove_1_4_fs(eNB,1+(proc->subframe_rx<<1));
//}
// Common RX procedures subframe n
phy_procedures_eNB_common_RX
(
eNB
);
...
...
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