checkStatus
Syntax
Description
Examples
Before you use this example, you must have previously generated the customized data capture object using the FPGA Data Capture Component Generator tool. You must also have integrated the generated IP code into your project and deployed it to the FPGA. The data capture object communicates with the FPGA over a JTAG cable. Make sure that the required cable is connected between the board and the host computer.
AMD® device only — Create a data capture object, DC,
that captures data from a design running on an FPGA. datacapture1 is
the generated IP name you specified in the FPGA Data Capture Component
Generator tool.
DC = datacapture1
DC =
datacapture with properties:
Connection: 'JTAG'
DataCaptureName: 'datacapture1'
IsConditionalCapture: 0
MemoryType: 'Internal memory'
TriggerPosition: 0
NumCaptureWindows: 1
NumTriggerStages: 1
TimeOut: 10
EnableCaptureCtrl: 0
JTAGCableName: 'auto'
JTAGCableType: 'auto'
JTAGChainPosition: 0
IRLengthBefore: 0
IRLengthAfter: 0
TckFrequency: 15
MemoryBaseAddress: '80000000'
MaxNumTriggerStages: 1
CaptureMode: 'blocking'Intel® device only — Create a data capture object, DC,
that captures data from a design running on an FPGA. datacapture1 is
the generated IP name you specified in the FPGA Data Capture Component
Generator tool.
DC = datacapture1
DC =
datacapture with properties:
Connection: 'JTAG'
DataCaptureName: 'datacapture1'
IsConditionalCapture: 0
TriggerPosition: 0
NumCaptureWindows: 1
NumTriggerStages: 1
TimeOut: 10
EnableCaptureCtrl: 0
JTAGCableName: 'auto'
MaxNumTriggerStages: 1
CaptureMode: 'blocking'Change the capture mode to nonblocking mode.
DC.CaptureMode = 'nonblocking';Check the current status of the data capture object.
status = checkStatus(DC)
status =
struct with fields:
CapturedWindows: 0
RunStatus: 'Not started'
TriggerStage: 0Use the step function to capture data. The data is captured
immediately from the FPGA.
dataOut = step(DC);
Check the current status of the data capture object.
status = checkStatus(DC)
status =
struct with fields:
CapturedWindows: 1
RunStatus: 'Successfully captured data from FPGA'
TriggerStage: 0Input Arguments
Customized data capture
object, specified as an hdlverifier.FPGADataReader
System object.
Output Arguments
Current status of the data capture object, returned as a structure containing fields for these signals.
CapturedWindows— This signal indicates the total number of windows captured so far.RunStatus— This signal indicates the current running status of the data capture object using one of these options.'Not started'— Data capture not started.'Waiting for trigger'— Data capture object is waiting for a trigger event to start data capture.'Evaluating capture condition'— Data capture object is evaluating the capture condition.'Successfully captured data from FPGA'— Data captured successfully from the FPGA.'Stopped'— Data capture has stopped.
TriggerStage— This signal indicates the trigger stage under evaluation for the run status'Waiting for trigger'. For the run statuses'Evaluating capture condition','Successfully captured data from FPGA', and'Stopped', this signal indicates the updated value of the trigger stage.
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.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- 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)