| Filter Design HDL Coder™ | ![]() |
Specify testing options for coefficient RAM port interface for FIR filters
[] : 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 correctly writes one set of coefficients into the RAM.
[coeff1 coeff2...coeffN]
where [coeff1 ,coeff2, ...coeffN] is a vector of N coefficient values. N must equal the length of the filter object. 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 testbench verifies that the interface writes two different sets of coefficients into the RAM.
Specifying Storage of FIR Filter Coefficients in RAM or Register File, CoefficientSource
![]() | TargetLanguage | TestBenchDataPostFix | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |