Intel® Quartus® Prime Standard Edition用户指南: 调试工具

ID 683552
日期 9/24/2018
Public
文档目录

3.13.1. Transceiver Toolkit命令

下表列出了可用的Transceiver Toolkit脚本命令。

表 42.  Transceiver Toolkit channel_rx命令
命令 参数 功能
transceiver_channel_rx_get_data <service-path> 返回当前检查器数据的列表。结果按比特数,错误数和误码率的顺序排列。
transceiver_channel_rx_get_dcgain <service-path> 得到接收器通道上的DC增益值。
transceiver_channel_rx_get_dfe_tap_value <service-path> <tap position> 在指定的布线(tap)位置获取指定通道的当前布线(tap)值。
transceiver_channel_rx_get_eqctrl <service-path> 得到接收器通道上的均衡控制值。
transceiver_channel_rx_get_pattern <service-path> 按名称返回当前数据检查器码型。
transceiver_channel_rx_has_dfe <service-path> 报告您指定的通道是否具有DFE功能。
transceiver_channel_rx_has_eye_viewer <service-path> (仅适用于 Stratix® V)报告Eye Viewer特性是否可用于您指定的通道。
transceiver_channel_rx_is_checking <service-path> 如果检查程序正在运行,则返回非零值。
transceiver_channel_rx_is_dfe_enabled <service-path> 报告在指定的通道上是否使能了DFE特性。
transceiver_channel_rx_is_locked <service-path> 如果检查器锁定到输入数据上,则返回非零值。
transceiver_channel_rx_reset_counters <service-path> 复位检查器内的比特和错误计数器。
transceiver_channel_rx_reset <service-path> 对指定的通道进行复位。
transceiver_channel_rx_set_dcgain <service-path> <value> 设置接收器通道上的DC增益值。
transceiver_channel_rx_set_dfe_enabled <service-path> <disable(0)/enable(1)> 在指定的通道上使能或禁用DFE功能。
transceiver_channel_rx_set_dfe_tap_value <service-path> <tap position> <tap value> 将指定的布线位置上指定的通道的当前布线值设置为指定的值。
transceiver_channel_rx_set_dfe_adaptive <service-path> <adaptive-mode> 设置指定通道的DFE自适应模式。
描述
0 关闭
1 自适应
2 一次性自适应
transceiver_channel_rx_set_eqctrl <service-path> <value> 设置接收器通道上的均衡控制值。
transceiver_channel_rx_start_checking <service-path> 启动检查器。
transceiver_channel_rx_stop_checking <service-path> 停止检查器。
transceiver_channel_rx_get_eye_viewer_phase_step <service-path> (仅适用于 Stratix® V)得到指定通道的当前相位步长。
transceiver_channel_rx_set_pattern <service-path> <pattern-name> 将预期码型设置为码型名称指定的码型。
transceiver_channel_rx_is_eye_viewer_enabled <service-path> (仅适用于 Stratix® V)报告在指定的通道上是否使能了Eye Viewer功能。
transceiver_channel_rx_set_eye_viewer_enabled <service-path> <disable(0)/enable(1)> (仅适用于 Stratix® V)在指定的通道上使能或禁用Eye Viewer功能。
transceiver_channel_rx_set_eye_viewer_phase_step <service-path> <phase step> (仅适用于 Stratix® V)设置指定通道的相位步长(phase step)。
transceiver_channel_rx_set_word_aligner_enabled <service-path> <disable(0)/enable(1)> 使能或禁用指定通道的字对齐器(word aligner)。
transceiver_channel_rx_is_word_aligner_enabled <service-path> <disable(0)/enable(1)> 报告在指定的通道上是否使能了字对齐器功能。
transceiver_channel_rx_is_locked <service-path> 如果检查器锁定到输入信号上,则返回非零值。
transceiver_channel_rx_is_rx_locked_to_data <service-path> 如果收发器处于lock to data (LTD)模式,则返回1。否则返回0
transceiver_channel_rx_is_rx_locked_to_ref <service-path> 如果收发器处于lock to reference (LTR)模式,则返回1。否则返回0
transceiver_channel_rx_has_eye_viewer_1d <service-path> (仅适用于 Stratix® V)检测<service-path>中的眼视图(eye viewer)是否支持1D-Eye Viewer模式。
transceiver_channel_rx_set_1deye_mode <service-path> <disable(0)/enable(1)> (仅适用于 Stratix® V)使能或禁用1D-Eye Viewer模式。
transceiver_channel_rx_get_1deye_mode <service-path> (仅适用于 Stratix® V)返回1D-Eye Viewer模式是开启还是关闭。
表 43.  Transceiver Toolkit channel_tx命令
命令 参数 功能
transceiver_channel_tx_disable_preamble <service-path> 在生成开始时禁用前同步码模式(preamble mode)。
transceiver_channel_tx_enable_preamble <service-path> 在生成开始时使能前同步码模式(preamble mode)。
transceiver_channel_tx_get_number_of_preamble_beats <service-path> 返回发送前导字的节拍数。
transceiver_channel_tx_get_pattern <service-path> 返回码型。
transceiver_channel_tx_get_preamble_word <service-path> 返回前导字。
transceiver_channel_tx_get_preemph0t <service-path> 得到发送器通道上的预加重第一个预布线值(pre-emphasis first pre-tap value)。
transceiver_channel_tx_get_preemph1t <service-path> 得到发送器通道上的预加重第一个后布线值(pre-emphasis first post-tap value)。
transceiver_channel_tx_get_preemph2t <service-path> 得到发送器通道上的预加重第二个后布线值(pre-emphasis second post-tap value)。
transceiver_channel_tx_get_preemph3t <service-path> 得到发送器通道上的预加重第二个预布线值(pre-emphasis second pre-tap value)。
transceiver_channel_tx_get_vodctrl <service-path> 得到发送器通道上的VOD控制值。
transceiver_channel_tx_inject_error <service-path> 将1-bit错误注入到生成器的输出中。
transceiver_channel_tx_is_generating <service-path> 如果生成器正在运行,则返回非零值。
transceiver_channel_tx_is_preamble_enabled <service-path> 如果前同步码模式(preamble mode)使能,则返回非零值。
transceiver_channel_tx_set_number_of_preamble_beats <service-path> <number-of-preamble-beats> 设置发送前导字的节拍数。
transceiver_channel_tx_set_pattern <service-path> <pattern-name> 将输出码型设置为码型名称指定的码型。
transceiver_channel_tx_set_preamble_word <service-path> <preamble-word> 设置要发送的前导字。
transceiver_channel_tx_set_preemph0t <service-path> <value> 设置发送器通道上的预加重第一个预布线值(pre-emphasis first pre-tap value)。
transceiver_channel_tx_set_preemph1t <service-path> <value> 设置发送器通道上的预加重第一个后布线值(pre-emphasis first post-tap value)。
transceiver_channel_tx_set_preemph2t <service-path> <value> 设置发送器通道上的预加重第二个后布值(pre-emphasis second post-tap value)。
transceiver_channel_tx_set_preemph3t <service-path> <value> 设置发送器通道上的预加重第二个预布线值(pre-emphasis second pre-tap value)。
transceiver_channel_tx_set_vodctrl <service-path> <vodctrl value> 设置发送器通道上的VOD控制值。
transceiver_channel_tx_start_generation <service-path> 启动生成器。
transceiver_channel_tx_stop_generation <service-path> 停止生成器。
表 44.  Transceiver Toolkit debug_link命令
命令 参数 功能
transceiver_debug_link_get_pattern <service-path> 得到链路用于运行测试的码型。
transceiver_debug_link_is_running <service-path> 如果在链路上运行测试,则返回非零值。
transceiver_debug_link_set_pattern <service-path> <data pattern> 设置链路用于运行测试的码型。
transceiver_debug_link_start_running <service-path> 开始使用当前选择的测试码型运行测试。
transceiver_debug_link_stop_running <service-path> 停止运行测试。
表 45.  Transceiver Toolkit reconfig_analog命令
命令 参数 功能
transceiver_reconfig_analog_get_logical_channel_address <service-path> 得到当前设置的收发器逻辑通道地址。
transceiver_reconfig_analog_get_rx_dcgain <service-path> 得到当前逻辑通道地址指定的接收器通道上的DC增益值。
transceiver_reconfig_analog_get_rx_eqctrl <service-path> 由当前逻辑通道地址指定的接收器通道上的均衡控制值。
transceiver_reconfig_analog_get_tx_preemph0t <service-path> 得到当前逻辑通道地址指定的发送器通道上的预加重第一个预布线值(pre-emphasis first pre-tap value)。
transceiver_reconfig_analog_get_tx_preemph1t <service-path> 得到当前逻辑通道地址指定的发送器通道上的预加重第一个后布线值(pre-emphasis first post-tap value)。
transceiver_reconfig_analog_get_tx_preemph2t <service-path> 得到当前逻辑通道地址指定的发送器通道上的预加重第二个后布线值(pre-emphasis second post-tap value)。
transceiver_reconfig_analog_get_tx_vodctrl <service-path>

得到当前逻辑通道地址指定的发送器通道上的VOD控制值。

transceiver_reconfig_analog_set_logical_channel_address <service-path> <logic channel address> 设置收发器逻辑通道地址。
transceiver_reconfig_analog_set_rx_dcgain <service-path> <dc_gain value> 设置当前逻辑通道地址指定的接收器通道上的DC增益值。
transceiver_reconfig_analog_set_rx_eqctrl <service-path> <eqctrl value> 设置当前逻辑通道地址指定的接收器通道上的均衡控制值。
transceiver_reconfig_analog_set_tx_preemph0t <service-path> <value> 设置当前逻辑通道地址指定的发送器通道上的预加重第一个预布线值(pre-emphasis first pre-tap value)。
transceiver_reconfig_analog_set_tx_preemph1t <service-path> < value> 设置当前逻辑通道地址指定的发送器通道上的预加重第一个后布线值(pre-emphasis first post-tap value)。
transceiver_reconfig_analog_set_tx_preemph2t <service-path> <value> 设置当前逻辑通道地址指定的发送器通道上的预加重第二个后布线值(pre-emphasis second post-tap value)。
transceiver_reconfig_analog_set_tx_vodctrl <service-path> <vodctrl value>

设置当前逻辑通道地址指定的发送器通道上的VOD控制值。

表 46.  Transceiver Toolkit Decision Feedback Equalization (DFE)命令
命令 参数 功能
alt_xcvr_reconfig_dfe_get_logical_channel_address <service-path>

得到其他alt_xcvr_reconfig_dfe命令应用的逻辑通道地址。

alt_xcvr_reconfig_dfe_is_enabled <service-path> 报告在指定的之前通道上是否使能了DFE特性。
alt_xcvr_reconfig_dfe_set_enabled <service-path> <disable(0)/enable(1)> 使能或禁用指定的之前通道上的DFE功能。
alt_xcvr_reconfig_dfe_set_logical_channel_address <service-path> <logic channel address>

(仅适用于 Stratix® V)设置其他alt_xcvr_reconfig_eye_viewer命令使用的逻辑通道地址。

alt_xcvr_reconfig_dfe_set_tap_value <service-path> <tap position> <tap value> 设置指定布线位置和值的之前指定通道上的布线值(tap value)。
表 47.  Transceiver Toolkit Eye Monitor命令(仅用于 Stratix® V)
命令 参数 功能
alt_xcvr_custom_is_word_aligner_enabled <service-path> <disable(0)/enable(1)> 报告在指定的之前通道上是否使能了字对齐器功能。
alt_xcvr_custom_set_word_aligner_enabled <service-path> <disable(0)/enable(1)> 使能或禁用指定的之前通道的字对齐器(word aligner)。
alt_xcvr_custom_is_rx_locked_to_data <service-path> 返回接收器CDR是否被锁定到数据。
alt_xcvr_custom_is_rx_locked_to_ref <service-path> 返回接收器CDR PLL是否锁定到参考时钟。
alt_xcvr_custom_is_serial_loopback_enabled <service-path> 返回指定的之前通道的串行环回模式是否使能。
alt_xcvr_custom_set_serial_loopback_enabled <service-path> <disable(0)/enable(1)> 使能或禁用指定的之前通道的串行环回模式。
alt_xcvr_custom_is_tx_pll_locked <service-path> 返回发送器PLL是否锁定到参考时钟。
alt_xcvr_reconfig_eye_viewer_get_logical_channel_address <service-path> 得到其他alt_reconfig_eye_viewer命令使用的逻辑通道地址。
alt_xcvr_reconfig_eye_viewer_get_phase_step <service-path> 得到指定的之前通道的当前相位步长(phase step)。
alt_xcvr_reconfig_eye_viewer_is_enabled <service-path> 报告在指定的之前通道上是否使能了Eye Viewer功能。
alt_xcvr_reconfig_eye_viewer_set_enabled <service-path> <disable(0)/enable(1)>

使能或禁用指定的之前通道上的Eye Viewer功能。

设置成2将使能Eye Viewer以及Serial Bit Comparator。

alt_xcvr_reconfig_eye_viewer_set_logical_channel_address <service-path> <logic channel address> 设置其他alt_reconfig_eye_viewer命令使用的逻辑通道地址。
alt_xcvr_reconfig_eye_viewer_set_phase_step <service-path> <phase step> 得到指定的之前通道的相位步长(phase step)。
alt_xcvr_reconfig_eye_viewer_has_ber_checker <service-path> 检测由<service-path>指向的eye viewer是否支持Serial Bit Comparator。
alt_xcvr_reconfig_eye_viewer_ber_checker_is_enabled <service-path> 检测Serial Bit Comparator是否使能。
alt_xcvr_reconfig_eye_viewer_ber_checker_start <service-path> 启动Serial Bit Comparator计数器。
alt_xcvr_reconfig_eye_viewer_ber_checker_stop <service-path> 停止Serial Bit Comparator计数器。
alt_xcvr_reconfig_eye_viewer_ber_checker_reset_counters <service-path> 复位Serial Bit Comparator计数器。
alt_xcvr_reconfig_eye_viewer_ber_checker_is_running <service-path> 报告Serial Bit Comparator计数器当前是否运行。
alt_xcvr_reconfig_eye_viewer_ber_checker_get_data <service-path> 得到Serial Bit Comparator的当前总比特,错误比特和异常计数。
alt_xcvr_reconfig_eye_viewer_has_1deye <service-path> 检测由<service-path>指向的eye viewer是否支持1D-Eye Viewer模式。
alt_xcvr_reconfig_eye_viewer_set_1deye_mode <service-path> <disable(0)/enable(1) 使能或禁用1D-Eye Viewer模式。
alt_xcvr_reconfig_eye_viewer_get_1deye_mode <service-path> 得到1D-Eye Viewer模式的使能或禁用状态。
表 48.  通道类型命令
命令 参数 功能
get_channel_type <service-path> <logical-channel-num> 报告位于<service-path>的重配置模块的通道<logical-channel-num >的检测类型(GX/GT)。
set_channel_type <service-path> <logical-channel-num> <channel-type> 将位于<service-path>的重配置模块的通道<logical-channel-num>的检测类型覆盖成指定类型(0:GX, 1:GT)。
表 49.  环回命令
命令 参数 功能
loopback_get <service-path>

返回环回通道上的设置值或结果。可用的结果包括:

  • Status—运行或停止。
  • Bytes—通过环回通道发送的字节数。
  • Errors—环回通道报告的错误数。
  • Seconds—自环回通道启动后的秒数。
loopback_set <service-path>

设置控制环回通道的设置值。一些设置仅被特定通道类型支持。可用的设置包括:

  • Timer—测试运行的秒数。
  • Size—测试数据的大小。
  • Mode—测试的模式。
loopback_start <service-path> 开始通过环回通道发送数据。
loopback_stop <service-path> 停止通过环回通道发送数据。