Skip to content
PL1

DVE: List of busses for the template

Then the second thing I need is the list of busses with a name. It's something I cannot infer from the templates

At the same level as Nodes there shall be a list of Buses that you have to create by looking at connections

Each time a port is connected, there is a corresponding bus declared in the AADL model (several ports are connected to the same bus when they are connected together in the XML model).

image

The bus shall have a name (here eth0, but it has to be generated, as the user will not set it), and a qualifier (ocarina_buses::ip_i)

The Connections shall then have an actual name (generated by you, at the moment the field exists but it's empty), an additional parameter which is the reference to this bus, and a attributes from_device_name and to_device_name in addition to to_port, in order to allow me to generate the CONNECTIONS section:

{{ connection.name }}  : bus access {{ connection.bus_name }}  -> {{ connection.from_node }}.{{ connection.from_device_name }};
{{ connection.name }}  : bus access {{ connection.bus_name }}  -> {{ connection.to_node }}.{{ connection.to_device_name }};

(If you can put the attributes as template attributes directly it would be easier to avoid the nested iterations on the attributes as shown on the screenshot above)