Skip to Main Content Skip to Search
Product Documentation

generatetbstimulus - Generate and return HDL test bench stimulus

Syntax

generatetbstimulus(Hd)
generatetbstimulus(Hd, 'PropertyName', 'PropertyValue'...)
x = generatetbstimulus(Hd, 'PropertyName', 'PropertyValue'...)

Description

generatetbstimulus(Hd) generates and returns filter input stimulus for the filter Hd, where Hd is a handle to a filter object. The stimulus is generated based on the setting of the properties TestBenchStimulus and TestBenchUserStimulus.

The generated test bench applies this input stimuli, and the coder assigns the default stimuli based on the filter type. The following choices of stimuli are available:

generatetbstimulus(Hd, 'PropertyName', 'PropertyValue'...) generates and returns filter input stimuli for the filter Hd. This value is based on specified settings for TestBenchStimulus and TestBenchUserStimulus.

x = generatetbstimulus(Hd, 'PropertyName', 'PropertyValue'...) generates and returns filter input stimuli for the filter Hd based on specified settings for TestBenchStimulus and TestBenchUserStimulus and writes the output to x for future use or reference.

Examples

  1. Generate and return test bench stimuli. The call to generatetbstimulus in the following command line sequence generates ramp and chirp stimuli and returns the results to y.

  2. Apply a quantized filter to the data and plot the results. The call to the filter function applies the quantized filter Hd to the data that was returned to y and gains access to state and filtering information. The plot function then plots the resulting data.

y = generatetbstimulus(Hd, 'TestBenchStimulus', {'ramp', 'chirp'}); 
%Generate and return test bench stimuli
plot(filter(Hd,y)); %Apply a quantized filter to the 
data and plot the results

See Also

generatetb

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS