OFDM 5G#

  1# In this example we simulate a 5G signal.
  2# 
  3# We model the DL of a frame with a TDD slot format 57, DDDDFFUDDDDFFU,
  4# with 30kHz subcarrier spacing, using 2100 subcarriers with 4-PSK.
  5# 
  6# In each drop, 2 time slots are transmitted.
  7# 
  8# An LDPC code with rate R=1/2 and block length 256 is considered.
  9# 
 10# MIMO (SM) with 2x2 antennas is considered.
 11# 
 12# A 5G-TDL channel model type E, with 100 ns rms delay spread is considered.
 13# Velocity is 10ms with carrier frequency 3GHz.
 14
 15!<Simulation>
 16
 17# Physical device models within the simulated scenario
 18Devices:
 19
 20  # Representation of a single (virtual) device
 21  - &device_alpha !<SimulatedDevice>
 22
 23    carrier_frequency: 3e9               # Center frequency of Rf-band emitted signal
 24    
 25    antennas: !<SimulatedUniformArray>   # Uniform antenna array
 26      
 27      element: !<SimulatedIdealAntenna>  # Assume ideal isotropic antennas
 28      spacing: 10e-2                     # Elements spaced 10cm apart
 29      dimensions: [2, 1, 1]              # 2 elements within the array
 30
 31
 32# Specify channel models interconnecting devices 
 33Channels:
 34
 35  # 5G TDL model at the self-interference channel of device_alpha
 36  - !<5GTDL>
 37    devices: [*device_alpha, *device_alpha] # Devices linked by the channel
 38    model_type: !<TDLType> E                # Type of the TDL model. A-E are available
 39    rms_delay: 100e-9                       # Root mean square delay in seconds    
 40
 41
 42# Operators transmitting or receiving signals over the devices
 43Operators:
 44
 45  # A single modem operating the device #0
 46  - &modem_alpha !<Modem>
 47
 48    device: *device_alpha          # Device the modem is operating on
 49    reference: *device_alpha       # Reference device to which the channel is estimated
 50
 51    # Bit encoding configuration before mapping to modulation symbols
 52    #Encoding:
 53    #
 54    #  - !<LDPC>
 55    #    block_size: 256
 56    #    rate: [1, 2]
 57
 58    # MIMO configuration on the symbol level
 59    precoding: !<SymbolCoding>
 60
 61      - !<SingleCarrier>       # Spatial Multiplexing
 62
 63    # Configuration of the waveform emitted by this transmitter
 64    waveform: &ofdm !<OFDM>
 65
 66      # Symbol modulation settings
 67      modulation_order: 4               # Modulation order, in other words 1 / subcarrier / subsymbol
 68      subcarrier_spacing: 30e3          # Spacing between the individual subcarrier center frequencies in Hz
 69      dc_suppression: False             # Do not ignore the DC component during the DFT
 70      num_subcarriers: 4096             # Number of subcarriers per communiction frame
 71      channel_estimation: !<OFDM-Ideal> # Assume ideal channel state information at the receiver
 72        transmitter: *device_alpha
 73        receiver: *device_alpha
 74      channel_equalization: !<OFDM-ZF>  # Least-squares channel equalization
 75
 76      # OFDM symbol resources, each resource represents one symbol's subcarrier configuration
 77      resources:
 78
 79        - !<OFDM-Resource>
 80          repetitions: 1
 81          prefix_type: !<PrefixType> CYCLIC
 82          prefix_ratio: 0.0703125
 83          elements:
 84            - !<FrameElement>
 85              type: !<ElementType> NULL
 86              repetitions: 998
 87            - !<FrameElement>
 88              type: !<ElementType> DATA
 89              repetitions: 2100
 90            - !<FrameElement>
 91              type: !<ElementType> NULL
 92              repetitions: 998
 93
 94        - !<OFDM-Resource>
 95          repetitions: 1
 96          prefix_type: !<PrefixType> CYCLIC
 97          prefix_ratio: 0.078125
 98          elements:
 99            - !<FrameElement>
100              type: !<ElementType> NULL
101              repetitions: 998
102            - !<FrameElement>
103              type: !<ElementType> DATA
104              repetitions: 2100
105            - !<FrameElement>
106              type: !<ElementType> NULL
107              repetitions: 998
108
109      # Frame configuration in time domain, i.e. the x-axis in the OFDM time-frequency grid
110      structure:
111
112        # DDDDD
113        - !<Symbol>
114          num_repetitions: 1
115          pattern: [1, 0, 0, 0]
116
117        # FFU
118        - !<Guard>
119          num_repetitions: 3
120          duration: 35.677083e-6
121
122        # DDDD
123        - !<Symbol>
124          num_repetitions: 1
125          pattern: [1, 0, 0, 0]
126
127        # FFU
128        - !<Guard>
129          num_repetitions: 3
130          duration: 35.677083e-6
131
132
133# Performance indication evaluation configuration
134Evaluators:
135
136  # Evaluate the bit errors of `modem_alpha` communicating over `device_alpha`
137  - !<BitErrorEvaluator>
138
139    transmitting_modem: *modem_alpha
140    receiving_modem: *modem_alpha
141    confidence: .9
142    tolerance: .01
143    plot_scale: log
144
145
146# Simulation parameters
147num_samples: 1000                  # Number of samples per simulation grid section
148min_num_samples: 100               # Minimum number of samples per simulation grid section before premature stopping
149snr_type: EBN0                     # SNR is defined as the ratio between bit energy and noise power
150plot_results: True                 # Visualize the evaluations after the simulation has finished
151num_actors: 1                      # This simulation is quite memory demanding. It might be necessary to limit the number of actors.
152
153# Scenario parameters over which the Monte-Carlo simulation sweeps
154Dimensions:
155
156  # Sweep over the global receiver signal-to-noise ratio
157  - property: 'snr'
158    points: [0, 1, ..., 20] dB