Put the multiport logic in the template.  Attribute can be integer or array of integers.