Publication 1762-RM001C-EN-P
File Instructions 14-9
This instruction uses the following operands:
•
Source - The source operand is a constant or address of the value
used to fill the currently available position in the FIFO stack. The
address level of the source must match the FIFO stack. If FIFO is a
word size file, source must be a word value or constant. If FIFO is a
long word size file, source must be a long word value or constant.
The data range for the source is from -32768 to 32767 (word) or
-2,147,483,648 to 2,147,483,647 (long word).
•
FIFO - The FIFO operand is the starting address of the stack.
•
Control - This is a control file address. The status bits, stack length,
and the position value are stored in this element. The control element
consists of 3 words:
•
Length - The length operand contains the number of elements in the
FIFO stack to receive the value or constant found in the source. The
length of the stack can range from 1 to 128 (word) or 1 to 64 (long
word). The position is incremented after each load.
•
Position - This is the current location pointed to in the FIFO stack. It
determines the next location in the stack to receive the value or
constant found in source. Position is a component of the control
register. The position can range from 0 to 127 (word) or 0 to 63 (long
word).
15 14 13 12 11 10 9876543210
Word 0
EN
(1)
(1) EN - Enable Bit is set on false-to-true transition of the rung and indicates the instruction is enabled.
--
DN
(2)
(2) DN - Done Bit, when set, indicates that the stack is full.
EM
(3)
(3) EM - Empty Bit, when set, indicates FIFO is empty.
not used
Word 1 Length - maximum number of words or long words in the stack.
Word 2 Position - the next available location where the instruction loads data.