Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
FIFO BUFFER THAT CAN READ AND/OR WRITE A SELECTABLE NUMBER OF DATA WORDS PER BUS CYCLE
Document Type and Number:
WIPO Patent Application WO/2002/099621
Kind Code:
A1
Abstract:
A first in, first out (FIFO) circular buffer enables high speed streaming data transfer between integrated circuit devices by performing more than one data element transfer unidirectionally by having a plurality of ports to address a memory array. In addition, the multiple transfers are performed during one bus cycle and the number of transfers may be selectable. FIFO control circuitry limits the number of data elements transferred in response to the state of the memory array including almost empty or almost full.

Inventors:
EHMANN GREGORY E
Application Number:
PCT/IB2002/002028
Publication Date:
December 12, 2002
Filing Date:
June 03, 2002
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
KONINKL PHILIPS ELECTRONICS NV (NL)
International Classes:
G06F13/38; G06F3/00; G06F5/06; G06F5/10; G06F13/00; H04L13/08; (IPC1-7): G06F5/06
Foreign References:
US5121480A1992-06-09
US5923895A1999-07-13
US5469449A1995-11-21
Other References:
See also references of EP 1402339A1
Attorney, Agent or Firm:
De Jong, Durk J. (Internationaal Octrooibureau B.V. Prof. Holstlaan 6 AA Eindhoven, NL)
Download PDF:
Claims:
CLAIMS :
1. A First In First Out (FIFO) buffer (90) comprising: a memory array (96) having a plurality of data slots, each data slot configured to store a data element; and FIFO control circuitry (92,94,96,98,100) responsive to a data command to perform a selected one of a single data element transfer and a double data element transfer unidirectionally with the memory array (96).
2. The FIFO buffer (50,52,90) of claim 1, wherein the FIFO control circuitry (92,94,96,98,100) receives a clock signal and is further configured to perform a double data element transfer during one clock cycle.
3. The FIFO buffer (50,52,90) of claim 1, wherein the single and double data element transfers each comprise a write to a respective one and two data slots of the memory array (96) in response to a write data command, the FIFO control circuitry (92,94,96,98, 100) further responsive to a read data command to perform a selected one of a single data element read and a double data element read from a respective one and two data slots of the memory array (96).
4. The FIFO buffer (50,52,90) of claim 3, wherein the FIFO control circuitry (92,94,96,98,100) is further configured to sense an almost full condition and respond to a write data command for a double data element write by writing a single data element to the memory array (96).
5. The FIFO buffer (50,52,90) of claim 3, wherein the FIFO control circuitry (92,94,96,98,100) is further configured to sense an almost empty condition and respond to a read data command for a double data element read by reading a single data element from the memory array (96).
6. In a communication link (16) between a transmitting device and a receiving device, a First In First Out (FIFO) buffer (90) comprising: a memory array (96) having a plurality of data slots, each slot configured to store a data element; a pair of write ports (54,56,80,82) configured to write a pair of respective data elements to the memory array (96); a pair of read ports (58, 60,84,86) configured to read a pair of respective data elements from the data array; and FIFO control circuitry (92,94,96,98,100) responsive to a write data command to perform a selected one of a single data element write and a double data element write via the pair of write ports (54,56,80,82) to the memory array (96), and responsive to a read data command to perform a selected one of a single data element read and a double data element read via the pair of read ports (58,60,84,86) from the memory array (96).
7. The FIFO buffer (50,52,90) of claim 6, further comprising FIFO sensing circuitry configured to sense a full and an almost full state of the memory array (96), wherein the FIFO control circuitry (92,94,96,98,100) is responsive to the sensed data state to respond to a write data command with a selected one of the group consisting of no data element write, a single data element write and a double data element write.
8. The FIFO buffer (50,52,90) of claim 6, further comprising FIFO sensing circuitry configured to sense an empty and almost empty state of the memory array (96), wherein the FIFO control circuitry (92,94,96,98,100) is responsive to the sensed data state to respond to a write data command with a selected one of the group consisting of no data element read, a single data element read and a double data element read.
9. The FIFO buffer (50,52,90) of claim 6, further comprising write pointer circuitry (98) configured to store a current write pointer value and to selectively increment the write pointer value one and two slot addresses in response to the FIFO control circuitry (92,94,96,98,100), and further comprising read pointer circuitry (100) configured to store a current read pointer value and to selectively increment the read pointer value one and two slot addresses in response to the FIFO control circuitry (92,94,96,98,100).
10. A communication link (16) between a transmitting device and a receiving device, comprising: a transmission channel between the transmitting and receiving devices; a transmitting FIFO buffer (50) configured to buffer data elements from the transmitting device prior to transmission to the receiving device over the transmission channel; and a receiving FIFO buffer (52) configured to buffer received data elements from the transmitting device over the transmission channel; wherein each of the transmitting and receiving FIFO buffer (50,52) comprise: a memory array (96) having a plurality of data slots, each slot configured to store a data element; a pair of write ports (54,56,80,82) configured to write a pair of respective data elements to the memory array (96); a pair of read ports (58,60,84,86) configured to read a pair of respective data elements from the data array; and FIFO control circuitry (92,94,96,98,100) responsive to a write data command to perform a selected one of a single data element write and a double data element write via the pair of write ports (54,56,80,82) to the memory array (96), and responsive to a read data command to perform a selected one of a single data element read and a double data element read via the pair of read ports (58,60,84,86) from the memory array (96).
11. The communication link (16) of claim 10, wherein each of the transmitting and receiving FIFO buffers (50,52) further comprise a FIFO sensing circuit configured to sense data states of the memory array (96), the communication link (16) further comprising: communication link control circuitry responsive to the sensed data state of the receiving FIFO buffer (52) to selectively generate data commands comprising a selected one of a no read command, a single read command and a double read command to the transmitting FIFO buffer (50).
12. The communication link (16) of claim 11, wherein each FIFO sensing circuit is configured to sense data states including FULL, FULL minus one data element, EMPTY, and EMPTY plus one data element.
13. A method of communicating data elements between a transmitting device (14) and a receiving device (12) by buffering data elements in a First In First Out (FIFO) buffer (50,52,90) comprising a memory array (96) having a plurality of data slots, each data slot configured to store a data element, the method comprising: responding to a write data command by performing a selected one of a single data element write and a double data element write to the memory array (96); and responding to a read data command by performing a selected one of a single data element read and a double data element read from the memory array (96).
14. The method of claim 13, further comprising: sensing a data state of the memory array (96); and responding to read data commands and write data commands in accordance to the sensed data state of the memory array (96).
15. The method of claim 14, wherein sensing the data state includes sensing a full and an almost full data state, responding to write data commands further comprises performing a single data element write to the memory array (96) in response to receiving a write data command for a double data element write and to sensing an almost full data state of the memory array (96).
16. The method of claim 14, wherein sensing the data state includes sensing an empty and an almost empty data state, responding to read data commands further comprises performing a single data element read from the memory array (96) in response to receiving a read data command for a double data element read and to sensing an almost empty data state of the memory array (96).
17. The method of claim 13, wherein responding to data commands for double data element reads and double data element writes is performed during one clock cycle to the FIFO buffer (50, 52,90).
18. The method of claim 13, wherein the FIFO buffer (50,52,90) comprises a circular buffer having write pointer circuitry (98) configured to store a current write pointer value and increments of one and two slot addresses from the current write pointer value, and having read pointer circuitry (100) configured to store a current read pointer value and increments of one and two slot addresses from the current read pointer value, the method further comprising: responding to a write data command for double data element write by selecting the two slot addresses from the current write pointer value from the write pointer circuitry (98); and responding to a read data command for double data element read by selecting the two slot addresses from the current read pointer value from the read pointer circuitry (100).
19. A First In First Out (FIFO) buffer comprising: a memory array (96) having a plurality of data slots, each data slot configured to store a data element; a plurality of ports for accessing data slots of the memory array (96); and FIFO control circuitry (92,94,96,98,100) responsive to a data command to unidirectionally and concurrently access a plurality of data slots via the plurality of ports.
20. The FIFO buffer (50,52,90) of claim 19, wherein the FIFO buffer (50,52,90) is configured as a circular buffer by further comprising: pointer value circuitry configured to retain a current data slot pointer to a data slot in the memory array (96) and to select multiple slot addresses based on the current data slot pointer value in response to the data command from the FIFO control circuitry (92,94, 96,98,100).
21. The FIFO buffer (50,52,90) of claim 19, wherein the FIFO control circuitry (92,94,96,98,100) is responsive to a data command to unidirectionally and concurrently access a selected number of the plurality of data slots via the plurality of ports (54,56,58,60, 80,82,84,86).
Description:
FIFO BUFFER THAT CAN READ AND/OR WRITE A SELECTABE NUMBER OF DATA WORDS PER BUS CYCLE

FIELD OF THE INVENTION The present invention relates to a digital data buffer, and in particular, to a First In First Out (FIFO) buffer, e. g., for use in synchronizing data communication across an integrated circuit to integrated circuit interconnection.

BACKGROUND OF THE INVENTION Semiconductor manufacturing technology continues to yield increasing density and speed of Integrated Circuit (IC) devices. The staggering capability of millions of logic gates per square centimeter of silicon enables mass integration, such as fabricating complete Systems on a Chip (SOC). Unfortunately, often the capability for designing highly integrated systems lags behind the manufacturing capability. The increased complexity compounds the risk associated with debugging and verifying the interfaces between blocks of gates that form the SOC and between IC's.

One approach to shortening the design cycle time of highly integrated devices is Rapid Silicon Prototyping (RSP), wherein hardware and software are concurrently designed for a custom Application Specific Integrated Circuit (ASIC) or an integrated plurality of ASIC's. RSP combines methodologies of design reuse, on-chip bus architectures and system integration to substantially improve the ability of designers to create advanced custom ASIC's and associated system software content faster and with a high probability of success. RSP is based on the premise that it is easier to design a system by"deconfiguring", i. e., removing blocks from, and"extending", i. e., adding blocks to, an existing and proven reference design made from reusable components.

Standardized busses allow deconfiguring and extending the reference design by enforcing a standardized interface upon the reusable components. Thus, standardized busses provide many benefits such as reduced risk, improved productivity and reduced time to market associated with RSP. One type of standardized bus often required in a system designed using RSP is for high-bandwidth streaming data, hereinafter referred to as a "tunnel".

Interconnecting different IC's with a tunnel is complicated by differences between the transmitting IC device and the receiving IC device. For example, the two IC's may be fabricated using differing fabrication techniques wherein the transmitting IC device is a peripheral device operating at 200 MHz whereas the receiving IC device is a processing device operating at 400 MHz. As another example, due to manufacturing variances, one IC may operate at a slightly different speed than the other. As a further example, due to the software design, one IC design may operate on the streaming data at varying intervals. Thus, for these and other reasons, the tunnel may become a limitation on the throughput of high- bandwidth streaming data due to synchronization problems and limitations on transmission of data per bus cycle.

Synchronization of data in a chip-to-chip interconnection is conventionally provided by a First In First Out (FIFO) circular buffer, also referred to herein as FIFO, in both the transmitting IC device and the receiving IC device. The transmitting FIFO buffers data elements prior to transmission. The receiving FIFO buffers data elements received from transmission. Conventional FIFO circular buffers include a read port and a write port that access a memory array. A write pointer points to an open data slot next to the most recently written to data slot. A read pointer points to the data slot containing the oldest data element stored in the data buffer, next to the data slot last read from the buffer. During each bus cycle to the FIFO, the read port uses the read pointer to successively address the next memory location after each read from the memory array and the write port uses the write pointer to successively address the next memory location after each write to the memory array. Control circuitry is provided to prevent writing to a full FIFO and to prevent reading from an empty FIFO.

Since the FIFO is limited to read and/or to write one data element per bus cycle, the tunnel is often effectively limited to the clock rate of the slower of the two IC devices. For example, a slow transmitting IC device would fill its transmitting FIFO buffer at a corresponding slow rate. A faster receiving IC device with a faster receiving FIFO buffer would tend to empty its buffer more quickly, and essentially be forced to wait for new data to be communicated and placed in its buffer. Thus, the tunnel is band limited to the rate at which the transmitting FIFO is capable of sequencing out its stored data. Alternatively, a fast transmitting IC device would fill its transmitting FIFO buffer faster than a slower receiving IC device and its receiving FIFO buffer could handle it. Thus both buffers would tend to be filled, limited by the rate at which the receiving FIFO buffer could sequence out the received data.

Speeding up a slower IC device in order to have a faster FIFO is often impractical, due to the increased manufacturing costs. Alternatively, adding an additional channel to the tunnel to increase the bandwidth of streaming data may be impractical due to limitations on the available number of conductors between IC's and/or the additional complexity and delay in separating and recombining data transmitted through the separate channels.

Therefore, a need exists for a manner of maximizing the bandwidth of a tunnel coupled to IC's of differing communication abilities, (e. g., due to differing clock speeds). In particular, a significant need exists for a FIFO buffer that can increase the bandwidth of data elements transferred and thus can assist in harmonizing independent IC's coupled over a tunnel.

SUMMARY OF THE INVENTION The present invention addresses these and other problems in the prior art by providing a First In First Out (FIFO) buffer capable of unidirectionally transmitting multiple data elements per bus cycle, thereby increasing the amount of data transmitted without increasing bus speed. In addition, a FIFO buffer may also be provided that permits a selectable number of data elements to be unidirectionally transmitted within a given bus cycle, such that the effective bandwidth of the FIFO buffer can be dynamically controlled.

Consistent with one particular aspect of the invention, a FIFO buffer includes a memory array having a plurality of data slots with each data slot storing a data element.

FIFO control circuitry responds to a data command by performing either a single data element transfer or a double data element transfer with the memory array.

Consistent with another aspect of the invention a FIFO buffer is used in a communication link between transmitting and receiving devices. The FIFO includes a pair of write ports and a pair of read ports that access data elements from a memory array. FIFO control circuitry is responsive to a write data command to perform either a single or double data element write via the write ports to the memory array. The FIFO control circuitry is also responsive to a read data command to perform either a single or double data element read via the read ports from the memory array.

Consistent with yet a further aspect of the invention, a communication link between transmitting and receiving devices includes a transmission FIFO buffer that transmits data elements to a receiving FIFO buffer across a transmission channel. Each FIFO buffer includes FIFO control circuitry to perform either a single or double data element read

in response to a read data command and to perform either a single or double element write in response to a write data command.

Consistent with yet a further aspect of the invention, a method of communicating data elements between transmitting and receiving devices includes responding to a write data command by performing either a single or double data element write and responding to a read data command by performing either a single or double data element read.

Consistent with an additional aspect of the invention, a FIFO buffer includes a plurality of ports for accessing data slots of a memory array and FIFO control circuitry that responds to a data command to unidirectionally access a plurality of data slots via the plurality of ports.

The above and other objects and advantages of the present invention shall be made apparent from the accompanying drawings and the description thereof.

BRIEF DESCRIPTION OF THE DRAWING Fig. 1 is a diagram of a data bus, or tunnel, between two devices forming an integrated device.

Fig. 2 is a diagram of the tunnel of the integrated device of Fig. 1 wherein each device includes a FIFO circular buffer consistent with aspects of the present invention.

Fig. 3 is a diagram of a FIFO circular buffer of Fig. 2.

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and, together with a general description of the invention given above, and the detailed description of the embodiments given below, serve to explain the principles of the invention.

DETAILED DESCRIPTION OF SPECIFIC EMBODIMENTS A First In, First Out (FIFO) circular buffer includes additional ports to the write and read sides of a memory array in order to allow multiple data elements, such as digital packets or digital words, to be transferred from the FIFO simultaneously. Thus, multiple data elements may be transferred during a single bus cycle, rather than sequentially over multiple bus cycles, thereby providing faster FIFO operation without the expense of a faster clock cycle. Moreover, in some embodiments the number of data elements that are transferred during a bus cycle can be selectable between different possible values, thereby providing greater control over the effective bandwidth of a FIFO. In addition, applications of

the FIFO circular buffer in a data bus between Integrated Circuits (IC) flexibly perform one or more data reads and/or data writes, simplifying synchronization control between IC's.

Turning to the Drawings, wherein like numbers denote like parts throughout the several views, Fig. 1 depicts an integrated system 10 formed by a first IC (receiving) device 12 and a second IC (transmitting) device 14 that communicates across a communication link, depicted as tunnel 16. Although devices 12,14 may reside on the same semiconductor die, in the illustrative embodiment, each device 12,14 is a separate integrated circuit driven by respective clocks 18,20. For instance, each device, 12,14 may respectively be a processor chip and a peripheral chip developed concurrently, for a Rapid Silicon Prototyping (RSP) environment. The tunnel 16 advantageously provides chip-to-chip interconnection for high bandwidth data streaming, enabling a high degree of integration between devices 12,14.

In particular, the tunnel 16 includes a tunnel out circuit 22 that resides in the transmitting device 14. The tunnel out circuit 22 has a target 24 that interfaces to an internal IC bus 26 for receiving from a streaming data device 28. The tunnel 16 also includes a tunnel in circuit 30 that resides on transmitting device 12. The tunnel in circuit 30 includes an initiator 32 that resides on an internal IC bus 34 of the receiving device 12 for providing the streaming data to components on the receiving device 12, depicted as DRAM controller 36.

The tunnel 16 enables the streaming data device 28 on the internal IC bus 26 of the transmitting device 14 to appear to be resident on receiving device 12, communicating with internal IC bus 34. Therefore, RSP is enhanced for developing receiving device 12 and transmitting device 14 since synchronization of clocks 18,20 and other timing considerations are not critical for proper communication within integrated system 10.

Tunnel 16 also includes both a forward communication path 38 and a return communication path 40. In particular, the tunnel out circuit 22 includes a transmit circuit 42 that forwards data across the forward communication path 38 to a receive circuit 44 of the tunnel in circuit 30. Similarly, the tunnel in circuit 30 includes a transmit circuit 46 that communicates data across the return communication path 40 to a receive circuit 48 of the tunnel out circuit 22.

It will be appreciated by those skilled in the art having the benefit of the present disclosure that the depiction of integrated system 10 is illustrative and that a tunnel 16 consistent with aspects of the invention may reside within a single device 12,14, and perform as an internal IC bus. In addition, the tunnel 16 may be unidirectional with only a

forward communication path 38 or a return communication path 40. In addition, applications consistent with aspects of the invention may perform other forms of digital communication.

The invention is therefore not limited to the particular RSP application discussed herein.

Rather, the herein-described FIFO buffers may be used in practically any buffering application in which conventional FIFO buffers are used.

Referring to Fig. 2, a portion of the tunnel 16 for forward data communication from transmitting device 14 to receiving device 12 advantageously includes a transmitting FIFO buffer 50 in the tunnel out circuit 22 and a receiving FIFO buffer 52 in the tunnel in circuit 30 for buffering data during transmission and reception respectively. Streaming data received by the target 24 of the tunnel out circuit 22 is written to the transmitting FIFO buffer 50 based both the state of the transmitting FIFO buffer 50, that is, depending on whether the transmitting FIFO buffer 50 has space available for additional data. The tunnel out circuit 22 is also responsive to the state of the receiving FIFO buffer 52 in the tunnel in circuit 30 for transmitting data across the forward tunnel channel 38. The tunnel out circuit 22 limits transmission data to the rate that the receiving FIFO buffer 52 can accept data. Then, the initiator 32 in the tunnel in circuit 30 is responsive to the state of the receiving FIFO buffer 52 for reading out data in the receiving FIFO buffer 52.

In particular, the tunnel 16 selectably buffers and transmits a number of data words per bus cycle to enhance synchronization between devices 12,14. Streaming data received across the internal IC bus 26 by the target 24 is written to the transmitting FIFO buffer 50 depending upon the state of the transmitting FIFO buffer 50. In the illustrative depiction, the transmitting FIFO buffer 50 includes two write ports 54,56 and two read ports 58,60. The target 24 senses the state of the transmitting FIFO buffer 50 across line 62. If the state is FULL, then no write is commanded by the target during this bus cycle. If the state on line 62 is almost full (e. g.,"FULL-1"), then the target 24 commands a write one data element ("WR1") to the transmitting FIFO buffer 50 and provides the one data element to write port 54 ("DATA IN 1"). The transmitting FIFO buffer 50 addresses the first write port 54 to the next available data slot in response to the data command. If the state on line 62 is not full or almost full, then the target 24 commands a write two data elements ("WR2") to the transmitting FIFO buffer 50 and provides the first data element as before and additionally provides the second data element to the second write port 56 ("DATA IN 2"). The transmitting FIFO buffer 50 addresses the first write port 54 as before and additionally routes the second write port 56 to the next available data slot adjacent to the slot addressed by the first write port 54. It will be appreciated that the target 24 will command no write if no

streaming data has been received from the internal IC bus 26 or will command a write one data element if just one data element has been received, even if the transmitting FIFO buffer 50 can handle additional data elements.

A portion of the tunnel out circuit 22 that is downstream of the transmitting FIFO buffer 50 is responsive to both the state of the transmitting FIFO buffer 50, received on line 64, as well as the state of the receiving FIFO buffer 52, received on line 66. In particular, the downstream portion includes a channel encoder 68 that performs no read from the transmitting FIFO buffer 50 when either the sensed state of the transmitting FIFO buffer 50 is empty or the sensed state of the receiving FIFO buffer 52 is full. The channel encoder 68 commands read one data element ("RD1") from the write port 58 of the transmitting FIFO buffer 50 when either the state of the receiving FIFO buffer 52 is almost full or the transmitting FIFO buffer 50 is almost empty. In response to the"RD1"command, the transmitting FIFO buffer 50 couples the write port 58 to the oldest data address to write out "DATA OUT 1". The channel encoder 68 encodes the"DATA OUT 1"data element, forwards on one or more internal transmission channels 70 to channel transmitters 72 that transmit the encoded and channelized data elements across forward tunnel channel 38 to the tunnel in circuit 30.

Alternatively, the channel encoder 68 commands a read two elements ("RD2") in response to the sensed state of the receiving FIFO buffer 52 to not be full nor almost full and the sensed state of the transmitting FIFO buffer 50 to not be empty or almost empty. In addition to the actions described above for a data command for read one data element (RD1), in response to the RD2 command, the transmitting FIFO buffer 50 outputs the next oldest data element ("DATA OUT 2") to the channel encoder 68, which is similarly encoded, channelized and transmitted to the receiving IC device 12.

The tunnel in circuit 30 includes channel receivers 74 that receive the encoded channelized data from the forward tunnel channel 38. The received data is forwarded over one or more internal receiving channels 76 to a channel decoder/aligner 78. Depending on the amount of data received, the channel decoder/aligner 78 commands no data transfer, a write one data element ("WR1"), or a write two data elements ("WR2") to the receiving FIFO buffer 52. The channel decoder/aligner 78 makes the one or two data elements available as "DATA IN 1"and"DATA IN 2"respectively to write ports 80, 82 of the receiving FIFO buffer 52. The receiving FIFO buffer 52 writes these data elements to the next available write data slots.

Although not depicted, it will be appreciated by those skilled in the art having the benefit of the present invention that the channel decoder/aligner 78 may further be responsive to the state of the receiving FIFO buffer 52 to selectively command a smaller data transfer than the amount of data received. For instance, the channel decoder/aligner 78 may include inherent storage capability that can be further used to take advantage of the selectable number of data words that may be transferred to the receiving FIFO buffer 52.

The receiving FIFO buffer 52 makes the oldest two data elements available at read ports 84,86 for the initiator 32 to read, as commanded by the initiator 32. The initiator 32 is responsive to the state of the receiving FIFO buffer 52, sensed on line 88, to command read one data element ("RD1") when the receiving FIFO buffer 52 is almost empty. The initiator 32 is further responsive to the state of the receiving buffer 52 to command read two data elements ("RD2") when the receiving FIFO buffer 52 is not empty nor almost empty.

It will be appreciated that transmitting FIFO buffer 50 may be implemented to be triggered by a single clock wherein data in and data out occurs in response to the same clock signal. By contrast, the receiving FIFO buffer 52 may advantageously respond to two clock signals to further enhance synchronization within the integrated device 10. In particular, data received from channel decoder/aligner 70 may be responsive to a clock signal inherent in received data across forward communication path 38. Consequently data writes to FIFO 52 may be synchronized to this received clock signal; data read by initiator 32 may be synchronized to the clock 18 signal of receiving device 12.

With reference to Fig. 3, a FIFO circular buffer operates by having sequentially referencing data addresses for data slots to write data to a memory array, wrapping around to the beginning of the array when the end is reached. Similarly, the data stored in the memory is sequentially read out, with the data slot with the oldest data addressed first. A write pointer keeps track of the next available data slot for writing a data element and a read pointer keeps track of the data slot with the oldest data. Provisions are included to prevent the read pointer from overtaking the write pointer.

In particular, a FIFO buffer 90 illustrates multiple data element transfers by having a plurality of write ports depicted as WRITE PORT 1 and WRITE PORT 2, as well as a plurality of read ports depicted as READ PORT 1 and READ PORT 2. The FIFO buffer 90 includes control circuitry that responds to data commands to perform single or double data element transfers. In particular, the FIFO control circuitry is depicted as a control logic 92 for receiving data commands, flag logic 94 to sense the amount of data stored in a memory array

96 and write pointer circuitry 98 and read pointer circuitry 100 for addressing the plurality of ports.

The control logic 92 receives a command to write one data element ("WR1") or to write two data elements ("WR2"). The control logic 92 is responsive to the sensed state of the memory 96 provided by the flag logic 94 to selectively command a write data transfer.

Specifically, first, the control logic 92 does not enable a write data transfer if the state of the memory array 96 is full or if no WR1 or WR2 signal is received. Second, the control logic 92 enables the WRITE PORT 1 with write enable signal 1 ("WR1N") if write one data element signal WR1 is received or if write two data elements signal WR2 is received and the memory array 96 is almost full. Third, the control logic 92, in addition to enabling WRITE PORT 1, enables WRITE PORT 2 with write enable signal 2 ("WR2N") when a write two data elements signal WR2 is received and the memory array 96 is neither full nor almost full.

When enabled, WRITE PORT 1 reads the"DATA IN 1"signal at data input 1 ("DI1") and writes it to the data slot specified by the write address 1 ("AW1"). When enabled, the WRITE PORT 2 reads the"DATA IN 2"signal at data input 2 ("DI2") and writes it to the data slot specified by the write address 2 ("AW2"). The two write addresses AW1, AW2 are provided by the write pointer circuitry 98.

Write pointer circuitry 98 addresses data slots (not shown in Fig. 3) in the memory array 96 so that the memory array 96 may be used as a circular buffer. In particular, write pointer circuitry 98 includes a D flip flop 102 having output"Q"that points to the next available slot at input"AW1", used to unidirectionally write data to memory array 96. The next available write address AW1 is also fed back to a +1 adder 104, a +2 adder 106 and to 3- to-1 MUX 108. The incremented outputs of the adders 104,106 are coupled to the other two inputs of the MUX 108. The incremented output of the +1 adder 104 is also provided to an input"AW2"to address the next-next address for the WRITE PORT 2. The MUX 108 is controlled by the control logic 92 to update the addresses AW1 and AW2. In particular, after a write transfer of one data element, the MUX 108 is commanded to output an incremented value from the +1 adder 104 that resets input"D"of the D flip flop 102 to the next available address. After a write transfer of two data elements, the MUX 108 is commanded to output a twice incremented value from the +2 adder 106 to the D flip flop 102.

The control logic 92 also receives a command to read one data element ("RD1") or to read two data elements ("RD2"). The control logic 92 is responsive to the sensed state of the memory 96 provided by the flag logic 94 to selectively command a read

data transfer. Specifically, first, the control logic 92 does not enable a read data transfer if the state of the memory array 96 is empty or if no RD1 or RD2 signal is received. Second, the control logic 92 enables the READ PORT 1 with read enable signal 1 ("RD1N") if read one data element signal RD1 is received or if read two data elements signal RD2 is received and the memory array 96 is almost empty. Third, the control logic 92, in addition to enabling READ PORT 1, enables READ PORT 2 with read enable signal 2 ("RD2N") when a read two data elements signal RD2 is received and the memory array 96 is neither empty nor almost empty.

When enabled, READ PORT 1 outputs the"DATA OUT 1"signal at data output 1 ("DO1") by reading from the data slot specified by the read address 1 ("AR1").

When enabled, the READ PORT 2 outputs the"DATA OUT 2"signal at data output 2 ("D02") by reading from the data slot specified by the read address 2 ("AR2"). The two read addresses AR1, AR2 are provided by the read pointer circuitry 100.

The read pointer circuitry 100 includes a D flip flop 110 that has an output"Q" that provides the memory address for a data slot containing the oldest data to the"AR1"input of the READ PORT 1 of the memory array 96. The oldest data address AR1 is also fed back to a +1 adder 112, a +2 adder 114 and to a 3-to-1 MUX 116. The incremented outputs of the adders 112,114 are coupled to the other two inputs of the MUX 116. The incremented output of the +1 adder 112 is also provided to an input"AR2"to address the next-oldest address for the READ PORT 2. The MUX 116 is controlled by the control logic 92 to update the addresses AR1 and AR2. In particular, after a read transfer of one data element, the MUX 116 is commanded to output an incremented value from the +1 adder 112 that resets input"D"of the D flip flop 110 to the next available address. After a read transfer of two data elements, the MUX 116 is commanded to output a twice incremented value from the +2 adder 114 to the D flip flop 110.

Flag logic 94 receives the current write address AW1 from the D flip flop 102 and the current read address AR1 from the D flip flop 110, from which a determination may be made as to whether the memory array 96 is full (no slots open), almost full (only one slot open), empty (no slots filled) or almost empty (only one slot filled).

It will be appreciated that applications consistent with aspects of the present invention may include additional ports, such as three or more, and that two read ports and that two write-ports are illustrative only. In addition, the number of read ports may differ from the number of write ports. Furthermore, the size of data elements written to and read

from the memory array may differ such that write ports and read ports may perform data transfers of data elements of different sizes from one another.

The sequencing of reads and writes by the FIFO buffer 90 is controlled by a bus clock. Thus, on one timing point, one or more reads or writes are performed. On a subsequent timing point, the read and write pointers are incremented the appropriate number of slots to correspond to the data transfers. Advantageously, the bus clock may comprise double data rate transfer wherein transfers occur on both rising and falling edges of a clock pulse.

In use, a FIFO buffer 90 receives a bus clock transition. In response to a data command to write one or two data elements (WR1, WR2), the control logic 92 determines whether the state of the memory array 96 is sufficient to have enough available data slots, reducing the number of write ports (WRITE PORT 1 and 2) enabled (WR1N, WR2N) to correspond to the number of available data slots. Each enabled write port receives the input data (DATA IN 1, DATA IN 2) and writes it to the respective address (AW1, AW2) provided by the write pointer circuitry 98.

In response to a command to read one or two data elements (RD 1, RD2), the control logic 92 determines whether the state of the memory array 96 is sufficient to have enough available data slots, reducing the number of read ports (READ PORT 1 and 2) enabled (RD1_N, RD2_N) to correspond to the number of available data slots. Each enabled read port outputs the output data (DATA OUT 1, DATA OUT 2) as read from the data slots referenced by the respective address (AR1, AR2) provided by the read pointer circuitry 100.

On a subsequent timing interval, the write and read pointer circuitry 98, 100 are updated to the next available data slots as appropriate in view of number of data elements written or read respectively. Also the flag logic 94 update the state of the memory array 96, in particular setting flags for states of full, almost full, empty or almost empty.

While the present invention has been illustrated by a description of various embodiments and while these embodiments have been described in considerable detail, it is not the intention of the applicant to restrict or in any way limit the scope of the appended claims to such detail. Additional advantages and modifications will readily appear to those skilled in the art. The invention in its broader aspects is therefore not limited to the specific details, representative apparatus and method, and illustrative example shown and described.

Accordingly, departures may be made from such details without departing from the spirit or scope of applicant's general inventive concept.