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: !<UniformArray> # Uniform antenna array
26
27 antenna: !<IdealAntenna> # 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 channel_equalization: !<OFDM-ZF> # Least-squares channel equalization
73
74 # OFDM symbol resources, each resource represents one symbol's subcarrier configuration
75 resources:
76
77 - !<OFDM-Resource>
78 repetitions: 1
79 prefix_type: !<PrefixType> CYCLIC
80 prefix_ratio: 0.0703125
81 elements:
82 - !<FrameElement>
83 type: !<ElementType> NULL
84 repetitions: 998
85 - !<FrameElement>
86 type: !<ElementType> DATA
87 repetitions: 2100
88 - !<FrameElement>
89 type: !<ElementType> NULL
90 repetitions: 998
91
92 - !<OFDM-Resource>
93 repetitions: 1
94 prefix_type: !<PrefixType> CYCLIC
95 prefix_ratio: 0.078125
96 elements:
97 - !<FrameElement>
98 type: !<ElementType> NULL
99 repetitions: 998
100 - !<FrameElement>
101 type: !<ElementType> DATA
102 repetitions: 2100
103 - !<FrameElement>
104 type: !<ElementType> NULL
105 repetitions: 998
106
107 # Frame configuration in time domain, i.e. the x-axis in the OFDM time-frequency grid
108 structure:
109
110 # DDDDD
111 - !<Symbol>
112 num_repetitions: 1
113 pattern: [1, 0, 0, 0]
114
115 # FFU
116 - !<Guard>
117 num_repetitions: 3
118 duration: 35.677083e-6
119
120 # DDDD
121 - !<Symbol>
122 num_repetitions: 1
123 pattern: [1, 0, 0, 0]
124
125 # FFU
126 - !<Guard>
127 num_repetitions: 3
128 duration: 35.677083e-6
129
130
131# Performance indication evaluation configuration
132Evaluators:
133
134 # Evaluate the bit errors of `modem_alpha` communicating over `device_alpha`
135 - !<BitErrorEvaluator>
136
137 transmitting_modem: *modem_alpha
138 receiving_modem: *modem_alpha
139 confidence: .9
140 tolerance: .01
141 plot_scale: log
142
143
144# Simulation parameters
145num_samples: 1000 # Number of samples per simulation grid section
146min_num_samples: 100 # Minimum number of samples per simulation grid section before premature stopping
147snr_type: EBN0 # SNR is defined as the ratio between bit energy and noise power
148plot_results: True # Visualize the evaluations after the simulation has finished
149num_actors: 1 # This simulation is quite memory demanding. It might be necessary to limit the number of actors.
150
151# Scenario parameters over which the Monte-Carlo simulation sweeps
152Dimensions:
153
154 # Sweep over the global receiver signal-to-noise ratio
155 - property: 'snr'
156 points: [0, 1, ..., 20] dB