Table Of Contents

Import Declaration

Last Modified: November 23, 2020

The import declaration specifies the list of external labels the pattern vectors use as opcode targets using the following syntax:

import item1, item2, item3, …;

where item<n> is a valid label.

The Digital Pattern Editor assumes that any label you reference but do not specify in a pattern is an imported label. You can import only global labels, the pattern name, or an exported label from another pattern. To burst a pattern that imports a label, you must load the pattern with the exported label for the reference to be resolved.


The following conditions apply to the import declaration:

  • The import declaration must be specified before the pattern declaration.
  • You can include multiple import declarations on the same or separate lines.
  • You cannot duplicate items in an import declaration.
  • You cannot specify an imported item in an export declaration because imports and exports are mutually exclusive.
  • You cannot reuse an import identifier as an explicit vector label in the importing pattern.
  • An import cannot be the same as the pattern name, which is the automatic global label for the first vector.

Recently Viewed Topics