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
Michael Black
OpenXG-RAN
Commits
43f96a0e
Commit
43f96a0e
authored
Sep 19, 2016
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finishing merge with develop
parent
7678f88a
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
31 additions
and
71 deletions
+31
-71
openair1/PHY/INIT/defs.h
openair1/PHY/INIT/defs.h
+0
-2
openair1/PHY/INIT/lte_init.c
openair1/PHY/INIT/lte_init.c
+0
-40
openair1/PHY/INIT/lte_param_init.c
openair1/PHY/INIT/lte_param_init.c
+1
-1
openair1/PHY/LTE_TRANSPORT/dlsch_coding.c
openair1/PHY/LTE_TRANSPORT/dlsch_coding.c
+0
-5
openair1/PHY/LTE_TRANSPORT/ulsch_decoding.c
openair1/PHY/LTE_TRANSPORT/ulsch_decoding.c
+5
-5
openair1/SCHED/phy_mac_stub.c
openair1/SCHED/phy_mac_stub.c
+0
-1
openair1/SCHED/phy_procedures_lte_eNb.c
openair1/SCHED/phy_procedures_lte_eNb.c
+2
-2
openair1/SCHED/phy_procedures_lte_ue.c
openair1/SCHED/phy_procedures_lte_ue.c
+5
-0
openair2/RRC/LITE/rrc_eNB.c
openair2/RRC/LITE/rrc_eNB.c
+3
-2
targets/RT/USER/lte-enb.c
targets/RT/USER/lte-enb.c
+7
-5
targets/RT/USER/lte-softmodem.c
targets/RT/USER/lte-softmodem.c
+5
-2
targets/SIMU/USER/init_lte.c
targets/SIMU/USER/init_lte.c
+3
-5
targets/SIMU/USER/init_lte.h
targets/SIMU/USER/init_lte.h
+0
-1
No files found.
openair1/PHY/INIT/defs.h
View file @
43f96a0e
...
...
@@ -73,7 +73,6 @@ int phy_init_lte_ue(PHY_VARS_UE *phy_vars_ue,
\details Only a subset of phy_vars_eNb is initialized.
@param[out] phy_vars_eNb Pointer to eNB Variables
@param is_secondary_eNb Flag to indicate this eNB gets synch from another
@param cooperation_flag 0 for no cooperation, 1 for Delay Diversity and 2 for Distributed Alamouti
@param abstraction_flag 1 indicates memory should be allocated for abstracted MODEM
@returns 0 on success
@returns -1 if any memory allocation failed
...
...
@@ -81,7 +80,6 @@ int phy_init_lte_ue(PHY_VARS_UE *phy_vars_ue,
*/
int
phy_init_lte_eNB
(
PHY_VARS_eNB
*
phy_vars_eNb
,
unsigned
char
is_secondary_eNb
,
unsigned
char
cooperation_flag
,
unsigned
char
abstraction_flag
);
/** \brief Configure LTE_DL_FRAME_PARMS with components derived after initial synchronization (MIB decoding + primary/secondary synch).
...
...
openair1/PHY/INIT/lte_init.c
View file @
43f96a0e
...
...
@@ -1175,7 +1175,6 @@ int phy_init_lte_ue(PHY_VARS_UE *ue,
int
phy_init_lte_eNB
(
PHY_VARS_eNB
*
eNB
,
unsigned
char
is_secondary_eNB
,
uint8_t
cooperation_flag
,
unsigned
char
abstraction_flag
)
{
...
...
@@ -1191,7 +1190,6 @@ int phy_init_lte_eNB(PHY_VARS_eNB *eNB,
eNB
->
total_transmitted_bits
=
0
;
eNB
->
total_system_throughput
=
0
;
eNB
->
check_for_MUMIMO_transmissions
=
0
;
LOG_I
(
PHY
,
"[eNB %"
PRIu8
"] Initializing DL_FRAME_PARMS : N_RB_DL %"
PRIu8
", PHICH Resource %d, PHICH Duration %d
\n
"
,
eNB
->
Mod_id
,
fp
->
N_RB_DL
,
fp
->
phich_config_common
.
phich_resource
,
...
...
@@ -1345,44 +1343,6 @@ int phy_init_lte_eNB(PHY_VARS_eNB *eNB,
pusch_vars
[
UE_id
]
->
ul_ch_mag
[
eNB_id
][
i
]
=
(
int32_t
*
)
malloc16_clear
(
fp
->
symbols_per_tti
*
sizeof
(
int32_t
)
*
fp
->
N_RB_UL
*
12
);
pusch_vars
[
UE_id
]
->
ul_ch_magb
[
eNB_id
][
i
]
=
(
int32_t
*
)
malloc16_clear
(
fp
->
symbols_per_tti
*
sizeof
(
int32_t
)
*
fp
->
N_RB_UL
*
12
);
}
// In case of Distributed Alamouti Collabrative scheme separate channel estimates are required for both the UEs
if
(
cooperation_flag
==
2
)
{
pusch_vars
[
UE_id
]
->
drs_ch_estimates_0
[
eNB_id
]
=
(
int32_t
**
)
malloc16
(
fp
->
nb_antennas_rx
*
sizeof
(
int32_t
*
)
);
// UE 0 DRS estimates
pusch_vars
[
UE_id
]
->
drs_ch_estimates_1
[
eNB_id
]
=
(
int32_t
**
)
malloc16
(
fp
->
nb_antennas_rx
*
sizeof
(
int32_t
*
)
);
// UE 1 DRS estimates
for
(
i
=
0
;
i
<
fp
->
nb_antennas_rx
;
i
++
)
{
pusch_vars
[
UE_id
]
->
drs_ch_estimates_0
[
eNB_id
][
i
]
=
(
int32_t
*
)
malloc16_clear
(
fp
->
symbols_per_tti
*
sizeof
(
int32_t
)
*
fp
->
N_RB_UL
*
12
);
pusch_vars
[
UE_id
]
->
drs_ch_estimates_1
[
eNB_id
][
i
]
=
(
int32_t
*
)
malloc16_clear
(
fp
->
symbols_per_tti
*
sizeof
(
int32_t
)
*
fp
->
N_RB_UL
*
12
);
}
// Compensated data for the case of Distributed Alamouti Scheme
pusch_vars
[
UE_id
]
->
rxdataF_comp_0
[
eNB_id
]
=
(
int32_t
**
)
malloc16
(
fp
->
nb_antennas_rx
*
sizeof
(
int32_t
*
)
);
// it will contain(y)*(h0*)
pusch_vars
[
UE_id
]
->
rxdataF_comp_1
[
eNB_id
]
=
(
int32_t
**
)
malloc16
(
fp
->
nb_antennas_rx
*
sizeof
(
int32_t
*
)
);
// it will contain(y*)*(h1)
for
(
i
=
0
;
i
<
fp
->
nb_antennas_rx
;
i
++
)
{
pusch_vars
[
UE_id
]
->
rxdataF_comp_0
[
eNB_id
][
i
]
=
(
int32_t
*
)
malloc16_clear
(
fp
->
symbols_per_tti
*
sizeof
(
int32_t
)
*
fp
->
N_RB_UL
*
12
);
pusch_vars
[
UE_id
]
->
rxdataF_comp_1
[
eNB_id
][
i
]
=
(
int32_t
*
)
malloc16_clear
(
fp
->
symbols_per_tti
*
sizeof
(
int32_t
)
*
fp
->
N_RB_UL
*
12
);
}
// UE 0
pusch_vars
[
UE_id
]
->
ul_ch_mag_0
[
eNB_id
]
=
(
int32_t
**
)
malloc16
(
fp
->
nb_antennas_rx
*
sizeof
(
int32_t
*
)
);
pusch_vars
[
UE_id
]
->
ul_ch_magb_0
[
eNB_id
]
=
(
int32_t
**
)
malloc16
(
fp
->
nb_antennas_rx
*
sizeof
(
int32_t
*
)
);
for
(
i
=
0
;
i
<
fp
->
nb_antennas_rx
;
i
++
)
{
pusch_vars
[
UE_id
]
->
ul_ch_mag_0
[
eNB_id
][
i
]
=
(
int32_t
*
)
malloc16_clear
(
fp
->
symbols_per_tti
*
sizeof
(
int32_t
)
*
fp
->
N_RB_UL
*
12
);
pusch_vars
[
UE_id
]
->
ul_ch_magb_0
[
eNB_id
][
i
]
=
(
int32_t
*
)
malloc16_clear
(
fp
->
symbols_per_tti
*
sizeof
(
int32_t
)
*
fp
->
N_RB_UL
*
12
);
}
// UE 1
pusch_vars
[
UE_id
]
->
ul_ch_mag_1
[
eNB_id
]
=
(
int32_t
**
)
malloc16
(
fp
->
nb_antennas_rx
*
sizeof
(
int32_t
*
)
);
pusch_vars
[
UE_id
]
->
ul_ch_magb_1
[
eNB_id
]
=
(
int32_t
**
)
malloc16
(
fp
->
nb_antennas_rx
*
sizeof
(
int32_t
*
)
);
for
(
i
=
0
;
i
<
fp
->
nb_antennas_rx
;
i
++
)
{
pusch_vars
[
UE_id
]
->
ul_ch_mag_1
[
eNB_id
][
i
]
=
(
int32_t
*
)
malloc16
(
fp
->
symbols_per_tti
*
sizeof
(
int32_t
)
*
fp
->
N_RB_UL
*
12
);
pusch_vars
[
UE_id
]
->
ul_ch_magb_1
[
eNB_id
][
i
]
=
(
int32_t
*
)
malloc16
(
fp
->
symbols_per_tti
*
sizeof
(
int32_t
)
*
fp
->
N_RB_UL
*
12
);
}
}
//cooperation_flag
}
//eNB_id
pusch_vars
[
UE_id
]
->
llr
=
(
int16_t
*
)
malloc16_clear
(
(
8
*
((
3
*
8
*
6144
)
+
12
))
*
sizeof
(
int16_t
)
);
...
...
openair1/PHY/INIT/lte_param_init.c
View file @
43f96a0e
...
...
@@ -83,7 +83,7 @@ void lte_param_init(unsigned char N_tx,
lte_gold
(
frame_parms
,
UE
->
lte_gold_table
[
i
],
Nid_cell
+
i
);
phy_init_lte_ue
(
UE
,
1
,
0
);
phy_init_lte_eNB
(
eNB
,
0
,
0
,
0
);
phy_init_lte_eNB
(
eNB
,
0
,
0
);
generate_pcfich_reg_mapping
(
&
UE
->
frame_parms
);
generate_phich_reg_mapping
(
&
UE
->
frame_parms
);
...
...
openair1/PHY/LTE_TRANSPORT/dlsch_coding.c
View file @
43f96a0e
...
...
@@ -384,11 +384,6 @@ int dlsch_encoding_2threads(PHY_VARS_eNB *eNB,
unsigned
int
Kr
=
0
,
Kr_bytes
,
r
,
r_offset
=
0
;
unsigned
short
m
=
dlsch
->
harq_processes
[
harq_pid
]
->
mcs
;
struct
timespec
wait
;
wait
.
tv_sec
=
0
;
wait
.
tv_nsec
=
5000000L
;
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_ENB_DLSCH_ENCODING
,
VCD_FUNCTION_IN
);
A
=
dlsch
->
harq_processes
[
harq_pid
]
->
TBS
;
//6228
...
...
openair1/PHY/LTE_TRANSPORT/ulsch_decoding.c
View file @
43f96a0e
...
...
@@ -6,7 +6,7 @@
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenAirInterface is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
...
...
@@ -490,19 +490,19 @@ int ulsch_decoding_data_2thread(PHY_VARS_eNB *eNB,int UE_id,int harq_pid,int llr
tc
=
phy_threegpplte_turbo_decoder8
;
if
(
pthread_mutex_timedlock
(
&
proc
->
mutex_td
,
&
wait
)
!=
0
)
{
printf
(
"[eNB] ERROR pthread_mutex_lock for TD thread
%d
(IC %d)
\n
"
,
proc
->
instance_cnt_td
);
printf
(
"[eNB] ERROR pthread_mutex_lock for TD thread (IC %d)
\n
"
,
proc
->
instance_cnt_td
);
exit_fun
(
"error locking mutex_fep"
);
return
;
return
-
1
;
}
if
(
proc
->
instance_cnt_td
==
0
)
{
printf
(
"[eNB] TD thread busy
\n
"
);
exit_fun
(
"TD thread busy"
);
pthread_mutex_unlock
(
&
proc
->
mutex_td
);
return
;
return
-
1
;
}
++
proc
->
instance_cnt_t
e
;
++
proc
->
instance_cnt_t
d
;
proc
->
tdp
.
eNB
=
eNB
;
proc
->
tdp
.
UE_id
=
UE_id
;
...
...
openair1/SCHED/phy_mac_stub.c
View file @
43f96a0e
...
...
@@ -60,7 +60,6 @@ void fill_dci(DCI_PDU *DCI_pdu,PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc)
int
subframe
=
proc
->
subframe_tx
;
LTE_eNB_DLSCH_t
*
DLSCH_ptr
=
eNB
->
dlsch
[
0
][
0
];
/*
uint32_t rand = taus();
...
...
openair1/SCHED/phy_procedures_lte_eNb.c
View file @
43f96a0e
...
...
@@ -2541,7 +2541,7 @@ static void *fep_thread(void *param) {
if
(
pthread_cond_signal
(
&
proc
->
cond_fep
)
!=
0
)
{
printf
(
"[eNB] ERROR pthread_cond_signal for fep thread exit
\n
"
);
exit_fun
(
"ERROR pthread_cond_signal"
);
return
;
return
NULL
;
}
}
...
...
@@ -2611,7 +2611,7 @@ void eNB_fep_full_2thread(PHY_VARS_eNB *eNB) {
start_meas
(
&
eNB
->
ofdm_demod_stats
);
if
(
pthread_mutex_timedlock
(
&
proc
->
mutex_fep
,
&
wait
)
!=
0
)
{
printf
(
"[eNB] ERROR pthread_mutex_lock for fep thread
%d
(IC %d)
\n
"
,
proc
->
instance_cnt_fep
);
printf
(
"[eNB] ERROR pthread_mutex_lock for fep thread (IC %d)
\n
"
,
proc
->
instance_cnt_fep
);
exit_fun
(
"error locking mutex_fep"
);
return
;
}
...
...
openair1/SCHED/phy_procedures_lte_ue.c
View file @
43f96a0e
...
...
@@ -2481,6 +2481,11 @@ void ue_dlsch_procedures(PHY_VARS_UE *ue,
pdsch_vars
=
NULL
;
return
;
break
;
default:
pdsch_vars
=
NULL
;
return
;
break
;
}
harq_pid
=
dlsch0
->
current_harq_pid
;
...
...
openair2/RRC/LITE/rrc_eNB.c
View file @
43f96a0e
...
...
@@ -3736,6 +3736,7 @@ rrc_eNB_generate_RRCConnectionSetup(
SRB_ToAddModList_t
**
SRB_configList
;
SRB_ToAddMod_t
*
SRB1_config
;
int
cnt
;
LTE_DL_FRAME_PARMS
*
fp
=
mac_xface
->
get_lte_frame_parms
(
ctxt_pP
->
module_id
,
CC_id
);
T
(
T_ENB_RRC_CONNECTION_SETUP
,
T_INT
(
ctxt_pP
->
module_id
),
T_INT
(
ctxt_pP
->
frame
),
T_INT
(
ctxt_pP
->
subframe
),
T_INT
(
ctxt_pP
->
rnti
));
...
...
@@ -3745,9 +3746,9 @@ rrc_eNB_generate_RRCConnectionSetup(
do_RRCConnectionSetup
(
ctxt_pP
,
ue_context_pP
,
(
uint8_t
*
)
eNB_rrc_inst
[
ctxt_pP
->
module_id
].
carrier
[
CC_id
].
Srb0
.
Tx_buffer
.
Payload
,
(
mac_xface
->
lte_frame_parms
->
nb_antennas_tx_eNB
==
2
)
?
2
:
1
,
//at this point we do not have the UE capability information, so it can only be TM1 or TM2
(
fp
->
nb_antennas_tx_eNB
==
2
)
?
2
:
1
,
//at this point we do not have the UE capability information, so it can only be TM1 or TM2
rrc_eNB_get_next_transaction_identifier
(
ctxt_pP
->
module_id
),
mac_xface
->
frame_parms
,
fp
,
SRB_configList
,
&
ue_context_pP
->
ue_context
.
physicalConfigDedicated
);
...
...
targets/RT/USER/lte-enb.c
View file @
43f96a0e
...
...
@@ -1291,6 +1291,8 @@ static void* eNB_thread_single( void* param ) {
}
extern
void
init_fep_thread
(
PHY_VARS_eNB
*
,
pthread_attr_t
*
);
extern
void
init_td_thread
(
PHY_VARS_eNB
*
,
pthread_attr_t
*
);
extern
void
init_te_thread
(
PHY_VARS_eNB
*
,
pthread_attr_t
*
);
void
init_eNB_proc
(
int
inst
)
{
...
...
@@ -1299,7 +1301,7 @@ void init_eNB_proc(int inst) {
PHY_VARS_eNB
*
eNB
;
eNB_proc_t
*
proc
;
eNB_rxtx_proc_t
*
proc_rxtx
;
pthread_attr_t
*
attr0
=
NULL
,
*
attr1
=
NULL
,
*
attr_FH
=
NULL
,
*
attr_prach
=
NULL
,
*
attr_asynch
=
NULL
,
*
attr_single
=
NULL
,
*
attr_fep
=
NULL
,
*
attr_td
=
NULL
;
pthread_attr_t
*
attr0
=
NULL
,
*
attr1
=
NULL
,
*
attr_FH
=
NULL
,
*
attr_prach
=
NULL
,
*
attr_asynch
=
NULL
,
*
attr_single
=
NULL
,
*
attr_fep
=
NULL
,
*
attr_td
=
NULL
,
*
attr_te
;
for
(
CC_id
=
0
;
CC_id
<
MAX_NUM_CCs
;
CC_id
++
)
{
eNB
=
PHY_vars_eNB_g
[
inst
][
CC_id
];
...
...
@@ -1642,7 +1644,7 @@ void init_eNB(eNB_func_t node_function[], eNB_timing_t node_timing[],int nb_inst
eNB
->
do_prach
=
do_prach
;
eNB
->
fep
=
eNB_fep_full
;
eNB
->
td
=
ulsch_decoding_data_2thread
;
eNB
->
te
=
dlsch_encoding_2thread
;
eNB
->
te
=
dlsch_encoding_2thread
s
;
eNB
->
proc_uespec_rx
=
phy_procedures_eNB_uespec_RX
;
eNB
->
proc_tx
=
proc_tx_full
;
eNB
->
tx_fh
=
NULL
;
...
...
@@ -1662,7 +1664,7 @@ void init_eNB(eNB_func_t node_function[], eNB_timing_t node_timing[],int nb_inst
eNB
->
do_prach
=
do_prach
;
eNB
->
fep
=
eNB_fep_full
;
eNB
->
td
=
ulsch_decoding_data_2thread
;
eNB
->
te
=
dlsch_encoding_2thread
;
eNB
->
te
=
dlsch_encoding_2thread
s
;
eNB
->
proc_uespec_rx
=
phy_procedures_eNB_uespec_RX
;
eNB
->
proc_tx
=
proc_tx_full
;
eNB
->
tx_fh
=
tx_fh_if5
;
...
...
@@ -1686,7 +1688,7 @@ void init_eNB(eNB_func_t node_function[], eNB_timing_t node_timing[],int nb_inst
eNB
->
do_prach
=
do_prach
;
eNB
->
fep
=
NULL
;
eNB
->
td
=
ulsch_decoding_data_2thread
;
eNB
->
te
=
dlsch_encoding_2thread
;
eNB
->
te
=
dlsch_encoding_2thread
s
;
eNB
->
proc_uespec_rx
=
phy_procedures_eNB_uespec_RX
;
eNB
->
proc_tx
=
proc_tx_high
;
eNB
->
tx_fh
=
tx_fh_if4p5
;
...
...
@@ -1709,7 +1711,7 @@ void init_eNB(eNB_func_t node_function[], eNB_timing_t node_timing[],int nb_inst
eNB
->
do_prach
=
do_prach
;
eNB
->
fep
=
NULL
;
eNB
->
td
=
ulsch_decoding_data_2thread
;
eNB
->
te
=
dlsch_encoding_2thread
;
eNB
->
te
=
dlsch_encoding_2thread
s
;
eNB
->
proc_uespec_rx
=
phy_procedures_eNB_uespec_RX
;
eNB
->
proc_tx
=
proc_tx_high
;
eNB
->
tx_fh
=
tx_fh_if4p5
;
...
...
targets/RT/USER/lte-softmodem.c
View file @
43f96a0e
...
...
@@ -1121,7 +1121,7 @@ static void get_options (int argc, char **argv)
frame_parms
[
CC_id
]
->
prach_config_common
.
prach_ConfigInfo
.
prach_ConfigIndex
=
enb_properties
->
properties
[
i
]
->
prach_config_index
[
CC_id
];
frame_parms
[
CC_id
]
->
prach_config_common
.
prach_ConfigInfo
.
prach_FreqOffset
=
enb_properties
->
properties
[
i
]
->
prach_freq_offset
[
CC_id
];
frame_parms
[
CC_id
]
->
mode1_flag
=
(
transmission_mode
==
1
)
?
1
:
0
;
frame_parms
[
CC_id
]
->
mode1_flag
=
(
frame_parms
[
CC_id
]
->
nb_antennas_tx_eNB
==
1
)
?
1
:
0
;
frame_parms
[
CC_id
]
->
threequarter_fs
=
threequarter_fs
;
//} // j
...
...
@@ -1202,7 +1202,8 @@ int T_port = 2021; /* default port to listen to to wait for the tracer */
int
T_dont_fork
=
0
;
/* default is to fork, see 'T_init' to understand */
#endif
void
set_default_frame_parms
()
{
void
set_default_frame_parms
(
LTE_DL_FRAME_PARMS
*
frame_parms
[
MAX_NUM_CCs
]);
void
set_default_frame_parms
(
LTE_DL_FRAME_PARMS
*
frame_parms
[
MAX_NUM_CCs
])
{
int
CC_id
;
...
...
@@ -1248,6 +1249,8 @@ void set_default_frame_parms() {
}
void
init_openair0
(
void
);
void
init_openair0
()
{
int
card
;
...
...
targets/SIMU/USER/init_lte.c
View file @
43f96a0e
...
...
@@ -49,7 +49,6 @@
PHY_VARS_eNB
*
init_lte_eNB
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
uint8_t
eNB_id
,
uint8_t
Nid_cell
,
uint8_t
cooperation_flag
,
uint8_t
abstraction_flag
)
{
...
...
@@ -57,18 +56,17 @@ PHY_VARS_eNB* init_lte_eNB(LTE_DL_FRAME_PARMS *frame_parms,
PHY_VARS_eNB
*
PHY_vars_eNB
=
malloc
(
sizeof
(
PHY_VARS_eNB
));
memset
(
PHY_vars_eNB
,
0
,
sizeof
(
PHY_VARS_eNB
));
PHY_vars_eNB
->
Mod_id
=
eNB_id
;
PHY_vars_eNB
->
cooperation_flag
=
cooperation_flag
;
PHY_vars_eNB
->
cooperation_flag
=
0
;
//
cooperation_flag;
memcpy
(
&
(
PHY_vars_eNB
->
frame_parms
),
frame_parms
,
sizeof
(
LTE_DL_FRAME_PARMS
));
PHY_vars_eNB
->
frame_parms
.
Nid_cell
=
((
Nid_cell
/
3
)
*
3
)
+
((
eNB_id
+
Nid_cell
)
%
3
);
PHY_vars_eNB
->
frame_parms
.
nushift
=
PHY_vars_eNB
->
frame_parms
.
Nid_cell
%
6
;
phy_init_lte_eNB
(
PHY_vars_eNB
,
0
,
cooperation_flag
,
abstraction_flag
);
phy_init_lte_eNB
(
PHY_vars_eNB
,
0
,
abstraction_flag
);
LOG_I
(
PHY
,
"init eNB: Nid_cell %d
\n
"
,
frame_parms
->
Nid_cell
);
LOG_I
(
PHY
,
"init eNB: frame_type %d,tdd_config %d
\n
"
,
frame_parms
->
frame_type
,
frame_parms
->
tdd_config
);
LOG_I
(
PHY
,
"init eNB: number of ue max %d number of enb max %d number of harq pid max %d
\n
"
,
NUMBER_OF_UE_MAX
,
NUMBER_OF_eNB_MAX
,
NUMBER_OF_HARQ_PID_MAX
);
LOG_I
(
PHY
,
"init eNB: N_RB_DL %d
\n
"
,
frame_parms
->
N_RB_DL
);
LOG_I
(
PHY
,
"init eNB: Transmission mode %d
\n
"
,
transmission_mode
);
LOG_I
(
PHY
,
"init eNB: prach_config_index %d
\n
"
,
frame_parms
->
prach_config_common
.
prach_ConfigInfo
.
prach_ConfigIndex
);
...
...
@@ -281,7 +279,7 @@ void init_lte_vars(LTE_DL_FRAME_PARMS *frame_parms[MAX_NUM_CCs],
PHY_vars_eNB_g
[
eNB_id
]
=
(
PHY_VARS_eNB
**
)
malloc
(
MAX_NUM_CCs
*
sizeof
(
PHY_VARS_eNB
*
));
for
(
CC_id
=
0
;
CC_id
<
MAX_NUM_CCs
;
CC_id
++
)
{
PHY_vars_eNB_g
[
eNB_id
][
CC_id
]
=
init_lte_eNB
(
frame_parms
[
CC_id
],
eNB_id
,
Nid_cell
,
cooperation_flag
,
abstraction_flag
);
PHY_vars_eNB_g
[
eNB_id
][
CC_id
]
=
init_lte_eNB
(
frame_parms
[
CC_id
],
eNB_id
,
Nid_cell
,
abstraction_flag
);
PHY_vars_eNB_g
[
eNB_id
][
CC_id
]
->
Mod_id
=
eNB_id
;
PHY_vars_eNB_g
[
eNB_id
][
CC_id
]
->
CC_id
=
CC_id
;
}
...
...
targets/SIMU/USER/init_lte.h
View file @
43f96a0e
...
...
@@ -33,7 +33,6 @@
PHY_VARS_eNB
*
init_lte_eNB
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
uint8_t
eNB_id
,
uint8_t
Nid_cell
,
uint8_t
cooperation_flag
,
uint8_t
abstraction_flag
);
PHY_VARS_UE
*
init_lte_UE
(
LTE_DL_FRAME_PARMS
*
frame_parms
,
...
...
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