User`s guide

Queue
5-353
5Queue
Purpose Store inputs in a FIFO register.
Library Signal Management / Buffers
Description The Queue block stores a sequence of input samples in a FIFO (first in, first
out) register. The register capacity is set by the
Register size parameter, and
inputs can be scalars, vectors, or matrices.
The block pushes the input at the
In port onto the end of the queue when a
trigger event is received at the
Push port. When a trigger event is received at
the
Pop port, the block pops the first element off the queue and holds the Out
port at that value. The first input to be pushed onto the queue is always the
first to be popped off.
A trigger event at the optional
Clr port (enabled by the Clear input check box)
empties the queue contents. If
Clear output port on reset is selected, then a
trigger event at the
Clr port empties the queue and sets the value at the Out
port to zero. This setting also applies when a disabled subsystem containing
register size
Pushing the queue
1
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
1
1
1
1
1
1
0
0
empty
empty
empty
first in
0
1
0
1
0
0
0
0
1
0
0
1
1
1
1
1
1
1
0
0
empty
empty
empty
first out
Popping the queue
1
1
0
1
1
1
0
1
0
1
0
1
0
0
0
0
1
0
0
1
1
1
1
1
empty
empty
1
1
0
0