Skip to content

Commit 3b31d70

Browse files
committed
Add example of multi-node <wireconn> specification to docs
1 parent 15f4673 commit 3b31d70

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

doc/src/arch/reference.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,3 +1212,19 @@ The full format is documented below.
12121212
The surrounding ``<wireconn>``'s destination set is the union of all contained ``<to>`` tags.
12131213

12141214
.. seealso:: ``<from>`` for attribute descriptions.
1215+
1216+
1217+
As an example, consider the following ``<wireconn>`` specification:
1218+
1219+
.. code-block:: xml
1220+
1221+
<wireconn num_conns_type="to"/>
1222+
<from type="L4" switchpoint="0,1,2,3"/>
1223+
<from type="L16" switchpoint="0,4,8,12"/>
1224+
<to type="L4" switchpoint="0/>
1225+
</wireconn>
1226+
1227+
This specifies that the 'from' set is the union of L4 switchpoints 0, 1, 2 and 3; and L16 switchpoints 0, 4, 8 and 12.
1228+
The 'to' set is all L4 switchpoint 0's.
1229+
Note that since different switchpoints are selected from different segment types it is not possible to specify this without using ``<from>`` sub-tags.
1230+

0 commit comments

Comments
 (0)