Commit a54eaede authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent c6b0c6fe
...@@ -442,7 +442,7 @@ ...@@ -442,7 +442,7 @@
ul_nr_arfcn: {{ cell.ul_nr_arfcn }}, ul_nr_arfcn: {{ cell.ul_nr_arfcn }},
bandwidth: {{ cell.bandwidth }}, bandwidth: {{ cell.bandwidth }},
subcarrier_spacing: {{ 30 if cell.rf_mode == 'tdd' else 15 }}, subcarrier_spacing: {{ cell.subcarrier_spacing }},
ssb_nr_arfcn: {{ cell.ssb_nr_arfcn }}, ssb_nr_arfcn: {{ cell.ssb_nr_arfcn }},
ssb_pos_bitmap: "{{ cell.ssb_pos_bitmap }}", ssb_pos_bitmap: "{{ cell.ssb_pos_bitmap }}",
......
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
ssb_nr_arfcn: {{ cell.ssb_nr_arfcn }}, ssb_nr_arfcn: {{ cell.ssb_nr_arfcn }},
bandwidth: {{ cell.bandwidth }}, bandwidth: {{ cell.bandwidth }},
subcarrier_spacing: {{ 30 if cell.rf_mode == 'tdd' else 15 }}, subcarrier_spacing: {{ cell.subcarrier_spacing }},
}, },
{%- endif %} {%- endif %}
{%- endfor %} {%- endfor %}
......
...@@ -11,6 +11,7 @@ def default_ssb_nr_arfcn(dl_nr_arfcn, scs_khz): ...@@ -11,6 +11,7 @@ def default_ssb_nr_arfcn(dl_nr_arfcn, scs_khz):
if nr.get_frequency_by_gscn(gscn) > f: if nr.get_frequency_by_gscn(gscn) > f:
gscn -= 1 gscn -= 1
scs = scs_khz * khz scs = scs_khz * khz
# align fb to be multiple of scs
while 1: while 1:
fg = nr.get_frequency_by_gscn(gscn) fg = nr.get_frequency_by_gscn(gscn)
if fg % scs < 1e-5*scs: # == 0 with tolerating fp if fg % scs < 1e-5*scs: # == 0 with tolerating fp
......
...@@ -221,6 +221,7 @@ ...@@ -221,6 +221,7 @@
{%- do _.setdefault('ul_earfcn', J(jdefault_ul_earfcn(_.dl_earfcn))) %} {%- do _.setdefault('ul_earfcn', J(jdefault_ul_earfcn(_.dl_earfcn))) %}
{%- elif xcell_type == 'nr' %} {%- elif xcell_type == 'nr' %}
{%- do _.setdefault('ul_nr_arfcn', J(jdefault_ul_nr_arfcn(_.dl_nr_arfcn, _.nr_band))) %} {%- do _.setdefault('ul_nr_arfcn', J(jdefault_ul_nr_arfcn(_.dl_nr_arfcn, _.nr_band))) %}
{%- do _.setdefault('subcarrier_spacing', 30 if _.rf_mode == 'tdd' else 15) %}
{%- do _.setdefault('ssb_nr_arfcn', J(jdefault_ssb_nr_arfcn(_.dl_nr_arfcn))) %} {%- do _.setdefault('ssb_nr_arfcn', J(jdefault_ssb_nr_arfcn(_.dl_nr_arfcn))) %}
{%- else %} {%- else %}
{%- do bug('unreachable') %} {%- do bug('unreachable') %}
......
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