1. Technical Field
This invention generally relates to computer systems, and more specifically relates to a computer system bus bridge.
2. Background Art
Computer processors and computer systems are constantly evolving and improving. Ever faster computer processor systems are needed in the computer gaming industry to provide continued improvement in gaming performance. The PowerPC microprocessor is a family of processors available from International Business Machines Corporation (IBM). A newer version and faster version of the PowerPC is known as the Giga-Processor Ultralite (GPUL).
The computer gaming industry has a need for a high speed processor with a high speed interface that can readily interface with a graphics processor. Without a higher speed interface connection the computer gaming industry will not be able to continue to offer continuing quality improvements to the computer gaming experience.
The present invention provides a bus bridge between a high speed computer processor bus and a high speed output bus. The preferred embodiment is a bus bridge between a GPUL bus for a GPUL PowerPC microprocessor from International Business Machines Corporation (IBM) and a high speed output bus (MPI). Another preferred embodiment is a bus bridge in a bus transceiver on a multi-chip module.
The foregoing and other features and advantages of the invention will be apparent from the following more particular description of preferred embodiments of the invention, as illustrated in the accompanying drawings.
The preferred embodiments of the present invention will hereinafter be described in conjunction with the appended drawings, where like designations denote like elements, and:
Bus Overview
The present invention provides a bus bridge between two high speed computer buses. The preferred embodiment is a bus bridge between a GPUL bus for a GPUL PowerPC microprocessor from International Business Machines Corporation (IBM) and an output high speed interface (MPI bus). Published information is available about the GPUL processor 110 and the GPUL bus 130 from various sources including IBM's website. This section provides an overview of these two buses.
API Bus
The API bus is sometimes referred to as the PowerPC 970FX interface bus, GPUL Bus or the PI bus (in the PowerPC's specifications). This document primarily uses the term API bus, but the other terms are essentially interchangeable. The API bus consists of a set of unidirectional, point-to-point bus segments for maximum data transfer rates. No bus-level arbitration is required. An Address/Data (AD) bus segment, a Transfer Handshake (TH) bus segment, and a Snoop Response (SR) bus segment exist in each direction, outbound and inbound. The terms packet, beat, master, and slave are defined in the following paragraphs.
Data is transferred across a bus in beats from master to slave. A beat is a timing event relative to the rising or falling edge of the clock signal. Nominally there are two beats per clock cycle (one for the rising edge and one for the falling edge).
A packet is the fundamental protocol data unit for the API bus. A non-null packet consists of an even number of data elements that are sequentially transferred across a source-synchronous bus at the rate of one element per bus beat. The number of bits in each data element equals the width of the bus. Packets are used for sending commands, reading and writing data, maintaining distributed cache coherency, and transfer-protocol handshaking.
A sender or source of packets for a bus segment is called a master and a receiver or recipient is called a slave. For example, on an outbound processor bus segment, the North Bridge is the slave and the processor is the master. On an inbound processor bus segment, the north bridge is the master and the processor is the slave. Four basic packet types are defined: null packets, command packets, data packets, and transfer-handshake packets. Non-null packet lengths are always an even number of beats. Null packets are sent across the address/data bus. For the null packet all bits are zero. Null packets are ignored by slave devices. Command packets are sent across the address/data bus. These are further partitioned into three types: read/command packets, write-command packets, and coherency-control packets. Data packets are also sent across the address/data bus. These are further partitioned into two types: read-data packets and write-data packets. A write-data packet immediately follows a write-command packet. A read-data packet is sent in response to a read-command packet or a cache-coherency snoop operation. A data read header contains the address of the command, the command type, and transfer details.
Transfer-handshake packets are sent across the transfer handshake bus. This packet is issued to confirm receipt and indicate the condition of the received command packet or data packet. Condition encoding includes Acknowledge, Retry, Parity Error, or Null/Idle. A transfer-handshake packet is two beats in length.
The API bus includes an Address/Data (AD) bus segment, a Transfer Handshake (TH) bus segment, and a Snoop Response (SR) bus segment in each direction, outbound and inbound. The Transfer Handshake bus sends transfer-handshake packets which confirm command or data packets were received on the Address/Data bus. The Transfer Handshake bus consists of one 1-bit outbound bus segment (THO) and one 1-bit inbound bus segment (THI). Every device issuing a command packet, data packet, or reflected command packet to the Address/Data bus receives a transfer-handshake packet via the Transfer Handshake bus some fixed number of beats after issuing the command or data packet. Each Transfer Handshake bus segment sends transfer packets for command and data packets transferred in the opposite direction. That is, the outbound Transfer Handshake bus sends acknowledge packets for the command and data packets received on the inbound AD bus. There is no dependency or relationship between packets on the outbound Address/Data bus and the outbound Transfer Handshake bus.
A transfer-handshake packet might result in a command packet being reissued to the bus due to a command queue data buffer full condition. A transaction remains active until it has passed all response windows. For write transactions this includes the last beat of the data payload. Since commands might be retried for queue or buffer full conditions, transactions that must be ordered cannot be simultaneously in the active state. A write transaction issued by the processor can be retried. There are two transfer-handshake packets issued by the slave for a write transaction. The first packet is for the write-command packet and the second for the write-data packet. For read transactions, the processor will not retry inbound (memory to processor) transfers. Reflected commands, i.e., snoop requests (inbound from North Bridge to processor), cannot be retried. This is necessary to ensure a fixed snoop window is maintained.
The Snoop Response bus supports global snooping activities to maintain cache coherency. This bus is used by a processor to respond to a reflected command packet received on the API bus. The Snoop Response bus consists of one 2-bit outbound bus segment (SRO) and one 2-bit inbound bus segment (SRI). The bus segments can detect single bit errors.
API Bus Summary
The address portion of the bus is 42 bits wide and is transferred in 2 beats. Data is 64 bits wide and transferred across a bus in a maximum of 4 bytes/beats from master to slave or slave to master. The API bus has a unified command phase and data phase for bus transactions. A single tag is used to identify an entire bus transaction for both command phase and data phase. Tags are unique when bus transactions are outstanding. Each command tenure contains a target slave address, the master's requestor unit id, the transfer type, the transfer size, an address modifier, and transaction tag for the entire transaction. The size of the single transaction tag is m−1 bits, with respect to the MPI bus command destination tag.
The API bus supports the modified intervention address snoop response protocol which effectively allows a master device to request and obtain a cache line of 128 bytes from another master device. Bus transactions can have three phases: a command phase, snoop phase and a data phase. Command only transactions are possible, which include a command phase and snoop phase. Cache line coherency is supported by reflecting commands to other master and slave devices attached to the bus coupled with a bus snooping protocol in the snoop phase. The API bus supports the modified intervention address snoop response protocol, which allows a master device to request a cache line from another master device.
The MPI Bus and Comparison to the API Bus
The MPI bus is a microprocessor bus of equal or higher performance than the API bus. The MPI bus also supports attachment of multiple master and slave devices. The address bus is 42 bits wide and is transferred in 1 beat. Data is transferred across a bus in a maximum 16 bytes/beats from master to slave or slave to master. The data bus is 128 bits wide. Each complete bus transaction is split into unique tagged command transaction phases and data transaction phases, which is different from unified transaction on the API bus.
There are a total of three tags on the MPI bus that are used to mark complete bus transactions. Two are used in the command phase the third is used in the data phase. Each command phase uses a destination tag and response acknowledge tag. The command destination tag (grttag) indicates the unique command for which the response is destined. The size of this command destination tag is m bits, and is one bit larger that the command transaction tag on the API bus. The response acknowledge tag (gratag) indicates the unique unit which responds to the issued command. The data transaction tag (dtag) indicates the unique data transfer. Tags are unique when bus transactions are outstanding. Since the data phase has its own unique dtag, the data phase of one transaction may finish out of order with respect to the data phase of another transaction.
Each command contains a target slave address, the requestor's unit id, transfer type, transfer size, an address modifier, and the command destination tag. The command phase is composed of a request tenure, reflected command tenure, and then a global snoop response tenure. The request tenure issues the command, with a destination tag. The reflected command tenure, reflects the command on the bus and then returns a master slave snoop response (gresp) to the MPI.
The global snoop response tenure provides a combined response from all units on the bus via the CBI, with the original destination tag and the response acknowledge tag (gratag). The data transaction phase is composed of the data request tenure and the data transfer tenure. The data transaction phase occurs independently after the command phase is completed if data transfer is required. In the data request tenure, a master requests to transfer data and it waits until it gets a grant from the target slave device. The data transfer tenure begins after the grant is received. The master provides the data transaction tag, and the data transfers while the data valid signal is active.
Command only transactions are possible, which consist of only a command phase. Cache line coherency is supported by the command phase by the reflected command tenure and the global snoop response tenure. Supports the modified intervention address snoop response protocol, which allows a master device to request a cache line from another master device.
The MPI bus contains a credit mechanism to indicate availability of available transaction buffer resources. This credit mechanism is used by MPI masters to pace their issue of new command transactions.
In the preferred embodiment, the GPUL 110 is a prior art processor core from International Business Machines Corporation (IBM) called the IBM PowerPC 970FX RISC microprocessor. The GPUL 110 provides high performance processing by manipulating data in 64-bit chunks and accelerating compute-intensive workloads like multimedia and graphics through specialized circuitry known as a single instruction multiple data (SIMD) unit. The GPUL 110 processor incorporates a GPUL bus 130 for a communications link. The GPUL bus 130 is also sometimes referred to as the API bus. In the illustrated embodiment, the GPUL bus 130 is connected to a bus transceiver 120.
The A/M conversion unit 310 includes eight buffers 416, 418. Each of the buffers 416, 418 are 128 bytes in size and are partitioned into two groups, the write buffers 416 and the read intervention buffers 418. The write buffers 416 capture the write data following a write command from the GPUL. This data is held until the accumulated snoop response phase of the transaction. At this point in time if the accumulated snoop response is to retry, the state of the write buffer is reset to Idle and the buffer is ready for reuse. If the accumulated snoop response is Ack then the write buffer state machine is allowed to advance to the unload buffer state, at which point the data is sent out on the MPI bus 235. The read intervention buffers 418 capture the data written out from the GPUL on the API bus 130 when the GPUL is responding with read intervention data. A read intervention buffer 418 is assigned a transaction tag from the snoop sub unit 330 (
After the data is loaded and the buffer's turn to unload comes up as signaled by the ticket unload order counter 424, the intervention buffer unloads the data to the CBI via the MPI. The snoop ticket order counter 422 and the ticket unload order counter 424 are used to maintain a first-in-first-out order of data to be sent out on the MPI, from the accumulated snoop response phase of a transaction to the data phase of the transaction. These two counters are used for both write and read intervention buffers. Each time a ticket is dispensed and captured by the assigned buffer, the snoop ticket order counter 422 is incremented. Similarly when any buffer in this sub unit reaches the unload finished state, the ticket unload order counter 424 is incremented. The Iread buffer assign counter 420 is used to assign which read intervene buffer will accept the next intervention data. This counter is incremented each time a read intervention buffer state machine leaves the idle state. The write buffer assign counter 426 is used to assign which write buffer 416 will accept the next write data. This counter 426 is incremented each time a write buffer state machine 510 (see
The write command counter 430 maintains a count of outstanding write commands. When the count reaches the number of write buffers (4) it signals the handshake logic driving the THI to retry all write commands. The counter is incremented with each write command that is acknowledged and sent on to the MPI and is decremented when any write buffer exits the unload finished state. The credit counter 432 maintains a count of commands that can be sent to the CBI via the MPI. When the count is non-zero, commands can be sent to the CBI on the MPI. If the credit count is zero all commands are given a handshake of retry via the THI. The credit counter 432 is incremented with each cbcredit cycle from the CBI. The counter is decremented when any command is forwarded to the CBI on the MPI.
The load data count 516 captures the data count from the ADO and decrements with each write into the write buffer. When this counter reaches ‘0001’ the write data buffer state machine 510 is allowed to advance beyond the load state. The command register 518 maintains an original copy of the command from the ADO. The ticket register 520 is part of the mechanism to maintain a first-in-first-out order from accumulated snoop response to the unloading of data to the MPI. The ticket register 520 captures a ticket count when a write transaction command has an accumulated snoop response of ack. When the value in the ticket register equals the unload order counter the state machine 510 is then allowed to advance to the unload state. The write data buffer state machine 510 coordinates the loading and unloading of data.
The index count 522 is used in the unload state to select which buffer register data to put on the MPI data bus. The data count 524 counts unload cycles and is always initialized to 8 before the unload state. The fixed initial count is because the MPI always expects 8 cycles of data regardless of the data size being delivered. The unload size count is initialized to the transaction size and is used to create the data valid signal (dval) on the MPI. The unload size counter 526 counts down to zero and as long as the value is non-zero the output data is valid. The transfer size fields from the ADO Command Register 518 are used as the initial value loaded into the unload size count 526 to be used by each write buffer. The unload size counter handles decrementing by the number of write data bytes per transaction that needs to be unloaded from the write data buffers as well as driving the data valid logic. The number of decrements varies by transaction size.
No reordering of write data packets takes place in the API to MPI write data buffers 416. Reordering is not required because all GPUL write commands including write, castout, push, and partial writes with a transfer size of 8 bytes or more are aligned on an address boundary equal to the size of the transfer. As data packets are received from the GPUL (ADO) they will be placed into the data buffer such that the index into the buffer array are the least significant bits of the system address for each 8 byte quantity.
After the accumulated snoop response phase of a read intervention the command read intervention buffer is assigned the command and is given an order ticket. At this point in time the buffer starts looking at read intervention headers on the ADO and when a tag compare (tag hit) occurs the buffer state machines 610 start loading the following data into the read intervention registers 612. After the load is complete the state machine 610 waits for a comparison from the unload order counter 424 (
As can also be seen in
The Command register 618 maintains an original copy of the command from the flow control after the accumulated snoop response. The ticket register 620 is part of the mechanism to maintain a first-in-first-out order from accumulated snoop response to the unloading of data to the MPI bus 130. The ticket register 620 captures a ticket count when a read intervention transaction command has an accumulated snoop response of ack. When the value in the ticket register 620 equals the unload order counter the read intervention data buffer state machine 610 is then allowed to advance to the unload state. The read intervention data buffer state machine 610 coordinates the loading and unloading of data.
The index count 622 is used in the unload state to select which buffer register data to put on the MPI data bus. For the read intervention buffer this will always be initialized to 0 because all read interventions are a full 128 bytes in size and are aligned to an index of 0. The data count register 624 counts unload cycles and is always initialized to 8 before the unload state. The fixed initial count is because the MPI always expects 8 cycles of data regardless of the data size being delivered. The unload size count 626 is initialized to the transaction size and is used to create the data valid signal (dval) on the MPI bus. The counter counts down to zero and as long as the value is non-zero the output dval is valid. For the read intervention buffer this will always be initialized to 8 because all read interventions are a full 128 bytes in size. The dtag is converted from the Ttag in the header register. This conversion drives dtag[0:13]. The dtag[14] is the partial transfer bit and is always driven to binary ‘0’.
No reordering of read intervention data within packets takes place in the API to MPI read intervention data buffer 418. Reordering is not required because all read intervention requests will be 128 bytes in size and will be at an aligned address corresponding to the 128 byte size.
The snoop ticket order counter 712 and the ticket unload order counter 714 are used to maintain a first-in-first-out order of data to be sent out on the MPI, from the accumulated snoop response phase of a transaction to the data phase of the transaction. Each time a ticket is dispensed and captured by the assigned buffer, the snoop ticket order counter 712 is incremented. Similarly when any buffer reaches the unload finished state, the ticket unload order counter 714 is incremented. The read buffer assign counter 716 is used to assign which read buffer will accept the next read data. This counter is incremented each time a read buffer state machine leaves the idle state.
The signals cmdv 718 and Cmd 720 are part of the MPI bus command tenure handshake. Cmdv 718 is a command valid signal and is 1′b1 the beat before a valid command (Cmd) is issued on the MPI bus. This applies to both the master initiated initial command and the reflected command. The MPI commands from the cmd pass through a delay pipe 722 and are converted to API command by the command and tag conversion logic 724.
As can also be seen in
The ticket register 824 is part of the mechanism to maintain a first-in-first-out order from accumulated snoop response to the unloading of data to the MPI. The ticket register 824 captures a ticket count when a read intervention transaction command has an accumulated snoop response of ack. When the value in the ticket register 824 equals the unload order counter 826, the state machine 814 is then allowed to advance to the unload state.
The read data buffer state machine 814 coordinates the loading and unloading of data. The index count 825 in conjunction with a bit-wise ‘exclusive or’ (xor) of the start address is used during the unload state to select which buffer register data to put on the ADI of the API bus. It is this ‘xor’ function that creates the critical word first interleaved packet order required by GPUL. In the read buffer 710 this counter will always be initialized to b′0000′. The address select bits are defined as follows: Select[0:2]<-start addr[0:2] xor index count[0:2] and Select[3]<-index count[3].
The data count register 828 counts unload cycles. The count is initialized from the data size field of the flow control command register 822 before the unload state. The Ttag in the API header is generated from a converted dtag from the MPi dtag Register 820.
Reordering of read data packets takes place in the MPI to API read data buffers. This reordering is required because GPUL only accepts read data in critical word first interleaved packet order and the rest of the system starting with the CBI only uses linear ordering with no notion of critical word first. When GPUL requests a read, the request is forwarded to CBI. When CBI returns data it will simply return the amount of data requested in with the least significant address quadword of the data returned first and the most significant address quadword returned last. These quadwords are placed into the data buffer with the least significant system address bits being used as the index into the buffer. Data is unloaded out of the read buffer in the order required by GPUL.
The order that read data must be sent to GPUL is dependent on the low order address being requested from GPUL. These least significant address bits are not forwarded or returned from the CBI, rather they are maintained in the flow control unit from the original GPUL request in the API to MPI converter sub unit and are latched in the read buffer in the Flow Command Register (F Cmd Reg).
The tag conversion logic converts the API transfer tag into the MPI transfer tag format and back. The API Transfer Tag uses 9 bits. These 9 bits are defined in 2 fields, the master number (4 bits) and the master tag (5 bits). The MPI defines a transfer tag in (14 bits). The fields associated with the MPI transfer tag are the node ID (4 bits), the unit ID (4 bits), and the transaction ID (6 bits). A simplified tag mapping from the API bus to the MPI can be made as follows. The Master number of the API can map to the Unit ID of the MPI and back, and the Master Tag of the API can map to the Transaction ID of the MPI. The problem with this mapping is the Master tag on the API side is 5 bits and the Transaction ID on the MPI side is 6 bits. With some assumptions and two simple signal redirections from the simplified mapping the following mapping solves the problem. For this embodiment the assumptions are the MPI transfer tag Node ID is always b′0000′, and the MSB of the MPI Unit ID is always b′0′. Given these assumptions the following mapping is made.
Command tag and data tag translation from the API to the MPI use the following relationships:
Command tag and data tag translation from the MPI to the API use the following relationships;
In a straight forward mapping with no assumptions the API Master Number[0] would be assigned the MPI Unit ID[0]. This mapping uses the assumption that the Unit ID[0] is always 0 and uses the API Master Number position to save the MPI Transaction Number[0] because in the straight forward mapping there is not room for this bit. The consequences of this mapping is that GPUL will see more Master Numbers than are actually in the system.
The logic in the snoop response path and the I Read Counter gathers read information from the reflected command path pipe and the snoop response from GPUL for the reflected read. If the snoop response is modified intervention, and if the outstanding intervention command count is equal to or greater than the number of intervention buffers (4) then the reflected command is changed from a modified intervention to a retry and sent on to the CBI via the MPI. If the outstanding intervention count is less than the number of intervention buffers then the snoop response from the GPUL (modified intervention) is passed on to the CBI.
The I read command counter 930 maintains a count of all read interventions that pass through the snoop response phase including ones that are converted to retry by the snoop response conversion logic. For every snoop read intervention response that comes from GPUL the counter is incremented. For each accumulated read intervention response the counter is decremented by 1. As each read intervention buffer reaches the finished unload state the counter is also decremented by 1. If an accumulated snoop response I read retry occurs at the same time as a read intervention buffer finish state then the counter must be decremented by 2.
The command and Ttag FIFO (FIFO) 1110 stores the GPUL read commands that are forwarded to the CBI. Since the CBI does not use all the least significant address bits from the GPUL read commands, these bits are not forwarded to the CBI. But, these least significant bits are required by the read data buffers when returning read data to the GPUL. The command and Ttag FIFO is used to hold the commands received from the GPUL and then match them with the returning reflected command so the properly formatted data and command are returned by the read data buffers. Additionally the write buffer assignment number for a GPUL read command is also captured in the FIFO 1110. The command and Ttag FIFO 1110 captures all valid commands initiated from GPUL that are sent out to the CBI on the MPI. Commands that are not valid because of a handshake retry on the THI are not put into the FIFO 1110.
The command and Ttag FIFO 1110 is required to be a FIFO instead of a PIPE because there is no set time between the initial command and the reflected command. Further, it is not required to be a content addressable memory (CAM) because the reflected commands from CBI will come back in the order that they were sent out. To unload the FIFO 1110, a comparison 1118 between the FIFO Ttag and the reflected command Ttag from CBI is made. When a comparison determines there is a tag hit 1120, the least significant address data and the write buffer assignment number are allowed to enter the reflected command to snoop response delay pipe 1112 by merging 1122 the least significant address data and the write buffer assignment number with the reflected command. The command and Ttag FIFO 1110 is then allowed to advance to the next command.
The reflected command to snoop response delay pipe 1112 is a free running pipe of registers that are deep enough such that all command information reaches the snoop response sub unit at the same time that the snoop response for the command is returned from GPUL.
The snoop response to accumulated snoop response delay pipe 1114 is also a free running pipe of registers that are deep enough such that all command information reaches the accumulated snoop response sub unit at the same time that the accumulated snoop response for the command is returned from CBI.
The accumulated response logic 1116 takes the information from the snoop response to accumulated snoop response delay pipe 1114 with the accumulated snoop response from CBI and forwards command information to the collection of write buffers, I read buffers, and read buffers. The write buffers need to know when a write command receives an accumulated snoop response of acknowledged so it can start its unload state, or if the command accumulated snoop response is a retry the write buffer will reset to the idle state. The original write buffer number that was assigned (write buffer assigned) to this write command is also passed back to the write buffers so the appropriate write buffer is communicated with. The intervention read buffers require the command, the Ttag, and the knowledge that the accumulated snoop response for this read intervention command has been acknowledged so an assignment of a read intervention buffer can be made for this command. The read buffers require the command, the Ttag, and the knowledge that the accumulated snoop response for this read command has been acknowledged so an assignment of a Read buffer can be made for this command.
Transaction Translation Flow
The embodiments described herein provide important improvements over the prior art. The preferred embodiments will provide the computer industry with a high speed interface for an existing computer architecture for an overall increase in computer system performance.
One skilled in the art will appreciate that many variations are possible within the scope of the present invention. Thus, while the invention has been particularly shown and described with reference to preferred embodiments thereof, it will be understood by those skilled in the art that these and other changes in form and details may be made therein without departing from the spirit and scope of the invention. For example, while the preferred embodiments are discussed herein with particular regard to multi-chip modules, the computer system and methods of the preferred embodiments may be applied to any semiconductor computer system architecture including a single chip computer system.
This patent application is a continuation of U.S. Ser. No. 11/064,568 filed on Feb. 24, 2005, which is incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | 11064568 | Feb 2005 | US |
Child | 12195134 | US |