Combined Debug Probe and Counter Conditions - 2022.1 English

Vivado Design Suite User Guide: Programming and Debugging (UG908)

Document ID
UG908
Release Date
2022-04-26
Version
2022.1 English

Debug probe conditions and counter conditions can be combined together to form a single condition using the following rules:

  • All debug probe comparisons must be combined together using the same "||" (OR) or "&&" (AND) operators.
  • The combined debug probe condition can be combined with the counter condition using either the "||" (OR) or "&&" (AND) operators, regardless of the operator used to combine the debug probe comparisons together.

Examples of multiple debug probe and counter condition statements are:

  • Two debug probe comparisons combined with an "OR" function, then combined with counter conditional using "AND" function:
    if (((xyz >= 23'u456) || (abc == 1'b0)) && ($counter0 == 16'u0023)) then
  • Two debug probe comparisons combined with an "AND" function, then combined with counter conditional using "OR" function:
    if (((xyz >= 23'u456) && (abc == 1'b0)) || ($counter0 == 16'u0023)) then
  • Three debug probe comparisons combined with an "OR" function, then combined with counter conditional using "AND" function:
    if (((xyz >= 23'u456) || (abc == 1'b0) || (klm != 23'h0000A5)) && ($counter0 == 
    16'u0023)) then
  • Three debug probe comparisons combined with an "AND" function, then combined with counter conditional using "OR" function:
    if (((xyz >= 23'u456) && (abc == 1'b0) && (klm != 23'h0000A5)) || ($counter0 == 
    16'u0023)) then