Commit faa54d68 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 17166cf0
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
{%- set rx_gainv = [] %} {#- rx_gain by tx channel #} {%- set rx_gainv = [] %} {#- rx_gain by tx channel #}
{%- for rf_port, (ru_ref, iru) in enumerate(iru_dict|dictsort) %} {%- for rf_port, (ru_ref, iru) in enumerate(iru_dict|dictsort) %}
{%- set ru = iru['_'] %} {%- set ru = iru['_'] %}
// {{ ru_ref }} {{ ru.n_antenna_dl }}T{{ ru.n_antenna_ul }}R // {{ ru_ref }} {{ ru.n_antenna_dl }}T{{ ru.n_antenna_ul }}R ({{ ru.ru_type }})
{%- do ru.update({'_rf_port': rf_port}) %} {%- do ru.update({'_rf_port': rf_port}) %}
{%- if ru.ru_type == 'sdr' %} {%- if ru.ru_type == 'sdr' %}
{%- do ru_sdr_dict.update({len(dev_argv): ru}) %} {%- do ru_sdr_dict.update({len(dev_argv): ru}) %}
......
...@@ -20,7 +20,7 @@ md5sum = 739cd223f6959fde38d658127cab51ed ...@@ -20,7 +20,7 @@ md5sum = 739cd223f6959fde38d658127cab51ed
[amari_lte.jinja2] [amari_lte.jinja2]
_update_hash_filename_ = amari/lte.jinja2 _update_hash_filename_ = amari/lte.jinja2
md5sum = ef5fb399024f367d3521bcfc965c77d2 md5sum = efd6195979e0a5f6b9d0999bbaa284e6
[amari_slap.jinja2] [amari_slap.jinja2]
_update_hash_filename_ = amari/slap.jinja2 _update_hash_filename_ = amari/slap.jinja2
...@@ -28,7 +28,7 @@ md5sum = 18f1a205d55c3026cf221ef22d247695 ...@@ -28,7 +28,7 @@ md5sum = 18f1a205d55c3026cf221ef22d247695
[ru_libinstance.jinja2.cfg] [ru_libinstance.jinja2.cfg]
_update_hash_filename_ = ru/libinstance.jinja2.cfg _update_hash_filename_ = ru/libinstance.jinja2.cfg
md5sum = 6e652b2110d4c7e523e39f18c928efbe md5sum = 6ad719c1c9be7c7c9d70c122bbae88af
[amarisoft-stats.jinja2.py] [amarisoft-stats.jinja2.py]
_update_hash_filename_ = amarisoft-stats.jinja2.py _update_hash_filename_ = amarisoft-stats.jinja2.py
......
...@@ -10,33 +10,39 @@ ...@@ -10,33 +10,39 @@
{%- import 'amari_slap.jinja2' as slaplte with context %} {%- import 'amari_slap.jinja2' as slaplte with context %}
#} #}
{#- iru_dict and icell_dict keep RU and cell registries
iru_dict: reference -> iru
icell_dict: reference -> icell
#}
{%- set iru_dict = {} %} {%- set iru_dict = {} %}
{%- set icell_dict = {} %} {%- set icell_dict = {} %}
{%- do slaplte.load_iru_and_icell(iru_dict, icell_dict, icell_kind) %} {%- do slaplte.load_iru_and_icell(iru_dict, icell_dict, icell_kind) %}
{%- macro buildout() %} {%- macro buildout() %}
{%- set parts_list = [] %} {%- set parts_list = [] %}
{%- macro part(name) %} {%- macro part(name) %}
{%- do parts_list.append(name) %} {%- do parts_list.append(name) %}
[{{ name }}] [{{ name }}]
{%- endmacro %} {%- endmacro %}
{%- macro promise(name) %} {%- macro promise(name) %}
{{ part(name) }} {{ part(name) }}
<= macro.promise <= macro.promise
config-testing = {{ slapparameter_dict.get("testing", False) }} config-testing = {{ slapparameter_dict.get("testing", False) }}
{%- endmacro %} {%- endmacro %}
{%- for ru_ref, iru in iru_dict|dictsort %} {%- for ru_ref, iru in iru_dict|dictsort %}
{%- set ru = iru['_'] %} {%- set ru = iru['_'] %}
# {{ ru_ref }} {{ ru.n_antenna_dl }}T{{ ru.n_antenna_ul }}R XXX + ru arg # {{ ru_ref }} {{ ru.n_antenna_dl }}T{{ ru.n_antenna_ul }}R ({{ ru.ru_type }})
{%- if ru.ru_link_type == 'sdr' %} {%- if ru.ru_link_type == 'sdr' %}
{%- for (i, n) in enumerate(ru.sdr_dev_list) %} {%- for (i, n) in enumerate(ru.sdr_dev_list) %}
{{ promise('%s-check-sdr-busy%s.py' % (ru_ref, '-%d' % (i+1) if i > 0 else '')) }} {{ promise('%s-check-sdr-busy%s.py' % (ru_ref, '-%d' % (i+1) if i > 0 else '')) }}
promise = check_sdr_busy promise = check_sdr_busy
config-sdr = {{ sdr }} config-sdr = {{ sdr }}
config-sdr_dev = {{ n }} config-sdr_dev = {{ n }}
config-dma_chan = 0 config-dma_chan = 0
{%- endfor %} {%- endfor %}
......
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