2021-06-17 09:24:02 -07:00
|
|
|
#
|
|
|
|
# Copyright 2013-2021 Software Radio Systems Limited
|
|
|
|
#
|
|
|
|
# By using this file, you agree to the terms and conditions set
|
|
|
|
# forth in the LICENSE file which can be found at the top level of
|
|
|
|
# the distribution.
|
|
|
|
#
|
|
|
|
|
2021-06-22 01:15:26 -07:00
|
|
|
if (RF_FOUND AND ENABLE_SRSUE AND ENABLE_SRSENB)
|
2021-10-04 09:00:18 -07:00
|
|
|
# gNb options
|
2021-07-19 01:04:56 -07:00
|
|
|
set(NR_PHY_TEST_GNB_NOF_THREADS 1)
|
2021-10-04 09:00:18 -07:00
|
|
|
set(NR_PHY_TEST_GNB_PHY_LOG_LEVEL "error")
|
2021-10-12 02:35:11 -07:00
|
|
|
set(NR_PHY_TEST_GNB_STACK_LOG_LEVEL "error")
|
2021-10-04 09:00:18 -07:00
|
|
|
|
|
|
|
# UE options
|
2021-07-19 01:04:56 -07:00
|
|
|
set(NR_PHY_TEST_UE_NOF_THREADS 1)
|
2021-10-04 09:00:18 -07:00
|
|
|
set(NR_PHY_TEST_UE_PHY_LOG_LEVEL "error")
|
|
|
|
|
|
|
|
# Build common arguments
|
|
|
|
set(NR_PHY_TEST_COMMON_ARGS
|
2021-10-12 02:35:11 -07:00
|
|
|
--gnb.phy.nof_threads=${NR_PHY_TEST_GNB_NOF_THREADS}
|
|
|
|
--ue.phy.nof_threads=${NR_PHY_TEST_UE_NOF_THREADS}
|
|
|
|
--ue.phy.log.level=${NR_PHY_TEST_UE_PHY_LOG_LEVEL}
|
|
|
|
--gnb.phy.log.level=${NR_PHY_TEST_GNB_PHY_LOG_LEVEL}
|
|
|
|
--gnb.stack.log.level=${NR_PHY_TEST_GNB_STACK_LOG_LEVEL})
|
2021-07-16 08:08:02 -07:00
|
|
|
|
2021-07-05 08:09:34 -07:00
|
|
|
add_executable(nr_phy_test nr_phy_test.cc)
|
2021-06-22 01:15:26 -07:00
|
|
|
target_link_libraries(nr_phy_test
|
|
|
|
srsue_phy
|
|
|
|
srsran_common
|
|
|
|
srsran_phy
|
|
|
|
srsran_radio
|
|
|
|
srsenb_phy
|
2021-07-16 07:53:12 -07:00
|
|
|
srsgnb_mac
|
2021-08-26 09:25:07 -07:00
|
|
|
srsran_mac
|
2021-06-22 01:15:26 -07:00
|
|
|
${CMAKE_THREAD_LIBS_INIT}
|
|
|
|
${Boost_LIBRARIES}
|
|
|
|
${CMAKE_THREAD_LIBS_INIT}
|
|
|
|
${Boost_LIBRARIES}
|
|
|
|
${ATOMIC_LIBS})
|
2021-09-21 06:11:05 -07:00
|
|
|
# For each supported bandwidth
|
2021-08-02 04:04:43 -07:00
|
|
|
foreach (NR_PHY_TEST_BW "10MHz" "20MHz")
|
2021-10-12 02:35:11 -07:00
|
|
|
# For dummy and real scheduler
|
|
|
|
foreach (NR_PHY_TEST_MAC_DUMMY "dummymac" "realmac")
|
|
|
|
# For each supported frame structure
|
|
|
|
foreach (NR_PHY_TEST_DUPLEX "FDD" "6D+4U" "FR1.15-1")
|
|
|
|
set(NR_PHY_TEST_DURATION_MS 50)
|
2021-07-13 14:23:01 -07:00
|
|
|
|
2021-10-12 02:35:11 -07:00
|
|
|
# DL flooding only
|
|
|
|
foreach (NR_PHY_TEST_PDSCH "default" "ts38101/5.2-1")
|
|
|
|
add_nr_test(nr_phy_test_${NR_PHY_TEST_BW}_${NR_PHY_TEST_MAC_DUMMY}_${NR_PHY_TEST_DUPLEX}_dl_${NR_PHY_TEST_PDSCH} nr_phy_test
|
|
|
|
--reference=carrier=${NR_PHY_TEST_BW},duplex=${NR_PHY_TEST_DUPLEX},pdsch=${NR_PHY_TEST_PDSCH}
|
|
|
|
--duration=${NR_PHY_TEST_DURATION_MS}
|
|
|
|
--gnb.stack.pdsch.slots=all
|
|
|
|
--gnb.stack.pdsch.start=0 # Start at RB 0
|
|
|
|
--gnb.stack.pdsch.length=52 # Full 10 MHz BW
|
|
|
|
--gnb.stack.pdsch.mcs=27 # Maximum MCS
|
|
|
|
--gnb.stack.pusch.slots=none
|
2021-10-12 02:48:11 -07:00
|
|
|
--gnb.stack.use_dummy_mac=${NR_PHY_TEST_MAC_DUMMY} # Use real/dummy NR MAC
|
2021-10-12 02:35:11 -07:00
|
|
|
${NR_PHY_TEST_COMMON_ARGS}
|
|
|
|
)
|
|
|
|
endforeach ()
|
|
|
|
|
|
|
|
# UL flooding
|
|
|
|
add_nr_test(nr_phy_test_${NR_PHY_TEST_BW}_${NR_PHY_TEST_MAC_DUMMY}_${NR_PHY_TEST_DUPLEX}_ul_only nr_phy_test
|
|
|
|
--reference=carrier=${NR_PHY_TEST_BW},duplex=${NR_PHY_TEST_DUPLEX}
|
|
|
|
--duration=${NR_PHY_TEST_DURATION_MS}
|
|
|
|
--gnb.stack.pdsch.slots=none
|
|
|
|
--gnb.stack.pusch.slots=all
|
|
|
|
--gnb.stack.pusch.start=0 # Start at RB 0
|
|
|
|
--gnb.stack.pusch.length=52 # Full 10 MHz BW
|
|
|
|
--gnb.stack.pusch.mcs=28 # Maximum MCS
|
2021-10-12 02:48:11 -07:00
|
|
|
--gnb.stack.use_dummy_mac=${NR_PHY_TEST_MAC_DUMMY} # Use real/dummy NR MAC
|
2021-10-12 02:35:11 -07:00
|
|
|
${NR_PHY_TEST_COMMON_ARGS}
|
|
|
|
)
|
|
|
|
|
|
|
|
# DL and UL flooding
|
|
|
|
add_nr_test(nr_phy_test_${NR_PHY_TEST_BW}_${NR_PHY_TEST_MAC_DUMMY}_${NR_PHY_TEST_DUPLEX}_bidir nr_phy_test
|
|
|
|
--reference=carrier=${NR_PHY_TEST_BW},duplex=${NR_PHY_TEST_DUPLEX}
|
2021-08-02 04:04:43 -07:00
|
|
|
--duration=${NR_PHY_TEST_DURATION_MS}
|
2021-09-21 06:11:05 -07:00
|
|
|
--gnb.stack.pdsch.slots=all
|
2021-08-02 04:04:43 -07:00
|
|
|
--gnb.stack.pdsch.start=0 # Start at RB 0
|
|
|
|
--gnb.stack.pdsch.length=52 # Full 10 MHz BW
|
2021-10-12 02:35:11 -07:00
|
|
|
--gnb.stack.pdsch.mcs=28 # Maximum MCS
|
|
|
|
--gnb.stack.pusch.slots=all
|
|
|
|
--gnb.stack.pusch.start=0 # Start at RB 0
|
|
|
|
--gnb.stack.pusch.length=52 # Full 10 MHz BW
|
|
|
|
--gnb.stack.pusch.mcs=28 # Maximum MCS
|
2021-10-12 02:48:11 -07:00
|
|
|
--gnb.stack.use_dummy_mac=${NR_PHY_TEST_MAC_DUMMY} # Use real/dummy NR MAC
|
2021-10-04 09:00:18 -07:00
|
|
|
${NR_PHY_TEST_COMMON_ARGS}
|
2021-08-02 04:04:43 -07:00
|
|
|
)
|
|
|
|
endforeach ()
|
2021-07-21 07:24:17 -07:00
|
|
|
endforeach ()
|
2021-07-21 04:23:14 -07:00
|
|
|
|
2021-09-21 06:53:40 -07:00
|
|
|
# Test PRACH transmission and detection
|
2021-09-29 06:14:48 -07:00
|
|
|
add_nr_test(nr_phy_test_${NR_PHY_TEST_BW}_prach_fdd nr_phy_test
|
|
|
|
--reference=carrier=${NR_PHY_TEST_BW},duplex=FDD
|
|
|
|
--duration=1000 # 1000 slots
|
|
|
|
--gnb.stack.pdsch.slots=none # No PDSCH
|
|
|
|
--gnb.stack.pusch.slots=none # No PUSCH
|
|
|
|
--gnb.phy.nof_threads=${NR_PHY_TEST_GNB_NOF_THREADS}
|
|
|
|
--ue.stack.prach.period=30 # Transmit PRACH every 30 radio frames
|
|
|
|
--ue.phy.nof_threads=${NR_PHY_TEST_UE_NOF_THREADS}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_nr_test(nr_phy_test_${NR_PHY_TEST_BW}_prach_tdd nr_phy_test
|
|
|
|
--reference=carrier=${NR_PHY_TEST_BW},duplex=6D+4U
|
2021-09-21 06:53:40 -07:00
|
|
|
--duration=1000 # 1000 slots
|
2021-08-02 04:04:43 -07:00
|
|
|
--gnb.stack.pdsch.slots=none # No PDSCH
|
|
|
|
--gnb.stack.pusch.slots=none # No PUSCH
|
|
|
|
--ue.stack.prach.period=30 # Transmit PRACH every 30 radio frames
|
2021-10-04 09:00:18 -07:00
|
|
|
${NR_PHY_TEST_COMMON_ARGS}
|
2021-08-02 04:04:43 -07:00
|
|
|
)
|
2021-09-21 06:53:40 -07:00
|
|
|
|
|
|
|
# Test scheduling request
|
|
|
|
add_nr_test(nr_phy_test_${NR_PHY_TEST_BW}_sr nr_phy_test
|
|
|
|
--reference=carrier=${NR_PHY_TEST_BW}
|
|
|
|
--duration=1000 # 1000 slots
|
|
|
|
--gnb.stack.pdsch.slots=none # No PDSCH
|
|
|
|
--gnb.stack.pusch.slots=none # No PUSCH
|
|
|
|
--ue.stack.sr.period=4 # Transmit SR every 4 opportunities
|
2021-10-04 09:00:18 -07:00
|
|
|
${NR_PHY_TEST_COMMON_ARGS}
|
2021-09-21 06:53:40 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
# Test scheduling request multiplexed with HARQ ACK feedback
|
|
|
|
add_nr_test(nr_phy_test_${NR_PHY_TEST_BW}_sr_harq nr_phy_test
|
|
|
|
--reference=carrier=${NR_PHY_TEST_BW}
|
|
|
|
--duration=1000 # 1000 slots
|
|
|
|
--gnb.stack.pdsch.slots=all # All PDSCH
|
|
|
|
--gnb.stack.pusch.slots=none # No PUSCH
|
|
|
|
--ue.stack.sr.period=4 # Transmit SR every 4 opportunities
|
2021-10-04 09:00:18 -07:00
|
|
|
${NR_PHY_TEST_COMMON_ARGS}
|
2021-09-21 06:53:40 -07:00
|
|
|
)
|
2021-08-02 04:04:43 -07:00
|
|
|
endforeach ()
|
2021-06-20 22:59:57 -07:00
|
|
|
endif ()
|