CMSIS-DSP: Improvements to dot template in SDF
@@ -38,6 +38,35 @@ digraph structs {
</TABLE>>];
{% else %}
+{% if not config.horizontal %}
+
+{{item.nodeID}} [label=<
+<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0" CELLPADDING="4">
+ <TR>
+ {% for id in range(0,item.maxNbIOs) -%}
+ {% if item.inputNames[id] -%}
+ {% set input %}{{item.inputNames[id]}}{% endset %}
+ <TD PORT="{{input}}"><FONT POINT-SIZE="9.0">{{input}}</FONT></TD>
+ {% else %}
+ <TD></TD>
+ {%- endif %}
+ {%- endfor %}
+ </TR>
+ <TR>
+ <TD ALIGN="CENTER" COLSPAN="{{item.maxNbIOs}}">{{ item.graphvizName }}</TD>
+ </TR>
+ <TR>
+ {% for id in range(0,item.maxNbIOs) -%}
+ {% if item.outputNames[id] -%}
+ {% set output %}{{item.outputNames[id]}}{% endset %}
+ <TD PORT="{{output}}"><FONT POINT-SIZE="9.0">{{output}}</FONT></TD>
+ {% else %}
+ <TD></TD>
+ {%- endif %}
+ {%- endfor %}
+ </TR>
+</TABLE>>];
+{% else %}
{{item.nodeID}} [label=<
<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0" CELLPADDING="4">
<TR>
@@ -73,7 +102,7 @@ digraph structs {
</TABLE>>];
-
+{% endif %}
{% endif %}
{% endfor %}
