Multiple speed expansion card

Abstract: A timing circuit (18) for a multiple speed expansion card (14) generates a variable ready signal indicating when the expansion card can accept data enabling the expansion card to function in computer systems having different bus speeds. A controller circuit (12) of such a computer system exchanges information with the expansion card via a bus (16) at a speed related to the ready signal.

Description: The present invention generally relates to an expansion card which is compatible with a range of different computer systems. Generally in computer systems and especially in personal computer systems, data are transferred between various elements such as a central processing unit (CPU), input/output (I/O) adapters, I/O devices such as bus masters (ie elements which can control the computer system) or bus slaves as well as memory devices such as the system memory. These elements are often interconnected via a system bus which is part of a system architecture. The architecture is designed for the movement of data, address and command information with or between these elements. In personal computer systems, one such architecture has become an industry standard and is here referred to as the Family I bus architecture. The Family I bus architecture has become widely used by personal computers such as the IBM PC and PC/AT. The Family I bus architecture transfers information using eight parallel paths (an 8-bit wide bus) or 16 parallel paths (a 16-bit wide bus). A significant feature of the Family I bus architecture is the requirement of performing all transfers in synchronization with one basis clock signal, hereinafter referred to as a CLK signal. The CLK signal is an 8 MHz signal which is provided to every element which is connected to the bus. Because of the popularity of the Family I bus architecture, it has become advantageous to extend the Family I architecture to a 32-bit wide format. Customer acceptance requires maintaining downward compatibility with the original Family I bus architecture. Presently, maintaining downward compatibility requires that all elements on the architecture's bus operate at the original Family I clock rate:of approximately 8 MHz. EP 0 138 045 describes a peripheral circuit which is synchronised for data transfer with a processor by a logic circuit. The logic circuit delays a control signal on the basis of a ready signal and a busy signal from the peripheral circuit. This delays bus cycle completion until the peripheral circuit is ready for data transfer. In accordance with the present invention, there is now provided a computer system expansion card for connecting to a computer system bus, the expansion card comprising a timing circuit for enabling the card to transfer data to and from the bus, the timing circuit comprising: a device control circuit for generating a ready signal and transmitting it to the bus to indicate that the card may perform a requested data transfer, characterised in that the device control circuit varies the delay after which the ready signal is sent to the bus in response to a data transfer request according to speed selection information received via the bus, thereby allowing the expansion card to operate at a current bus speed. Viewing the present invention from a second aspect there is now provided a timing circuit for enabling a computer system expansion card to data transfer to and from a computer system bus, the timing circuit comprising: a device control circuit for generating a ready signal and transmitting it to the bus to indicate that the card may perform a requested data transfer, the delay after which the ready signal is sent to the bus in response to a data transfer request being varied by the device control circuit according to speed selection information received from the bus thereby allowing the expansion card to operate at a current bus speed; a first speed selection circuit for providing speed information based upon speed selection information received from the bus, the device control circuit being configured to vary said delay of the ready signal according to the speed information; a first counter circuit for providing a generate ready signal based upon the speed information, the device control circuit being configured to vary said delay of the ready signal in response to the generate ready signal and to control information received from the bus, the control information comprising a start transfer control signal indicating at what time to initiate transfer via the bus; and a second speed selection circuit for providing second speed information based upon said speed selection information received from the bus; and a second counter circuit for providing a second generate ready signal based upon said second speed information; the device control circuit being configured to generate said ready signal in response to said generate ready signal or to said second generate ready signal on the basis of selection information received from the bus. In a preferred embodiment of the present invention, the slave timing circuit includes a speed selection circuit which provides speed information based upon speed selection information provided by the controller circuit, the slave timing circuit includes a counter circuit which provides a generate ready signal based upon the speed information, the slave timing circuit includes a device control circuit which receives the generate ready signal and generates the ready signal based upon timing information provided by the controller circuit via the bus, and the timing information includes a start transfer control signal which indicates at what time to initiate a transfer via the bus. Preferred embodiments of the present invention will now be described with reference to the accompanying drawings in which: Fig 1 shows a computer system which includes cards according to the present invention. Fig. 2 shows a diagrammatic-block diagram of a timing circuit of the Fig. 1 multiple speed expansion card. Fig. 3 shows a schematic diagram of the Fig. 2 timing circuit. Fig. 4 is at timing diagram of the Fig. 2 timing circuit. Troughout the specification and drawings, # indicates a logical NOT signal. Referring to Fig. 1 computer system 10 includes controller circuit 12 which includes CPU 12c, bus control circuit 12 bc and system memory 12m, fixed speed expansion card 13, a plurality of multiple speed expansion cards 14 and bus master expansion card 15, which may function as a controller circuit. CPU 12c and system memory 12m of controller circuit 12 communicate with expansion cards 13, 14, 15 via digital, multibit, parallel bus 16 under the control of bus control circuit 12 bc. Expansion cards 13, 14, 15 also communicate with other expansion cards 13, 14, 15 via bus 16 under the control of bus controller 12bc. Each multiple speed expansion card 14 includes timing circuit 18 which receives signals from and provides signals to bus 16. It is understood that computer system 10 is not limited to this configuration but can include any combination of expansion cards 13, 14, 15. Referring to Figs. 2 and 3, timing circuit 18 provides a card ready signal (RDY) which is programmable and variable based upon control information which is received from bus 16. More specifically, timing circuit 18 includes programmable speed control circuit 20 which programmably defines the speed of the RDY signal based upon control information which is received from controller circuit 12 via the data portion of bus 16. The control information includes a memory speed selection value which is stored in memory speed selection circuit 24 and an I/O speed selection value which is stored in I/O speed selection circuit 26. These values are provided to timing circuit 20 when computer system 10 is initialized. The values stored in circuits 24, 26 are accessed when multiple speed expansion card 14 is addressed by either controller circuit 12 or bus master expansion card 15 to perform a data transfer sequence over bus 16. The data transfer sequence is either a memory transfer or a I/O transfer. A memory or I/O control signal (MIO), which is provided to card 14 via bus 16, indicates the type of transfer to be performed. A high MIO signal indicates a memory transfer and a low MIO signal indicates an I/O transfer. Memory ready counter 28 and I/O ready counter 30 control the response time of the RDY signal depending on the speed information which is provided by circuits 24, 26, respectively. The memory and I/O values may be different so that each operation can have a unique programmed response time. Counters 28, 30 continuously provide the generate ready signals (GEN MR, GEN IOR) for each type of transfer; device control circuit 32 selects the appropriate generate ready signal and transmits the RDY signal to bus 16 based upon the state of the MIO control signal which is received from bus 16 and the GEN MR and GEN IOR signals. Generating a RDY signal which is programmable and variable allows expansion card 14 to be used with cnmputer systems having different system clock speeds. Because memory and I/O operations require a preset amount of time to execute, the RDY signal may be used to slow bus transfers by signalling that the requested transfer may not yet be performed, or to enable transfers by signalling that the requested transfer may be performed. Thus, by varying the number of system clock cycles needed to generate the RDY signal as the bus speed changes, the amount of time allowed to perform functions on expansion card 14 remains unchanged. More specifically, increasing the number of system clock cycles needed to generate the RDY signal allows expansion card 14 to operate in a system having a slower bus speed and decreasing the number of system clock cycles needed to generate the RDY signal allows expansion card 14 to operate in a system having a faster bus speed. Additionally, because the RDY signal is used, no new signal paths need be added to bus 16 to provide the multiple speed feature. Referring to Figs. 3 and 4, memory speed selection circuit 24 includes register 40 and I/O speed selection circuit 26 includes register 42. Registers 40 and 42 contain the selection values for memory and I/O speeds, respectively. Both of these registers are loaded under program control via the data portion of bus 16 when a predefined I/O command is active. In the preferred embodiment, registers 40, 42 are each 2-bits wide, and are loaded from data bits 0 and 1 and data bits 2 and 3, respectively, of bus 16 when the I/O command is active. Registers 40, 42 are preset to a default state corresponding to an 8 MHz bus speed during power-on reset so that a valid RDY signal response may be provided in response to the I/O command that is used to load registers 40, 42. This default state is necessary because registers 40, 42 directly control all ready signals which are issued by expansion card 14. Additionally, if expansion card 14 is added to an existing system which does not implement the multiple speed feature, card 14 operates properly. The two bits stored by register 40 are provided to counter 28; the two bits stored by register 42 are provided to counter 30. When expansion card 14 is addressed by controller 12 or bus master expansion card 15 and a data transfer control signal is active on bus 16, memory counter 28 and I/O counter 30 begin counting. More specifically, a transfer sequence which is synchronous to a system clock signal (CLK) (i.e., timing information), and is initiated by activating an address start transfer control signal (ADDST#) which is active low is shown in Fig. 4. The values which are stored in registers 40, 42 may be different for memory and I/O operations. E.g., in the example shown in Fig. 4, the value which is stored in register 42 requires three clock periods for card 14 to respond to each I/O data transfer and the value which is stored in register 40 requires zero clock periods for card 14 to respond to each memory transfer. The first instance in which the ADDST# signal becomes active commences operation of timing circuit 18 for a double I/O transfer (i.e., two back-to-back transfers). The MIO signal is low when ADDST# is active indicating that the transfer is an I/O transfer. The low MIO signal enables AND gate 44 and disables AND gate 46. Accordingly, device ready control circuit 32 passes through the output of I/O counter 30 (GEN IOR). Counter 30 is loaded with a value of three from register 42 while the ADDST# signal is active. Counter 30 is then enabled to count down during time periods when a data transfer control signal (DATT#) is active. An active DATT# signal indicates that bus 16 is in a data transfer mode. Counter 30 decrements on the falling edge of the CLK signal when enabled by the DATT# signal. When the count of counter 30 gets to zero, the GEN IOR signal becomes active and is passed through AND gate 44 and OR gate 48 to latch 50. Latch 50 receives this signal and, on the rise of the CLK signal, issues the RDY signal which has a three clock period delay. NAND gate 52 and AND gate 54 cause counter 30 to restart a count of three, so that the subsequent transfer is properly timed. More specifically, NAND gate 52 becomes active when the RDY signal is active along with the inverse of the DATT# signal and the CLK signal. The output of NAND gate 52 propagates through AND gate 54 when the ADDST# signal is high. The output of AND gate 54 (the LOAD COUNTERS signal) causes counter 36 to reload to the value which is stored in register 42. The same sequence is then repeated a second time and RDY is again issued after a three clock delay. The vertical ticks on the RDY signal of Fig. 4 indicate when controller circuit 12 samples the RDY signal via bus 16. Fig. 4 also shows the timing for the output of gate 54 (the LOAD COUNTERS signal) and how counters 28, 30 are loaded every time the ADDST# signal or the RDY signal is active. In the preferred embodiment, counters 34, 36 are simultaneously loaded because for every operation, one counter is a "don't care". In Fig. 4, the second active ADDST# signal initiates a memory transfer over bus 16. This same MIO signal enables AND gate 46 to monitor the output of counter 34, the GEN MR signal. Simultaneously, AND gate 44 is disabled by the MIO signal and is not used during Memory transfers. Counter 34 is loaded with the count of zero from register 30 while the ADDST# signal is active. Counter 34 is then enabled to count down during time periods when a data transfer control signal (DATT#) is active. An active DATT# signal indicates that bus 16 is in a data transfer mode. Counter 30 decrements on the falling edge of the CLK signal when enabled by the DATT# signal. In the example, zero is loaded into counter 34 and thus a zero delay is provided for memory transfers. I.e., the RDY signal is always active and never causes a delay. The RDY signal always being active continues to load counter 34 with zero every period of the CLK signal. Therefore, counter 34 never counts down; it is continually loaded to zero. Accordingly, the GEN MR signal is always active, and passes through AND gate 46 and OR 48 to keep latch 50 continually set. It will be appreciated that for example because one of counters 34, 36 is always idle, the outputs from registers 40 and 42 may be multiplexed to one common counter. When only on counter is used, the M-IO signal is used to determine which register 40 or 42 loads the counter. It will be appreciated that also, the memory and I/O differentiation could be removed to give all transfers the same ready delay time whether the transfer is a memory transfer or a I/O transfer. It will further be appreciated that, the timing of the expansion card could be differentiated by more than memory and I/O. For example, the first transfer of a sequence of back-to-back transfers could have a first programmed delay and subsequent transfers could have a different programmed delay or card initialization I/O transfers could have a first programmed delay and normal I/O transfers could have a second programmed delay. Furthermore, it will be appreciated that the delay of the RDY signal could be dynamically changed by periodically loading the speed selection registers.

Claims: A computer system expansion card for connecting to a computer system bus (16), the expansion card comprising a timing circuit (18) for enabling the card (14) to transfer data to and from the bus (16), the timing circuit (18) comprising: a device control circuit (32) for generating a ready signal and transmitting it to the bus to indicate that the card (14) may perform a requested data transfer, characterised in that the device control circuit (32) varies the delay after which the ready signal is sent to the bus in response to a data transfer request according to speed selection information received via the bus, thereby allowing the expansion card to operate at a current bus speed. An expansion card (14) as claimed in claim 1 wherein the timing circuit comprises a first speed selection circuit (26) for providing speed information based upon speed selection information received from the bus (16), the device control circuit (32) being configured to vary said delay of the ready signal according to the speed information. An expansion card (14) as claimed in claim 2 wherein the timing circuit comprises a first counter circuit (30) for providing a generate ready signal based upon the speed information, the device control circuit (32) being configured to vary said delay of the ready signal in response to the generate ready signal. An expansion card (14) as claimed in claim 3 wherein the device control circuit (32) generates the ready signal in response to the generate ready signal and timing and control information received from the bus (16). An expansion card (14) as claimed in claim 4 wherein the control information comprises a start transfer control signal indicating at what time to initiate transfer via the bus (16). An expansion card (14) as claimed in claim 4 wherein the timing circuit comprises: a second speed selection circuit (24) for providing second speed information based upon said speed selection information received from the bus (16); and a second counter circuit (28) for providing a second generate ready signal based upon said second speed information; the device control circuit (32) being configured to generate said ready signal in response to the generate ready signal or to the second generate ready signal on the basis of selection information received from the bus (16). An expansion card (14) as claimed in claim 6 wherein the selection information is based upon characteristics of the data information being transferred via the bus. A computer system (10) comprising: a bus (16); an expansion card (14) as claimed in any preceding claim; and a controller circuit (12) including a central processing unit (CPU) (12c), a system memory (12m) connected to the CPU (12c), and a bus control circuit connected to the CPU (12c) and the memory (12m) for controlling transfer of data over the bus (16), the controller circuit (12) generating timing, speed selection, and control information to which the timing circuit (18) is responsive. A timing circuit (18) for enabling a computer system expansion card (14) to data transfer to and from a computer system bus (16), the timing circuit comprising: a device control circuit (32) for generating a ready signal and transmitting it to the bus to indicate that the card (14) may perform a requested data transfer, the delay after which the ready signal is sent to the bus in response to a data transfer request being varied by the device control circuit according to speed selection information received from the bus thereby allowing the expansion card to operate at a current bus speed; a first speed selection circuit (26) for providing speed information based upon speed selection information received from the bus (16), the device control circuit (32) being configured to vary said delay of the ready signal according to the speed information; a first counter circuit (30) for providing a generate ready signal based upon the speed information, the device control circuit (32) being configured to vary said delay of the ready signal in response to the generate ready signal and to control information received from the bus (16), the control information comprising a start transfer control signal indicating at what time to initiate transfer via the bus (16); and a second speed selection circuit (24) for providing second speed information based upon said speed selection information received from the bus (16); and a second counter circuit (28) for providing a second generate ready signal based upon said second speed information; the device control circuit (32) being configured to generate said ready signal in response to said generate ready signal or to said second generate ready signal on the basis of selection information received from the bus.

Inventors: OLNOWICH HOWARD THOMAS, OLNOWICH, HOWARD THOMAS
Applicants: IBM, INTERNATIONAL BUSINESS MACHINES CORPORATION
Application year: 1991
Main classification: G06F13
IPC codes: G06F13