remove unused harq ue phy unit test
This commit is contained in:
@@ -73,12 +73,6 @@ target_link_libraries(frame_config_test
|
|||||||
pthread m ${ATLAS_LIBRARIES}
|
pthread m ${ATLAS_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
||||||
add_executable(harq_test ${OPENAIR1_DIR}/SIMULATION/NR_UE_PHY/unit_tests/src/harq_test.c ${SRC_UNIT_TESTS} )
|
|
||||||
target_link_libraries(harq_test
|
|
||||||
-Wl,--start-group UTIL SCHED_NR_UE_LIB PHY PHY_COMMON PHY_UE PHY_NR_UE -Wl,--end-group
|
|
||||||
pthread m ${ATLAS_LIBRARIES}
|
|
||||||
)
|
|
||||||
|
|
||||||
add_executable(srs_test ${OPENAIR1_DIR}/SIMULATION/NR_UE_PHY/unit_tests/src/srs_test.c ${SRC_UNIT_TESTS} )
|
add_executable(srs_test ${OPENAIR1_DIR}/SIMULATION/NR_UE_PHY/unit_tests/src/srs_test.c ${SRC_UNIT_TESTS} )
|
||||||
target_link_libraries(srs_test
|
target_link_libraries(srs_test
|
||||||
-Wl,--start-group UTIL SCHED_NR_UE_LIB PHY PHY_COMMON PHY_UE PHY_NR_UE -Wl,--end-group
|
-Wl,--start-group UTIL SCHED_NR_UE_LIB PHY PHY_COMMON PHY_UE PHY_NR_UE -Wl,--end-group
|
||||||
|
|||||||
@@ -1,47 +0,0 @@
|
|||||||
HARQ TEST
|
|
||||||
----------
|
|
||||||
log init done
|
|
||||||
Start lte_param_init, frame_type 0, extended_prefix 0
|
|
||||||
[PHY][I][nr_init_frame_parms_ue] Initializing frame parms for mu 1, N_RB 106, Ncp 0
|
|
||||||
Initializing UE vars (abstraction 0) for eNB TXant 1, UE RXant 1
|
|
||||||
|
|
||||||
HARQ Uplink
|
|
||||||
First sequence ndi does not toggle
|
|
||||||
[HARQ-UL-PUSCH harqId : 0] first new transmission
|
|
||||||
[HARQ-UL-PUSCH harqId : 0] retransmission
|
|
||||||
[HARQ-UL-PUSCH harqId : 0] retransmission
|
|
||||||
[HARQ-UL-PUSCH harqId : 0] retransmission
|
|
||||||
[HARQ-UL-PUSCH harqId : 0] retransmission
|
|
||||||
Second sequence ndi toggle each transmission
|
|
||||||
[HARQ-UL-PUSCH harqId : 1] first new transmission
|
|
||||||
[HARQ-UL-PUSCH harqId : 1] new transmission due to toogle of ndi
|
|
||||||
[HARQ-UL-PUSCH harqId : 1] new transmission due to toogle of ndi
|
|
||||||
[HARQ-UL-PUSCH harqId : 1] new transmission due to toogle of ndi
|
|
||||||
[HARQ-UL-PUSCH harqId : 1] new transmission due to toogle of ndi
|
|
||||||
Third sequence ndi toggle each two transmissions
|
|
||||||
[HARQ-UL-PUSCH harqId : 2] first new transmission
|
|
||||||
[HARQ-UL-PUSCH harqId : 2] retransmission
|
|
||||||
[HARQ-UL-PUSCH harqId : 2] new transmission due to toogle of ndi
|
|
||||||
[HARQ-UL-PUSCH harqId : 2] retransmission
|
|
||||||
[HARQ-UL-PUSCH harqId : 2] new transmission due to toogle of ndi
|
|
||||||
|
|
||||||
HARQ Downlink
|
|
||||||
First sequence ndi does not toggle
|
|
||||||
[HARQ-DL-PDSCH harqId : 0] first new reception
|
|
||||||
[HARQ-DL-PDSCH harqId : 0] reception of a retransmission
|
|
||||||
[HARQ-DL-PDSCH harqId : 0] reception of a retransmission
|
|
||||||
[HARQ-DL-PDSCH harqId : 0] reception of a retransmission
|
|
||||||
[HARQ-DL-PDSCH harqId : 0] reception of a retransmission
|
|
||||||
Second sequence ndi toggle each transmission
|
|
||||||
[HARQ-DL-PDSCH harqId : 1] first new reception
|
|
||||||
[HARQ-DL-PDSCH harqId : 1] new reception due to toogle of ndi
|
|
||||||
[HARQ-DL-PDSCH harqId : 1] new reception due to toogle of ndi
|
|
||||||
[HARQ-DL-PDSCH harqId : 1] new reception due to toogle of ndi
|
|
||||||
[HARQ-DL-PDSCH harqId : 1] new reception due to toogle of ndi
|
|
||||||
Third sequence ndi toggle each two transmissions
|
|
||||||
[HARQ-DL-PDSCH harqId : 2] first new reception
|
|
||||||
[HARQ-DL-PDSCH harqId : 2] reception of a retransmission
|
|
||||||
[HARQ-DL-PDSCH harqId : 2] new reception due to toogle of ndi
|
|
||||||
[HARQ-DL-PDSCH harqId : 2] reception of a retransmission
|
|
||||||
[HARQ-DL-PDSCH harqId : 2] new reception due to toogle of ndi
|
|
||||||
Test NR HARQ is pass
|
|
||||||
@@ -67,8 +67,7 @@ tst_files="
|
|||||||
sss_test
|
sss_test
|
||||||
pbch_test
|
pbch_test
|
||||||
srs_test
|
srs_test
|
||||||
frame_config_test
|
frame_config_test"
|
||||||
harq_test"
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
# manage input parameters
|
# manage input parameters
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ sss_test.c: test for detection of secundary synchronisation signal.
|
|||||||
pbch_test.c: test for decoding of packet braodcast channel.
|
pbch_test.c: test for decoding of packet braodcast channel.
|
||||||
srs_test.c: test of sounding reference signal.
|
srs_test.c: test of sounding reference signal.
|
||||||
frame_config_test.c : test of frame configurations (FDD/TDD).
|
frame_config_test.c : test of frame configurations (FDD/TDD).
|
||||||
harq_test.c : test of HARQ downlink and uplink.
|
|
||||||
pss_util_test.c: common functions for running synchronisation tests.
|
pss_util_test.c: common functions for running synchronisation tests.
|
||||||
pss_util_test.h: common headers for synchronisation tests.
|
pss_util_test.h: common headers for synchronisation tests.
|
||||||
input_buffer_test.h: it allows providing samples for pss test.
|
input_buffer_test.h: it allows providing samples for pss test.
|
||||||
@@ -73,7 +72,6 @@ make sss_test -> build sss_test: detection of NR SSS (Secundary Synchr
|
|||||||
make pbch_test -> build pbch_test: decoding of NR PBCH (Packet Broadcast Channel -> UE read MIB Master Information Block which gives network parameters).
|
make pbch_test -> build pbch_test: decoding of NR PBCH (Packet Broadcast Channel -> UE read MIB Master Information Block which gives network parameters).
|
||||||
make frame_config_test -> build frame_config_test: NR FDD/TDD configuration.
|
make frame_config_test -> build frame_config_test: NR FDD/TDD configuration.
|
||||||
make srs_test -> build srs_test: Sounding Reference Signals are transmitted by UE to the network which can use them for channel estimations.
|
make srs_test -> build srs_test: Sounding Reference Signals are transmitted by UE to the network which can use them for channel estimations.
|
||||||
make harq_test -> build harq_test: Hybrid Repeat Request Acknowledgment: mecanism to acknowledge transmitted and received transport blocks.
|
|
||||||
make clean -> clean all projects.
|
make clean -> clean all projects.
|
||||||
|
|
||||||
And execution of tests:
|
And execution of tests:
|
||||||
@@ -82,7 +80,6 @@ And execution of tests:
|
|||||||
./pbch_test -> run NR PBCH tests.
|
./pbch_test -> run NR PBCH tests.
|
||||||
./srs_test -> run NR srs tests.
|
./srs_test -> run NR srs tests.
|
||||||
./frame_config_test -> run NR frame configuration tests.
|
./frame_config_test -> run NR frame configuration tests.
|
||||||
./harq_test -> run NR HARQ downlink and uplink tests.
|
|
||||||
|
|
||||||
There is a script in build/run_test.sh which allows:
|
There is a script in build/run_test.sh which allows:
|
||||||
- building/running/checking all tests
|
- building/running/checking all tests
|
||||||
|
|||||||
@@ -1,164 +0,0 @@
|
|||||||
/*
|
|
||||||
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
|
|
||||||
* contributor license agreements. See the NOTICE file distributed with
|
|
||||||
* this work for additional information regarding copyright ownership.
|
|
||||||
* The OpenAirInterface Software Alliance licenses this file to You under
|
|
||||||
* the OAI Public License, Version 1.1 (the "License"); you may not use this file
|
|
||||||
* except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.openairinterface.org/?page_id=698
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*-------------------------------------------------------------------------------
|
|
||||||
* For more information about the OpenAirInterface (OAI) Software Alliance:
|
|
||||||
* contact@openairinterface.org
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**********************************************************************
|
|
||||||
*
|
|
||||||
* FILENAME : harq_test.c
|
|
||||||
*
|
|
||||||
* MODULE : UE test bench for hard (hybrid repeat request acknowledgment)
|
|
||||||
*
|
|
||||||
* DESCRIPTION : it allows unitary tests for downlink harq
|
|
||||||
*
|
|
||||||
************************************************************************/
|
|
||||||
|
|
||||||
#include "../../unit_tests/src/pss_util_test.h"
|
|
||||||
#include "PHY/defs_nr_UE.h"
|
|
||||||
#include "PHY/INIT/init_extern.h"
|
|
||||||
#include "PHY/phy_extern_nr_ue.h"
|
|
||||||
|
|
||||||
#include "SCHED_NR_UE/harq_nr.h"
|
|
||||||
|
|
||||||
//#include "PHY/vars.h"
|
|
||||||
//#include "LAYER2/MAC/vars.h"
|
|
||||||
|
|
||||||
/*******************************************************************
|
|
||||||
*
|
|
||||||
* NAME : test_harq_downlink
|
|
||||||
*
|
|
||||||
* PARAMETERS : none
|
|
||||||
*
|
|
||||||
* RETURN : none
|
|
||||||
*
|
|
||||||
* DESCRIPTION : test of HARQ downlink feature
|
|
||||||
*
|
|
||||||
*********************************************************************/
|
|
||||||
|
|
||||||
int test_harq_downlink(PHY_VARS_NR_UE *phy_vars_ue)
|
|
||||||
{
|
|
||||||
int gNB_id = 0;
|
|
||||||
int harq_pid = 0;
|
|
||||||
int ndi = 1;
|
|
||||||
uint8_t rnti_type = TYPE_C_RNTI_;
|
|
||||||
int number_steps = 5;
|
|
||||||
int thread_number = 0;
|
|
||||||
int TB_identifier = 0;
|
|
||||||
|
|
||||||
printf("\nHARQ Downlink \n");
|
|
||||||
|
|
||||||
config_downlink_harq_process(phy_vars_ue , gNB_id, TB_identifier, thread_number, NR_DEFAULT_DLSCH_HARQ_PROCESSES);
|
|
||||||
|
|
||||||
NR_DL_UE_HARQ_t *dlsch_harq = phy_vars_ue->dlsch[thread_number][gNB_id][TB_identifier]->harq_processes[harq_pid];
|
|
||||||
|
|
||||||
/* reach maximum number of retransmissions */
|
|
||||||
printf("First sequence ndi does not toggle \n");
|
|
||||||
for (int i = 0 ; i < number_steps; i++) {
|
|
||||||
downlink_harq_process(dlsch_harq, harq_pid, ndi, rnti_type);
|
|
||||||
}
|
|
||||||
|
|
||||||
harq_pid++; /* next harq */
|
|
||||||
dlsch_harq = phy_vars_ue->dlsch[thread_number][gNB_id][TB_identifier]->harq_processes[harq_pid];
|
|
||||||
|
|
||||||
/* new grant so new transmission each try */
|
|
||||||
printf("Second sequence ndi toggle each transmission \n");
|
|
||||||
for (int i = 0 ; i < number_steps; i++) {
|
|
||||||
downlink_harq_process(dlsch_harq, harq_pid, ndi, rnti_type);
|
|
||||||
ndi ^= 1; /* toogle ndi each try */
|
|
||||||
}
|
|
||||||
|
|
||||||
harq_pid++; /* next harq */
|
|
||||||
dlsch_harq = phy_vars_ue->dlsch[thread_number][gNB_id][TB_identifier]->harq_processes[harq_pid];
|
|
||||||
|
|
||||||
/* new grant so new transmission each try */
|
|
||||||
printf("Third sequence ndi toggle each two transmissions \n");
|
|
||||||
for (int i = 0 ; i < number_steps; i++) {
|
|
||||||
downlink_harq_process(dlsch_harq, harq_pid, ndi, rnti_type);
|
|
||||||
if (i & 0x1) {
|
|
||||||
ndi ^= 1; /* toogle ndi each try */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
release_downlink_harq_process(phy_vars_ue , gNB_id, TB_identifier, thread_number);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*******************************************************************
|
|
||||||
*
|
|
||||||
* NAME : test_harq
|
|
||||||
*
|
|
||||||
* PARAMETERS : none
|
|
||||||
*
|
|
||||||
* RETURN : none
|
|
||||||
*
|
|
||||||
* DESCRIPTION : test of HARQ feature
|
|
||||||
*
|
|
||||||
*********************************************************************/
|
|
||||||
|
|
||||||
int test_harq(PHY_VARS_NR_UE *phy_vars_ue)
|
|
||||||
{
|
|
||||||
int result = -1;
|
|
||||||
|
|
||||||
result = test_harq_downlink(phy_vars_ue);
|
|
||||||
|
|
||||||
return (result);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*******************************************************************
|
|
||||||
*
|
|
||||||
* NAME : main
|
|
||||||
*
|
|
||||||
* DESCRIPTION : test of downlink harq entities
|
|
||||||
*
|
|
||||||
*********************************************************************/
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
|
||||||
{
|
|
||||||
VOID_PARAMETER argc;
|
|
||||||
VOID_PARAMETER argv;
|
|
||||||
uint8_t transmission_mode = 1;
|
|
||||||
uint8_t nb_antennas_tx = 1;
|
|
||||||
uint8_t nb_antennas_rx = 1;
|
|
||||||
uint8_t frame_type = FDD;
|
|
||||||
int N_RB_DL=100;
|
|
||||||
lte_prefix_type_t extended_prefix_flag = NORMAL;
|
|
||||||
int Nid_cell[] = {(3*0+0)};
|
|
||||||
VOID_PARAMETER argc;
|
|
||||||
VOID_PARAMETER argv;
|
|
||||||
|
|
||||||
printf(" HARQ TEST \n");
|
|
||||||
printf("----------\n");
|
|
||||||
|
|
||||||
if (init_test(nb_antennas_tx, nb_antennas_rx, transmission_mode, extended_prefix_flag, frame_type, Nid_cell[0], N_RB_DL) != 0) {
|
|
||||||
printf("Initialisation problem for harq test \n");
|
|
||||||
exit(-1);;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (test_harq(PHY_vars_UE) != 0) {
|
|
||||||
printf("Test NR HARQ is fail \n");
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
printf("Test NR HARQ is pass \n");
|
|
||||||
}
|
|
||||||
|
|
||||||
free_context_synchro_nr();
|
|
||||||
|
|
||||||
return(0);
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user