User`s guide
Delay Line
5-126
When M
o
=M
i
, the output data is identical to the input data, but is delayed by
the latency of the block. Due to the block’s latency, the outputs are always
delayed by one frame, the entries of which are specified by the
Initial
conditions
(see “Initial Conditions” below).
The output frame period is equal to the input frame period (T
fo
=T
fi
). The output
sample period, T
so
, is therefore equal to T
fi
/M
o
, or equivalently, T
si
(M
i
/M
o
)
In the model below, the block rebuffers a two-channel frame-based input with
a
Delay line size of 3.
The first output frame in the example is a product of the latency of the Delay
Line block; it is all zeros because the
Initial conditions is set to be zero. Since
the input frame size, 4, is larger than the output frame size, 3, only the last
three samples in each input frame are propagated to the corresponding output
frame. The frame periods of the input and output are the same, and the output
sample period is T
si
(M
i
/M
o
), or 4/3 the input sample period.
Initial Conditions
The Delay Line block’s buffer is initialized to the value specified by the
Initial condition parameter. The block outputs this buffer at the first
simulation step (t=0). If the block’s output is a vector, the
Initial condition can
be a vector of the same size, or a scalar value to be repeated across all elements
of the initial output. If the block’s output is a matrix, the
Initial condition can
be a matrix of the same size, a vector (of length equal to the number of matrix
rows) to be repeated across all columns of the initial output, or a scalar to be
repeated across all elements of the initial output.
(M
o
=3)
Output frame period = T
si
Input frame period = 4∗T
si
11
21
30
40
51
61
70
80
first input
t=0t=4
ch2
ch1
ch2
ch1
91
10 1
11 0
12 0
t=8
ch2
ch1
first output
t=8
ch2
ch1
ch2
ch1
ch2
ch1
t=0t=4
61
70
80
21
30
40
00
00
00