blob: d33b743cd0954021015a5d98872b5ba941c9a3f4 [file] [log] [blame]
Pau Espin Pedrol786a6bc2020-03-30 13:51:21 +02001rf_driver: {
Pau Espin Pedrol65beb8f2020-03-31 12:03:19 +02002 name: "${trx.rf_dev_type}",
Pau Espin Pedrol65beb8f2020-03-31 12:03:19 +02003 args: "${trx.rf_dev_args}",
Andre Puschmannc489f192020-10-09 14:46:38 +02004 sync: "${trx.rf_dev_sync}",
Andre Puschmann5e080752021-04-14 21:30:08 +02005% if trx.get('rx_ant', None) != None:
6 rx_antenna: "${trx.rx_ant}",
7% endif
Andre Puschmann9a5be2c2020-04-06 22:08:24 +02008
Pau Espin Pedrol65beb8f2020-03-31 12:03:19 +02009% if trx.rf_dev_type == 'zmq':
Andre Puschmann9a5be2c2020-04-06 22:08:24 +020010 dl_sample_bits: 16,
11 ul_sample_bits: 16,
Pau Espin Pedrold45a29e2020-04-02 17:21:47 +020012% endif
Pau Espin Pedrol786a6bc2020-03-30 13:51:21 +020013},
14
Pau Espin Pedrola6d63042020-04-20 15:14:51 +020015tx_gain: ${trx.tx_gain}, /* TX gain (in dB) B2x0: 0 to 89.8 dB */
16rx_gain: ${trx.rx_gain}, /* RX gain (in dB) B2x0: 0 to 73 dB */
Andre Puschmann374a1752021-04-23 16:35:48 +020017
Andre Puschmann78791432021-05-04 21:38:53 +020018// Only SDR and ZMQ devices require dedicated rf_port parameters
19% if trx.rf_dev_type != 'uhd':
20
Andre Puschmann6e081aa2021-05-04 16:56:25 +020021rf_ports: [
22 % if trx.rf_dev_type == 'sdr':
Andre Puschmann78791432021-05-04 21:38:53 +020023 // NSA specific configuration
Andre Puschmann6e081aa2021-05-04 16:56:25 +020024 {
25 sample_rate: 23.04,
26 },
27 {
28 sample_rate: 61.44,
29 dl_freq: 3502.8, // Moves NR DL LO frequency -5.76 MHz
30 ul_freq: 3502.8, // Moves NR UL LO frequency -5.76 MHz
31 }
32 % else:
Andre Puschmann78791432021-05-04 21:38:53 +020033 // default case for UHD and ZMQ usage
34 <%
35 # determine ports and sample rate from either eNB or UE object
36 num_ports = 1
37 try:
38 obj_sample_rate = enb.sample_rate
39 num_ports = int(enb.num_cells) + int(enb.num_nr_cells)
40 except AttributeError:
41 obj_sample_rate = ue.sample_rate
42 %>
43
44 %for port in range(num_ports):
Andre Puschmann6e081aa2021-05-04 16:56:25 +020045 {
Andre Puschmann78791432021-05-04 21:38:53 +020046 sample_rate: ${obj_sample_rate},
Andre Puschmann6e081aa2021-05-04 16:56:25 +020047 },
Andre Puschmann78791432021-05-04 21:38:53 +020048 %endfor
49
50 % endif
Andre Puschmann6e081aa2021-05-04 16:56:25 +020051],
52
Andre Puschmann78791432021-05-04 21:38:53 +020053% endif
54
Andre Puschmann374a1752021-04-23 16:35:48 +020055// only the B210 requires a sample offset
56% if "b200" in trx.rf_dev_args:
Andre Puschmanna70f05c2020-04-06 12:13:15 +020057tx_time_offset: -150,
Andre Puschmann374a1752021-04-23 16:35:48 +020058% else:
59tx_time_offset: 0,
60% endif