setCaptureCondition
Description
Examples
Set Up Capture Condition
This example uses a customized data capture object,
DC
, that defines two signals for both trigger and data capture.
Signal A
is 1 bit and signal B
is 8 bits.
Enable capture condition logic.
DC.EnableCaptureCtrl = true;
To enable capture condition logic, you must select the Include capture condition logic parameter while generating the data capture IP core using the FPGA Data Capture Component Generator tool.
Set up a capture condition to capture data when the FPGA detects a high value on
signal A
and a value 17 on signal B
.
setCaptureCondition(DC,'A',true,'High'); setCaptureCondition(DC,'B',true,uint8(17));
Input Arguments
DC
— Customized data capture object
hdlverifier.FPGADataReader
System object™
Customized data capture
object, specified as an hdlverifier.FPGADataReader
System object.
name
— Name of capture component signal
character vector
Name of the capture component signal, specified as a character vector.
This name must match one of the signal names configured on creation of the input
System object DC
. The signal must be configured as a possible
trigger signal.
Data Types: char
enable
— Indication that signal is part of capture condition
true
| false
Indication that the signal is part of the capture condition, specified as
true
or false
. To use this signal in the overall
capture condition, set this value to true
. When you set this value to
false
, the signal is not used for the overall capture
condition.
value
— Value to compare signal to as part of capture condition
decimal | binary | hexadecimal | 'Low'
| 'High'
| 'Rising edge'
| 'Falling edge'
| 'Both edges'
Value to compare the signal to as part of the capture condition, specified as one of the following.
Decimal, binary, or hexadecimal value — For a multibit signal, specify a value within the range of the data type associated with the signal. If you specify a binary or hexadecimal value, you can use an
X
orx
to indicate signals for the function to ignore during the value comparison.To separate a group of bits for better readability, you can use
_
between bits. For example, you can represent a 32-bit binary value as'0b1010_XXXX_1011_XXXX_1110_XXXX_1111XXXX'
and a 32-bit hexadecimal value as'0xAB_CDEXFX'
.'Low'
,'High'
,'Rising edge'
,'Falling edge'
, or'Both edges'
— For a logical signal, specify a string that indicates the level or edge to match. For more information, see Capture Conditions.
Version History
Introduced in R2022a
See Also
Objects
Tools
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)