A fully working version of the scheduling language with added examples
This commit is contained in:
parent
ec42f74960
commit
ebfd85a666
126 changed files with 7235 additions and 981 deletions
51
transformation/schedule/templates/schedule_template.j2
Normal file
51
transformation/schedule/templates/schedule_template.j2
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{% macro Start(name, ports_exec_out, ports_data_out) %}
|
||||
{{ name }} = Start({{ ports_exec_out }}, {{ ports_data_out }})
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro End(name, ports_exec_in, ports_data_in) %}
|
||||
{{ name }} = End({{ ports_exec_in }}, {{ ports_data_in }})
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro Match(name, file, n) %}
|
||||
{{ name }} = Match("{{ file }}", {{ n }})
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro Rewrite(name, file) %}
|
||||
{{ name }} = Rewrite("{{ file }}")
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro Action(name, ports_exec_in, ports_exec_out, ports_data_in, ports_data_out, action, init) %}
|
||||
{{ name }} = Action({{ ports_exec_in }}, {{ ports_exec_out }}, {{ ports_data_in }}, {{ ports_data_out }}, {{ action }}, {{ init }})
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro Modify(name, rename, delete) %}
|
||||
{{ name }} = Modify({{ rename }}, {{ delete }})
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro Merge(name, ports_data_in) %}
|
||||
{{ name }} = Merge({{ ports_data_in }})
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro Store(name, ports) %}
|
||||
{{ name }} = Store({{ ports }})
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro Schedule(name, file) %}
|
||||
{{ name }} = SubSchedule(schedular, "{{ file }}")
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro Loop(name) %}
|
||||
{{ name }} = Loop()
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro Print(name, label, custom) %}
|
||||
{{ name }} = Print("{{ label }}", {{ custom }})
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro Conn_exec(name_from, name_to, from, to) %}
|
||||
{{ name_from }}.connect({{ name_to }},"{{ from }}","{{ to }}")
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro Conn_data(name_from, name_to, from, to, event) %}
|
||||
{{ name_from }}.connect_data({{ name_to }}, "{{ from }}", "{{ to }}", {{ event }})
|
||||
{%- endmacro %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue