Intel® Quartus® Prime Standard Edition User Guide: Debug Tools

ID 683552
Date 9/24/2018
Public
Document Table of Contents

3.13.3. Data Pattern Checker Commands

You can use Data Pattern Checker commands to verify your generated data patterns. You must instantiate the Data Pattern Checker component to support these commands.

Table 52.  Soft Data Pattern Checker Commands
Command Arguments Function
data_pattern_checker_start <service-path> Starts the data pattern checker.
data_pattern_checker_stop <service-path> Stops the data pattern checker.
data_pattern_checker_is_checking <service-path> Returns a non-zero value if the checker is running.
data_pattern_checker_is_locked <service-path> Returns non-zero if the checker is locked onto the incoming data.
data_pattern_checker_set_pattern <service-path> <pattern-name> Sets the expected pattern to <pattern-name>.
data_pattern_checker_get_pattern <service-path> Returns the currently selected expected pattern by name.
data_pattern_checker_get_available_patterns <service-path> Returns a list of available data patterns by name.
data_pattern_checker_get_data <service-path> Returns a list of the current checker data. The results are in the following order: number of bits, number of errors, and bit error rate.
data_pattern_checker_reset_counters <service-path> Resets the bit and error counters inside the checker.
data_pattern_checker_fcnter_start <service-path> <max-cycles> Sets the max cycle count and starts the frequency counter.
data_pattern_checker_check_status <service-path>

<service-path>

Queries the data pattern checker for current status. Returns a bitmap indicating status:
Value Status
0 Enabled
1 Locked
2 Bypass enabled
3 Avalon®
4 Sink ready
5 Source valid
6 Frequency counter enabled
data_pattern_checker_fcnter_report <service-path> <force-stop> Reports the current measured clock ratio, stopping the counting first depending on <force-stop>.
Table 53.  Hard Data Pattern Checker Commands
Command Arguments Function
hard_prbs_checker_start <service-path> Starts the specified hard PRBS checker.
hard_prbs_checker_stop <service-path> Stops the specified hard PRBS checker.
hard_prbs_checker_is_checking <service-path> Checks the running status of the specified hard PRBS checker. Returns a non-zero value if the checker is running.
hard_prbs_checker_set_pattern <service-path> <pattern>

Sets the pattern of the specified hard PRBS checker to parameter <pattern>.

hard_prbs_checker_get_pattern <service-path> Returns the current pattern for a given hard PRBS checker.
hard_prbs_checker_get_available_patterns <service-path> Returns the available patterns for a given hard PRBS checker.
hard_prbs_checker_get_data <service-path> Returns the current bit and error count data from the specified hard PRBS checker.
hard_prbs_checker_reset_counters <service-path> Resets the bit and error counts of the specified hard PRBS checker.