home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s205 / 1.ddi / BACKUP.001 / DOC_LREF_LR5.DOC < prev    next >
Encoding:
Text File  |  1991-02-28  |  4.6 KB  |  114 lines

  1. CHECK
  2. Overview
  3. This is the keyword in a simulation command that verifies that signal
  4. values at the pin are equal to expected values.
  5.  
  6.  
  7.  
  8. Syntax───────────────────────────────────────────────────────────────
  9.            CHECK     Prefix_Pns
  10.  
  11. ─────────────────────────────────────────────────────────────────────
  12.  
  13. Device Support:  All PLD devices.
  14. ·
  15. Syntax
  16. You sue the CHECK command in either the simulation segmemt of a PDS
  17. file or in an auxiliary simulation file for Boolean, state-machine, or
  18. schematic-based designs.
  19.  
  20. Syntax───────────────────────────────────────────────────────────────
  21.            CHECK     Prefix_Pns
  22. Example──────────────────────────────────────────────────────────────
  23.            SIMULATION
  24.            CHECK     O1 /O2 ^O3 %O4 PLAYING
  25. ─────────────────────────────────────────────────────────────────────
  26. ·
  27. Definitions
  28. If the signal being tested is defined with the same polarity as in the
  29. Pin/Node Declaration segment, the signal is checked to verify it is a
  30. logical 1.  If the polarity is reversed, the signal is checked to
  31. verify it is a logical 0.
  32.  
  33. Note: The following examples are valid only if the signals are
  34. defined as active-high in the Pin/Node Declaration segment.
  35.  
  36.  
  37. Prefix          The prefix indicates the logic state of the
  38.                 corresponding pin, node, or state.  Do not leave a
  39.                 space between Prefix and Pns.  There are four
  40.                 prefixes: null, forward slash, caret, and percent.
  41.  
  42.                 ■  The null prefix indicates that an active-high
  43.                    signal is checked to verify it is a logical 1.  In
  44.                    the syntax example, O1 has a null prefix.When used
  45.                    in conjunction with a state name, a null prefix
  46.                    indicates that the specified state should be
  47.                    checked.  In the syntax example, PLAYING has a null
  48.                    prefix.
  49.  
  50.                 ■  The forward slash, /, indicates that an active-high
  51.                    signal is checked to verify it is a logical 0.  In
  52.                    the syntax example, O2 has a forward slash prefix.
  53.  
  54.                 ■  The caret, ^, checks the corresponding signal for a
  55.                    high-impedance state.  High impedance occurs when a
  56.                    three-state buffer on an I/O pin is disabled.  In
  57.                    this case, the letter Z appears in the simulation
  58.                    files to indicate the high-impedance state.  In the
  59.                    syntax example, O3 has a caret prefix.
  60.  
  61.                 ■  The percent, %, checks the corresponding signal for
  62.                    a don't care state.  A don't care condition occurs
  63.                    when combinatorial logic is not initialized.  In
  64.                    this case, the letter X appears in the simulation
  65.                    files to indicate the don't care state.  In the
  66.                    syntax example, O4 has a percent prefix.
  67.  
  68. Pns             Define the names of the pins, nodes, or states to be
  69.                 verified.
  70.  
  71.                 ■  Each signal name can be up to 14 characters in
  72.                    length.
  73.  
  74.                 ■  Include up to 76 characters per line and use as
  75.                    many lines as you need.
  76.  
  77.                    The screen displays up to 76 characters per line;
  78.                    however, all information is processed properly even
  79.                    if it extends beyond the 76th character.
  80.  
  81.                 ■  Include a space between the keyword and the first
  82.                    pin, node, or state in the list.  You can include
  83.                    multiple pin and node names.  You can use strings
  84.                    or vector notation to define the signal list.
  85.  
  86.                 ■  Separate multiple prefixed pin and node names with
  87.                    a space.
  88.  
  89.                        CHECKQ A[0..6] = #b011001100
  90. ·
  91. Use
  92. The CHECK command verifies pin and node signal values.  In contrast,
  93. the CHECKQ command verifies values at the Q output of a register.
  94.  
  95. If the signal being tested is defined with the same polarity as in the
  96. pin/node declaration segment, the signal is checked to verify it is a
  97. logical 1.  If the polarity is reversed, the signal is checked to
  98. verify it is a logical 0.
  99.  
  100. A conflict occurs when the value at the pin does not match the
  101. expected value.  Each conflict is identified with a question mark, ?,
  102. in the simulation output files; a warning is issued and the expected
  103. value is reported in the execution-log file.
  104.  
  105. The CHECK command verifies logical operations only and does not add
  106. test vectors in the JEDEC file.
  107. ·
  108. Related Topics
  109. CHECKQ
  110. SIMULATION
  111. TEST
  112. ·
  113.