The XPORT construct enables different instances of an entity to have different numbers of ports. This is often convenient for busses, for example.
| ENTITY bus | ( | |
| PORTS | ( | |
| XPORT(2, input,l_bus,DESTINATION); | ||
| XPORT(2, output,l_bus,SOURCE); | ||
| ) | ||
| ); |
| AENTITY bus BUS1 | ( |
| DESCRIPTION("bus1") | |
| ATTRIB ( XPORT (input, 3) ); | |
| ); |