| <?xml version="1.0"?> | |
| <xml> | |
| <pb_type name="parent"> | |
| <input name="ia1"/> | |
| <input name="ia2"/> | |
| <input name="ia3"/> | |
| <output name="o0"/> | |
| <output name="o1"/> | |
| <pb_type name="childa"> | |
| <input name="i1"/> | |
| <input name="i2"/> | |
| <output name="o"/> | |
| </pb_type> | |
| <pb_type name="childb"> | |
| <input name="i"/> | |
| <output name="o"/> | |
| </pb_type> | |
| <pb_type name="childc"> | |
| <input name="i"/> | |
| <output name="o"/> | |
| </pb_type> | |
| <interconnect> | |
| <direct input="parent.ia1" name="childa-i1" output="childa.i1"> | |
| <pack_pattern in_port="parent.ia1" name="A1" out_port="childa.i1"/> | |
| </direct> | |
| <mux input="parent.ia2 parent.ia3" name="childa-input-i2" output="childa.i2"> | |
| <pack_pattern in_port="parent.ia2" name="A2" out_port="childa.i2"/> | |
| <pack_pattern in_port="parent.ia3" name="A3" out_port="childa.i2"/> | |
| </mux> | |
| <direct input="childa.o" name="childb-i" output="childb.i"/> | |
| <mux input="childa.o childb.o" name="childc-input" output="childc.i"/> | |
| <direct input="childa.o" name="parent-o0" output="parent.o0"/> | |
| <mux input="childa.o childb.o childc.o" name="output" output="parent.o1"/> | |
| </interconnect> | |
| </pb_type> | |
| </xml> |