|
|
@ -22,15 +22,15 @@
|
|
|
|
# PBCH TEST
|
|
|
|
# PBCH TEST
|
|
|
|
########################################################################
|
|
|
|
########################################################################
|
|
|
|
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(pbch_test pbch_test.c)
|
|
|
|
add_executable(pbch_test pbch_test.c)
|
|
|
|
TARGET_LINK_LIBRARIES(pbch_test srslte)
|
|
|
|
target_link_libraries(pbch_test srslte)
|
|
|
|
|
|
|
|
|
|
|
|
ADD_TEST(pbch_test_6 pbch_test -p 1 -n 6 -c 100)
|
|
|
|
add_test(pbch_test_6 pbch_test -p 1 -n 6 -c 100)
|
|
|
|
ADD_TEST(pbch_test_62 pbch_test -p 2 -n 6 -c 100)
|
|
|
|
add_test(pbch_test_62 pbch_test -p 2 -n 6 -c 100)
|
|
|
|
ADD_TEST(pbch_test_64 pbch_test -p 4 -n 6 -c 100)
|
|
|
|
add_test(pbch_test_64 pbch_test -p 4 -n 6 -c 100)
|
|
|
|
ADD_TEST(pbch_test_50 pbch_test -p 1 -n 50 -c 50)
|
|
|
|
add_test(pbch_test_50 pbch_test -p 1 -n 50 -c 50)
|
|
|
|
ADD_TEST(pbch_test_502 pbch_test -p 2 -n 50 -c 50)
|
|
|
|
add_test(pbch_test_502 pbch_test -p 2 -n 50 -c 50)
|
|
|
|
ADD_TEST(pbch_test_504 pbch_test -p 4 -n 50 -c 50)
|
|
|
|
add_test(pbch_test_504 pbch_test -p 4 -n 50 -c 50)
|
|
|
|
|
|
|
|
|
|
|
|
BuildMex(MEXNAME pbch SOURCES pbch_test_mex.c LIBRARIES srslte srslte_mex)
|
|
|
|
BuildMex(MEXNAME pbch SOURCES pbch_test_mex.c LIBRARIES srslte srslte_mex)
|
|
|
|
|
|
|
|
|
|
|
@ -39,15 +39,15 @@ BuildMex(MEXNAME pbch SOURCES pbch_test_mex.c LIBRARIES srslte srslte_mex)
|
|
|
|
# PCFICH TEST
|
|
|
|
# PCFICH TEST
|
|
|
|
########################################################################
|
|
|
|
########################################################################
|
|
|
|
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(pcfich_test pcfich_test.c)
|
|
|
|
add_executable(pcfich_test pcfich_test.c)
|
|
|
|
TARGET_LINK_LIBRARIES(pcfich_test srslte)
|
|
|
|
target_link_libraries(pcfich_test srslte)
|
|
|
|
|
|
|
|
|
|
|
|
ADD_TEST(pcfich_test_6 pcfich_test -p 1 -n 6)
|
|
|
|
add_test(pcfich_test_6 pcfich_test -p 1 -n 6)
|
|
|
|
ADD_TEST(pcfich_test_62 pcfich_test -p 2 -n 6)
|
|
|
|
add_test(pcfich_test_62 pcfich_test -p 2 -n 6)
|
|
|
|
ADD_TEST(pcfich_test_64 pcfich_test -p 4 -n 6)
|
|
|
|
add_test(pcfich_test_64 pcfich_test -p 4 -n 6)
|
|
|
|
ADD_TEST(pcfich_test_10 pcfich_test -p 1 -n 10)
|
|
|
|
add_test(pcfich_test_10 pcfich_test -p 1 -n 10)
|
|
|
|
ADD_TEST(pcfich_test_102 pcfich_test -p 2 -n 10)
|
|
|
|
add_test(pcfich_test_102 pcfich_test -p 2 -n 10)
|
|
|
|
ADD_TEST(pcfich_test_104 pcfich_test -p 4 -n 10)
|
|
|
|
add_test(pcfich_test_104 pcfich_test -p 4 -n 10)
|
|
|
|
|
|
|
|
|
|
|
|
BuildMex(MEXNAME pcfich SOURCES pcfich_test_mex.c LIBRARIES srslte srslte_mex)
|
|
|
|
BuildMex(MEXNAME pcfich SOURCES pcfich_test_mex.c LIBRARIES srslte srslte_mex)
|
|
|
|
|
|
|
|
|
|
|
@ -55,33 +55,33 @@ BuildMex(MEXNAME pcfich SOURCES pcfich_test_mex.c LIBRARIES srslte srslte_mex)
|
|
|
|
# PHICH TEST
|
|
|
|
# PHICH TEST
|
|
|
|
########################################################################
|
|
|
|
########################################################################
|
|
|
|
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(phich_test phich_test.c)
|
|
|
|
add_executable(phich_test phich_test.c)
|
|
|
|
TARGET_LINK_LIBRARIES(phich_test srslte)
|
|
|
|
target_link_libraries(phich_test srslte)
|
|
|
|
|
|
|
|
|
|
|
|
ADD_TEST(phich_test_6 phich_test -p 1 -n 6)
|
|
|
|
add_test(phich_test_6 phich_test -p 1 -n 6)
|
|
|
|
ADD_TEST(phich_test_62 phich_test -p 2 -n 6)
|
|
|
|
add_test(phich_test_62 phich_test -p 2 -n 6)
|
|
|
|
ADD_TEST(phich_test_64 phich_test -p 4 -n 6 -g 1/6)
|
|
|
|
add_test(phich_test_64 phich_test -p 4 -n 6 -g 1/6)
|
|
|
|
|
|
|
|
|
|
|
|
ADD_TEST(phich_test_6e phich_test -p 1 -n 6 -e)
|
|
|
|
add_test(phich_test_6e phich_test -p 1 -n 6 -e)
|
|
|
|
ADD_TEST(phich_test_62e phich_test -p 2 -n 6 -e -l)
|
|
|
|
add_test(phich_test_62e phich_test -p 2 -n 6 -e -l)
|
|
|
|
ADD_TEST(phich_test_64e phich_test -p 4 -n 6 -e -l -g 2)
|
|
|
|
add_test(phich_test_64e phich_test -p 4 -n 6 -e -l -g 2)
|
|
|
|
|
|
|
|
|
|
|
|
ADD_TEST(phich_test_10 phich_test -p 1 -n 10 -e)
|
|
|
|
add_test(phich_test_10 phich_test -p 1 -n 10 -e)
|
|
|
|
ADD_TEST(phich_test_102 phich_test -p 2 -n 10 -g 2)
|
|
|
|
add_test(phich_test_102 phich_test -p 2 -n 10 -g 2)
|
|
|
|
ADD_TEST(phich_test_104 phich_test -p 4 -n 10 -e -l -g 1/2)
|
|
|
|
add_test(phich_test_104 phich_test -p 4 -n 10 -e -l -g 1/2)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
########################################################################
|
|
|
|
########################################################################
|
|
|
|
# PDCCH TEST
|
|
|
|
# PDCCH TEST
|
|
|
|
########################################################################
|
|
|
|
########################################################################
|
|
|
|
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(pdcch_test pdcch_test.c)
|
|
|
|
add_executable(pdcch_test pdcch_test.c)
|
|
|
|
TARGET_LINK_LIBRARIES(pdcch_test srslte)
|
|
|
|
target_link_libraries(pdcch_test srslte)
|
|
|
|
|
|
|
|
|
|
|
|
ADD_TEST(pdcch_test pdcch_test)
|
|
|
|
add_test(pdcch_test pdcch_test)
|
|
|
|
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(dci_unpacking dci_unpacking.c)
|
|
|
|
add_executable(dci_unpacking dci_unpacking.c)
|
|
|
|
TARGET_LINK_LIBRARIES(dci_unpacking srslte)
|
|
|
|
target_link_libraries(dci_unpacking srslte)
|
|
|
|
|
|
|
|
|
|
|
|
BuildMex(MEXNAME pdcch SOURCES pdcch_test_mex.c LIBRARIES srslte srslte_mex)
|
|
|
|
BuildMex(MEXNAME pdcch SOURCES pdcch_test_mex.c LIBRARIES srslte srslte_mex)
|
|
|
|
|
|
|
|
|
|
|
@ -89,12 +89,12 @@ BuildMex(MEXNAME pdcch SOURCES pdcch_test_mex.c LIBRARIES srslte srslte_mex)
|
|
|
|
# PDSCH TEST
|
|
|
|
# PDSCH TEST
|
|
|
|
########################################################################
|
|
|
|
########################################################################
|
|
|
|
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(pdsch_test pdsch_test.c)
|
|
|
|
add_executable(pdsch_test pdsch_test.c)
|
|
|
|
TARGET_LINK_LIBRARIES(pdsch_test srslte)
|
|
|
|
target_link_libraries(pdsch_test srslte)
|
|
|
|
|
|
|
|
|
|
|
|
ADD_TEST(pdsch_test_qpsk pdsch_test -m 10 -n 50 -r 1)
|
|
|
|
add_test(pdsch_test_qpsk pdsch_test -m 10 -n 50 -r 1)
|
|
|
|
ADD_TEST(pdsch_test_qam16 pdsch_test -m 20 -n 100)
|
|
|
|
add_test(pdsch_test_qam16 pdsch_test -m 20 -n 100)
|
|
|
|
ADD_TEST(pdsch_test_qam64 pdsch_test -m 28 -n 100 -r 0)
|
|
|
|
add_test(pdsch_test_qam64 pdsch_test -m 28 -n 100 -r 0)
|
|
|
|
|
|
|
|
|
|
|
|
BuildMex(MEXNAME pdsch SOURCES pdsch_test_mex.c LIBRARIES srslte srslte_mex)
|
|
|
|
BuildMex(MEXNAME pdsch SOURCES pdsch_test_mex.c LIBRARIES srslte srslte_mex)
|
|
|
|
BuildMex(MEXNAME dlsch_encode SOURCES dlsch_encode_test_mex.c LIBRARIES srslte srslte_mex)
|
|
|
|
BuildMex(MEXNAME dlsch_encode SOURCES dlsch_encode_test_mex.c LIBRARIES srslte srslte_mex)
|
|
|
@ -103,47 +103,47 @@ BuildMex(MEXNAME dlsch_encode SOURCES dlsch_encode_test_mex.c LIBRARIES srslte s
|
|
|
|
# FILE TEST
|
|
|
|
# FILE TEST
|
|
|
|
########################################################################
|
|
|
|
########################################################################
|
|
|
|
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(pbch_file_test pbch_file_test.c)
|
|
|
|
add_executable(pbch_file_test pbch_file_test.c)
|
|
|
|
TARGET_LINK_LIBRARIES(pbch_file_test srslte)
|
|
|
|
target_link_libraries(pbch_file_test srslte)
|
|
|
|
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(pcfich_file_test pcfich_file_test.c)
|
|
|
|
add_executable(pcfich_file_test pcfich_file_test.c)
|
|
|
|
TARGET_LINK_LIBRARIES(pcfich_file_test srslte)
|
|
|
|
target_link_libraries(pcfich_file_test srslte)
|
|
|
|
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(phich_file_test phich_file_test.c)
|
|
|
|
add_executable(phich_file_test phich_file_test.c)
|
|
|
|
TARGET_LINK_LIBRARIES(phich_file_test srslte)
|
|
|
|
target_link_libraries(phich_file_test srslte)
|
|
|
|
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(pdcch_file_test pdcch_file_test.c)
|
|
|
|
add_executable(pdcch_file_test pdcch_file_test.c)
|
|
|
|
TARGET_LINK_LIBRARIES(pdcch_file_test srslte)
|
|
|
|
target_link_libraries(pdcch_file_test srslte)
|
|
|
|
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(pdsch_pdcch_file_test pdsch_pdcch_file_test.c)
|
|
|
|
add_executable(pdsch_pdcch_file_test pdsch_pdcch_file_test.c)
|
|
|
|
TARGET_LINK_LIBRARIES(pdsch_pdcch_file_test srslte)
|
|
|
|
target_link_libraries(pdsch_pdcch_file_test srslte)
|
|
|
|
|
|
|
|
|
|
|
|
ADD_TEST(pbch_file_test pbch_file_test -i ${CMAKE_CURRENT_SOURCE_DIR}/signal.1.92M.dat)
|
|
|
|
add_test(pbch_file_test pbch_file_test -i ${CMAKE_CURRENT_SOURCE_DIR}/signal.1.92M.dat)
|
|
|
|
ADD_TEST(pcfich_file_test pcfich_file_test -c 150 -n 50 -p 2 -i ${CMAKE_CURRENT_SOURCE_DIR}/signal.10M.dat)
|
|
|
|
add_test(pcfich_file_test pcfich_file_test -c 150 -n 50 -p 2 -i ${CMAKE_CURRENT_SOURCE_DIR}/signal.10M.dat)
|
|
|
|
ADD_TEST(phich_file_test phich_file_test -c 150 -n 50 -p 2 -i ${CMAKE_CURRENT_SOURCE_DIR}/signal.10M.dat)
|
|
|
|
add_test(phich_file_test phich_file_test -c 150 -n 50 -p 2 -i ${CMAKE_CURRENT_SOURCE_DIR}/signal.10M.dat)
|
|
|
|
ADD_TEST(pdcch_file_test pdcch_file_test -c 1 -f 3 -n 6 -p 1 -i ${CMAKE_CURRENT_SOURCE_DIR}/signal.1.92M.amar.dat)
|
|
|
|
add_test(pdcch_file_test pdcch_file_test -c 1 -f 3 -n 6 -p 1 -i ${CMAKE_CURRENT_SOURCE_DIR}/signal.1.92M.amar.dat)
|
|
|
|
ADD_TEST(pdsch_pdcch_file_test pdsch_pdcch_file_test -c 1 -f 3 -n 6 -p 1 -i ${CMAKE_CURRENT_SOURCE_DIR}/signal.1.92M.amar.dat)
|
|
|
|
add_test(pdsch_pdcch_file_test pdsch_pdcch_file_test -c 1 -f 3 -n 6 -p 1 -i ${CMAKE_CURRENT_SOURCE_DIR}/signal.1.92M.amar.dat)
|
|
|
|
|
|
|
|
|
|
|
|
########################################################################
|
|
|
|
########################################################################
|
|
|
|
# PUSCH TEST
|
|
|
|
# PUSCH TEST
|
|
|
|
########################################################################
|
|
|
|
########################################################################
|
|
|
|
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(pusch_test pusch_test.c)
|
|
|
|
add_executable(pusch_test pusch_test.c)
|
|
|
|
TARGET_LINK_LIBRARIES(pusch_test srslte)
|
|
|
|
target_link_libraries(pusch_test srslte)
|
|
|
|
|
|
|
|
|
|
|
|
BuildMex(MEXNAME ulsch_encode SOURCES ulsch_encode_test_mex.c LIBRARIES srslte srslte_mex)
|
|
|
|
BuildMex(MEXNAME ulsch_encode SOURCES ulsch_encode_test_mex.c LIBRARIES srslte srslte_mex)
|
|
|
|
BuildMex(MEXNAME pusch_encode SOURCES pusch_encode_test_mex.c LIBRARIES srslte srslte_mex)
|
|
|
|
BuildMex(MEXNAME pusch_encode SOURCES pusch_encode_test_mex.c LIBRARIES srslte srslte_mex)
|
|
|
|
|
|
|
|
|
|
|
|
ADD_TEST(pusch_test pusch_test)
|
|
|
|
add_test(pusch_test pusch_test)
|
|
|
|
|
|
|
|
|
|
|
|
########################################################################
|
|
|
|
########################################################################
|
|
|
|
# PUCCH TEST
|
|
|
|
# PUCCH TEST
|
|
|
|
########################################################################
|
|
|
|
########################################################################
|
|
|
|
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(pucch_test pucch_test.c)
|
|
|
|
add_executable(pucch_test pucch_test.c)
|
|
|
|
TARGET_LINK_LIBRARIES(pucch_test srslte)
|
|
|
|
target_link_libraries(pucch_test srslte)
|
|
|
|
|
|
|
|
|
|
|
|
ADD_TEST(pucch_test pucch_test)
|
|
|
|
add_test(pucch_test pucch_test)
|
|
|
|
|
|
|
|
|
|
|
|
BuildMex(MEXNAME pucch_encode SOURCES pucch_encode_test_mex.c LIBRARIES srslte srslte_mex)
|
|
|
|
BuildMex(MEXNAME pucch_encode SOURCES pucch_encode_test_mex.c LIBRARIES srslte srslte_mex)
|
|
|
|
|
|
|
|
|
|
|
@ -155,45 +155,45 @@ BuildMex(MEXNAME pucch_encode SOURCES pucch_encode_test_mex.c LIBRARIES srslte s
|
|
|
|
# PRACH TEST
|
|
|
|
# PRACH TEST
|
|
|
|
########################################################################
|
|
|
|
########################################################################
|
|
|
|
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(prach_test prach_test.c)
|
|
|
|
add_executable(prach_test prach_test.c)
|
|
|
|
TARGET_LINK_LIBRARIES(prach_test srslte)
|
|
|
|
target_link_libraries(prach_test srslte)
|
|
|
|
|
|
|
|
|
|
|
|
ADD_TEST(prach prach_test)
|
|
|
|
add_test(prach prach_test)
|
|
|
|
|
|
|
|
|
|
|
|
ADD_TEST(prach_256 prach_test -N 256)
|
|
|
|
add_test(prach_256 prach_test -N 256)
|
|
|
|
ADD_TEST(prach_512 prach_test -N 512)
|
|
|
|
add_test(prach_512 prach_test -N 512)
|
|
|
|
ADD_TEST(prach_1024 prach_test -N 1024)
|
|
|
|
add_test(prach_1024 prach_test -N 1024)
|
|
|
|
ADD_TEST(prach_1536 prach_test -N 1536)
|
|
|
|
add_test(prach_1536 prach_test -N 1536)
|
|
|
|
ADD_TEST(prach_2048 prach_test -N 2048)
|
|
|
|
add_test(prach_2048 prach_test -N 2048)
|
|
|
|
|
|
|
|
|
|
|
|
ADD_TEST(prach_f0 prach_test -f 0)
|
|
|
|
add_test(prach_f0 prach_test -f 0)
|
|
|
|
ADD_TEST(prach_f1 prach_test -f 1)
|
|
|
|
add_test(prach_f1 prach_test -f 1)
|
|
|
|
ADD_TEST(prach_f2 prach_test -f 2)
|
|
|
|
add_test(prach_f2 prach_test -f 2)
|
|
|
|
ADD_TEST(prach_f3 prach_test -f 3)
|
|
|
|
add_test(prach_f3 prach_test -f 3)
|
|
|
|
|
|
|
|
|
|
|
|
ADD_TEST(prach_rs1 prach_test -r 1)
|
|
|
|
add_test(prach_rs1 prach_test -r 1)
|
|
|
|
ADD_TEST(prach_rs2 prach_test -r 2)
|
|
|
|
add_test(prach_rs2 prach_test -r 2)
|
|
|
|
ADD_TEST(prach_rs3 prach_test -r 3)
|
|
|
|
add_test(prach_rs3 prach_test -r 3)
|
|
|
|
|
|
|
|
|
|
|
|
ADD_TEST(prach_zc0 prach_test -z 0)
|
|
|
|
add_test(prach_zc0 prach_test -z 0)
|
|
|
|
ADD_TEST(prach_zc2 prach_test -z 2)
|
|
|
|
add_test(prach_zc2 prach_test -z 2)
|
|
|
|
ADD_TEST(prach_zc3 prach_test -z 3)
|
|
|
|
add_test(prach_zc3 prach_test -z 3)
|
|
|
|
|
|
|
|
|
|
|
|
ADD_EXECUTABLE(prach_test_multi prach_test_multi.c)
|
|
|
|
add_executable(prach_test_multi prach_test_multi.c)
|
|
|
|
TARGET_LINK_LIBRARIES(prach_test_multi srslte)
|
|
|
|
target_link_libraries(prach_test_multi srslte)
|
|
|
|
|
|
|
|
|
|
|
|
ADD_TEST(prach_test_multi prach_test_multi)
|
|
|
|
add_test(prach_test_multi prach_test_multi)
|
|
|
|
|
|
|
|
|
|
|
|
ADD_TEST(prach_test_multi_n32 prach_test_multi -n 32)
|
|
|
|
add_test(prach_test_multi_n32 prach_test_multi -n 32)
|
|
|
|
ADD_TEST(prach_test_multi_n16 prach_test_multi -n 16)
|
|
|
|
add_test(prach_test_multi_n16 prach_test_multi -n 16)
|
|
|
|
ADD_TEST(prach_test_multi_n8 prach_test_multi -n 8)
|
|
|
|
add_test(prach_test_multi_n8 prach_test_multi -n 8)
|
|
|
|
ADD_TEST(prach_test_multi_n4 prach_test_multi -n 4)
|
|
|
|
add_test(prach_test_multi_n4 prach_test_multi -n 4)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildMex(MEXNAME prach SOURCES prach_test_mex.c LIBRARIES srslte srslte_mex)
|
|
|
|
BuildMex(MEXNAME prach SOURCES prach_test_mex.c LIBRARIES srslte srslte_mex)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IF(UHD_FOUND)
|
|
|
|
if(UHD_FOUND)
|
|
|
|
ADD_EXECUTABLE(prach_test_usrp prach_test_usrp.c)
|
|
|
|
add_executable(prach_test_usrp prach_test_usrp.c)
|
|
|
|
TARGET_LINK_LIBRARIES(prach_test_usrp srslte_rf srslte)
|
|
|
|
target_link_libraries(prach_test_usrp srslte_rf srslte pthread)
|
|
|
|
ENDIF(UHD_FOUND)
|
|
|
|
endif(UHD_FOUND)
|
|
|
|