System for implementing high speed peripheral bus

Abstract: A system is disclosed for facilitating operation of a peripheral bus, such as a PCI bus, at a higher clock frequency. The preferred embodiment of the present invention includes an enable line (66MHzENABLE) connected to each of the devices resident on the PCI bus. The enable line is passively pulled high through a pull-up resistor if all devices resident on the PCI bus can support high frequency operation (such as, for example, 66MHz). If any device cannot support high frequency operation, the device internally connects the enable line to ground in accordance with present industry specifications. Thus, the enable line will be asserted high only if all of the PCI devices support high frequency operation, but will be deasserted low if any device cannot support high frequency operation. The invention also includes a dedicated status bit to permit the system to warn the operator of discrepancies between device and bus capabilities. Furthermore, the system enables certain configuration registers, such as MIN_GNT and MAX_LAT to be automatically reconfigured if system parameters change.

Description: The present invention relates generally to a system for supporting a high speed peripheral bus such as a system which checks the compatibility of peripheral components with respect to the operating frequency of the peripheral bus clock. Preferably the system determines whether operating parameters of peripheral bus components must be changed based upon a change,in the peripheral bus clock frequency. Figure 1 is a block diagram that illustrates a computer system 10 including a microprocessor (CPU) 12, a system memory 14, a bridge/memory controller 16, and a bus interface unit 18. A CPU local bus 20 couples the microprocessor 12 to bridge/memory controller 16 and bus interface and arbiter unit 18. A system memory bus 22 couples system memory 14 to bridge/memory controller 16. A first peripheral device 26 and a second peripheral device 28 are coupled to the bus interface unit 18 through a peripheral bus 30. The peripheral bus 30 may comprise a high performance PCI bus capable of supporting a plurality of PCI master and slave devices. Thus, the peripheral device 26 may comprise a PCI Master controller that is capable of asserting ownership of the PCI bus during PCI Master cycles. The PCI master device 26 may comprise a local area network (LAN) device that connects other computer systems to peripheral bus 30, or could be embodied by an expansion bus interface that connects peripheral bus 30 to other peripheral buses. A second peripheral device 28 also is shown coupled to the peripheral bus 30. Peripheral device 28 may comprise a PCI slave device, such as a disk controller device or an audio controller device, for example. The microprocessor 12 shown in Figure 1 may comprise a model 80486 microprocessor, and the CPU local bus 20 could comprise an 80486-style local bus. Other style microprocessors and/or local bus architectures may be used without departing from the principles of the present invention. Details regarding the various bus cycles and protocols of the 80486 CPU local bus 20 are not discussed in detail herein, as they are well known by those in the art, and are available in numerous publications. CPU 12, memory controller 16 and PCI bus interface unit 18 have traditionally been fabricated on separate integrated circuit chips. A recent trend in computer systems has developed, however, in which the CPU core is combined with a variety of peripheral devices on a single integrated processor chip. An exemplary integrated processor chip includes a bus bridge that provides a high performance interface between an internal CPU local bus and an external PCI bus. By providing a high performance interface to an external PCI bus, relatively high performance characteristics can be achieved with respect to external data transfers. The bus interface unit 18 provides a standard interface between the CPU local bus 14 and the peripheral or PCI bus 30. As such, the bus interface unit 18 orchestrates the transfer of data, address, and control signals between the two buses. PCI bus 30 typically comprises a high performance peripheral bus that includes multiplexed data/address lines, and which supports burst-mode data transfers. Additional features regarding the PCI bus are described in the publication "PCI Local Bus Specification," Revision 2.0, April 30, 1993, PCI Special Interest Group, Hillsboro, Oregon. As set forth in Revision 2.0 of the "PCI Local Bus Specification," the PCI bus comprises a synchronous bus with a clock speed up to 33 MHz. The PCI bus clock signal typically is generated by circuitry in the bus interface unit 18 and is transmitted via a CLK line to each of the devices resident on the PCI bus. As one skilled in the art will understand, the CLK line may comprise one of the signal lines in the PCI bus 30. Recently, we have begun to suggest modifications to the PCI Bus Specifications to permit operation of the bus at clock speeds up to 66 MHz. One problem with implementing such a high speed PCI bus is that some PCI peripheral devices, particularly those devices developed in the past, simply are not capable of operating at 66 MHz. Because of this limitation, such peripheral devices may be incapable of operation in the 66 MHz environment, and in addition, may cause the entire bus to malfunction if operated at 66 MHz. It would be desirable, therefore, to develop a system which can determine if slower (33 MHz) operating peripheral devices are resident on the PCI bus, and which can modify operation of the bus to accommodate these slower devices. EP-A-0 453 199 discloses a computer system comprising a bus control circuit having a monitor clock control circuit which receives a master speed indication signal from a master circuit and a slave speed indication signal from a slave circuit. If both speed indication signals indicate that both circuits can operate of high frequency the bus control circuit generates a high frequency bus clock. The speed indication signals are sampled before each bus transaction and define the speed of the transfer. Another problem arises when a slower peripheral device is added after the high speed bus has been installed, and the operation and configuration registers of the high speed peripheral devices have been set to operate at the high clock frequency. In such a situation where a slower device is added to the bus, the bus clock speed must be reduced, and certain of the configuration registers must be reset accordingly. For example, the MAX_LAT and MIN_GNT are internal registers required in each PCI peripheral device which provide certain timing information regarding the peripheral device. MIN_GNT, for example, specifies the length of time (in 0.25 microsecond periods) that the device needs to complete its transaction. See "PCI Local Bus Specification," Revision 2.0, April 30, 1993, PCI Special Interest Group, Hillsboro, Oregon. MAX_LAT specifies how often the device needs to gain access to the PCI bus (again in 0.25 microsecond periods). See id. The number of periods set in these registers will vary depending upon the operating speed of the bus. Similarly, if a slower speed peripheral device is removed from the bus, thus enabling the bus to operate at a higher clock frequency, certain registers of the high speed peripheral devices will need to be reprogrammed to operate properly at the higher speeds. It would be advantageous if a system were developed which could determine the clock frequency, and which could change the clock frequency to the highest possible setting based upon the resident peripheral devices. It would be further advantageous if the system could automatically reset the values in the necessary registers of the peripheral devices in response to a change in clock frequency, to make the peripheral devices immediately operable, without operator input. Despite these and other readily apparent advantages of such a system, to date no such system has been developed. According to an aspect of the present invention, there is provided a computer system as specified in claim 1. We will describe a computer system that automatically determines whether each device resident on the PCI bus is capable of high clock frequency (such as, for example, 66 MHz) operation. If any PCI device cannot operate at the high clock frequency, the system automatically drives the PCI bus clock signal at a standard, lower clock frequency (such as, for example, 33 MHz) rate. Conversely, if every PCI device is operable at the higher clock frequency, the system operates the PCI bus clock signal at that higher frequency. In addition, in response to a change in clock frequency, the system automatically resets the values in certain registers of the PCI devices to facilitate operation at the new clock frequency. We will describe a bus interface unit which orchestrates the transfer of address and data signals between the PCI bus and a CPU local bus. The bus interface unit preferably includes a clock driver, which generates the PCI bus clock signal, at a frequency dependent on the status of a high frequency enable (66MHzENABLE in the preferred embodiment) line. The 66MHzENABLE line is passively pulled high through a pull-up resistor. All of the devices on the PCI bus connect to the 66MHzENABLE line (which forms part of the PCI bus), and any of these devices can drive the line low to indicate that this particular device must be operated at a lower frequency. If the 66MHzENABLE line is driven low by any PCI device, the clock driver drives the PCI bus clock signal at a standard clock frequency, such as 33 MHz. Conversely, if none of the PCI devices drive the 66MHzENABLE line low, then the clock driver drives the PCI bus clock signal at the higher frequency, such as 66 MHz. All 33 MHz devices will drive the 66MHzENABLE line low because the output pin on these devices that connects to the 66MHzENABLE line connects internally to ground. BRIEF DESCRIPTION OF THE DRAWINGS Other objects and advantages of the invention will become apparent upon reading the following detailed description and upon reference to the accompanying drawings in which: Figure 1 depicts a prior art computer system implementing a peripheral bus system; Figure 2 shows a computer system implementing a PCI bus system constructed in accordance with a preferred embodiment of the present invention; Figure 3 is a flow chart depicting operation of the PCI bus system of Figure 2. While the invention is susceptible to various modifications and alternative forms, specific embodiments thereof are shown by way of example in the drawings and will herein be described in detail. It should be understood, however, that the drawings and detailed description thereto are not intended to limit the invention to the particular form disclosed, but on the contrary, the intention is to cover all modifications, equivalents and alternatives falling within the scope of the present invention as defined by the appended claims. Referring now to Figure 2, a computer system constructed in accordance with the preferred embodiment generally comprises a central processing unit 45 connected to a CPU local bus 40, an on chip peripheral device 65, a PCI bus 100, a bus interface unit 50 capable of interfacing data, address, and control signals between the local bus 40 and the PCI bus 100, and one or more peripheral devices 70, 80 connected to the PCI bus 100. In the preferred embodiment, the CPU 45, on chip peripheral 65 and bus interface unit 50 all are provided as part of an integrated processor that is fabricated on a single integrated circuit and housed within a common integrated circuit package. In the preferred embodiment, the CPU core 45 implements a model 80486 microprocessor instruction set and CPU local bus 40 comprises a model 80486-style local bus. Thus, in the preferred embodiment, the CPU local bus 40 includes a 32-bit set of data lines D[31:0], a 32-bit set of address lines A[31:0], and a set of control lines (not shown specifically). It should be understood, however, that the CPU core 45 could be configured to implement other microprocessor-type instruction sets without departing from the principles of the present invention. The on-chip peripherals block 65 preferably represents a variety of peripheral devices that may be implemented in the integrated processor. For example, components such as a direct memory access controller ("DMA") or a memory controller unit ("MCU") may be included as an integral part of the integrated processor package. As one skilled in the art will understand, various peripherals may be provided as part of the integrated processor. As will be understood by one skilled in the art, the bus interface unit ("BIU") 50 provides a standard interface between the CPU local bus 40 and the PCI bus 100. As such, the BIU 50 orchestrates the transfer of data, address, and control signals between the CPU local bus 40 and PCI bus 100. As noted, the CPU local bus 40 preferably comprises an 80486 style local bus, which as is well known to those skilled in the art, includes separate address and data lines, while the PCI bus 100 includes a plurality of multiplexed address/data lines AD(31:0). Thus, as one skilled in the art will understand, the BIU 50 preferably functions to connect the 32-bit address lines A[31:0] of the local bus 40 to the multiplexed address/data lines AD(31:0) on the PCI bus 100, through an appropriate multiplexing unit (not shown). Similarly, the bus interface unit 50 directly connects the 32-bit data lines D[31:0] of the local bus 65 to the multiplexed address/data lines AD[31:0] of the PCI bus 100. The bus interface unit 50 preferably includes conventional circuitry that controls well known interfacing functions such as orchestrating and transferring control, data, and address signals between microprocessor 45 and devices coupled to PCI bus 100. Referring still to the preferred embodiment of the invention shown in Figure 2, the bus interface unit 50 preferably includes a clock driver circuit 55 and a status register 57. The clock driver 55 generates a PCI bus clock signal which is provided on a CLK line to each of the devices resident on the PCI bus 100 to drive the PCI peripheral devices 70, 80. In addition, clock driver 55 preferably connects to a high frequency enable line (referred to in the preferred embodiment as 66MHzENABLE). The 66MHzENABLE line connects to each of the PCI devices on a designated PCI connector pin. Preferably, the PCI connector pin comprises pin 49, side B, which on 33 MHz devices is bused as a ground. In high frequency devices (which in the preferred embodiment is any device operable above 33 MHz, and is referred to as 66 MHz devices), the 66MHzENABLE line is left floating (i.e., tri-stated). Thus, if all devices are high-frequency devices, the 66MHzENABLE line is passively pulled high through a pull-up resistor 62. If any devices are low speed devices (such as devices operating at 33 MHz or less, referred to herein as 33 MHz devices), the 66MHzENABLE line is pulled low. As a result of this configuration, the 66MHzENABLE line will be asserted if all of the PCI devices comprise 66 MHz compatible devices, but will be deasserted if any of the PCI devices comprises a 33 MHz device. As one skilled in the art will realize, the 66MHzENABLE line and the CLK line may be provided as part of the PCI bus 100. These lines have been shown separate from the PCI bus 100 in Figure 2 only for the sake of clarity. The status register 57 preferably comprises a 16-bit register, although other size registers can be used without departing from the principles of the present invention. In the preferred embodiment, the status register 57 includes a dedicated bit (which preferably is bit 6) that indicates if that particular device is capable of supporting 66 MHz operation. Referring still to Figure 2, two PCI peripheral devices 70, 80 are shown. It should be understood, however, that more or less peripheral devices may be used, as desired and as permitted by the system specifications. Each of the peripheral devices 70, 80 preferably includes a status register 57, constructed and configured similarly to the status register of the BIU 50. In addition, each of the peripheral devices 70, 80 connects to the PCI bus 100 and to the CLK and 66MHzENABLE lines, respectively. The operation of the system will now be described with reference to Figures 2 and 3. Referring initially to Figure 2, each of the devices residing on the PCI bus 100, including the bus interface unit 50 and the PCI peripheral devices 70, 80, connect to the 66MHzENABLE line. If a device cannot support 66 MHz operation, the 66MHzENABLE line is connected internally to a ground. Devices which can support 66MHz operation do not drive the 66MHzENABLE line. Thus, the 66MHzENABLE line will be passively pulled high through pull-up resistor 62 if all devices support 66MHz operation. The clock driver 55 connects to the 66MHzENABLE line to check the status of that line. If the 66MHzENABLE line is asserted (i.e., pulled high), then the clock driver 55 drives the PCI bus clock signal at a frequency up to 66 MHz. Conversely, if the 66MHzENABLE line is deasserted (i.e., drive low), the clock driver 55 drives the PCI bus clock signal at a frequency up to 33 MHz. Thus, in the preferred embodiment, the speed at which the PCI bus clock signal is driven by clock driver 55 is dependent on the status of the 66MHzENABLE line. By way of example a technique for detecting incompatibility between PCI peripheral devices and the PCI bus, and for notifying the operator regarding these conditions so that the operator can make modifications to the system to maximize system capabilities is now described. Referring now to Figure 3, the system (for example, the CPU 45 or BIU 50) in step 102 reads the dedicated status bit from each of the devices resident on the PCI bus. The dedicated status bit preferably comprises bit 6 of the status register 57 from each PCI device. Next, in step 104, the system determines if the PCI bus can support 66 MHz operation. If so, then the system determines in step 106 whether the dedicated status bit has been set for all of the PCI devices, indicating that all of the devices resident on the PCI bus can support 66 MHz operation. If all of the devices can operate at 66 MHz, and if the PCI bus can operate at 66 MHz, then the PCI bus is operated at frequencies up to 66 MHz (step 108), which according to the preferred embodiment is implemented automatically based upon the hardware configuration of Figure 2. If the PCI bus is operable at 66 MHz, but the system determines in step 106 that at least one of the dedicated status bits indicate that a device on the PCI bus cannot support 66 MHz operation, then in step 110 the operator is notified that a 33 MHz device is located on the 66 MHz PCI bus. Identification of the particular device may also be provided. This notification permits the operator to remove the 33 MHz device from the PCI bus to minimize latency and increase bandwidth of the bus. As shown in step 116, the PCI bus is operated at 33 MHz, which in the preferred embodiment, will be implemented automatically based upon the hardware configuration of Figure 2. If it is determined in step 104 that the PCI bus is incapable of 66 MHz operation, then in step 112 the system determines if any of the dedicated status bits have been set to indicate a 66 MHz device. If none of the dedicated status bits have been set, then the PCI bus is operated at 33 MHz (step 116). If conversely, one or more of the dedicated status bits are set, then in step 114 the operator is notified that a 66 MHz device is resident on the 33 MHz bus to permit the operator to use a less expensive device if desired, and the bus is operated at 33 MHz (step 116). The preferred embodiment characterizes low clock signal frequency as 33 MHz, and high clock signal frequency as 66 MHz. It should be understood that the principles of the present invention are applicable to any peripheral bus system which is operable generally at a low and a high frequency clock, regardless of the particular frequency rates. In addition, it is noted that 66MHz devices may be completely disconnected from the 66MHzENABLE line. Similarly, while 33MHz devices are configured to drive the 66MHzENABLE line low in the preferred embodiment, the system could be alternatively configured such that 33MHz devices drive an enable line (which is normally passively pulled low) high.

Claims: A computer system, comprising: a CPU (45) connected to a local bus(40); a peripheral bus (100); a bus interface unit (50) coupled to said local bus and to said peripheral bus for orchestrating the transfer of data and address signals between said local bus and said peripheral bus; a plurality of peripheral bus devices (70, 80) coupled to said peripheral bus; a clock driver (55) connected to said peripheral bus for driving a peripheral bus clock signal with a particular frequency, which is provided on a clock signal line to said bus peripheral bus devices; characterized by an enable line connected to said peripheral bus devices and to said bus interface unit; wherein said enable line is passively pulled to a first of two states; wherein said enable line is monitored by said clock driver, and said clock driver drives said peripheral bus clock signal at a relatively low frequency or a relatively high frequency dependent on a state of said enable line; and wherein if one of said peripheral bus devices is incapable of operating at said high frequency, that peripheral bus device is configured to drive said enable line to the second state. A system as in claim 1, wherein said clock driver forms part of said bus interface unit. A system as in claim 1, wherein a first said peripheral bus device includes internal circuitry (62) to connect said enable line to a supply voltage (Vcc). A system as in claim 3, wherein the internal circuitry indicates a capability of the first peripheral bus device to operate at a said high peripheral bus clock signal frequency. A system as in claim 4, wherein said high peripheral bus clock signal frequency is a frequency greater than 33 MHz. A system as in claim 5, wherein said high peripheral bus clock signal frequency is a frequency of approximately 66 MHz. A system as in claim 6, wherein said peripheral bus comprises a PCI bus. A system as in claim 7, wherein said clock driver drives said bus clock signal at a frequency up to 66 MHz. A system as in claim 3, wherein a second peripheral bus device includes internal circuitry to connect said enable line to a ground. A system as in claim 9, wherein the internal circuitry of said second peripheral bus device indicates an inability of the second peripheral bus device to operate at a said high peripheral bus clock signal frequency. A system as in claim 9, wherein said second peripheral bus device is operable at a relatively low clock signal frequency. A system as in claim 11, wherein said low clock signal frequency is equal to or less than 33 MHz. A system as in claim 11, wherein said clock driver drives said peripheral bus clock signal at the relatively low clock signal frequency.

Inventors: LEE SHERMAN, WISOR MICHAEL T, LEE, SHERMAN, WISOR, MICHAEL T.
Applicants: ADVANCED MICRO DEVICES INC, ADVANCED MICRO DEVICES INC.
Application year: 1995
Main classification: G06F13
IPC codes: G06F13, G06F1