Import Declaration
- Updated2025-10-09
- 1 minute(s) read
The import declaration specifies the list of external labels the pattern vectors use as opcode targets using the following syntax:
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.
Conditions
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.
Related Information
- Pattern Declaration
The required pattern declaration defines the sequence of pattern vectors and defines the pins and pin groups to which the pattern applies using the following syntax:
- Export Declaration
The export declaration specifies the list of labels to export for other patterns to use as opcode targets using the following syntax:
- Pattern Grid View
Click the Grid tab on the pattern document toolbar to launch the pattern grid view. Use this view to see components of the binary pattern file, including time sets, labels, opcodes, vector numbers, pin state data that indicates drives and compares, comments for each vector, exported labels, and comments from the top of the file. Use the pattern waveform view for a graph-based representation of the pattern. You can select and right-click vectors in the pattern grid view and select Show Vectors in Waveform View from the context menu to launch the pattern waveform view. You can also click the Waveform tab on the pattern document toolbar to launch the pattern waveform view. An asterisk (*) next to a filename in the Project Explorer window and in the document tab indicates that the file has been modified but not saved.