hdlverifier.FPGADataReader
Capture data from live FPGA into MATLAB workspace
Description
The hdlverifier.FPGADataReader
System object™ communicates with a generated HDL IP core running on an FPGA board to capture
signals from the FPGA into MATLAB®.
The hdlverifier.FPGADataReader
System object cannot be created directly. To use it, run FPGA Data Capture Component Generator and generate
your own customized FPGADataReader
System object. You can use the generated object directly or use the wrapper tool, FPGA Data Capture, to set trigger condition, capture
condition, and data types, and capture data.
Before you create the System object, you must have previously generated the customized data capture components. You must also have integrated the generated IP code into your project and deployed it to the FPGA. The object communicates with the FPGA over a JTAG or Ethernet cable. Make sure that the required cable is connected between the board and the host computer.
For a workflow overview, see Data Capture Workflow.
Note
Alternatively, instead of using the step
method to
perform the operation defined by the System object, you can call the object with arguments, as if it were a function. For
example, y = step(obj,x)
and y = obj(x)
perform
equivalent operations.
Creation
creates a customized object,
DC
= mydcDC
, that captures data from a design running on an FPGA.
mydc
is the component name you specified in the FPGA Data Capture Component Generator tool.
Properties
Object Functions
checkStatus | Check current status of FPGA data capture in nonblocking mode |
clone | Create hdlverifier.FPGADataReader
System object with same property values |
collectData | Collect captured data from FPGA to host in nonblocking mode |
displayCaptureCondition | Display overall capture condition |
displayDataTypes | Display data types for all captured signals |
displayTriggerCondition | Display overall trigger condition |
isLocked | Locked status |
launchApp | Open FPGA Data Capture app |
release | Release control of JTAG interface |
setCaptureCondition | Configure comparison for each signal value |
setCaptureConditionCombinationOperator | Configure operator that combines individual signal value comparisons into overall capture condition |
setCaptureConditionComparisonOperator | Configure operator that compares individual signal values within capture condition |
setDataType | Configure data type for the data captured from a signal |
setNumberofTriggerStages | Configure number of trigger stages for capturing data |
setRunImmediateFlag | Configure data capture to run immediately without any trigger condition |
setTriggerCombinationOperator | Configure operator that combines individual signal value comparisons into overall trigger condition |
setTriggerComparisonOperator | Configure operator that compares individual signal values within trigger condition |
setTriggerCondition | Configure each signal value comparison |
setTriggerTimeOut | Configure maximum number of FDC IP core clock cycles within which trigger condition must occur in a trigger stage |
step | Capture one buffer of data from HDL IP core running on FPGA |
stop | Stop FPGA data capture execution based on current status in nonblocking mode |
Examples
Version History
Introduced in R2017a