From ca1d8496aeb36872dc37ef45ee84cd6f92310e15 Mon Sep 17 00:00:00 2001 From: Christophe Favergeon Date: Thu, 16 Dec 2021 07:53:05 +0100 Subject: [PATCH] CMSIS-DSP: Improvements to dot template in SDF --- SDFTools/sdf/templates/dot_template.dot | 31 ++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/SDFTools/sdf/templates/dot_template.dot b/SDFTools/sdf/templates/dot_template.dot index bd65b37f..ce22313e 100755 --- a/SDFTools/sdf/templates/dot_template.dot +++ b/SDFTools/sdf/templates/dot_template.dot @@ -38,6 +38,35 @@ digraph structs { >]; {% else %} +{% if not config.horizontal %} + +{{item.nodeID}} [label=< + + + {% for id in range(0,item.maxNbIOs) -%} + {% if item.inputNames[id] -%} + {% set input %}{{item.inputNames[id]}}{% endset %} + + {% else %} + + {%- endif %} + {%- endfor %} + + + + + + {% for id in range(0,item.maxNbIOs) -%} + {% if item.outputNames[id] -%} + {% set output %}{{item.outputNames[id]}}{% endset %} + + {% else %} + + {%- endif %} + {%- endfor %} + +
{{input}}
{{ item.graphvizName }}
{{output}}
>]; +{% else %} {{item.nodeID}} [label=< @@ -73,7 +102,7 @@ digraph structs {
>]; - +{% endif %} {% endif %} {% endfor %}