Documentation

TestbenchCoeffStimulus

Specify testing options for coefficient memory interface for FIR or IIR filters

Settings

[] : Empty vector (default)

When the value of TestbenchCoeffStimulus is unspecified (or set to the default value of []), the test bench loads the coefficients from the filter object and then forces the input stimuli. This shows the response to the input stimuli and verifies that the interface writes one set of coefficients into the RAM as expected.

(For FIR filters): vector of coefficient values . In this case, the filter processes the input stimuli twice. First, the test bench loads the coefficients from the filter object and forces the input stimuli to show the response. Then, the filter loads the set of coefficients specified in the TestbenchCoeffStimulus vector, and shows the response by processing the same input stimuli for a second time. In this case, the internal states of the filter, as set by the first run of the input stimulus, are retained. The test bench verifies that the interface writes two different sets of coefficients into the RAM. See Programmable Filter Coefficients for FIR Filters for further information.

(for IIR filters): Cell array containing a column vector of scale values, and a second-order section (SOS) matrix for the filter. See Programmable Filter Coefficients for IIR Filters for further information.

Was this topic helpful?