Background of the Invention
1. Technical Field
The present invention relates generally to peripheral component interface device and in particular to devices providing an interface between a peripheral component interface local bus and backend channels. Still more particularly, the present invention relates to testing devices which provide an interface between a peripheral component interface local bus and backend input/output channels.
2. Description of the Related Art
Multifunction peripheral component interface (PCI) input/output (I/O) devices transfer data between a PCI local bus and backend I/O channels. Multifunction PCI devices may connect the PCI local bus to a number of backend channels, which may conform to any one of a variety of I/O standards such as small computer serial interface (SCSI), Ethernet, EIDE, etc. Each backend I/O channel may conform to the same standard, or different backend channels may employ different protocols.
Normal operation of multifunction PCI devices allows data to be transferred between the PCI interface and one channel at a time. However, achieving fault grade goals on multifunction PCI devices which have identical multiple backend I/O channels requires large numbers of test vectors. Even though each backend I/O channel will be tested with the same data pattern, there is considerable overhead required to switch between each backend function. Since only one backend function can have access to the PCI bus at any given time, arbitration logic built into the PCI interface determines which backend has this control. This arbitration sequence adds additional clock cycle delays each time a backend function requests control of the PCI bus to complete a bus transaction. The test time required to test multifunction PCI devices is directly proportional to the number of test vectors which must be run, and product cost is increased with increased testing cost.
It would be desirable, therefore, to reduce the number of test vectors required for testing a multifunction PCI device. It would further be advantageous if the reduction in test vectors could be achieved with a minimal addition of test circuitry to the device.
Summary of the Invention
In a multifunction PCI device containing identical backend functions or other large, redundant functional blocks, a single backend function is selected as a primary function while in test mode. All backend I/O channels are then simultaneously tested in parallel, with the same data and control signals from a PCI local bus being driven to all backend channels during the same test clock cycle. A single backend channel is designated as the primary for providing requisite handshaking signals during output to the backend I/O channels. Input data from each backend channel is received in parallel and compared, with miscompares being flagged to allow testing of the input data path from the respective backend I/O channel. Only signals from the primary backend I/O channel are designated for transmission to the PCI local bus. Signals from the remaining backend channels are received in parallel with and compared to the signals from the primary channel, and miscompare flags are generated for any discrepancies identified. The resulting parallel testing of all backend I/O channels within the multifunction device reduces the number of test vectors needed to achieve fault grade goals.
Brief Description of the Drawings
The novel features believed characteristic of the invention are set forth in the appended claims. The invention itself, however, as well as a preferred mode of use, further objectives and advantages thereof, will best be understood by reference to the following detailed description of an illustrative embodiment when read in conjunction with the accompanying drawings, wherein:
FIG. 1 depicts a data processing system in which a preferred embodiment of the present invention may be implemented;
FIG. 2 is a functional block diagram of a multifunction PCI device in accordance with a preferred embodiment of the present invention; and
FIGS. 3A-3B depict diagrams of the data flow within a multiplexer/comparator for a multifunction PCI device in accordance with a preferred embodiment.
Detailed Description
With reference now to the figures, and in particular with reference to FIG. 1, a data processing system in which a preferred embodiment of the present invention may be implemented is depicted. Data processing system 100 includes a processor 102 connected to a level two (L2) cache 104, which is connected in turn to a PCI local bus 106. Memory 108 in the depicted example is also connected to PCI local bus 106, as is memory-mapped graphics adapter 110, which is further connected to display device 112.
Also connected to PCI local bus 106 is a bridge or multifunction PCI device 114 providing a connection between PCI local bus 106 and backend I/O channels (also referred to herein as "function I/O buses") 116-120. Backend I/O channel 1 116, backend I/O channel 2 118, and backend I/O channel n 120 in the depicted example may be SCSI, Ethernet, or EIDE buses or the like. Backend functions 116-120 may provide connections for a keyboard and mouse adapter (not shown), a local area network (LAN) adapter (not shown), or other peripheral components for data processing system 100. The embodiment depicted is presented merely for the purposes of explaining the invention and is not intended to imply architectural limitations. Those skilled in the art will recognize that many variants of the embodiment depicted may be utilized in connection with the present invention.
Referring to FIG. 2, a functional block diagram of a multifunction PCI device in accordance with a preferred embodiment of the present invention is illustrated. Only so much of the logic within a multifunction PCI device which is necessary to practice the present invention is depicted, and those skilled in the art will recognize that additional logic may be incorporated into a multifunction PCI device in conjunction with the logic shown.
Multifunction PCI device 114 may be formed within a single integrated circuit or "chip" in accordance with the known art and includes PCI interface 202 connected by data/control signals 204 from PCI local bus 106. PCI interface 202 is connected by data/control signals 206 to PCI test data multiplexer/comparator 208, which is connected via data/control signals 210 to backend function 1 212, via data/control signals 214 to backend function 2 216, and via data/control signals 218 to backend function n 220. Backend function 1 212 is connected by data/control signals 222 to backend I/O interface 1 224, which is connected to function I/O bus 1 116. Similarly, backend function 2 216 is connected by data/control signals 226 to backend I/O interface 2 228, which is also connected to function I/O bus 2 118, while backend function n 220 is connected by data/control signals 230 to backend I/O interface n 232, connected in turn to function I/O bus n 120. PCI interface 202, backend functions 212, 216, and 220, and backend I/O interfaces 224, 228, and 232 may all be configured in accordance with the known art to operate in the same or similar manner as equivalent functional portions of existing multifunction PCI devices.
Multiplexer/comparator 208 also receives signals from test control block 234, including backend select signal 236, test mode signal 238, and send/receive signal 240. Multiplexer/comparator 208 provides a miscompare detected signals 242 to miscompare flag decision block 244, which may transmit signals corresponding to the miscompare flags via signal line 246 to a register or an external pin for multifunction PCI device 114.
Test control block 234 contains controllable registers and logic asserting the multifunction test mode and determining data flow direction between PCI interface 202 and backend functions 212, 216, and 220. The register bits and logic within test control block 234 also allows backend function data and control signals to be routed to the appropriate backend function.
When multifunction PCI device 114 is in test mode, multiplexer/comparator 208 performs at least two functions: (1) multiplexer/comparator 208 routes data and control signals to the appropriate backend function(s) within backend functions 212, 216, and 220 based on the direction of data flow through multifunction PCI device 114 (from PCI interface 202 to backend functions 212, 216 and 220 or vice versa); and (2) multiplexer/comparator 208 performs a data comparison between backend functions 212, 216, and 220 when data is received from functions I/O buses 116-120 for transfer to PCI local bus 106.
In the exemplary embodiment, function I/O buses 116-120 are similar buses (i.e., all conforming to the same standard and/or protocol, such as SCSI). Therefore backend functions 212, 216, and 220 may be duplicative, comprising large blocks of redundant functionality. One of the backend functions--for example, backend function 1 212--is selected as the "primary" function when multifunction PCI device 114 is in a test mode. Regardless of data direction during testing (either from PCI interface 202 to backend function 212, 216, and 220 or from backend functions 212, 216, and 220 to PCI interface 202), primary backend function 1 212 control and data signals are received from and transmitted to PCI interface 202. The remaining backend functions, backend function 2 216 through backend function n 220, receive the same signals from PCI interface 202 as does backend function 1 212, and receive these same signals during the same test clock cycles so that data from all backend functions is synchronized for the same clock cycle. During test vector generation, only control signals from backend function 1 212 are designated to respond to transmissions from PCI interface 202. Signals from all remaining functions, backend function 2 216 through backend function n 220, are received in parallel with the signals from backend function 1 212, but are merely compared to the signals from backend function 1 212. If differences are detected between the signals received from backend function 1 212 and any signals received from backend function 2 216 through backend function n 220, miscompare detected signal 242 is generated by multiplexer/comparator 208.
Miscompare detected signal 242 is routed to miscompare flag decision block 244 to be either registered or driven out to an external pin on the device. Miscompare detected signal 242 may be a single signal indicating a data error, or may be multiple signals identifying different possible data errors relating to each backend function other than primary function 212 (i.e., backend function 2 216 through backend function n 220). Miscompare flag decision block 244 may be minimal logic determining how the miscompare flag or flags are handled, whether registered or driven to an external pin.
With reference now to FIGS. 3A and 3B, diagrams of the data flow within a multiplexer/comparator for a multifunction PCI device in accordance with a preferred embodiment of the present invention are depicted. FIG. 3A depicts data flow within multiplexer/comparator 208 for data transfers from PCI interface 202 to backend functions 212, 216, and 220 depicted in FIG. 2. Identical data 302 and control signals 304 are presented to each backend function 212, 216, and 220 when the direction of data flows from the PCI bus 106 to the function I/O buses 116-120 (also depicted in FIG. 2) during testing. Backend function 1 212 acts as the only interface to PCI interface 202, controlling all of the backend handshaking. The remaining backend functions, backend function 2 216 through backend function n 220, merely act as a receiver of data and control signals. No data comparisons need be made in this mode of operation since each backend function receives the identical signals.
FIG. 3B depicts data flow within multiplexer/comparator 208 as data is presented at each function I/O bus 116-120 for transfer to PCI bus 106 depicted in FIG. 2. Backend function 1 212 continues to act as the primary interface to PCI interface 202 in this mode of operation, with the data 306 from backend function 1 212 being transferred through to PCI interface 202. Data 308 and 310 for all remaining backend functions, backend function 2 216 through backend function n 220, is tapped by comparator 312 within multiplexer/comparator 208 and compared to the data 306 from backend function 1 212. Any miscompare to the primary data is flagged as an error and a flag or flags are accordingly generated.
The test time required to test any design with high gate counts is proportional to the number of test vectors which must be run. Multifunction PCI I/O devices with large redundant functional blocks, such as those including identical backend functions, may reduce the number of test vectors with minimal additional test circuitry by testing the redundant functional blocks in parallel. Incoming data from the PCI local bus is sent to each backend function in parallel, with only one (primary) backend channel providing the requisite handshaking. The reverse direction for the data path is tested by permitting each I/O channel to read the data from their respective buses for comparison. Internal comparators flag any miscompared data before data from the primary backend function is sent out over the PCI local bus. The data miscompare flag(s) may be either registered or sent out on an external test pin.
The parallel testing of multiple identical backend functions in the present invention reduces the total number of test patterns (or "test vectors") required to test all backend functions in a multifunction PCI device, thus reducing total testing time. The reduction in testing time leads to a corresponding reduction of total unit cost per device. This testing scheme is easy to implement and has a production value which increases in proportion to the size of internal data buffers utilized within a multifunction PCI device and the number of backend channels supported by the device.
The present invention also provides a number of additional benefits to the overall testing of a multifunction PCI device. First, data from multiple backends may be tested simultaneously before reaching the PCI bus. Since only one (primary) backend function may be a PCI bus master during testing, the parallel testing technique of the present invention reduces the arbitration overhead required to select between individual backends. Second, by placing each function I/O bus in the same data direction state (configuring all of the buses as either an input or an output) in the same test clock cycle, the number of possible combinations of I/O are reduced and waveform control memory (WCM) is also significantly reduced. A common problem with multiple data buses of large sizes (16-bit, 32-bit, 64-bit, etc.) is the generation of WCM. WCM defines the I/O direction and waveform type for each individual pin in a test vector during each test cycle. The I/O direction of a bidirectional data pin can be defined as one of three states (input, output, or tristate). The waveform type of that pin defines the actual physical characteristic or behavior of the type of signal the tester drives onto the pin when configured as an input.
The description of the preferred embodiment of the present invention has been presented for purposes of illustration and description, but is not intended to be exhaustive or limit the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.