Hardware ModelingΒΆ
1# In this example we simulate the effects of a non-ideal
2# Radio-Frequency chain and analog-to-digital conversion on the bit error rate performance
3# of a single-carrier communication system.
4# We consider I/Q imbalance, a power amplifier following Rapp's model and an adc with
5# mid-riser quantization and automatic gain control.
6#
7# The performance is evaluated for a signal-to-noise ratio between zero and 20 dB.
8
9!<Simulation>
10
11# Operators transmitting or receiving signals over the devices
12Operators:
13
14 # A single modem operating the device #0
15 - &modem_alpha !<Modem>
16
17 # Waveform configuration
18 waveform: !<SC-RootRaisedCosine>
19
20 # Symbol settings
21 symbol_rate: 100e6
22 modulation_order: 16
23 oversampling_factor: 4
24
25 # Frame settings
26 num_preamble_symbols: 10
27 num_data_symbols: 1000
28 pilot_rate: 1e6
29 guard_interval: 1e-6
30
31
32# Physical device models within the simulated scenario
33Devices:
34
35 - !<SimulatedDevice>
36
37 carrier_frequency: 2.4e9 # Center frequency of Rf-band emitted signal
38 transmitters: [*modem_alpha] # Transmit DSP layers operating on the device
39 receivers: [*modem_alpha] # Receive DSP layers operating on the device
40
41 # RF-Chain hardware model
42 rf_chain: !<RfChain>
43
44 amplitude_imbalance: 1e-3 # I/Q amplitude imbalance
45 phase_offset: 1e-2 # I/Q phase imbalance
46 power_amplifier: !<Rapp> # Power amplifier model
47 phase_noise: !<OscillatorPhaseNoise> # Phase noise model
48
49 K0: 1e-11
50 K2: 10
51 K3: 1e4
52
53 # AD-Conversion hardware model
54 adc: !<ADC>
55
56 quantizer_type: !<QuantizerType> MID_RISER
57 num_quantization_bits: 16
58 gain: !<AutomaticGainControl>
59
60
61# Performance indication evaluation configuration
62Evaluators:
63
64 # Evaluate the bit errors of `modem_alpha` communicating over the device
65 - !<BitErrorEvaluator>
66
67 transmitting_modem: *modem_alpha
68 receiving_modem: *modem_alpha
69 confidence: .9
70 tolerance: 1e-4
71 plot_scale: log
72
73# Simulation parameters
74num_samples: 10000 # Number of samples per simulation grid section
75min_num_samples: 50 # Minimum number of samples per simulation grid section before premature stopping
76noise_level: !<EBN0> # SNR is defined as the ratio between bit energy and noise power
77 reference: *modem_alpha # The SNR is calculated with respect to the referenced modem's waveform power
78plot_results: True # Visualize the evaluations after the simulation has finished
79
80# Scenario parameters over which the Monte-Carlo simulation sweeps
81Dimensions:
82
83 noise_level: [0, 4, ..., 20] dB