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
ZhouShuya
OpenXG-RAN
Commits
af489a78
Commit
af489a78
authored
Jul 20, 2016
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addition of asynchronous RX threads and inter CC synchronization
parent
10ba1c00
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
407 additions
and
305 deletions
+407
-305
openair1/PHY/defs.h
openair1/PHY/defs.h
+34
-27
openair1/SCHED/phy_procedures_lte_eNb.c
openair1/SCHED/phy_procedures_lte_eNb.c
+45
-192
targets/RT/USER/lte-enb.c
targets/RT/USER/lte-enb.c
+328
-75
targets/SIMU/USER/oaisim_functions.c
targets/SIMU/USER/oaisim_functions.c
+0
-11
No files found.
openair1/PHY/defs.h
View file @
af489a78
...
...
@@ -165,6 +165,12 @@ typedef enum {
NGFI_RCC_IF4
// NGFI_RCC (NGFI radio cloud center, currently split at common - ue_specific interface, IF4)
}
eNB_func_t
;
typedef
enum
{
synch_to_ext_device
=
0
,
// synch to RF or Ethernet device
synch_to_other
// synch to another source (timer, other CC_id)
}
eNB_timing_t
;
typedef
struct
UE_SCAN_INFO_s
{
/// 10 best amplitudes (linear) for each pss signals
int32_t
amp
[
3
][
10
];
...
...
@@ -211,7 +217,7 @@ typedef struct {
struct
sched_param
sched_param_rxtx
;
}
eNB_rxtx_proc_t
;
/// Context data structure for eNB subframe processing
typedef
struct
{
typedef
struct
eNB_proc_t_s
{
/// Component Carrier index
uint8_t
CC_id
;
/// thread index
...
...
@@ -226,29 +232,46 @@ typedef struct {
int
frame_rx
;
/// frame to act upon for PRACH
int
frame_prach
;
/// \brief Instance count for FH processing thread.
/// \internal This variable is protected by \ref mutex_FH.
int
instance_cnt_FH
;
/// \brief Instance count for rx processing thread.
/// \internal This variable is protected by \ref mutex_prach.
int
instance_cnt_prach
;
/// pthread structure for rx processing thread
pthread_t
pthread_rx
;
/// pthread structure for FH processing thread
pthread_t
pthread_FH
;
/// pthread structure for asychronous RX processing thread
pthread_t
pthread_asynch_rx
;
/// flag to indicate first RX acquisition
int
first_rx
;
/// pthread attributes for
rx
processing thread
pthread_attr_t
attr_
rx
;
/// pthread attributes for
FH
processing thread
pthread_attr_t
attr_
FH
;
/// pthread attributes for prach processing thread
pthread_attr_t
attr_prach
;
/// scheduling parameters for rx thread
struct
sched_param
sched_param_rx
;
/// pthread attributes for asynchronous RX thread
pthread_attr_t
attr_asynch_rx
;
/// scheduling parameters for FH thread
struct
sched_param
sched_param_FH
;
/// scheduling parameters for prach thread
struct
sched_param
sched_param_prach
;
/// condition variable for prach processing thread
/// scheduling parameters for asynch_rx thread
struct
sched_param
sched_param_asynch_rx
;
/// condition variable for FH thread
pthread_t
pthread_prach
;
/// condition variable for rx processing thread;
/// condition variable for FH thread
pthread_cond_t
cond_FH
;
/// condition variable for PRACH processing thread;
pthread_cond_t
cond_prach
;
/// mutex for tx processing thread
/// mutex for FH
pthread_mutex_t
mutex_FH
;
/// mutex for PRACH thread
pthread_mutex_t
mutex_prach
;
/// set of scheduling variables RXn-TXnp4 threads
eNB_rxtx_proc_t
proc_rxtx
[
2
];
/// number of slave threads
int
num_slaves
;
/// array of pointers to slaves
struct
eNB_proc_t_s
**
slave_proc
;
}
eNB_proc_t
;
...
...
@@ -311,6 +334,7 @@ typedef struct PHY_VARS_eNB_s {
uint8_t
CC_id
;
eNB_proc_t
proc
;
eNB_func_t
node_function
;
eNB_timing_t
node_timing
;
uint8_t
local_flag
;
uint32_t
rx_total_gain_dB
;
LTE_DL_FRAME_PARMS
frame_parms
;
...
...
@@ -456,11 +480,6 @@ typedef struct PHY_VARS_eNB_s {
time_stats_t
phy_proc
;
time_stats_t
phy_proc_tx
;
time_stats_t
phy_proc_rx
;
/*
time_stats_t phy_proc_sf[10]; // for each subframe
time_stats_t phy_proc_tx_sf[10];
time_stats_t phy_proc_rx_sf[10];
*/
time_stats_t
rx_prach
;
time_stats_t
ofdm_mod_stats
;
...
...
@@ -505,11 +524,6 @@ typedef struct PHY_VARS_eNB_s {
int32_t
pusch_stats_mcs
[
NUMBER_OF_UE_MAX
][
10240
];
int32_t
pusch_stats_bsr
[
NUMBER_OF_UE_MAX
][
10240
];
int32_t
pusch_stats_BO
[
NUMBER_OF_UE_MAX
][
10240
];
#if ENABLE_RAL
hash_table_t
*
ral_thresholds_timed
;
SLIST_HEAD
(
ral_thresholds_gen_poll_enb_s
,
ral_threshold_phy_t
)
ral_thresholds_gen_polled
[
RAL_LINK_PARAM_GEN_MAX
];
SLIST_HEAD
(
ral_thresholds_lte_poll_enb_s
,
ral_threshold_phy_t
)
ral_thresholds_lte_polled
[
RAL_LINK_PARAM_LTE_MAX
];
#endif
/// RF and Interface devices per CC
openair0_device
rfdevice
;
...
...
@@ -520,13 +534,6 @@ typedef struct PHY_VARS_eNB_s {
}
PHY_VARS_eNB
;
#define debug_msg if (((mac_xface->frame%100) == 0) || (mac_xface->frame < 50)) msg
//#define debug_msg msg
/*
typedef enum {
max_gain=0,med_gain,byp_gain
} rx_gain_t;
*/
/// Top-level PHY Data Structure for UE
typedef
struct
{
...
...
openair1/SCHED/phy_procedures_lte_eNb.c
View file @
af489a78
This diff is collapsed.
Click to expand it.
targets/RT/USER/lte-enb.c
View file @
af489a78
This diff is collapsed.
Click to expand it.
targets/SIMU/USER/oaisim_functions.c
View file @
af489a78
...
...
@@ -1166,17 +1166,6 @@ void init_ocm(void)
LOG_D
(
OCM
,
"Initializing channel (%s, %d) from eNB %d to UE %d
\n
"
,
oai_emulation
.
environment_system_config
.
fading
.
small_scale
.
selected_option
,
map_str_to_int
(
small_scale_names
,
oai_emulation
.
environment_system_config
.
fading
.
small_scale
.
selected_option
),
eNB_id
,
UE_id
);
/* if (oai_emulation.info.transmission_mode == 5)
eNB2UE[eNB_id][UE_id] = new_channel_desc_scm(PHY_vars_eNB_g[eNB_id]->frame_parms.nb_antennas_tx,
PHY_vars_UE_g[UE_id]->frame_parms.nb_antennas_rx,
(UE_id == 0)? Rice1_corr : Rice1_anticorr,
oai_emulation.environment_system_config.system_bandwidth_MB,
forgetting_factor,
0,
0);
else
*/
eNB2UE
[
eNB_id
][
UE_id
][
CC_id
]
=
new_channel_desc_scm
(
PHY_vars_eNB_g
[
eNB_id
][
CC_id
]
->
frame_parms
.
nb_antennas_tx
,
...
...
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