OAI 物理层仿真器

主题:OAI 物理层仿真器
时间:2021年1月7日
作者:ybb
参考:OAI workshop

先build

 ./build_oai --phy_simulators

cd进入文件夹

cd phy_simulators/build

查看帮助选项


```c
./nr_dlsim -h

常用的:

-h This message
-n Number of frames to simulate
-R N_RB_DL
-f raw file containing RRC configuration (generated by gNB)
-F Input filename (.txt format) for RX conformance testing
-a Start PRB for PDSCH
-j Number of symbols for PDSCH (fixed for now)
-P Print DLSCH performances
-t Acceptable effective throughput (in percentage)
-x transmission_mode

所有支持的:

CPU Freq is 3.408210 
[CONFIG] get parameters from cmdline , debug flags: 0x00500000
Initializing random number generator, seed 0
./nr_dlsim -h(elp) -p(extended_prefix) -N cell_id -f output_filename -F input_filename -g channel_model -n n_frames -t Delayspread -s snr0 -S snr1 -x transmission_mode -y TXant -z RXant -i Intefrence0 -j Interference1 -A interpolation_file -C(alibration offset dB) -N CellId
-h This message
-n Number of frames to simulate
-s Starting SNR, runs from SNR0 to SNR0 + 5 dB.  If n_frames is 1 then just SNR is simulated
-S Ending SNR, runs from SNR0 to SNR1
-t Delay spread for multipath channel 
-g [A,B,C,D,E,F,G] Use 3GPP SCM (A,B,C,D) or 36-101 (E-EPA,F-EVA,G-ETU) models (ignores delay spread and Ricean factor)
-y Number of TX antennas used in gNB
-z Number of RX antennas used in UE
-R N_RB_DL
-O oversampling factor (1,2,4,8,16)
-A Interpolation_filname Run with Abstraction to generate Scatter plot using interpolation polynomial in file
-f raw file containing RRC configuration (generated by gNB)
-F Input filename (.txt format) for RX conformance testing
-E used CSS scheduler
-o CORESET offset
-a Start PRB for PDSCH
-b Number of PRB for PDSCH
-c Start symbol for PDSCH (fixed for now)
-j Number of symbols for PDSCH (fixed for now)
-e MSC index
-t Acceptable effective throughput (in percentage)
-P Print DLSCH performances
-w Write txdata to binary file (one frame)

补充:对于旧的LTE dlsim

./dlsim -h
CPU Freq is 3.408221 
Detected cpu_freq 3.408221 GHz
[CONFIG] parallel_conf is set to 0
--awgn                 set to need specific display
Use AWGN channel and not multipath
--Abstx                set to False
Turns on calibration mode for abstraction.
--bTDD                 set to 3
Set the tdd configuration mode
--BnbRBs               set to 25
The LTE bandwith in RBs (100 is 20MHz)
--cPdcch               set to 1
Number of PDCCH symbols
--CnidCell             set to 0
The cell id 
--dciFlag              set to False
Transmit the DCI and compute its error statistics
--Dtdd                 set to need specific display
Enable tdd
--eRounds              set to need specific display
Number of rounds
--EsubSampling         set to False
three quarters sub-sampling
--f_snr_step           set to 1.00
step size of SNR, default value is 1.
--Forgetting           set to 0.00
forgetting factor (0 new channel every trial, 1 channel constant)
--input_file           set to need specific display
input IQ data file
--Input_file_trch      set to need specific display
 Input filename for TrCH data (binary)
--WtwoThreads          set to False
two_thread_flag
--lMuMimo              set to 0
offset_mumimo_llr_drange_fix
--mcs1                 set to 0
The MCS for TB 1
--Mcs2                 set to 0
The MCS for TB 2
--Operf                set to 0
Set the percenatge of effective rate to testbench the modem performance (typically 30 and 70, range 1-100)
--tmcs_i               set to need specific display
MCS of interfering UE
--nb_frame             set to 1
number of frame in a test
--offsetRxSample       set to 0
Sample offset for receiver
--rballocset           set to need specific display
ressource block allocation (see  section 7.1.6.3 in 36.213)
--snr                  set to -2.00
Starting SNR, runs from SNR to SNR+%.1fdB in steps of %.1fdB. If n_frames is 1 then just SNR is simulated and MATLAB/OCTAVE output is generated
--wsnrInterrupt        set to 30.00
snr int ?
--N_ch_rlzN0           set to 1
Determines the number of Channel Realizations in Abstraction mode. Default value is 1
--prefix_extended      set to False
Enable extended prefix
--RNumRound            set to 4
Number of HARQ rounds (fixed)
--Subframe             set to 7
subframe 
--Trnti                set to 4660
rnti
--vi_mod               set to need specific display
i_mod
--Qparallel            set to need specific display
Enable parallel execution
--Performance          set to False
Display CPU perfomance of each L1 piece
--q_tx_port            set to need specific display
Number of TX antennas ports used in eNB
--uEdual               set to need specific display
Enables the Interference Aware Receiver for TM5 (default is normal receiver)
--xTransmission        set to need specific display
Transmission mode (1,2,6,7 for the moment)
--yn_tx_phy            set to need specific display
Number of TX antennas used in eNB
--XForms               set to False
Display the soft scope
--Yperfect_ce          set to False
Perfect CE
--Zdump                set to False
dump table
--Loglvl               set to 3
log level
--zn_rx                set to need specific display
Number of RX antennas used in UE
--gchannel             set to need specific display
[A:M] Use 3GPP 25.814 SCM-A/B/C/D('A','B','C','D') or 36-101 EPA('E'), EVA ('F'),ETU('G') models (ignores delay spread and Ricean factor), Rayghleigh8 ('H'), Rayleigh1('I'), Rayleigh1_corr('J'), Rayleigh1_anticorr ('K'),  Rice8('L'), Rice1('M')
--verbose              set to False
display debug text
--help                 set to True

OAI 物理层仿真器入门

5G 物理层仿真器支持下面的几种仿真器:

nr_dlschsim
nr_dlsim
nr_pbchsim
nr_pucchsim
nr_ulschsim
nr_ulsim
polartest
smallblocktest
ulsim
ldpctest

使用物理层仿真器需要修改大量的配置文件:

all simulators as the rfsimulator, the L2 simulator, with exception of PHY simulators, which are distinct executables.

Build

cd <your oai installation directory>/openairinterface5g/
source oaienv
cd cmake_targets/
./build_oai -I --phy_simulators

After completing the build, the binaries are available in the cmake_targets/phy_simulators/build directory.
A copy is also available in the target/bin directory, with all binaries suffixed by the 3GPP release number, today .Rel15.

–phy_simulators
maintained, tested in CI
build all PHY simulators, a set of executables allowing unitary tests of LTE and 5G channel implementation within oai.

-g
maintained
Specifies the level of debugging options used to build the binaries. Available levels are Release, RelWithDebInfo, MinSizeRe and Debug. If -g is not specified, Release is used, if -g is used without any level, Debug is used.

物理层仿真器具体介绍:

物理层仿真器具体介绍
物理层仿真器提供传输块差错率、HARQ吞吐量、DCI 差错率。polar和LDPC编码子系统仿真。

猜你喜欢

转载自blog.csdn.net/BJTUYBYUAN/article/details/112335668