[OAI][Layer1]OAI物理层仿真

简介

仿真平台

功能

dlsim

  dlsim是PDSCH信道的仿真平台。但实际上,dlsim平台里面也包含PDCCH等信道的内容,

所以dlsim更像是一个轻量级的LTE物理层系统系仿真平台。

pbchsim

  pbchsim是PBCH信道的仿真平台,里面包含PBCH信道的收发流程。

pdcchsim

  pdcchsim是PDCCH信道的仿真平台,里面包含PDCCH信道的收发流程。

prachsim

  prachsim是PRACH信道的仿真平台,里面包含PRACH信道的收发流程。

扫描二维码关注公众号,回复: 3231197 查看本文章

pucchsim

  pucchsim是PUCCH信道的仿真平台,里面包含PUCCH信道的收发流程。

ulsim

  ulsim是PUSCH信道的仿真平台,里面包含PUSCH信道的收发流程。

Build

build命令

sudo ./build_oai -c -C --UE -V --phy_simulators

build结果

生成产物如下图

dlsim

sudo ./dlsim -d -n 1000 -s 10 -C 1 -S 1 -B 50 -g A -F 0 -x 1 -q 2 -y 2 -z 2 -O 70

CPU Freq is  3.392366
Detected cpu_freq  3.392366  GHz
./dlsim -h(elp) -a(wgn on) -d(ci decoding on) -p(extended prefix on) -m mcs1 -M mcs2 -n n_frames -s snr0 -x transmission mode ( 1 , 2 , 5 , 6 , 7 ) -y TXant -z RXant -I trch_file
-h This message
-a Use AWGN channel and not multipath
-c Number of PDCCH symbols
-m MCS1  for  TB  1
-M MCS2  for  TB  2
-d Transmit the DCI and compute its error statistics
-p Use extended prefix mode
-n Number of frames to simulate
-o Sample offset  for  receiver
-s Starting SNR, runs from SNR to SNR+ 30 .0dB in steps of  1 .0dB. If n_frames is  1  then just SNR is simulated and MATLAB/OCTAVE output is generated
-f step size of SNR,  default  value is  1 .
-C cell id
-S subframe
-D use TDD mode
-b TDD config
-B bandwidth configuration (in number of ressource blocks):  6 25 50 100
-r ressource block allocation (see  section  7.1 . 6.3  in  36.213
-g [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' )
-F forgetting factor ( 0  new  channel every trial,  1  channel constant
-x Transmission mode ( 1 , 2 , 6 , 7  for  the moment)
-q Number of TX antennas ports used in eNB
-y Number of TX antennas used in eNB
-z Number of RX antennas used in UE
-t MCS of interfering UE
-R Number of HARQ rounds (fixed)
-A Turns on calibration mode  for  abstraction.
-N Determines the number of Channel Realizations in Abstraction mode. Default value is  1 .
-O Set the percenatge of effective rate to testbench the modem performance (typically  30  and  70 , range  1 - 100 )
-I Input filename  for  TrCH data (binary)
-u Enables the Interference Aware Receiver  for  TM5 ( default  is normal receiver)

pbchsim

sudo ./pbchsim -n 1000000

CPU Freq is  3.392373
log init done
./pbchsim -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
-p Use extended prefix mode
-d Use TDD
-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)
-x Transmission mode ( 1 , 2 , 6  for  the moment)
-y Number of TX antennas used in eNB
-z Number of RX antennas used in UE
-i Relative strength of first intefering eNB (in dB) - cell_id mod  3  1
-j Relative strength of second intefering eNB (in dB) - cell_id mod  3  2
-N Nid_cell
-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 Output filename (.txt format)  for  Pe/SNR results
-F Input filename (.txt format)  for  RX conformance testing

Plot txs0

Plot txsF0

pdcchsim

CPU Freq is  3.392404
log init done
./pdcchsim -h(elp) -a(wgn on) -c tdd_config -n n_frames -r RiceanFactor -s snr0 -t Delayspread -x transmission mode ( 1 , 2 , 6 ) -y TXant -z RXant -L AggregLevelUEspec -M AggregLevelCommonDCI -N DCIFormat
 
-h This message
-a Use AWGN channel and not multipath
-c TDD config
-S Subframe number ( 0 .. 9 )
-R N_RB_DL
-F use FDD frame
-p Use extended prefix mode
-n Number of frames to simulate
-r Ricean factor (dB,  0  means Rayleigh,  100  is almost AWGN
-s Starting SNR, runs from SNR to SNR +  5  dB.  If n_frames is  1  then just SNR is simulated
-t Delay spread  for  multipath channel
-x Transmission mode ( 1 , 2 , 6  for  the moment)
-y Number of TX antennas used in eNB
-z Number of RX antennas used in UE
-P Number of interfering PHICH
-L log2 of Aggregation level  for  UE Specific DCI ( 0 , 1 , 2 , 3 )
-M log2 Aggregation level  for  Common DCI ( 4 , 8 )
-N Format  for  UE Spec DCI ( 0  - format0,
                            1  - format1,
                            2  - format1A,
                            3  - format1B_2A,
                            4  - format1B_4A,
                            5  - format1C,
                            6  - format1D_2A,
                            7  - format1D_4A,
                            8  - format2A_2A_L10PRB,
                            9  - format2A_2A_M10PRB,
                           10  - format2A_4A_L10PRB,
                           11  - format2A_4A_M10PRB,
                           12  - format2_2A_L10PRB,
                           13  - format2_2A_M10PRB,
                           14  - format2_4A_L10PRB,
                           15  - format2_4A_M10PRB
                           16  - format2_2D_M10PRB
                           17  - format2_2D_L10PRB
    can be called multiple times to add more than one DCI
-O Oversampling factor
-I Cell Id
-F Input sample stream

prachsim

CPU Freq is  3.392351
log init done
./prachsim -h(elp) -a(wgn on) -p(extended_prefix) -N cell_id -f output_filename -F input_filename -g channel_model -n n_frames -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
-a Use AWGN channel and not multipath
-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
-g [A,B,C,D,E,F,G,I,N] Use 3GPP SCM (A,B,C,D) or  36 - 101  (E-EPA,F-EVA,G-ETU) or Rayleigh1 (I) or Rayleigh1_800 (N) models (ignores delay spread and Ricean factor)
-z Number of RX antennas used in eNB
-N Nid_cell
-O oversampling factor ( 1 , 2 , 4 , 8 , 16 )
-d Channel delay
-v Starting UE velocity in km/h, runs from  'v'  to  'v+50km/h' . If n_frames is  1  just  'v'  is simulated
-V Ending UE velocity in km/h, runs from  'v'  to  'V' -L rootSequenceIndex ( 0 - 837 )
-Z NCS_config (ZeroCorrelationZone) ( 0 - 15 )
-H Run with High-Speed Flag enabled
-R Number of PRB ( 6 , 15 , 25 , 50 , 75 , 100 )
-F Input filename (.txt format)  for  RX conformance testing

pucchsim

CPU Freq is  3.392359
./pucchsim -h(elp) -a(wgn on) -p(extended_prefix) -N cell_id -f output_filename -F input_filename -g channel_model -n n_frames -t Delayspread -r Ricean_FactordB -s snr0 -S snr1 -x transmission_mode -y TXant -z RXant -N CellId
-h This message
-a Use AWGN channel and not multipath
-p Use extended prefix mode
-n Number of frames to simulate
-r Ricean factor (dB,  0  means Rayleigh,  100  is almost AWGN
-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)
-x Transmission mode ( 1 , 2 , 6  for  the moment)
-y Number of TX antennas used in eNB
-z Number of RX antennas used in UE
-i Relative strength of first intefering eNB (in dB) - cell_id mod  3  1
-j Relative strength of second intefering eNB (in dB) - cell_id mod  3  2
-N Noise variance in dB
-R N_RB_DL
-O oversampling factor ( 1 , 2 , 4 , 8 , 16 )
-f PUCCH format ( 0 = 1 , 1 =1a, 2 =1b, 6 = 3 ), formats  2 /2a/2b not supported
-F Input filename (.txt format)  for  RX conformance testing

猜你喜欢

转载自www.cnblogs.com/LearnFromNow/p/9660316.html