Main Content

getLatency

Latency of channel synthesizer calculation

Description

example

Y = getLatency(channelsynthesizer) returns the number of cycles, Y that the object would take to synthesize an input frame. The filter coefficients do not affect the latency. This function does not change the properties of the channelsynthesizer.

example

Y = getLatency(channelsynthesizer,N) returns the number of cycles that an object would take to synthesize an input frame. The latency depends on the filter structure and the IFFT length (N). The filter coefficients do not affect the latency. This function does not change the properties of the channelsynthesizer.

Examples

collapse all

The latency of the dsphdl.ChannelSynthesizer object varies with the IFFT length and filter structure.

Create a dsphdl.ChannelSynthesizer object with a direct form transposed filter structure and 16 frequency bands, and then calculate the latency.

synthesizerDT = dsphdl.ChannelSynthesizer('FilterStructure','Direct form transposed');
latencyDT = getLatency(synthesizerDT,16)
latencyDT = 20

Calculate the latency information for dsphdl.ChannelSynthesizer object with a direct form systolic filter structure and and 8 frequency bands.

synthesizerDS = dsphdl.ChannelSynthesizer('FilterStructure','Direct form systolic');
latencyDS = getLatency(synthesizerDS,8)
latencyDS = 21

Enable scaling at each stage of the IFFT. The latency does not change.

synthesizerDT.Normalize = true;
latencyDTn = getLatency(synthesizerDT,16)
latencyDTn = 20

Input Arguments

collapse all

Channel synthesizer System object that you created and configured. See dsphdl.ChannelSynthesizer.

Number of frequency bands (IFFT length), specified as an integer power of 2 from 22 to 26.

Output Arguments

collapse all

Cycles of latency that the object takes to synthesize the input frame, returned as an integer. The latency is the number of cycles between the first valid input and the first valid output, assuming the input is contiguous. Each call to the object simulates one cycle.

Version History

Introduced in R2022a