Commit 536b892c authored by Kirill Smelkov's avatar Kirill Smelkov

X generic bandwidth is always number; No bandwidth in peercell

parent 0bd67f3e
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
"rf_mode", "rf_mode",
"pci", "pci",
"cell_id", "cell_id",
"bandwidth",
"ru" "ru"
], ],
...@@ -41,6 +42,11 @@ ...@@ -41,6 +42,11 @@
"description": "Cell ID", "description": "Cell ID",
"type": "string" "type": "string"
}, },
"bandwidth": {
"title": "Bandwidth",
"description": "Downlink Bandwidth (in MHz)",
"type": "number"
},
"root_sequence_index": { "root_sequence_index": {
"title": "Root Sequence Index", "title": "Root Sequence Index",
"description": "Range: 0 to 837. Set the PRACH root sequence index (SIB2.rootSequenceIndex field). It must be different for each neighbour cell operating on the same frequency and sharing the same PRACH configuration.", "description": "Range: 0 to 837. Set the PRACH root sequence index (SIB2.rootSequenceIndex field). It must be different for each neighbour cell operating on the same frequency and sharing the same PRACH configuration.",
......
...@@ -9,9 +9,9 @@ ...@@ -9,9 +9,9 @@
"rf_mode", "rf_mode",
"pci", "pci",
"cell_id", "cell_id",
"bandwidth",
"ru", "ru",
"bandwidth",
"dl_earfcn", "dl_earfcn",
"tac" "tac"
], ],
...@@ -39,16 +39,13 @@ ...@@ -39,16 +39,13 @@
} }
}, },
"bandwidth": { "bandwidth": {
"title": "Bandwidth",
"description": "Downlink Bandwidth",
"type": "string",
"enum": [ "enum": [
"1.4 MHz", 1.4,
"3 MHz", 3,
"5 MHz", 5,
"10 MHz", 10,
"15 MHz", 15,
"20 MHz" 20
] ]
}, },
......
...@@ -9,9 +9,9 @@ ...@@ -9,9 +9,9 @@
"rf_mode", "rf_mode",
"pci", "pci",
"cell_id", "cell_id",
"bandwidth",
"ru", "ru",
"bandwidth",
"dl_nr_arfcn", "dl_nr_arfcn",
"nr_band" "nr_band"
], ],
...@@ -39,11 +39,6 @@ ...@@ -39,11 +39,6 @@
} }
} }
}, },
"bandwidth": {
"title": "Bandwidth",
"description": "Downlink Bandwidth (in MHz)",
"type": "number"
},
"dl_nr_arfcn": { "dl_nr_arfcn": {
"title": "DL NR ARFCN", "title": "DL NR ARFCN",
......
...@@ -39,8 +39,6 @@ ...@@ -39,8 +39,6 @@
n_id_cell: {{ cell2.pci }}, n_id_cell: {{ cell2.pci }},
dl_earfcn: {{ cell2.dl_earfcn }}, dl_earfcn: {{ cell2.dl_earfcn }},
tac: {{ cell2.tac }}, tac: {{ cell2.tac }},
allowed_meas_bandwidth: {{ jlte_n_rb_dl(cell2.bandwidth) }},
antenna_port_1: {{ (ru2.n_antenna_dl > 1) | tojson }},
{%- elif cell2.cell_type == 'nr' %} {%- elif cell2.cell_type == 'nr' %}
rat: "nr", rat: "nr",
cell_id: {{ cell2.cell_id }}, // -> {{ cell2_ref }} cell_id: {{ cell2.cell_id }}, // -> {{ cell2_ref }}
...@@ -88,12 +86,12 @@ ...@@ -88,12 +86,12 @@
{#- jlte_n_rb_dl returns n_rb_dl for an LTE bandwidth. #} {#- jlte_n_rb_dl returns n_rb_dl for an LTE bandwidth. #}
{%- macro jlte_n_rb_dl(bandwidth) %} {%- macro jlte_n_rb_dl(bandwidth) %}
{%- set _ = {'1.4 MHz': 6, {%- set _ = {1.4: 6,
'3 MHz': 15, 3: 15,
'5 MHz': 25, 5: 25,
'10 MHz': 50, 10: 50,
'15 MHz': 75, 15: 75,
'20 MHz': 100} %} 20: 100} %}
{{- _[bandwidth] | tojson }} {{- _[bandwidth] | tojson }}
{%- endmacro -%} {%- endmacro -%}
......
...@@ -271,8 +271,6 @@ ...@@ -271,8 +271,6 @@
n_id_cell: 1, n_id_cell: 1,
dl_earfcn: 38050, dl_earfcn: 38050,
tac: 0x1234, tac: 0x1234,
allowed_meas_bandwidth: 25,
antenna_port_1: true,
}, },
// Inter-ENB HO // Inter-ENB HO
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
dl_earfcn: {{ cell.dl_earfcn }}, dl_earfcn: {{ cell.dl_earfcn }},
ul_earfcn: {{ cell.ul_earfcn }}, ul_earfcn: {{ cell.ul_earfcn }},
bandwidth: {{ cell.bandwidth.removesuffix(' MHz') }}, bandwidth: {{ cell.bandwidth }},
global_timing_advance: -1, global_timing_advance: -1,
}, },
......
...@@ -4,7 +4,17 @@ ...@@ -4,7 +4,17 @@
"title": "Input Parameters", "title": "Input Parameters",
"properties": { "properties": {
"bandwidth": { "bandwidth": {
"$ref": "cell/lte/input-schema.json#/properties/bandwidth", "title": "Bandwidth",
"description": "Downlink Bandwidth",
"type": "string",
"enum": [
"1.4 MHz",
"3 MHz",
"5 MHz",
"10 MHz",
"15 MHz",
"20 MHz"
],
"default": "20 MHz" "default": "20 MHz"
}, },
"n_antenna_dl": { "n_antenna_dl": {
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
{%- set cell = { {%- set cell = {
'cell_type': 'lte', 'cell_type': 'lte',
'dl_earfcn': ors_version['current-earfcn'], 'dl_earfcn': ors_version['current-earfcn'],
'bandwidth': slapparameter_dict.bandwidth, 'bandwidth': float(slapparameter_dict.bandwidth.removesuffix(' MHz'),
'tac': slapparameter_dict.tac, 'tac': slapparameter_dict.tac,
'root_sequence_index': slapparameter_dict.root_sequence_index, 'root_sequence_index': slapparameter_dict.root_sequence_index,
} }
...@@ -135,7 +135,6 @@ ...@@ -135,7 +135,6 @@
{%- endmacro %} {%- endmacro %}
{%- if enb_mode == 'enb' %} {%- if enb_mode == 'enb' %}
{%- do peercell.update({'cell_type': 'lte'}) %} {%- do peercell.update({'cell_type': 'lte'}) %}
{%- do peercell.update({'bandwidth': slapparameter_dict.bandwidth}) %}
{%- if 'cell_id' in ncell %} {%- if 'cell_id' in ncell %}
{%- do peercell.update({'e_cell_id': ncell.cell_id}) %} {%- do peercell.update({'e_cell_id': ncell.cell_id}) %}
{%- endif %} {%- endif %}
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"title": "Input Parameters", "title": "Input Parameters",
"properties": { "properties": {
"nr_bandwidth": { "nr_bandwidth": {
"$ref": "cell/nr/input-schema.json#/properties/bandwidth", "$ref": "cell/common.json#/properties/bandwidth",
"default": 40 "default": 40
}, },
"n_antenna_dl": { "n_antenna_dl": {
......
...@@ -85,7 +85,7 @@ CELL1 = { ...@@ -85,7 +85,7 @@ CELL1 = {
'cell_type': 'lte', 'cell_type': 'lte',
'cell_kind': 'enb', 'cell_kind': 'enb',
'rf_mode': 'fdd', 'rf_mode': 'fdd',
'bandwidth': '20 MHz', 'bandwidth': 20',
'dl_earfcn': 100, # 2120 @ B1 'dl_earfcn': 100, # 2120 @ B1
'pci': 1, 'pci': 1,
'cell_id': '0x01', 'cell_id': '0x01',
...@@ -142,7 +142,7 @@ uCELL = { ...@@ -142,7 +142,7 @@ uCELL = {
'rf_mode': 'fdd', 'rf_mode': 'fdd',
'dl_earfcn': 300, 'dl_earfcn': 300,
'bandwidth': '10 MHz', 'bandwidth': 10',
'ru': { 'ru': {
'ru_type': 'ru_ref', 'ru_type': 'ru_ref',
......
...@@ -66,7 +66,7 @@ CELL1_a = { ...@@ -66,7 +66,7 @@ CELL1_a = {
'cell_type': 'lte', 'cell_type': 'lte',
'cell_kind': 'enb', 'cell_kind': 'enb',
'rf_mode': 'tdd', 'rf_mode': 'tdd',
'bandwidth': '5 MHz', 'bandwidth': 5,
'dl_earfcn': 38050, # 2600 MHz 'dl_earfcn': 38050, # 2600 MHz
'pci': 1, 'pci': 1,
'cell_id': '0x01', 'cell_id': '0x01',
...@@ -80,7 +80,7 @@ CELL1_b = { ...@@ -80,7 +80,7 @@ CELL1_b = {
'cell_type': 'lte', 'cell_type': 'lte',
'cell_kind': 'enb', 'cell_kind': 'enb',
'rf_mode': 'tdd', 'rf_mode': 'tdd',
'bandwidth': '5 MHz', 'bandwidth': 5,
'dl_earfcn': 38100, # 2605 MHz 'dl_earfcn': 38100, # 2605 MHz
'pci': 2, 'pci': 2,
'cell_id': '0x02', 'cell_id': '0x02',
...@@ -125,7 +125,7 @@ kslap.iSHARED(enb1, 'CELL2_a', { ...@@ -125,7 +125,7 @@ kslap.iSHARED(enb1, 'CELL2_a', {
'cell_type': 'lte', 'cell_type': 'lte',
'cell_kind': 'enb', 'cell_kind': 'enb',
'rf_mode': 'fdd', 'rf_mode': 'fdd',
'bandwidth': '5 MHz', 'bandwidth': 5,
'dl_earfcn': 3350, # 2680 MHz 'dl_earfcn': 3350, # 2680 MHz
'pci': 21, 'pci': 21,
'cell_id': '0x21', 'cell_id': '0x21',
......
...@@ -94,16 +94,15 @@ ...@@ -94,16 +94,15 @@
{%- set ul_arfcn = cell.ul_earfcn %} {%- set ul_arfcn = cell.ul_earfcn %}
{%- set dl_freq = int(xearfcn_module.frequency(dl_arfcn) * 1e6) %} {%- set dl_freq = int(xearfcn_module.frequency(dl_arfcn) * 1e6) %}
{%- set ul_freq = int(xearfcn_module.frequency(ul_arfcn) * 1e6) %} {%- set ul_freq = int(xearfcn_module.frequency(ul_arfcn) * 1e6) %}
{%- set bw = int(float(cell.bandwidth.removesuffix(' MHz')) * 1e6) %}
{%- elif cell.cell_type == 'nr' %} {%- elif cell.cell_type == 'nr' %}
{%- set dl_arfcn = cell.dl_nr_arfcn %} {%- set dl_arfcn = cell.dl_nr_arfcn %}
{%- set ul_arfcn = cell.ul_nr_arfcn %} {%- set ul_arfcn = cell.ul_nr_arfcn %}
{%- set dl_freq = int(xnrarfcn_module.frequency(dl_arfcn) * 1e6) %} {%- set dl_freq = int(xnrarfcn_module.frequency(dl_arfcn) * 1e6) %}
{%- set ul_freq = int(xnrarfcn_module.frequency(ul_arfcn) * 1e6) %} {%- set ul_freq = int(xnrarfcn_module.frequency(ul_arfcn) * 1e6) %}
{%- set bw = int(cell.bandwidth * 1e6) %}
{%- else %} {%- else %}
{%- do bug('unreachable') %} {%- do bug('unreachable') %}
{%- endif %} {%- endif %}
{%- set bw = int(cell.bandwidth * 1e6) %}
<tx-array-carriers> <tx-array-carriers>
<name>{{ TxCarrier }}</name> <name>{{ TxCarrier }}</name>
<absolute-frequency-center>{{ dl_arfcn }}</absolute-frequency-center> <absolute-frequency-center>{{ dl_arfcn }}</absolute-frequency-center>
......
...@@ -95,7 +95,7 @@ def iRU1_SDR_tLTE2_tNR(ienb): ...@@ -95,7 +95,7 @@ def iRU1_SDR_tLTE2_tNR(ienb):
'cell_type': 'lte', 'cell_type': 'lte',
'cell_kind': 'enb', 'cell_kind': 'enb',
'rf_mode': 'tdd', 'rf_mode': 'tdd',
'bandwidth': '5 MHz', 'bandwidth': 5,
'dl_earfcn': 38050, # 2600 MHz 'dl_earfcn': 38050, # 2600 MHz
'pci': 1, 'pci': 1,
'cell_id': '0x01', 'cell_id': '0x01',
...@@ -107,7 +107,7 @@ def iRU1_SDR_tLTE2_tNR(ienb): ...@@ -107,7 +107,7 @@ def iRU1_SDR_tLTE2_tNR(ienb):
'cell_type': 'lte', 'cell_type': 'lte',
'cell_kind': 'enb', 'cell_kind': 'enb',
'rf_mode': 'tdd', 'rf_mode': 'tdd',
'bandwidth': '5 MHz', 'bandwidth': 5,
'dl_earfcn': 38100, # 2605 MHz 'dl_earfcn': 38100, # 2605 MHz
'pci': 2, 'pci': 2,
'cell_id': '0x02', 'cell_id': '0x02',
...@@ -161,7 +161,7 @@ def iRU2_SDR_tLTE_tNR(ienb): ...@@ -161,7 +161,7 @@ def iRU2_SDR_tLTE_tNR(ienb):
'cell_type': 'lte', 'cell_type': 'lte',
'cell_kind': 'enb', 'cell_kind': 'enb',
'rf_mode': 'tdd', 'rf_mode': 'tdd',
'bandwidth': '5 MHz', 'bandwidth': 5,
'dl_earfcn': 38050, # 2600 MHz 'dl_earfcn': 38050, # 2600 MHz
'pci': 1, 'pci': 1,
'cell_id': '0x01', 'cell_id': '0x01',
...@@ -223,7 +223,7 @@ def iRU2_LOPCOMM_fLTE_fNR(ienb): ...@@ -223,7 +223,7 @@ def iRU2_LOPCOMM_fLTE_fNR(ienb):
'cell_type': 'lte', 'cell_type': 'lte',
'cell_kind': 'enb', 'cell_kind': 'enb',
'rf_mode': 'fdd', 'rf_mode': 'fdd',
'bandwidth': '5 MHz', 'bandwidth': 5,
'dl_earfcn': 3350, # 2680 MHz 'dl_earfcn': 3350, # 2680 MHz
'pci': 21, 'pci': 21,
'cell_id': '0x21', 'cell_id': '0x21',
...@@ -269,7 +269,7 @@ def iRU1_SDR1_fLTE2(ienb): ...@@ -269,7 +269,7 @@ def iRU1_SDR1_fLTE2(ienb):
'cell_type': 'lte', 'cell_type': 'lte',
'cell_kind': 'enb', 'cell_kind': 'enb',
'rf_mode': 'fdd', 'rf_mode': 'fdd',
'bandwidth': '5 MHz', 'bandwidth': 5,
'dl_earfcn': 3350, # 2680 MHz (Band 7) 'dl_earfcn': 3350, # 2680 MHz (Band 7)
'pci': 1, 'pci': 1,
'cell_id': '0x01', 'cell_id': '0x01',
...@@ -281,7 +281,7 @@ def iRU1_SDR1_fLTE2(ienb): ...@@ -281,7 +281,7 @@ def iRU1_SDR1_fLTE2(ienb):
'cell_type': 'lte', 'cell_type': 'lte',
'cell_kind': 'enb', 'cell_kind': 'enb',
'rf_mode': 'fdd', 'rf_mode': 'fdd',
'bandwidth': '5 MHz', 'bandwidth': 5,
'dl_earfcn': 3050, # 2650 MHz (Band 7) 'dl_earfcn': 3050, # 2650 MHz (Band 7)
'pci': 1, 'pci': 1,
'cell_id': '0x02', 'cell_id': '0x02',
...@@ -324,7 +324,7 @@ def iRU2_LOPCOMM_fLTE2(ienb): ...@@ -324,7 +324,7 @@ def iRU2_LOPCOMM_fLTE2(ienb):
'cell_type': 'lte', 'cell_type': 'lte',
'cell_kind': 'enb', 'cell_kind': 'enb',
'rf_mode': 'fdd', 'rf_mode': 'fdd',
'bandwidth': '20 MHz', 'bandwidth': 20,
'dl_earfcn': 100, # 2120 MHz @ B1 'dl_earfcn': 100, # 2120 MHz @ B1
'pci': 21, 'pci': 21,
'cell_id': '0x21', 'cell_id': '0x21',
...@@ -341,7 +341,7 @@ def iRU2_LOPCOMM_fLTE2(ienb): ...@@ -341,7 +341,7 @@ def iRU2_LOPCOMM_fLTE2(ienb):
'cell_type': 'lte', 'cell_type': 'lte',
'cell_kind': 'enb', 'cell_kind': 'enb',
'rf_mode': 'fdd', 'rf_mode': 'fdd',
'bandwidth': '20 MHz', 'bandwidth': 20,
'dl_earfcn': 500, # 2160 MHz @ B1 'dl_earfcn': 500, # 2160 MHz @ B1
'pci': 22, 'pci': 22,
'cell_id': '0x22', 'cell_id': '0x22',
...@@ -387,7 +387,6 @@ def do_enb(): ...@@ -387,7 +387,6 @@ def do_enb():
'e_cell_id': '0x12345', 'e_cell_id': '0x12345',
'pci': 35, 'pci': 35,
'dl_earfcn': 700, 'dl_earfcn': 700,
'bandwidth': '10 MHz',
'tac': 123, 'tac': 123,
}) })
ienb.ishared('PEERCELL2', { ienb.ishared('PEERCELL2', {
...@@ -483,7 +482,7 @@ def do_ue(): ...@@ -483,7 +482,7 @@ def do_ue():
'cell_type': 'lte', 'cell_type': 'lte',
'cell_kind': 'ue', 'cell_kind': 'ue',
'rf_mode': 'tdd', 'rf_mode': 'tdd',
'bandwidth': '5 MHz', 'bandwidth': 5,
'dl_earfcn': 38050, # 2600 MHz 'dl_earfcn': 38050, # 2600 MHz
'ru': { 'ru': {
'ru_type': 'sdr', 'ru_type': 'sdr',
......
...@@ -53,7 +53,7 @@ def LTE(dl_earfcn, bandwidth): ...@@ -53,7 +53,7 @@ def LTE(dl_earfcn, bandwidth):
return { return {
'cell_type': 'lte', 'cell_type': 'lte',
'dl_earfcn': dl_earfcn, 'dl_earfcn': dl_earfcn,
'bandwidth': '%g MHz' % bandwidth, 'bandwidth': bandwidth,
} }
def NR(dl_nr_arfcn, nr_band, bandwidth): def NR(dl_nr_arfcn, nr_band, bandwidth):
return { return {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment