minimal fixes from rcc test
This commit is contained in:
@@ -89,7 +89,7 @@ void send_IF4(PHY_VARS_eNB *eNB, int frame, int subframe, uint16_t packet_type)
|
|||||||
// Write the packet to the fronthaul
|
// Write the packet to the fronthaul
|
||||||
if ((eNB->ifdevice.trx_write_func(&eNB->ifdevice,
|
if ((eNB->ifdevice.trx_write_func(&eNB->ifdevice,
|
||||||
symbol_id,
|
symbol_id,
|
||||||
tx_buffer,
|
&tx_buffer,
|
||||||
db_fulllength,
|
db_fulllength,
|
||||||
1,
|
1,
|
||||||
IF4_PDLFFT)) < 0) {
|
IF4_PDLFFT)) < 0) {
|
||||||
@@ -127,7 +127,7 @@ void send_IF4(PHY_VARS_eNB *eNB, int frame, int subframe, uint16_t packet_type)
|
|||||||
// Write the packet(s) to the fronthaul
|
// Write the packet(s) to the fronthaul
|
||||||
if ((eNB->ifdevice.trx_write_func(&eNB->ifdevice,
|
if ((eNB->ifdevice.trx_write_func(&eNB->ifdevice,
|
||||||
(int64_t) symbol_id,
|
(int64_t) symbol_id,
|
||||||
tx_buffer,
|
&tx_buffer,
|
||||||
db_fulllength,
|
db_fulllength,
|
||||||
1,
|
1,
|
||||||
IF4_PULFFT)) < 0) {
|
IF4_PULFFT)) < 0) {
|
||||||
@@ -157,7 +157,7 @@ void send_IF4(PHY_VARS_eNB *eNB, int frame, int subframe, uint16_t packet_type)
|
|||||||
// Write the packet to the fronthaul
|
// Write the packet to the fronthaul
|
||||||
if ((eNB->ifdevice.trx_write_func(&eNB->ifdevice,
|
if ((eNB->ifdevice.trx_write_func(&eNB->ifdevice,
|
||||||
(int64_t) symbol_id,
|
(int64_t) symbol_id,
|
||||||
tx_buffer,
|
&tx_buffer,
|
||||||
db_fulllength,
|
db_fulllength,
|
||||||
1,
|
1,
|
||||||
IF4_PRACH)) < 0) {
|
IF4_PRACH)) < 0) {
|
||||||
|
|||||||
@@ -1271,7 +1271,7 @@ void rx_prach(PHY_VARS_eNB *eNB,
|
|||||||
if (eNB->node_function == NGFI_RRU_IF4) {
|
if (eNB->node_function == NGFI_RRU_IF4) {
|
||||||
/// **** send_IF4 of prachF to RCC **** ///
|
/// **** send_IF4 of prachF to RCC **** ///
|
||||||
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME( VCD_SIGNAL_DUMPER_FUNCTIONS_SEND_IF4, 1 );
|
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME( VCD_SIGNAL_DUMPER_FUNCTIONS_SEND_IF4, 1 );
|
||||||
// send_IF4();
|
//send_IF4(eNB, frame, subframe, IF4_PRACH);
|
||||||
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME( VCD_SIGNAL_DUMPER_FUNCTIONS_SEND_IF4, 0 );
|
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME( VCD_SIGNAL_DUMPER_FUNCTIONS_SEND_IF4, 0 );
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -2572,7 +2572,7 @@ void phy_procedures_eNB_common_RX(PHY_VARS_eNB *eNB,const uint8_t abstraction_fl
|
|||||||
/// **** send_IF4 of rxdataF to RCC (no prach now) **** ///
|
/// **** send_IF4 of rxdataF to RCC (no prach now) **** ///
|
||||||
|
|
||||||
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME( VCD_SIGNAL_DUMPER_FUNCTIONS_SEND_IF4, 1 );
|
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME( VCD_SIGNAL_DUMPER_FUNCTIONS_SEND_IF4, 1 );
|
||||||
// send_IF4();
|
//send_IF4(eNB, frame, subframe, IF4_PULFFT);
|
||||||
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME( VCD_SIGNAL_DUMPER_FUNCTIONS_SEND_IF4, 0 );
|
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME( VCD_SIGNAL_DUMPER_FUNCTIONS_SEND_IF4, 0 );
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -2624,7 +2624,7 @@ void phy_procedures_eNB_common_RX(PHY_VARS_eNB *eNB,const uint8_t abstraction_fl
|
|||||||
|
|
||||||
do {
|
do {
|
||||||
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME( VCD_SIGNAL_DUMPER_FUNCTIONS_RECV_IF4, 1 );
|
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME( VCD_SIGNAL_DUMPER_FUNCTIONS_RECV_IF4, 1 );
|
||||||
//recv_IF4(eNB, proc, &packet_type, &symbol_number);
|
//recv_IF4(eNB, frame, subframe, &packet_type, &symbol_number);
|
||||||
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME( VCD_SIGNAL_DUMPER_FUNCTIONS_RECV_IF4, 0 );
|
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME( VCD_SIGNAL_DUMPER_FUNCTIONS_RECV_IF4, 0 );
|
||||||
|
|
||||||
if (packet_type == IF4_PULFFT) {
|
if (packet_type == IF4_PULFFT) {
|
||||||
|
|||||||
@@ -486,7 +486,7 @@ static void* eNB_thread_rxtx( void* param ) {
|
|||||||
/// **** recv_IF4 of txdataF from RCC **** ///
|
/// **** recv_IF4 of txdataF from RCC **** ///
|
||||||
|
|
||||||
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME( VCD_SIGNAL_DUMPER_FUNCTIONS_RECV_IF4, 1 );
|
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME( VCD_SIGNAL_DUMPER_FUNCTIONS_RECV_IF4, 1 );
|
||||||
//recv_IF4(eNB, proc, packet_type, symbol_number);
|
//recv_IF4(eNB, frame, subframe, packet_type, symbol_number);
|
||||||
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME( VCD_SIGNAL_DUMPER_FUNCTIONS_RECV_IF4, 0 );
|
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME( VCD_SIGNAL_DUMPER_FUNCTIONS_RECV_IF4, 0 );
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -536,7 +536,7 @@ static void* eNB_thread_rxtx( void* param ) {
|
|||||||
/// **** send_IF4 of txdataF to RRU **** ///
|
/// **** send_IF4 of txdataF to RRU **** ///
|
||||||
|
|
||||||
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME( VCD_SIGNAL_DUMPER_FUNCTIONS_SEND_IF4, 1 );
|
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME( VCD_SIGNAL_DUMPER_FUNCTIONS_SEND_IF4, 1 );
|
||||||
//send_IF4(PHY_vars_eNB_g[0][proc->CC_id], proc, 0);
|
send_IF4(PHY_vars_eNB_g[0][proc->CC_id], proc->frame_tx, proc->subframe_tx, IF4_PDLFFT);
|
||||||
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME( VCD_SIGNAL_DUMPER_FUNCTIONS_SEND_IF4, 0 );
|
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME( VCD_SIGNAL_DUMPER_FUNCTIONS_SEND_IF4, 0 );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1911,8 +1911,12 @@ int main( int argc, char **argv )
|
|||||||
pthread_cond_destroy(&sync_cond);
|
pthread_cond_destroy(&sync_cond);
|
||||||
pthread_mutex_destroy(&sync_mutex);
|
pthread_mutex_destroy(&sync_mutex);
|
||||||
|
|
||||||
// *** Handle per CC_id openair0
|
// *** Handle per CC_id openair0
|
||||||
openair0.trx_end_func(&openair0);
|
openair0.trx_end_func(&openair0);
|
||||||
|
for(CC_id=0; CC_id<MAX_NUM_CCs; CC_id++) {
|
||||||
|
PHY_vars_eNB_g[0][CC_id]->rfdevice.trx_end_func(&PHY_vars_eNB_g[0][CC_id]->rfdevice);
|
||||||
|
PHY_vars_eNB_g[0][CC_id]->ifdevice.trx_end_func(&PHY_vars_eNB_g[0][CC_id]->ifdevice);
|
||||||
|
}
|
||||||
|
|
||||||
if (ouput_vcd)
|
if (ouput_vcd)
|
||||||
VCD_SIGNAL_DUMPER_CLOSE();
|
VCD_SIGNAL_DUMPER_CLOSE();
|
||||||
|
|||||||
Reference in New Issue
Block a user