Utility
FIFO
Description

FIFO

A first-in, first-out buffer that can hold up to 510 16-bit signed-integer samples.

A new sample of the Input is added to the buffer at each rising edge of the Enqueue input.

The first sample that was added is moved out of the buffer, and into the Output parameter at the first rising edge of the Dequeue input.

Subsequent samples are moved out of the buffer, and into the Output parameter at each rising edge of the Dequeue input.

The Full parameter is active when 510 samples have been queued. The Enqueue parameter is ignored when the buffer is full.

The Empty parameter is active when no samples have been queued. The Dequeue parameter is ignored when the buffer is empty.

The number of samples in the buffer is shown as a percentage of the 510 sample maximum in the Utilization parameter.

Clear causes all values in the buffer and the output to be reset to zero.

The FIFO function block uses a memory block that is also used by the Moving Average Filter function block. A maximum of sixteen of theses function blocks can be instantiated.

Availability
  • Available only in the dw2xx & dw2xx-v2 series products
  • Requires library: Process Control (option -05)
  • Firmware versions 0x202A and later
savvy-SFD Graphic fifo
Graphic with Parameters fifo

Parameters

Input Input, Read-write, Analog (signed 16-bit integer)
-327.67 % to 327.67 %

A new sample of the Input is added to the buffer at each rising edge of the Enqueue input unless the buffer is full.
Enqueue Input, Read-write, Boolean (signed 16-bit integer)

A new sample of the Input is added to the buffer at each rising edge of the Enqueue input unless the buffer is full. Enqueue is ignored when the buffer is full.
0 = Low
1 = High
Clear Input, Read-write, Boolean (signed 16-bit integer)

All buffer samples and the output are reset to zero when Clear is active.
0 = Inactive
1 = Clear
Output Output, Read-only, Analog (signed 16-bit integer)
-327.67 % to 327.67 %

The first sample that was added is moved out of the buffer, and into the Output parameter at the first rising edge of the Dequeue input. Subsequent samples are moved out at subsequent rising edges unless the buffer is empty.
Dequeue Input, Read-write, Boolean (signed 16-bit integer)

The first sample that was added is moved out of the buffer, and into the Output parameter at the first rising edge of the Dequeue input. Subsequent samples are moved out at subsequent rising edges unless the buffer is empty. Dequeue is ignored when the buffer is empty.
0 = Low
1 = High
Utilization Output, Read-only, Analog (signed 16-bit integer)
0.00 % to 100.00 %

The number of samples in the buffer is shown as a percentage of the 510 sample maximum in the Utilization parameter.
Empty Internal Parameter, Read-only, Boolean (signed 16-bit integer)

Active when there are no samples in the buffer. Dequeue is ignored when the buffer is empty.
0 = Inactive
1 = Empty
Full Internal Parameter, Read-only, Boolean (signed 16-bit integer)

Active when 510 samples are stored in the buffer. Enqueue is ignored when the buffer is full.
0 = Inactive
1 = Full