WO1993020516A1 - Virtual fifo peripheral interface system and method - Google Patents

Virtual fifo peripheral interface system and method Download PDF

Info

Publication number
WO1993020516A1
WO1993020516A1 PCT/JP1993/000374 JP9300374W WO9320516A1 WO 1993020516 A1 WO1993020516 A1 WO 1993020516A1 JP 9300374 W JP9300374 W JP 9300374W WO 9320516 A1 WO9320516 A1 WO 9320516A1
Authority
WO
WIPO (PCT)
Prior art keywords
fifo
data
virtual
peripheral
hardware
Prior art date
Application number
PCT/JP1993/000374
Other languages
French (fr)
Inventor
Derek J. Lentz
Original Assignee
Seiko Epson Corporation
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corporation filed Critical Seiko Epson Corporation
Priority to JP51729293A priority Critical patent/JP3431149B2/en
Publication of WO1993020516A1 publication Critical patent/WO1993020516A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/12Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
    • G06F13/124Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware is a sequential transfer control unit, e.g. microprocessor, peripheral processor or state-machine
    • G06F13/126Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware is a sequential transfer control unit, e.g. microprocessor, peripheral processor or state-machine and has means for transferring I/O instructions and statuses between control unit and main processor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F5/00Methods or arrangements for data conversion without changing the order or content of the data handled
    • G06F5/06Methods or arrangements for data conversion without changing the order or content of the data handled for changing the speed of data flow, i.e. speed regularising or timing, e.g. delay lines, FIFO buffers; over- or underrun control therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F5/00Methods or arrangements for data conversion without changing the order or content of the data handled
    • G06F5/06Methods or arrangements for data conversion without changing the order or content of the data handled for changing the speed of data flow, i.e. speed regularising or timing, e.g. delay lines, FIFO buffers; over- or underrun control therefor
    • G06F5/065Partitioned buffers, e.g. allowing multiple independent queues, bidirectional FIFO's

Definitions

  • the present invention relates generally to the queuing, control and transfer of data between a host processor and a peripheral processor, and more particularly, to first-in-first-out (FIFO) systems and methods between a host processor and a peripheral processor.
  • FIFO first-in-first-out
  • Smart peripheral devices have internal processing functionahty. Such smart peripheral devices often require streams of instructions and data.
  • the streams of instructions and/or data may either be held in one or more specific data structure(s) 101 in a main memory 102, or in a separate (deep) hardware memory, which in conventional systems is usually a FIFO located in an I O controller (such as 106, 112, or 134) associated with (or part of) the I/O or peripheral device.
  • I O controller such as 106, 112, or 134
  • the first peripheral which is designated generally by a reference numeral 130, is made up of an input output (I O) controller 106, a disk drive 104, and a disk drive 108.
  • I/O controller 106 may or may not contain internal processing functionality in the form of a peripheral processor (CPU) or peripheral controller (not shown).
  • the second peripheral is designated generally by a reference numeral 132.
  • Second peripheral 132 is made up of an I/O controller 112 and a graphics output 114, which typically is a cathode ray tube (CAT) display or a frame buffer, but can be any suitable graphics output device.
  • I/O controller 112 may or may not have internal processing functionality.
  • the third peripheral is designated generally by a reference numeral 134.
  • Third peripheral 134 is made up of an I/O controller 116 and a network 118. Like VO controller 106, VO controller 116 may or may not have internal processing functionality.
  • First peripheral 130, second peripheral 132, and third peripheral 134 can either receive data and instructions from digital processor 126, receive instructions from and send read data to the digital processor 126, or receive instructions from and send to and receive data from the digital processor 126.
  • the data and instructions are received from main memory 102 via a CPU-memory bus 122 and a bus adapter 120 to an I O bus 110.
  • the architecture of Figure 1 can also be applied to systems with multiple memory devices 101 and/or I/O buses 110.
  • Figure 2 shows another conventional architecture and method, where the peripherals are connected directly to cache 124.
  • I/O controllers 106, 112 and 116 are connected via the VO bus 110 and bus adapter 120 and a bus 204 to cache 124, which is connected to CPU- memory bus 122, and to CPU 126 via a translation look aside buffer (TLB) 202.
  • TLB translation look aside buffer
  • the streams of instructions and data for the peripherals in the system of Figure 2 may be placed in a deep hardware buffer such as a FIFO as part of the I/O controller, or as a software data structure stored in main memory 102.
  • a conventional system and method for transferring data between a digital processor and a peripheral processor utilizing virtual direct memory access (DMA) is shown in block architectural form in Figure 3.
  • the virtual DMA requires a register for each page to be transferred in a DMA controller 302, showing the protection bits and the physical page corresponding to each virtual page.
  • Address-translation registers 304 connect DMA 302 to CPU-memory bus 122.
  • FIG. 3 (and for that matter Figures 1 and 2) can also be implemented without an I/O bus 110.
  • the peripheral could be directly connected to DMA 302, and in turn, directly connected to CPU-memory bus 122.
  • the architectures shown in Figures 1, 2, and 3 are illustrative only, and are not intended to represent a detailed discussion of computer architectures in general.
  • FIFO is expensive, especially in a computer system using a high clock rate.
  • higher clock rates are constantly being used for the host processor 126 to improve system performance and increase system functionality.
  • a conventional strategy for reducing latency is to create a larger (also called a "deeper") FIFO.
  • One conventional approach for reducing latency is to make the FIFO shallow. This means that less instructions and/or data must be dealt with before the stream of instructions and/or data can be context switched. However, the use of a shallow FIFO means that the FIFO must be serviced more often. This increased servicing consumes additional bandwidth and CPU overhead (for checking the state of the FIFO), which is not desirable.
  • the present invention is a system and method which utilizes a shallow hardware FIFO along with system memory to reduce the cost of the FIFO hardware, to allow relatively fast context switches, and to decrease latency and memory bandwidth requirements.
  • the present invention is a system and method for queuing, control and transfer of data between a host processor and a peripheral processor using an architecture and a data flow strategy of one or more virtual FIFO data structures stored in main memory and a hardware data FIFO (which typically is physically located on the same chip or circuit board with the peripheral processor) under control of the peripheral processor.
  • One virtual FIFO at a time drives the data FIFO with data.
  • the data FIFO drives a peripheral device with this data.
  • drives is used to mean supplying data to a device.
  • driving the data FIFO means supplying or passing data to the data FIFO:
  • the host software running on the digital processor controls the loading of data for each process (context) into its associated virtual FIFO.
  • the digital processor under control of the host software and system software (or firmware) controls the operation of the peripheral processor and the virtual FIFOs.
  • the peripheral processor controls the flow of data from the data FIFO to the peripheral device, and under control of the host software, the flow of data from the driving virtual FIFO to the data FIFO.
  • Start and end address pointers for each virtual FIFO (stored in main memory in an associated memory block) indicate the memory location in the virtual FIFO where data is stored.
  • the peripheral processor also keeps a start address pointer of the memory location of the last unused data then read out of the data FIFO to the peripheral device.
  • address pointers allow the hardware FIFO to be flushed when a context switch occurs, which can (and usually does) take place before all of the data in the driving virtual FIFO is supplied to the data FIFO, and supplied by the data FIFO to the peripheral device.
  • a strategy for updating the address pointers improves effective memory bandwidth.
  • the present invention allows for main memory latency, reduces main memory bandwidth utilization, allows for relatively fast context switching, and reduces hardware cost because the storage capacity of the (hardware) data FIFO is small relative to the storage capacity of each virtual FIFO. Total storage capacity of each virtual FIFO, data FIFO combination is large, with the added benefit that the hardware data FIFO can be fast, which reduces latency.
  • context switching is relatively fast because it can be done by changing address pointers and by dumping the contents of the hardware FIFO.
  • Figure 1 is a block architectural diagram of a conventional interface of VO devices and an VO bus with a CPU-memory bus.
  • Figure 2 is a block diagram of a conventional interface of the I/O connected directly to the cache.
  • Figure 3 shows in block architectural form a conventional digital processor and peripheral processor system having virtual direct memory access, which requires a register for each page to be transferred in the DMA controller.
  • Figure 4 is a block diagram showing at a high level the data flow and control paths of the present invention.
  • Figure 5 is made up of Figures 5 A and 5B.
  • Figure 5A shows a preferred virtual FIFO data structure in accordance with the present invention where data does not wrap.
  • Figure 5B shows a preferred virtual FIFO data structure in accordance with the present invention where data wraps to the beginning.
  • Figure 6 is a flow chart showing at a high level the operation of the digital processor 126 under control of host software with the DMA controller 404 in accordance with the present invention.
  • Figure 7 is a block diagram showing the end address pointer strategy used for updating (or not updating) the end address pointer in order to save bandwidth in both writing and reading of the end address pointer.
  • Figure 8 is a block diagram showing the start address pointer strategy used for updating (or not updating) the start address pointer in order to save bandwidth in both writing and reading of the start address pointer.
  • Figure 9 is a block diagram representation showing an alternate embodiment of the present invention where host processor 126, the DMA controller 404, and hardware FIFO 402 are all fabricated on a single (microelectronic device) semiconductor chip 900.
  • Figure 10 is a block diagram showing an embodiment of the present invention where the DMA controller 404 controls n (hardware) data FIFOs, where n is a positive integer greater than or equal to 2, which creates n channels.
  • Figure 11 is a block diagram showing an embodiment utilizing two host CPUs for controlling the DMA controller 404 and the (hardware) data FIFO 402.
  • Figure 12 is a block diagram of * an alternate embodiment of the present invention using a single host CPU 126 to control two or more DMA controllers with associated (hardware) data FIFOs.
  • Figure 13 is a block diagram showing an alternate embodiment where a buffer (dual ported memory) is on the VO bus 110 so as to allow the present invention to be utilized with a personal computer product where the VO bus cannot accommodate direct memory access.
  • Figure 14 is a block diagram of an embodiment of the present invention where the hardware FIFO 402, DMA controller 404, and graphics function stage 1402 are all physically part of a peripheral 1400.
  • host processor host CPU
  • digital processor digital processor
  • master CPU master CPU
  • CPU central processing unit
  • chip integrated circuit
  • monolithic device semiconductor device and microelectronic device
  • present invention is applicable to all of the above as they are generally understood in the field.
  • the numbering convention is as follows. The right two digits indicate the item number. The left digit or digits indicate the Figure where the item first appears. The same number in each Figure indicates the identical item. Wherever possible, the Figures are discussed in numerical order in the text.
  • the present invention is a system and method for queuing, control and transfer of data between a digital processor and a peripheral processor using an architecture and a data flow strategy of one or more virtual FIFO data structures stored in main memory and a hardware FIFO (which typically is physically located on the same chip or circuit board with the peripheral processor) under control of the peripheral processor.
  • One virtual FIFO at a time drives the hardware FIFO with data.
  • the hardware FIFO drives a peripheral device with this data.
  • the host software running on the digital processor controls the loading of data for each process (context) into its associated virtual FIFO.
  • the host processor under control of the host software controls the operation of the peripheral processor and the virtual FIFOs.
  • the peripheral processor controls the flow of data from the hardware FIFO to the peripheral device, and under control of the host software, the flow of data from the driving virtual FIFO to the hardware FIFO.
  • context is defined as the current state of processor.
  • the context of that processor would be, for example, th contents of the register files, contents of the status registers, and the current state o the error flags.
  • the context attributes might included any attributes that have been set and at what point in its pipeline those attribute have been set.
  • the peripheral processor also keeps a start address pointer of the memory location of the last unused data read out of the hardware FIFO to the peripheral device.
  • These address pointers allow the driving virtual FIFO to be flushed when a context switch occurs, which can take place before all of the data i the driving virtual FIFO is supplied to the hardware FIFO, and supplied by the hardware FIFO to the peripheral device.
  • a strategy for updating the address pointers improves system efficiency.
  • the present invention allows for the latency associated with main memory, reduces main memory bandwidth utilization, allows for relatively fast context switching, and reduces hardware cost because the storage capacity of the hardware FIFO is small relative to the storage capacity of each virtual FIFO. Total storage capacity of each virtual FIFO, hardware FIFO combination is large, and the hardware FIFO can be fast, which reduces latency. Context switching is relativel fast because it can be done by changing pointers and by dumping the contents of the hardware FIFO.
  • the present invention is envisioned as being included in a very large scale integrated (VLSI) graphics processor (of the type used with the second peripheral 132).
  • VLSI very large scale integrated
  • the present invention can be used i many other application as well.
  • Main memory 102 includes a set of queues known as virtual FIFOs.
  • Three virtual FIFOs are shown for purposes of illustration: they are virtual FIFO(l), which is referred to by reference number 406; a virtual FIFO(2), which is referred to by reference number 408; and a virtual FIFO(3), which is referred to by reference number 410. It should be understood that the present invention contemplates one or more virtual FIFOs located in main memory 102.
  • the virtual FIFOs located in main memory 102 are used to drive a peripheral device, referred to generally by a reference number 401. This driving by the data from the virtual FIFO in question takes place through a hardware FIFO 402. It should be noted that the virtual FIFO's can be incorporated into any dedicated memory (e.g., a 2-port memory on an VO card).
  • peripheral device 401 can be used by the present invention.
  • the peripheral device is a graphics processor having a frame buffer (not shown).
  • the peripheral device 401 could be a disk drive 104, or a network 118, or any other output device.
  • the DMA controller is part of peripheral subsystem 132. It may or may not have internal processing functionality. It should be noted that DMA controller 404 may be part of peripheral 132 (as shown in Figures 1, 2, and 3) or may be a separate peripheral device.
  • DMA controller 404 is under the control of software (not shown) or firmware (not shown) running on the host processor 126.
  • the software or firmware control allows host processor 126 to efficiently provide data and instructions to peripheral device 401 in accordance with the present invention. This control is via a path 428 effectively between host processor 126 and DMA controller 404. This path will depend upon the architecture of the system, such as those shown in Figures 1, 2 and 3.
  • Data FIFO 402 is the hardware FIFO referred to above.
  • Data FIFO 402 is typically part of peripheral 132. It can be a separate hardware FIFO made up of one or more integrated circuits (ICs), which are part of the board including VO controller 112.
  • ICs integrated circuits
  • hardware FIFO 402 is a modest sized on-chip hardware data FIFO, which is part of the VLSI graphics processor (not shown). Any conventional fabrication process can be used for building hardware FIFO 402 either separately on a chip, or as part of a larger chip having additional subsystems and functionality.
  • the size of the hardware FIFO depends on a variety of system criteria.
  • hardware FIFO 402 in a preferred embodiment holds two of the largest divisible operations capable of being performed by peripheral 401. However, the exact constraints of hardware FIFO 402 depend on the latency of mai memory. At any time in the operation of the present invention, only one of virtua
  • FIFOs 406, 408 or 410 is used to drive peripheral device 401 using hardware FIFO 402.
  • the host processor can "compute ahead" an generate data for large virtual FIFO without waiting until it actually has access to the hardware.
  • the host processor need not "poll" the pointers constantl to know if it has the necessary space.
  • DMA controller 404 would be a combination of I/O controller 112, and DMA 302 and the address- translation registers 304.
  • FIG. 14 shows a block diagram of an embodiment of the present invention.
  • a peripheral 1400 includes hardware FIFO 402, DMA controller 404, and a graphics functions stage 1402, all of which are physically part of the peripheral 1400.
  • DMA can optionally include a virtual memory management unit (VMU) 1404, i desired.
  • VMU virtual memory management unit
  • all of these components can be physically located on the same chip as the CPU.
  • the present invention is also equally applicable to the architectures shown in
  • DMA controller 404 with reference to the architecture shown in Figure 1 could be part of the VO controller 112, so that the data that is supplied by host processor 126 would come from the main memory 102 via CPU- memory bus 122, bus adaptor 120, and VO bus 110. Alternately, the present invention could utilize the architecture of Figure 2.
  • DMA controller 404 could be part of I/O controller 112.
  • the data from main memory 102 could be supplied by bus adaptor 120 and I/O bus 110.
  • DMA controller 404 may also include a virtual memory management unit (VMU; not shown), i desired.
  • VMU virtual memory management unit
  • DMA controller 404 reads the (software) virtual FIFO that is being used to drive hardware FIFO 402.
  • DMA controller 404 passes commands and data from the virtual FIFO that is driving hardware FIFO 402 so that the commands and data are received by peripheral device 401.
  • DMA controller 404 provides status information and interrupts via a path 430 between it and host processor 126. Path 430 on a physical level will depend upon the computer architecture of the types as shown in Figures 1, 2 and 3 that is used.
  • the queues contained in virtual FIFOs 406, 408 and 410 can be switched when the peripheral context is switched.
  • the ability to switch between two or more contexts in a peripheral is becoming increasingly important as the functionality of the computer system and the peripheral increase.
  • windowing systems used in graphics processors will include two or more contexts. In other words, each window that is present in the peripheral is a separate context.
  • the present invention can easily accommodate the context switching so that it is done relatively fast and efficiently.
  • the context switching or "swaps" of the present invention are under control of higher level software that is operating on the digital processor 126.
  • Any application which requires a smart peripheral which is programmed with software has the potential of passing data, and thus, would benefit from the present invention.
  • An example of such an application would be window system software.
  • each virtual FIFOs 406, 408 and 410 has an associated FIFO control block.
  • virtual FIFO 406 has a FIFO control block 440
  • virtual FIFO 408 has a FIFO control block 442
  • virtual FIFO 410 has a FIFO control block 444.
  • the control blocks 440, 442 and 444 are located in main memory 102, but could also be located in any available memory location in the host processor system.
  • host processor 126 (or any other processor that is controlling the peripheral device 404; not shown) periodically writes to the memory control block of the virtual FIFO that is being used to drive the peripheral device 401.
  • DMA controller 404 snoops these accesses to the memory blocks by digital processor 126.
  • the word snoop is synonymous with the word monitor. This snooping by DMA controller 404 occurs via a path 424 (labeled "read/snoop address").
  • DMA controller 404 detects that host processor 126 has written to the control block of the virtual FIFO that is driving peripheral device 401, DMA controller
  • Snooping is not required if the host processor writes directly into DMA 40 registers, as opposed to writing into the virtual FIFO's control block. In addition snooping can also be disabled if data is written directly into hardware FIFO 402 b the host processor.
  • Figure 5 illustrates a preferred virtual FIFO 406, 408, 410 data structure i accordance with the present invention.
  • Figure 6 is a flow chart which shows at a hig level the control of the data queues (virtual FIFOs 406, 408 and 410).
  • DMA controDer 404 and the software running on host processor 126 jointl control the virtual FIFOs (data queues) 406, 408 and 410 (shown in Figure 4).
  • tHe host software (not shown) runnin on host processor 126 sets up (i.e., initializes) the data queue (virtual FIFO) drivin peripheral device 401, as indicated by a step 604.
  • the host software sets u DMA controller 404, as indicated by a step 606.
  • a step 608 the host software instructs DMA controller 404 to use the dat queue.
  • certain data queues as discussed below, are assigned t particular processes.
  • the host software knows which data queue to use for particular process. However, as indicated above, a single virtual FIFO can be use for multiple processes.
  • a step 610 host processor 126 places data in the data queue that the hos software has instructed to be used.
  • the data queue being used for the discussion below is virtua FIFO(2) 408.
  • the associated control block for virtual FIFO(2) 408 i memory block 442.
  • the discussion below applies to any virtual FIF and not just virtual FIFO(2) 408.
  • Host processor 126 changes the end address in control addresses memor block 442 for data queue 408, this change is indicated by a block 612: DM controller 404 then reads the new end address placed by the digital processor 126 int the control addresses memory block, as indicated by block 614. DMA controller 40 then reads commands and parameters from data queue 408. This step is indicate by a block 616.
  • DMA controller 404 writes a new start address in the control block 44 each time it reads a block of data from virtual FIFO 408. Note that the DM controller writes the new start address each time a block of data has been read. (Se Figure 8 for start address pointer strategy.) This is important in connection wit context switching, discussed below. This step of writing a new start address i indicated by a block 618.
  • DMA controller 404 snoops the end address present in the contro block of virtual FIFO 408. This is indicated by path 424 of Figure 4. This step in Figure 6 is indicated by a step 620. DMA controller 404 reads the end address in the memory block if it determines that it has been modified. As discussed below, this allows for context switching to occur on a relatively fast basis.
  • host processor 126 can place data into the data queue being used if there is space in the data queue. This indicated by a block 622, in Figure 6. It is important to note that the host processor can place data at any time into the data queue. This increases systems throughput and response time. It also acts to reduce latency. At any time, DMA controller 404 can remove data from the data queue being used as long as there is data available in the data queue. This is indicated by a block
  • peripheral device 401 can be provided with data from its associated data queue as long as there is data available. This acts to reduce latency.
  • FIG. 5 a preferred data structure for the data queues (virtual FIFOs) is shown.
  • FIG 5A it shows that the data (labeled valid data) in the data queue begins at a memory location indicated by the start address, and ends at a higher numbered memory location indicated by the end address.
  • the start address is indicated by a reference number 502
  • the end address is indicated by a reference number 504.
  • the start of data is indicated by a reference number 506, and the. end of data is indicated by a reference number 508.
  • the data is written in queue addresses beginning with a low address and going to a high address.
  • the DMA controller reads data starting at the start address, as indicated by a reference numeral 510.
  • host processor 126 adds data to the data queue beginning at end address 504, as indicated by a reference numeral 512.
  • the amount of valid data contained in the data queue and the physical location of this data is such that the data does not have to wrap around to the beginning of the data queue. In other words, the valid data does not extend over the top of the queue.
  • Figure 5B illustrates an example where the data wraps to the beginning of the data queue.
  • start address 502 indicates that the start of the data is at a mid address in the data queue. This typically occurs after DMA controller 404 has read data out of the data queue. The valid data beginning at the summary location indicated by the start address 502 is written to the top of the queue, which has the high address for the queue. Since there is more valid data than can be accommodated, the additional data is written into the data queue beginning at the low address, and continuing up to the end of data, as indicated by the end address 504. It is thus seen in the example, that the data is wrappe around.
  • This wrap around approach allows for host processor 126 and the DM controller 404 to read data into and write data out of, respectively, the data queue a any time, as discussed above in connection with step 622 and 626.
  • DMA controlle 404 has logic incorporated to handle the queue wrap around addressing.
  • the present invention also can accommodat other software data structures for the virtual FIFOs.
  • the start addres and end address approach of Figure 5 could be utilized in a situation where the data i written from the high address to the low address, as opposed to the low address to th high address as shown in the example. In this way, the data would wrap around a the bottom as opposed to wrapping around at the top, as shown in the example a Figure 5B.
  • the important concept is the use of the start address 502 and the en address 504 indicating, respectively, the start of data and the end of data in the dat structure of the data queue (virtual FIFO).
  • start pointer (indicated by the start address 502) reache the top of the data queue, it is reset to the bottom of the data queue before the nex data entry can be made into the data queue.
  • the data queue wraps around to th bottom after reaching the top.
  • each process being run by the host software may have its own virtua FIFO (data queue). Thus, each process is not affected by the other processes.
  • context memory blocks 412, 414 and 416 located i main memory 102 hold state information associated with a context (process). Not that only three context memory blocks are shown. This is for illustration only. Th present invention contemplates allocating any number of context memory blocks i main memory 102.
  • a context When a context is switched the current context is read out of th virtual FIFO and stored in a context memory block 421. Subsequently, anothe context is loaded from memory into that particular virtual FIFO.
  • the virtual FIFO (data queue) is swapped when a context switch i performed by the host software operating on the digital processor 126.
  • thi does not necessarily have to take place. For example, if two processes are associate with the same data queue, such a swap would not take place.
  • An instruction in th data stream would signal the hardware to synchronously switch contexts.
  • a preferred embodiment would not flush the virtual FIFO. Instead, it would just continue reading the data stream. All the instructions ahead of the switch instruction would complete there operations. Subsequently, a set of instructions would be sent down the pipeline to start saving contexts as the different stages become idle. These operations are all synchronous.
  • the present invention does not require that the data queues be swapped in order for context switehing to be performed.
  • the hardware FIFO discards any data remaining in it when the context is switched. This can be done by the present invention since the data that is being discarded from hardware FIFO 402 is still in the virtual FIFO (data queue) associated with the process.
  • This architecture of the present invention reduces the amount of state information which must be saved during context switches.
  • This functionality of the present invention is accomplished as follows.
  • DMA controller 404 keeps (stores and maintains) two pointers associated with the start address. The first pointer (fetch pointer) specifies the memory location of the next data item in the data queue being used which is to be loaded into the data FIFO 402.
  • DMA controller 404 also keeps a start pointer (start pointer), which specifies the memory location of the data item in the data FIFO 402 which is next to be read out to peripheral device 401 via a path 418.
  • DMA controller 404 allows hardware FIFO 402 to be flushed (that is, any data remaining in the hardware data queue 402 is discarded) when a context switch has been requested without reading the data remaining in hardware FIFO 402 into another memory buffer (not shown), or actually writing it back into the data queue of main memory 102. This acts to significantly decrease latency and system memory bandwidth during context switehing in accordance with the present invention.
  • the end address written into memory holds the end of the data actually consumed by hardware FIFO 402. In other words, the end address written into memory is not the address of the last data item that was read into the hardware data FIFO 402.
  • DMA controller 404 is loaded with the start pointer which holds the last unused data item that was read out to peripheral device 401.
  • the context (processes) are stored in the context memor locations 412, 414 and 416 when not in use.
  • the context may be copied, and restored from system memory buffer (Context No. 1-3), where they are stored when not in use.
  • the buffers hold enoug data to restart an interrupted context.
  • Each process may have one or more context which may be swapped.
  • the context is saved when an acceptable point in the dat has been reached.
  • Peripheral devices 401 often require that certain sets of data be used togethe and that the context of the device may not be swapped unless the whole packet o data is received and handled in some way by the peripheral. If there ar requirements of this type, the DMA device or the DMA controller will need to examin the output of the hardware FIFO to determine when context of the peripheral devic may be switched.
  • DMA controller 404 provides two signaling mechanisms in accordance with th present invention. As shown in Figure 4, these are provided by path 430 from DM controller 404 to the digital processor 126.
  • the first signaling mechanism provided by the DMA controller 404 i interrupts.
  • the second is status, which is poling (reading a status register an testing the contents) by host processor 126 of the DMA controller 404.
  • host processor 126 may enter a "signal" primitive int the data queue which generates an interrupt to the digital processor 126. Hos processor 126 may use this primitive to synchronize the software to operations i the hardware.
  • the FIFO pointers shown in Figure 5 used in the present invention are jointl managed by host processor 126 and DMA controller 404. It should be noted tha these pointers do not have to be exactly current in accordance with the presen invention. System efficiency will be higher if the pointers are updated only whe necessary. The present invention contemplates and takes advantage of this. No that the sizes of the virtual FIFOs in the system memory 102, and the data FIF (hardware) 402 and the amount of data required for proper operation of th peripheral device 401 must be taken into account when controlling these pointers. Host processor 126 initializes start address 502, but manages end addres
  • DMA controller 404 initializes end address 504, but manages start address 502
  • the host processor 126 is the writer of the start address
  • th peripheral processor 401 or DMA controller 404 is the reader.
  • the peripheral processor 401 (or DMA controller 404) is the writer of the end address, while the host processor 126 is the reader.
  • the reader of the particular pointer may read it. This is important for control in the present invention.
  • the start address pointer strategy is as follows:
  • the start address is updated if the amount of data left in the virtual FIFO is less than the maximum increment which is fetched from the virtual FIFO in a transaction, as indicated by a block 802. This keeps the memorybandwidth efficient. 2.
  • the start address is updated if the context is switched, as indicated by a block 804; 3
  • the start address is updated if the data FIFO (queue) 402 is empty, as indicated by a block 806;
  • the start address is updated if the amount of data read from the data FIFO (queue) 402 since the last time the start address was updated is large (for example, one quarter of the depth of the data queue), as indicated by a block 810.
  • the start address can be updated.
  • the host processor might request an update if the virtual FIFO is empty and the start address pointer was pointing at a address that is different from the address of where the host processor has started loading the data.
  • the end address pointer strategy is as follows:
  • the end address is not updated if only part of an indivisible operation has been entered into the virtual FIFO (queue) in memory, as indicated by block 702. This prevents the peripheral device 401 from starting an indivisible operations) in the middle. In other words, if the end pointer can only point to the end of indivisible operations, DMA 404 will not feed operations which are not complete to peripheral 401. This strategy also prevents system lock- up if the writing process in the digital processor
  • the end address is written into the memory block (updated) if (1) the stream of data is complete, as indicated by a block 704; or (2) if a large block of data (for example, one-fourth of the depth of the data queue has been written into the virtual FIFO since the last time the en address was updated as indicated by a block 706. 3. If virtual FIFO is full (no space available) then the end address pointe is updated so that the hardware can do maximum
  • the end address should always be updated so divisible operations to the hardware ar maintained between the start and end pointers.
  • host processor 126, DMA controller 404, an hardware FIFO 402 can all physically be present on a single microelectronic devic 900, as indicated in block diagram form in Figure 9.
  • the variou data and control lines between these three functional blocks can be fabricated a part of the single microelectronic device, and an input/output stage can provide th necessary control and data paths between these three functional blocks and mai memory 102, peripheral device 404, and the like. It should be understood that any suitable type of fabrication technology an process can be used for implementing this alternate embodiment of the presen invention.
  • DMA controller 404 can be used to control two or more channels. Referrin now to Figure 10, DMA controller 404 can control n channels, where n is a positiv integer > than 2. Each channel has an associated peripheral device 401 n . Eac peripheral 40 l n has an associated hardware FIFO n, which is filled up from mai memory 102 (or other memories) under control of DMA controller 404.
  • hardware FIFOs n in this embodiment can eithe be part of a single microelectronic device which also has DMA controller 404, or ca be physically separated from DMA controller 404.
  • This embodiment is particularly useful in a situation where multiple periphera devices, for example, are being used to store very large amounts of data under contro of a single DMA controller 404. It could also be useful in a graphics processo situation where the graphics processor would be capable of operating on two or mor processes (context) or multiple communications channels (e.g., multiple networ interfaces) at the same time.
  • DMA controller 404 is controlled by host processor 126, and also by a second hos processor 1126.
  • host processor 1126 is comparable to the host processor 126.
  • each host processor is controlling its own system memory: system memory 102 for host CPU 126, and a system memory 1102 (not shown) for host CPU 1126.
  • Data from each of these memories in the virtual FIFOs in these memories is provided to the (hardware) data FIFO 402 by lines 426 and 1126, respectively.
  • hardware FIFO 402 can be supplied with data under control of each of the host CPUs 126 and 1126.
  • any control scheme can be utilized between host CPU 126 and host CPU 1126 so that they are not asking DMA controller 404 and hardware FIFO 402 to operate on their data at the same time.
  • FIG. 11 An alternate embodiment associated with Figure 11 is to have host CPU 126 being provided with data directly by another host CPU (not shown). This would be particularly advantageous in a graphics situation where the other host CPU would be working on or retrieving data for host CPU 126 in a background mode. This data would then be provided to host CPU 126 after it had been generated, or had been fetched. • Thus, it should be understood that the present invention contemplates embodiments utilizing two or more host CPUs, either directly controlling DMA controller 404, or cascaded with respect to each other.
  • the present invention also contemplates an embodiment where a single digital processor having a single host CPU 126 controls two or more DMA controllers with associated (hardware) data FIFOs.
  • An example of this embodiment is shown in block diagram form in Figure 12. As shown, there are two DMA controllers: DMA controller 404 and DMA controller 1204. [Note, the numbering convention used in Figure 12 indicates similar block diagrams and lines by the same right two-most digits; for example, DMA controller 1204 is similar in structure and operation to the DMA controller 404.]
  • a single host processor 126 can control the operation of two peripheral devices 401 and 1201, each under control of its respective DMA controller 404, 1204.
  • DMA controller 404 can keep track of these streams of data in the single hardware FIFO using either tags or other identification strategy.
  • the present invention contemplates an embodiment where hardware FIFO 402 is provided with two or more streams of data, as opposed to being limited to only those embodiments where each hardware FIFO only has a single stream of data. Tagging or other suitable identification can be used by DMA controller 404 to identify from which stream the particular data has come.
  • the main memory 102 is the main memory of the digital processor.
  • the present invention can also be utilized in situations where there is no direct access to the main memory 102.
  • An embodiment which allows the present invention to be implemented where direct access to the main memory 102 is not possible is shown in Figure 13.
  • a buffer (also denominated a dual ported memory) 102 has one port connected directly to the VO bus 110.
  • the host CPU 126, DMA controller 404 and the hardware FIFO 402 (all of which are not shown in Figure 13) obtain access to the virtual FIFOs, and the associated control addresses via the lines indicated by the series 400 numbers.
  • buffer 102 could be a single ported memory, where both the host processor and DMA controller 404 could gain access to the data and other information stored in it.
  • the preferred embodiment is that of a dual ported memory.
  • This embodiment, shown in Figure 13, is particularly advantageous in some personal computer environments. In such situations, the present invention is sitting on I/O bus 1110, but cannot be a bus master. For example, on the IBM AT Class personal computer machines, there is no direct memory access by peripherals, other than the standard internal DMA controller which does not support the virtual FIFO functionality, like there is on some of the newer, more robust architectures. The present invention therefore can overcome this deficiency without modification to the PC machine itself.
  • the present invention allows for relatively rapid swapping of peripheral device contexts. It also presents the appearance of multiple FIFOs to the host software.
  • the software generating the data to be presented to peripheral device 401 need not be concerned that other devices are also using peripheral device 401.
  • Multiple "client” processes can time multiplex the use of a hardware peripheral device 401, but continue to create data and commands and place them into their "virtual FIFO's" until the virtual FIFO's are full.
  • the present invention allows very large data queues to be created with very modest hardware cost and with very modest use of memory bandwidth.

Abstract

A system and method for queuing, control and transfer of data between a host processor and a peripheral processor using an architecture and a data flow strategy of one or more virtual FIFO data structures stored in main memory and a hardware FIFO under control of the host and peripheral processors. One virtual FIFO at a time drives the data FIFO with data. In turn, the data FIFO drives a peripheral device with this data. The host software running on the digital processor controls the loading of data for each process (context) into its associated virtual FIFO. The host processor controls the operation of the peripheral processor and the virtual FIFOs. The peripheral processor controls the flow of data from the data FIFO to the peripheral device, and under control of the host software, the flow of data from the driving virtual FIFO to the data FIFO. Start and end address pointers for each virtual FIFO stored in associated memory block indicate the memory location in the virtual FIFO where data is stored. The peripheral processor also keeps a start address pointer of the memory location of the last unused data then read out of the data FIFO to the peripheral device. These address pointers allow the hardware FIFO to be flushed when a context switch occurs, which can take place before all of the data in the driving virtual FIFO is supplied to the data FIFO, and supplied by the data FIFO to the peripheral device. A strategy for updating the address pointers improves effective memory bandwidth. The present invention allows for main memory latency, minimizes main memory bandwidth utilization, allows for relatively fast context switching, and reduces hardware cost because the storage capacity of the hardware FIFO is small relative to the storage capacity of each virtual FIFO. Total storage capacity of each virtual FIFO, data FIFO combination is large, and the hardware data FIFO can be fast, which reduces latency.

Description

DESCRI PT ION
VIRTUAL FIFO PERIPHERAL INTERFACE. SYSTEM AND METHOD
BACKftROIIND OF THE TTSTVENTION
1. Field of the Invention
The present invention relates generally to the queuing, control and transfer of data between a host processor and a peripheral processor, and more particularly, to first-in-first-out (FIFO) systems and methods between a host processor and a peripheral processor.
2. Related Art
While input/output historically has been the orphan of computer architecture, it is absolutely critical to the performance of any traditional class of computers: mainframe, minicomputer, workstation, file server, and personal computer. As stated by John L. Hennessy and David A. Patterson in their seminal book Computer Architecture A Quantitative Approach, Morgan Kaufrnann Publishers, Inc., Palo Alto, California, U.S.A., 1990, p. 499 (which is incorporated herein by reference): A computer" without I/O devices is like a car without wheels - you can't get very far without them. And while CPU time is interesting, response time - the time between when the user types a command and when she gets results
- is surely a better measure of performance. The customer who pays for a computer cares about response time, even if the CPU designer doesn't. Finally, as rapid improvements in CPU performance compress traditional classes of computers, it is I/O that serves to distinguish them.
"Smart" peripheral devices have internal processing functionahty. Such smart peripheral devices often require streams of instructions and data. Referring now to Figure 1, the architecture of conventional smart peripheral devices is shown. The streams of instructions and/or data may either be held in one or more specific data structure(s) 101 in a main memory 102, or in a separate (deep) hardware memory, which in conventional systems is usually a FIFO located in an I O controller (such as 106, 112, or 134) associated with (or part of) the I/O or peripheral device.
In the example shown in Figure 1, there are three so-called peripherals that are shown for purposes of illustration. The first peripheral, which is designated generally by a reference numeral 130, is made up of an input output (I O) controller 106, a disk drive 104, and a disk drive 108. I/O controller 106 may or may not contain internal processing functionality in the form of a peripheral processor (CPU) or peripheral controller (not shown).
The second peripheral is designated generally by a reference numeral 132.
Second peripheral 132 is made up of an I/O controller 112 and a graphics output 114, which typically is a cathode ray tube (CAT) display or a frame buffer, but can be any suitable graphics output device. Like I O controller 106, I/O controller 112 may or may not have internal processing functionality.
The third peripheral is designated generally by a reference numeral 134. Third peripheral 134 is made up of an I/O controller 116 and a network 118. Like VO controller 106, VO controller 116 may or may not have internal processing functionality. First peripheral 130, second peripheral 132, and third peripheral 134 can either receive data and instructions from digital processor 126, receive instructions from and send read data to the digital processor 126, or receive instructions from and send to and receive data from the digital processor 126.
In the conventional system and method of Figure 1, the data and instructions are received from main memory 102 via a CPU-memory bus 122 and a bus adapter 120 to an I O bus 110.
The architecture of Figure 1 can also be applied to systems with multiple memory devices 101 and/or I/O buses 110.
Figure 2 shows another conventional architecture and method, where the peripherals are connected directly to cache 124. Specifically, I/O controllers 106, 112 and 116 are connected via the VO bus 110 and bus adapter 120 and a bus 204 to cache 124, which is connected to CPU- memory bus 122, and to CPU 126 via a translation look aside buffer (TLB) 202. Like the conventional system of Figure 1, the streams of instructions and data for the peripherals in the system of Figure 2 may be placed in a deep hardware buffer such as a FIFO as part of the I/O controller, or as a software data structure stored in main memory 102.
A conventional system and method for transferring data between a digital processor and a peripheral processor utilizing virtual direct memory access (DMA) is shown in block architectural form in Figure 3. The virtual DMA requires a register for each page to be transferred in a DMA controller 302, showing the protection bits and the physical page corresponding to each virtual page. Address-translation registers 304 connect DMA 302 to CPU-memory bus 122.
Note that the architecture in Figure 3 (and for that matter Figures 1 and 2) can also be implemented without an I/O bus 110. The peripheral could be directly connected to DMA 302, and in turn, directly connected to CPU-memory bus 122. The architectures shown in Figures 1, 2, and 3 are illustrative only, and are not intended to represent a detailed discussion of computer architectures in general.
Regardless of whether the instructions and/or whether the streams o instructions and data are held in the software FIFO data structure 101 of main memory 102, or are placed in a hardware FIFO buffer, there is a trade-off as to the depth of the FIFO of these conventional systems. The software specific data structure approach is slow since the streams of instructions and data must be sent over CPU-memory bus 122 via bus adapter 120 to VO bus 110. The hardware FIFO buffer approach is faster. However, a deep hardware
FIFO is expensive, especially in a computer system using a high clock rate. As is well-known, higher clock rates are constantly being used for the host processor 126 to improve system performance and increase system functionality.
Regardless of which of the conventional systems of Figures 1, 2 and 3 is used for the instruction and data path between the digital processor (CPU) 126 and the peripheral processors found in the I/O controllers 106, 112, and 116, some type of FIFO system must be used, either the specific data structure(s) 101 stored in main memory 102 or a deep hardware FIFO buffer.
To reduce latency, it is advantageous that as much of the instructions and data that will be needed by the peripheral processor be present in the FIFO. Thus, a conventional strategy for reducing latency is to create a larger (also called a "deeper") FIFO.
However, the use of a deeper FIFO approach means that more instructions and/or data must be dealt with before the stream of instructions and/or data can be switched to another stream of instructions and/or data. Such a switch in the streams of instructions and data is called a "context switch." In other words, all of the instructions and/or data in the FIFO must be dealt with by the VO controller 106, 112, 116 before the stream of instructions and/or data being provided to the I/O controller 106, 112 or 116 is context switched. This has the effect of increasing latency because of the extra time that is taken before the context switch can take place between streams of instructions and/or data.
One conventional approach for reducing latency is to make the FIFO shallow. This means that less instructions and/or data must be dealt with before the stream of instructions and/or data can be context switched. However, the use of a shallow FIFO means that the FIFO must be serviced more often. This increased servicing consumes additional bandwidth and CPU overhead (for checking the state of the FIFO), which is not desirable.
Thus, it would be advantageous to provide a system and method whereby the streams of instructions and/or data between a digital processor and a peripheral processor can be context switched quickly, is inexpensive to implement, minimizes impact on system latency, and reduces memory bandwidth requirements.
SUMMARY OF THE INVENTION
The present invention is a system and method which utilizes a shallow hardware FIFO along with system memory to reduce the cost of the FIFO hardware, to allow relatively fast context switches, and to decrease latency and memory bandwidth requirements.
In broad terms, the present invention is a system and method for queuing, control and transfer of data between a host processor and a peripheral processor using an architecture and a data flow strategy of one or more virtual FIFO data structures stored in main memory and a hardware data FIFO (which typically is physically located on the same chip or circuit board with the peripheral processor) under control of the peripheral processor. One virtual FIFO at a time drives the data FIFO with data. In turn, the data FIFO drives a peripheral device with this data. As employed herein the term "drives" is used to mean supplying data to a device. Thus driving the data FIFO means supplying or passing data to the data FIFO:
The host software running on the digital processor controls the loading of data for each process (context) into its associated virtual FIFO. The digital processor under control of the host software and system software (or firmware) controls the operation of the peripheral processor and the virtual FIFOs. The peripheral processor controls the flow of data from the data FIFO to the peripheral device, and under control of the host software, the flow of data from the driving virtual FIFO to the data FIFO. Start and end address pointers for each virtual FIFO (stored in main memory in an associated memory block) indicate the memory location in the virtual FIFO where data is stored. The peripheral processor also keeps a start address pointer of the memory location of the last unused data then read out of the data FIFO to the peripheral device. These address pointers allow the hardware FIFO to be flushed when a context switch occurs, which can (and usually does) take place before all of the data in the driving virtual FIFO is supplied to the data FIFO, and supplied by the data FIFO to the peripheral device. A strategy for updating the address pointers improves effective memory bandwidth. The present invention allows for main memory latency, reduces main memory bandwidth utilization, allows for relatively fast context switching, and reduces hardware cost because the storage capacity of the (hardware) data FIFO is small relative to the storage capacity of each virtual FIFO. Total storage capacity of each virtual FIFO, data FIFO combination is large, with the added benefit that the hardware data FIFO can be fast, which reduces latency. Moreover, context switching is relatively fast because it can be done by changing address pointers and by dumping the contents of the hardware FIFO.
BRIEF DESCRIPTION OF THE DRAWINGS
The present invention is better understood with reference to the following drawings and the specification.
Figure 1 is a block architectural diagram of a conventional interface of VO devices and an VO bus with a CPU-memory bus. Figure 2 is a block diagram of a conventional interface of the I/O connected directly to the cache.
Figure 3 shows in block architectural form a conventional digital processor and peripheral processor system having virtual direct memory access, which requires a register for each page to be transferred in the DMA controller. Figure 4 is a block diagram showing at a high level the data flow and control paths of the present invention.
Figure 5 is made up of Figures 5 A and 5B.
Figure 5A shows a preferred virtual FIFO data structure in accordance with the present invention where data does not wrap. Figure 5B shows a preferred virtual FIFO data structure in accordance with the present invention where data wraps to the beginning.
Figure 6 is a flow chart showing at a high level the operation of the digital processor 126 under control of host software with the DMA controller 404 in accordance with the present invention. Figure 7 is a block diagram showing the end address pointer strategy used for updating (or not updating) the end address pointer in order to save bandwidth in both writing and reading of the end address pointer.
Figure 8 is a block diagram showing the start address pointer strategy used for updating (or not updating) the start address pointer in order to save bandwidth in both writing and reading of the start address pointer.
Figure 9 is a block diagram representation showing an alternate embodiment of the present invention where host processor 126, the DMA controller 404, and hardware FIFO 402 are all fabricated on a single (microelectronic device) semiconductor chip 900. Figure 10 is a block diagram showing an embodiment of the present invention where the DMA controller 404 controls n (hardware) data FIFOs, where n is a positive integer greater than or equal to 2, which creates n channels. Figure 11 is a block diagram showing an embodiment utilizing two host CPUs for controlling the DMA controller 404 and the (hardware) data FIFO 402.
Figure 12 is a block diagram of* an alternate embodiment of the present invention using a single host CPU 126 to control two or more DMA controllers with associated (hardware) data FIFOs.
Figure 13 is a block diagram showing an alternate embodiment where a buffer (dual ported memory) is on the VO bus 110 so as to allow the present invention to be utilized with a personal computer product where the VO bus cannot accommodate direct memory access. Figure 14 is a block diagram of an embodiment of the present invention where the hardware FIFO 402, DMA controller 404, and graphics function stage 1402 are all physically part of a peripheral 1400.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
A. General Overview and Terminology
The terms host processor, host CPU, digital processor, master CPU and CPU are often used interchangeably in this field. The term "host processor" is used hereafter with the understanding that other similar terms could be substituted therefor without changing the underlying meaning of the disclosure.
The terms chip, integrated circuit, monolithic device, semiconductor device and microelectronic device are often used interchangeably in this field. The present invention is applicable to all of the above as they are generally understood in the field. the numbering convention is as follows. The right two digits indicate the item number. The left digit or digits indicate the Figure where the item first appears. The same number in each Figure indicates the identical item. Wherever possible, the Figures are discussed in numerical order in the text.
In broad terms, the present invention is a system and method for queuing, control and transfer of data between a digital processor and a peripheral processor using an architecture and a data flow strategy of one or more virtual FIFO data structures stored in main memory and a hardware FIFO (which typically is physically located on the same chip or circuit board with the peripheral processor) under control of the peripheral processor. One virtual FIFO at a time drives the hardware FIFO with data. In turn, the hardware FIFO drives a peripheral device with this data. The host software running on the digital processor controls the loading of data for each process (context) into its associated virtual FIFO. The host processor under control of the host software controls the operation of the peripheral processor and the virtual FIFOs. The peripheral processor controls the flow of data from the hardware FIFO to the peripheral device, and under control of the host software, the flow of data from the driving virtual FIFO to the hardware FIFO.
As employed herein the term "context" is defined as the current state of processor. In a CPU the context of that processor would be, for example, th contents of the register files, contents of the status registers, and the current state o the error flags. In the case of a smart peripheral the context attributes might includ any attributes that have been set and at what point in its pipeline those attribute have been set. Thus, context switching entails switching the states of the differen processes currently running on the computer system employing the presen invention. In other words, the states of one process are saved and switched with th states of another process inside the driving virtual FIFO .
For illustration purposes, consider a workstation that has a number o windows currently opened. Each window has its own context. Thus, when the use wants to switch between windows the workstation must save the context associate with the first window and switch to the context of the second window. As indicated above, control and transfer of data between a digital processo and a peripheral processor can be accomplished with only one virtual FIFO for all processes. Moreover, the present invention can be implemented with one virtua FIFO assigned to multiple processes. The hardware configuration of the presen invention does not restrict the use of one virtual FIFO. Start and end address pointers for each virtual FIFO (stored in main memor in an associated control block) indicate the memory location in the virtual FIFO where information is stored. The peripheral processor also keeps a start address pointer of the memory location of the last unused data read out of the hardware FIFO to the peripheral device. These address pointers allow the driving virtual FIFO to be flushed when a context switch occurs, which can take place before all of the data i the driving virtual FIFO is supplied to the hardware FIFO, and supplied by the hardware FIFO to the peripheral device. A strategy for updating the address pointers improves system efficiency.
The present invention allows for the latency associated with main memory, reduces main memory bandwidth utilization, allows for relatively fast context switching, and reduces hardware cost because the storage capacity of the hardware FIFO is small relative to the storage capacity of each virtual FIFO. Total storage capacity of each virtual FIFO, hardware FIFO combination is large, and the hardware FIFO can be fast, which reduces latency. Context switching is relativel fast because it can be done by changing pointers and by dumping the contents of the hardware FIFO.
The present invention is envisioned as being included in a very large scale integrated (VLSI) graphics processor (of the type used with the second peripheral 132). However, it should be understood that the present invention can be used i many other application as well.
Referring now to Figure 4, which is a block diagram showing the control and data flow of the present invention. Main memory 102 includes a set of queues known as virtual FIFOs. Three virtual FIFOs are shown for purposes of illustration: they are virtual FIFO(l), which is referred to by reference number 406; a virtual FIFO(2), which is referred to by reference number 408; and a virtual FIFO(3), which is referred to by reference number 410. It should be understood that the present invention contemplates one or more virtual FIFOs located in main memory 102.
The virtual FIFOs located in main memory 102 are used to drive a peripheral device, referred to generally by a reference number 401. This driving by the data from the virtual FIFO in question takes place through a hardware FIFO 402. It should be noted that the virtual FIFO's can be incorporated into any dedicated memory (e.g., a 2-port memory on an VO card).
Any type of peripheral device 401 can be used by the present invention. In the preferred embodiment, the peripheral device is a graphics processor having a frame buffer (not shown). Alternately, the peripheral device 401 could be a disk drive 104, or a network 118, or any other output device.
The DMA controller is part of peripheral subsystem 132. It may or may not have internal processing functionality. It should be noted that DMA controller 404 may be part of peripheral 132 (as shown in Figures 1, 2, and 3) or may be a separate peripheral device.
DMA controller 404 is under the control of software (not shown) or firmware (not shown) running on the host processor 126. The software or firmware control allows host processor 126 to efficiently provide data and instructions to peripheral device 401 in accordance with the present invention. This control is via a path 428 effectively between host processor 126 and DMA controller 404. This path will depend upon the architecture of the system, such as those shown in Figures 1, 2 and 3.
Data FIFO 402 is the hardware FIFO referred to above. Data FIFO 402 is typically part of peripheral 132. It can be a separate hardware FIFO made up of one or more integrated circuits (ICs), which are part of the board including VO controller 112. In its preferred form, hardware FIFO 402 is a modest sized on-chip hardware data FIFO, which is part of the VLSI graphics processor (not shown). Any conventional fabrication process can be used for building hardware FIFO 402 either separately on a chip, or as part of a larger chip having additional subsystems and functionality. The size of the hardware FIFO depends on a variety of system criteria. For example, if the hardware FIFO was 16 words (4 bytes each) deep, then the virtual FIFO's should be 512 bytes, which should be adequate for lower performance 2D applications. For more complex 3D operations the virtual FDTO's could be, for example, 8K bytes. In addition, hardware FIFO 402 in a preferred embodiment holds two of the largest divisible operations capable of being performed by peripheral 401. However, the exact constraints of hardware FIFO 402 depend on the latency of mai memory. At any time in the operation of the present invention, only one of virtua
FIFOs 406, 408 or 410 is used to drive peripheral device 401 using hardware FIFO 402. For a given hardware FIFO 402, the host processor can "compute ahead" an generate data for large virtual FIFO without waiting until it actually has access to the hardware. Moreover, the host processor need not "poll" the pointers constantl to know if it has the necessary space. Thus, two very significant advantages are achieved by the system and method of the present invention: a reduction in latency, and a minimization of hardware in the use of the bandwidth of main memory 102.
The example of the present invention shown in Figure 4 has a DMA controlle 404. It should be understood that this representative example of the presen invention envisions a larger host processor and peripheral processor architecture o the type shown in Figure 3. Specifically, referring again to Figure 3, DMA controller 404 would be a combination of I/O controller 112, and DMA 302 and the address- translation registers 304.
Figure 14 shows a block diagram of an embodiment of the present invention. A peripheral 1400 includes hardware FIFO 402, DMA controller 404, and a graphics functions stage 1402, all of which are physically part of the peripheral 1400. Note that DMA can optionally include a virtual memory management unit (VMU) 1404, i desired. Also note that all of these components can be physically located on the same chip as the CPU. The present invention is also equally applicable to the architectures shown in
Figures 1 and 2. Specifically, DMA controller 404 with reference to the architecture shown in Figure 1 could be part of the VO controller 112, so that the data that is supplied by host processor 126 would come from the main memory 102 via CPU- memory bus 122, bus adaptor 120, and VO bus 110. Alternately, the present invention could utilize the architecture of Figure 2.
Specifically, DMA controller 404 could be part of I/O controller 112. The data from main memory 102 could be supplied by bus adaptor 120 and I/O bus 110.
What should now be appreciated is that the present invention can be utilized with any of the computer architectures shown in Figures 1, 2 and 3. The present invention could also be utilized with any other computer architecture which would permit the use of virtual FIFOs in a system memory 102 or special VO memory.
Referring now to Figures 3 and 4, it should be understood that DMA controller 404 may also include a virtual memory management unit (VMU; not shown), i desired. Referring now to Figure 4, DMA controller 404 reads the (software) virtual FIFO that is being used to drive hardware FIFO 402. DMA controller 404 passes commands and data from the virtual FIFO that is driving hardware FIFO 402 so that the commands and data are received by peripheral device 401. Moreover, DMA controller 404 provides status information and interrupts via a path 430 between it and host processor 126. Path 430 on a physical level will depend upon the computer architecture of the types as shown in Figures 1, 2 and 3 that is used.
One of the important aspects of the present invention is that the queues contained in virtual FIFOs 406, 408 and 410 can be switched when the peripheral context is switched. The ability to switch between two or more contexts in a peripheral is becoming increasingly important as the functionality of the computer system and the peripheral increase. For example, windowing systems used in graphics processors will include two or more contexts. In other words, each window that is present in the peripheral is a separate context. The present invention can easily accommodate the context switching so that it is done relatively fast and efficiently.
The context switching or "swaps" of the present invention are under control of higher level software that is operating on the digital processor 126. Any application which requires a smart peripheral which is programmed with software has the potential of passing data, and thus, would benefit from the present invention. An example of such an application would be window system software.
B. Memory Address Snooping
Referring again to Figure 4, each virtual FIFOs 406, 408 and 410 has an associated FIFO control block. Specifically, virtual FIFO 406 has a FIFO control block 440, virtual FIFO 408 has a FIFO control block 442, and virtual FIFO 410 has a FIFO control block 444. The control blocks 440, 442 and 444 are located in main memory 102, but could also be located in any available memory location in the host processor system. As is discussed in greater detail below, host processor 126 (or any other processor that is controlling the peripheral device 404; not shown) periodically writes to the memory control block of the virtual FIFO that is being used to drive the peripheral device 401.
DMA controller 404 snoops these accesses to the memory blocks by digital processor 126. The word snoop is synonymous with the word monitor. This snooping by DMA controller 404 occurs via a path 424 (labeled "read/snoop address").
When DMA controller 404 detects that host processor 126 has written to the control block of the virtual FIFO that is driving peripheral device 401, DMA controller
404 updates the end address, as discussed below. Snooping is not required if the host processor writes directly into DMA 40 registers, as opposed to writing into the virtual FIFO's control block. In addition snooping can also be disabled if data is written directly into hardware FIFO 402 b the host processor.
C. Virtual FIFOs
Figure 5 illustrates a preferred virtual FIFO 406, 408, 410 data structure i accordance with the present invention. Figure 6 is a flow chart which shows at a hig level the control of the data queues (virtual FIFOs 406, 408 and 410). Once agai note that DMA controDer 404 and the software running on host processor 126 jointl control the virtual FIFOs (data queues) 406, 408 and 410 (shown in Figure 4).
Specifically, as indicated in block 602, tHe host software (not shown) runnin on host processor 126 sets up (i.e., initializes) the data queue (virtual FIFO) drivin peripheral device 401, as indicated by a step 604. Next, the host software sets u DMA controller 404, as indicated by a step 606.
In a step 608, the host software instructs DMA controller 404 to use the dat queue. In the usual case, certain data queues, as discussed below, are assigned t particular processes. The host software knows which data queue to use for particular process. However, as indicated above, a single virtual FIFO can be use for multiple processes.
In a step 610, host processor 126 places data in the data queue that the hos software has instructed to be used. For purposes of illustration, and referring agai to Figure 4, assume that the data queue being used for the discussion below is virtua FIFO(2) 408. Note that the associated control block for virtual FIFO(2) 408 i memory block 442. Also note that the discussion below applies to any virtual FIF and not just virtual FIFO(2) 408.
Host processor 126 changes the end address in control addresses memor block 442 for data queue 408, this change is indicated by a block 612: DM controller 404 then reads the new end address placed by the digital processor 126 int the control addresses memory block, as indicated by block 614. DMA controller 40 then reads commands and parameters from data queue 408. This step is indicate by a block 616.
Next, DMA controller 404 writes a new start address in the control block 44 each time it reads a block of data from virtual FIFO 408. Note that the DM controller writes the new start address each time a block of data has been read. (Se Figure 8 for start address pointer strategy.) This is important in connection wit context switching, discussed below. This step of writing a new start address i indicated by a block 618.
Finally, DMA controller 404 snoops the end address present in the contro block of virtual FIFO 408. This is indicated by path 424 of Figure 4. This step in Figure 6 is indicated by a step 620. DMA controller 404 reads the end address in the memory block if it determines that it has been modified. As discussed below, this allows for context switching to occur on a relatively fast basis. At any time, host processor 126 can place data into the data queue being used if there is space in the data queue. This indicated by a block 622, in Figure 6. It is important to note that the host processor can place data at any time into the data queue. This increases systems throughput and response time. It also acts to reduce latency. At any time, DMA controller 404 can remove data from the data queue being used as long as there is data available in the data queue. This is indicated by a block
624 in Figure 6. Thus, peripheral device 401 can be provided with data from its associated data queue as long as there is data available. This acts to reduce latency.
When there is no data in a particular data queue, the start address and the end address stored in the control block will be the same. Referring now to Figure 5, a preferred data structure for the data queues (virtual FIFOs) is shown. Referring to Figure 5A, it shows that the data (labeled valid data) in the data queue begins at a memory location indicated by the start address, and ends at a higher numbered memory location indicated by the end address. The start address is indicated by a reference number 502, and the end address is indicated by a reference number 504. The start of data is indicated by a reference number 506, and the. end of data is indicated by a reference number 508. As shown, the data is written in queue addresses beginning with a low address and going to a high address.
As discussed below, the DMA controller reads data starting at the start address, as indicated by a reference numeral 510. In contrast, as discussed below, host processor 126 adds data to the data queue beginning at end address 504, as indicated by a reference numeral 512.
In the example shown in Figure 5 A, the amount of valid data contained in the data queue and the physical location of this data is such that the data does not have to wrap around to the beginning of the data queue. In other words, the valid data does not extend over the top of the queue.
Figure 5B illustrates an example where the data wraps to the beginning of the data queue. Referring now to Figure 5B, it is seen that start address 502 indicates that the start of the data is at a mid address in the data queue. This typically occurs after DMA controller 404 has read data out of the data queue. The valid data beginning at the summary location indicated by the start address 502 is written to the top of the queue, which has the high address for the queue. Since there is more valid data than can be accommodated, the additional data is written into the data queue beginning at the low address, and continuing up to the end of data, as indicated by the end address 504. It is thus seen in the example, that the data is wrappe around. This wrap around approach allows for host processor 126 and the DM controller 404 to read data into and write data out of, respectively, the data queue a any time, as discussed above in connection with step 622 and 626. DMA controlle 404 has logic incorporated to handle the queue wrap around addressing.
It should be understood that the present invention also can accommodat other software data structures for the virtual FIFOs. For example, the start addres and end address approach of Figure 5 could be utilized in a situation where the data i written from the high address to the low address, as opposed to the low address to th high address as shown in the example. In this way, the data would wrap around a the bottom as opposed to wrapping around at the top, as shown in the example a Figure 5B. The important concept is the use of the start address 502 and the en address 504 indicating, respectively, the start of data and the end of data in the dat structure of the data queue (virtual FIFO). As stated, when the start pointer (indicated by the start address 502) reache the top of the data queue, it is reset to the bottom of the data queue before the nex data entry can be made into the data queue. The data queue wraps around to th bottom after reaching the top.
As shown in the example of Figure 4, there are three data queues (virtua FIFOs) in main memory 102. This allows for context switching between processe being run by the host software to be performed by the present invention Specifically, each process being run by the host software may have its own virtua FIFO (data queue). Thus, each process is not affected by the other processes.
In this way, relatively fast context switching can be performed by the presen invention because the various processes may put data into their respective dat queues even when the peripheral hardware is servicing another process through th virtual FIFO associated with the process being serviced. This acts to reduce latenc significantly.
Referring to Figure 4, context memory blocks 412, 414 and 416 located i main memory 102 hold state information associated with a context (process). Not that only three context memory blocks are shown. This is for illustration only. Th present invention contemplates allocating any number of context memory blocks i main memory 102. When a context is switched the current context is read out of th virtual FIFO and stored in a context memory block 421. Subsequently, anothe context is loaded from memory into that particular virtual FIFO.
Typically, the virtual FIFO (data queue) is swapped when a context switch i performed by the host software operating on the digital processor 126. However, thi does not necessarily have to take place. For example, if two processes are associate with the same data queue, such a swap would not take place. An instruction in th data stream would signal the hardware to synchronously switch contexts. A preferred embodiment would not flush the virtual FIFO. Instead, it would just continue reading the data stream. All the instructions ahead of the switch instruction would complete there operations. Subsequently, a set of instructions would be sent down the pipeline to start saving contexts as the different stages become idle. These operations are all synchronous. Thus, it should be understood that the present invention does not require that the data queues be swapped in order for context switehing to be performed.
Referring now to Figure 4, the hardware FIFO discards any data remaining in it when the context is switched. This can be done by the present invention since the data that is being discarded from hardware FIFO 402 is still in the virtual FIFO (data queue) associated with the process. This architecture of the present invention reduces the amount of state information which must be saved during context switches. This functionality of the present invention is accomplished as follows. DMA controller 404 keeps (stores and maintains) two pointers associated with the start address. The first pointer (fetch pointer) specifies the memory location of the next data item in the data queue being used which is to be loaded into the data FIFO 402. DMA controller 404 also keeps a start pointer (start pointer), which specifies the memory location of the data item in the data FIFO 402 which is next to be read out to peripheral device 401 via a path 418.
The use of these two start pointers by DMA controller 404 allows hardware FIFO 402 to be flushed (that is, any data remaining in the hardware data queue 402 is discarded) when a context switch has been requested without reading the data remaining in hardware FIFO 402 into another memory buffer (not shown), or actually writing it back into the data queue of main memory 102. This acts to significantly decrease latency and system memory bandwidth during context switehing in accordance with the present invention.
The end address written into memory holds the end of the data actually consumed by hardware FIFO 402. In other words, the end address written into memory is not the address of the last data item that was read into the hardware data FIFO 402.
It should be understood that the cost of this aspect of the present invention is that some data items remain in the virtual FIFO while it is actually in hardware FIFO 402 as well. When the particular process (context) is resumed, DMA controller 404 is loaded with the start pointer which holds the last unused data item that was read out to peripheral device 401.
Note that the pointers associated with a queue are saved when the queues are switched. D. Context Buffer
As discussed above, the context (processes) are stored in the context memor locations 412, 414 and 416 when not in use.
The context may be copied, and restored from system memory buffer (Context No. 1-3), where they are stored when not in use. The buffers hold enoug data to restart an interrupted context. Each process may have one or more context which may be swapped. The context is saved when an acceptable point in the dat has been reached.
Peripheral devices 401 often require that certain sets of data be used togethe and that the context of the device may not be swapped unless the whole packet o data is received and handled in some way by the peripheral. If there ar requirements of this type, the DMA device or the DMA controller will need to examin the output of the hardware FIFO to determine when context of the peripheral devic may be switched.
E. Signaling Mechanisms
DMA controller 404 provides two signaling mechanisms in accordance with th present invention. As shown in Figure 4, these are provided by path 430 from DM controller 404 to the digital processor 126.
The first signaling mechanism provided by the DMA controller 404 i interrupts. The second is status, which is poling (reading a status register an testing the contents) by host processor 126 of the DMA controller 404.
It should be noted that host processor 126 may enter a "signal" primitive int the data queue which generates an interrupt to the digital processor 126. Hos processor 126 may use this primitive to synchronize the software to operations i the hardware.
F. Pointer Control Strategy
The FIFO pointers shown in Figure 5 used in the present invention are jointl managed by host processor 126 and DMA controller 404. It should be noted tha these pointers do not have to be exactly current in accordance with the presen invention. System efficiency will be higher if the pointers are updated only whe necessary. The present invention contemplates and takes advantage of this. No that the sizes of the virtual FIFOs in the system memory 102, and the data FIF (hardware) 402 and the amount of data required for proper operation of th peripheral device 401 must be taken into account when controlling these pointers. Host processor 126 initializes start address 502, but manages end addres
504. DMA controller 404 initializes end address 504, but manages start address 502 In other words, the host processor 126 is the writer of the start address, while th peripheral processor 401 (or DMA controller 404) is the reader. The peripheral processor 401 (or DMA controller 404) is the writer of the end address, while the host processor 126 is the reader. Each time a start address pointer or an end pointer is modified in the control addresses memory block in the system memory 102, the reader of the particular pointer may read it. This is important for control in the present invention.
In order to save bandwidth in both writing and reading of the start and end address pointers, the following strategies discussed below in connection with Figures 7 and 8 can be used in accordance with the present invention: The start address pointer strategy is as follows:
1. The start address is updated if the amount of data left in the virtual FIFO is less than the maximum increment which is fetched from the virtual FIFO in a transaction, as indicated by a block 802. This keeps the memorybandwidth efficient. 2. The start address is updated if the context is switched, as indicated by a block 804; 3 The start address is updated if the data FIFO (queue) 402 is empty, as indicated by a block 806;
4. The start address is updated if the amount of data read from the data FIFO (queue) 402 since the last time the start address was updated is large (for example, one quarter of the depth of the data queue), as indicated by a block 810.
5. If requested by the host processor the start address can be updated. For example, the host processor might request an update if the virtual FIFO is empty and the start address pointer was pointing at a address that is different from the address of where the host processor has started loading the data. The end address pointer strategy is as follows:
1. The end address is not updated if only part of an indivisible operation has been entered into the virtual FIFO (queue) in memory, as indicated by block 702. This prevents the peripheral device 401 from starting an indivisible operations) in the middle. In other words, if the end pointer can only point to the end of indivisible operations, DMA 404 will not feed operations which are not complete to peripheral 401. This strategy also prevents system lock- up if the writing process in the digital processor
126 is suspended before completing the entry into the virtual FIFO (queue).
2. The end address is written into the memory block (updated) if (1) the stream of data is complete, as indicated by a block 704; or (2) if a large block of data (for example, one-fourth of the depth of the data queue has been written into the virtual FIFO since the last time the en address was updated as indicated by a block 706. 3. If virtual FIFO is full (no space available) then the end address pointe is updated so that the hardware can do maximum fetehing.
The end address should always be updated so divisible operations to the hardware ar maintained between the start and end pointers.
It should be understood, however, that the present invention is not limited t this strategy for updating the data pointers. Any suitable strategy for updating th data pointers is contemplated by the present invention.
G. Variations And Alternate Embodiments In The System And/Or Method
In one alternate embodiment, host processor 126, DMA controller 404, an hardware FIFO 402 can all physically be present on a single microelectronic devic 900, as indicated in block diagram form in Figure 9. As shown in Figure 9, the variou data and control lines between these three functional blocks can be fabricated a part of the single microelectronic device, and an input/output stage can provide th necessary control and data paths between these three functional blocks and mai memory 102, peripheral device 404, and the like. It should be understood that any suitable type of fabrication technology an process can be used for implementing this alternate embodiment of the presen invention.
DMA controller 404 can be used to control two or more channels. Referrin now to Figure 10, DMA controller 404 can control n channels, where n is a positiv integer > than 2. Each channel has an associated peripheral device 401n. Eac peripheral 40 ln has an associated hardware FIFO n, which is filled up from mai memory 102 (or other memories) under control of DMA controller 404.
It should be understood that hardware FIFOs n in this embodiment can eithe be part of a single microelectronic device which also has DMA controller 404, or ca be physically separated from DMA controller 404.
This embodiment is particularly useful in a situation where multiple periphera devices, for example, are being used to store very large amounts of data under contro of a single DMA controller 404. It could also be useful in a graphics processo situation where the graphics processor would be capable of operating on two or mor processes (context) or multiple communications channels (e.g., multiple networ interfaces) at the same time.
The present invention also contemplates an embodiment where two or mor digital processors are controlling DMA controller 404. Referring now to Figure 11 DMA controller 404 is controlled by host processor 126, and also by a second hos processor 1126. (Note that the numbering used in Figure 11 shows the corresponding blocks and lines between the two digital processors as indicated by the right two-most digits of the reference number; for example, host processor 1126 is comparable to the host processor 126). Note that as shown in Figure 11, each host processor is controlling its own system memory: system memory 102 for host CPU 126, and a system memory 1102 (not shown) for host CPU 1126. Data from each of these memories in the virtual FIFOs in these memories is provided to the (hardware) data FIFO 402 by lines 426 and 1126, respectively. In this way, hardware FIFO 402 can be supplied with data under control of each of the host CPUs 126 and 1126.
As is well known, any control scheme can be utilized between host CPU 126 and host CPU 1126 so that they are not asking DMA controller 404 and hardware FIFO 402 to operate on their data at the same time.
An alternate embodiment associated with Figure 11 is to have host CPU 126 being provided with data directly by another host CPU (not shown). This would be particularly advantageous in a graphics situation where the other host CPU would be working on or retrieving data for host CPU 126 in a background mode. This data would then be provided to host CPU 126 after it had been generated, or had been fetched. • Thus, it should be understood that the present invention contemplates embodiments utilizing two or more host CPUs, either directly controlling DMA controller 404, or cascaded with respect to each other.
The present invention also contemplates an embodiment where a single digital processor having a single host CPU 126 controls two or more DMA controllers with associated (hardware) data FIFOs. An example of this embodiment is shown in block diagram form in Figure 12. As shown, there are two DMA controllers: DMA controller 404 and DMA controller 1204. [Note, the numbering convention used in Figure 12 indicates similar block diagrams and lines by the same right two-most digits; for example, DMA controller 1204 is similar in structure and operation to the DMA controller 404.]
Thus, a single host processor 126 can control the operation of two peripheral devices 401 and 1201, each under control of its respective DMA controller 404, 1204. As shown in Figure 11, there are two streams of data that are being supplied to hardware FIFO 402: stream 426 and stream 1126. DMA controller 404 can keep track of these streams of data in the single hardware FIFO using either tags or other identification strategy. The present invention contemplates an embodiment where hardware FIFO 402 is provided with two or more streams of data, as opposed to being limited to only those embodiments where each hardware FIFO only has a single stream of data. Tagging or other suitable identification can be used by DMA controller 404 to identify from which stream the particular data has come.
Typically, the main memory 102 is the main memory of the digital processor. However, the present invention can also be utilized in situations where there is no direct access to the main memory 102. An embodiment which allows the present invention to be implemented where direct access to the main memory 102 is not possible is shown in Figure 13. A buffer (also denominated a dual ported memory) 102 has one port connected directly to the VO bus 110. The host CPU 126, DMA controller 404 and the hardware FIFO 402 (all of which are not shown in Figure 13) obtain access to the virtual FIFOs, and the associated control addresses via the lines indicated by the series 400 numbers.
Note that buffer 102 could be a single ported memory, where both the host processor and DMA controller 404 could gain access to the data and other information stored in it. However, the preferred embodiment is that of a dual ported memory. This embodiment, shown in Figure 13, is particularly advantageous in some personal computer environments. In such situations, the present invention is sitting on I/O bus 1110, but cannot be a bus master. For example, on the IBM AT Class personal computer machines, there is no direct memory access by peripherals, other than the standard internal DMA controller which does not support the virtual FIFO functionality, like there is on some of the newer, more robust architectures. The present invention therefore can overcome this deficiency without modification to the PC machine itself.
H. Conclusion
Thus, it is seen that the present invention allows for relatively rapid swapping of peripheral device contexts. It also presents the appearance of multiple FIFOs to the host software. The software generating the data to be presented to peripheral device 401 need not be concerned that other devices are also using peripheral device 401. Multiple "client" processes, for example, can time multiplex the use of a hardware peripheral device 401, but continue to create data and commands and place them into their "virtual FIFO's" until the virtual FIFO's are full.
Finally, the present invention allows very large data queues to be created with very modest hardware cost and with very modest use of memory bandwidth.
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 various changes in form and details may be made therein without departing from the spirit and scope of the invention.

Claims

What is claimed: 1. A virtual FIFO peripheral interface system for use with a host processor and a peripheral processor in connection with queuing, control and transfer of data from the host processor to a peripheral, comprising: (a) at least one virtual FIFO data structure located in a main memory; (b) a control addresses block associated with each of said at least one virtual FIFO data structure; (c) a hardware FIFO, coupled to said virtual FIFO data structure, and controlled by the peripheral processor, which supplies data to the peripheral; and (d) a direct memory access (DMA) controller, coupled to said hardware FIFO and the host processor, which controls the data transfer from said at least one virtual FIFO data structure to the peripheral processor.
2. The system of claim 1, wherein the host processor controls means for loading data into each of said at least one virtual FIFO data structure.
3. The system of claim 1, wherein said DMA comprises a snooping means for snooping said control addresses block for a change in said end address.
4. The system of claim 1, wherein said hardware FIFO is physically located on the same chip as the peripheral processor.
5. The system of claim 1, wherein said control address block includes a start address pointer and an end address pointer, wherein said start and end address pointers indicate the memory location in said associated virtual FIFO data structure where information is stored, said start address pointer and said end address pointer are managed jointly by the host processor and said DMA controller.
6. The system of claim 5, further comprising means for updating said start address in said control address block according to the following protocol: (i) updating said start address if the amount of data left in said virtual FIFO data structure is less than the maximum increment which can be fetched from said virtual FIFO data structure in a single transaction; (ii) updating said start address pointer if the context is switched in said associated virtual FIFO data structure; (in) updating said start address pointer if said hardware FIFO is empty;
(iv) updating said start address pointer if the amount of data read from said hardware FIFO since the last time said start address was updated is substantially large; and (v) updating said start address pointer if requested by the host processor
7. The system of claim 5, further comprising means for updating said end addres in said control address block according to the following protocol: (i) not updating said end address pointer if only part of an indivisibl operation has been entered into said associated virtual FIFO data structure; (ii) updating said end address pointer if the stream of data is complete; (iii) updating said end address pointer if a substantially large block of dat has been written into said virtual FIFO data structure since the last time said en address pointer was updated; and (iv) updating said end address if said virtual FIFO data structure is full.
8. The system of claim 1, wherein the peripheral processor includes a rea address pointer which points to the last unused data read out of said hardware FIF to the peripheral processor.
9. The system of claim 1, wherein the storage capacity of said hardware FIFO i substantially smaller than said virtual FIFO data structure.
10. The system of claim 1, wherein the peripheral process is a graphics processor and wherein said graphics processor includes said DMA controller and said hardwar FIFO.
11. The system of claim 1, wherein the host processor contains a host softwar means for initializing said virtual FIFO data structure and said DMA controller.
12. The system of claim 1, wherein said DMA controller contains a fetch pointe which specifies the memory location of the next data item in said virtual FIFO dat structure to be loaded into said hardware FIFO and a start pointer which specifie the memory location of the data item in said hardware FIFO which is next in line t be read by the peripheral processor.
13. The system of claim 1, wherein said main memory includes at least on context memory block for storing information concerning the contexts currentl operating in the peripheral processor.
14. A method for transferring information between a host processor and peripheral processor, comprising the steps of: (1) initializing a set of virtual FIFO data structures located in a main memor along with their associated control blocks and initializing a direct memory acces (DMA) controller, said DMA controller coupled to a host processor and a hardwar FIFO; (2) selecting one of said virtual FIFO data structures and instructing said DMA controller to use said selected virtual FIFO data structure; (3) storing information is said selected virtual FIFO data structure and changing an end address pointer located in said control addresses block of said selected virtual FIFO data structure to correspond to said stored information; (4) transferring data from said control addresses block into a hardware FIFO; and (5) transferring data from said hardware FIFO to the peripheral processor; wherein said DMA controller is configured for reading said end address from said selected virtual FIFO data structure and writing a new start address into a start address pointer located in said control addresses block of said selected virtual FIFO data structure.
15. The method of claim 14, further comprising the steps of snooping said end address pointer and reading said end address pointer if it has been modified.
16. The method of claim 14, further comprising the step of updating said start address in said control address block according to the following protocol: (i) updating said start address if the amount of data left in said .virtual FIFO data structure is less than the maximum increment which can be fetched from said virtual FIFO data structure in a single transaction; (ii) updating said stert address pointer if the context is switched in said associated virtual FIFO data structure; (iii) updating said start address pointer if said hardware FIFO is empty; (iv) updating said start address pointer if the amount of data read from said hardware FIFO since the last time said start address was updated is substantially large; and (v) updating said start address pointer if requested by the host processor.
17. The method of claim 14, further comprising the step of updating said end address pointer in said control address block according to the following protocol: (i) not updating said end address pointer if only part of an indivisible operation has been entered into said associated virtual FIFO data structure; (ii) updating said end address pointer if the stream of data is complete; (in) updating said end address pointer if a substantially large block of data has been written into said virtual FIFO data structure since the last time said end address pointer was updated; and (iv) updating said end address if said virtual FIFO data structure is full.
18. A virtual FIFO peripheral interface system for use with a host processor and a peripheral processor in connection with queuing, control and transfer of data from th host processor to a peripheral, comprising: (a) at least one virtual FIFO data structure located in a main memory; (b) a control addresses block associated with each of said at least on virtual FIFO data structure; and (c) a first direct memory access (DMA) controller, coupled to at least one hardware FIFO and a host processor, said DMA controller controls the data transfe from said virtual FIFO data structure to at least one peripheral processors.
19. The system of claim 17, wherein said first DMA controller is connected to first hardware FIFO, and the system further comprising a second DMA controller, said second DMA controller connected to a second hardware FIFO.
PCT/JP1993/000374 1992-03-31 1993-03-26 Virtual fifo peripheral interface system and method WO1993020516A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP51729293A JP3431149B2 (en) 1992-03-31 1993-03-26 Peripheral device interface system and method using virtual FIFO

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US07/862,623 US5444853A (en) 1992-03-31 1992-03-31 System and method for transferring data between a plurality of virtual FIFO's and a peripheral via a hardware FIFO and selectively updating control information associated with the virtual FIFO's
US07/862,623 1992-03-31

Publications (1)

Publication Number Publication Date
WO1993020516A1 true WO1993020516A1 (en) 1993-10-14

Family

ID=25338881

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP1993/000374 WO1993020516A1 (en) 1992-03-31 1993-03-26 Virtual fifo peripheral interface system and method

Country Status (3)

Country Link
US (2) US5444853A (en)
JP (1) JP3431149B2 (en)
WO (1) WO1993020516A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102446084A (en) * 2010-09-30 2012-05-09 重庆重邮信科通信技术有限公司 Write-read control method and device of timing information
US8683182B2 (en) 1995-08-16 2014-03-25 Microunity Systems Engineering, Inc. System and apparatus for group floating-point inflate and deflate operations
US9811570B2 (en) 2011-07-08 2017-11-07 Ab Initio Technology Llc Managing storage of data for range-based searching

Families Citing this family (120)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5444853A (en) * 1992-03-31 1995-08-22 Seiko Epson Corporation System and method for transferring data between a plurality of virtual FIFO's and a peripheral via a hardware FIFO and selectively updating control information associated with the virtual FIFO's
ATE183352T1 (en) 1992-12-09 1999-08-15 Discovery Communicat Inc IMPROVED TOP-UP TERMINAL FOR CABLE TELEVISION DISTRIBUTION SYSTEMS
US8073695B1 (en) 1992-12-09 2011-12-06 Adrea, LLC Electronic book with voice emulation features
US7849393B1 (en) 1992-12-09 2010-12-07 Discovery Communications, Inc. Electronic book connection to world watch live
US7298851B1 (en) 1992-12-09 2007-11-20 Discovery Communications, Inc. Electronic book security and copyright protection system
US7509270B1 (en) 1992-12-09 2009-03-24 Discovery Communications, Inc. Electronic Book having electronic commerce features
US7835989B1 (en) 1992-12-09 2010-11-16 Discovery Communications, Inc. Electronic book alternative delivery systems
US6026443A (en) * 1992-12-22 2000-02-15 Sun Microsystems, Inc. Multi-virtual DMA channels, multi-bandwidth groups, host based cellification and reassembly, and asynchronous transfer mode network interface
CA2130064C (en) * 1993-10-27 1999-05-18 Cory A. Cherichetti Method and apparatus for transferring data between a host processor and a subsystem processor in a data processing system
US9053640B1 (en) 1993-12-02 2015-06-09 Adrea, LLC Interactive electronic book
US8095949B1 (en) 1993-12-02 2012-01-10 Adrea, LLC Electronic book with restricted access features
US7861166B1 (en) 1993-12-02 2010-12-28 Discovery Patent Holding, Llc Resizing document pages to fit available hardware screens
US7865567B1 (en) * 1993-12-02 2011-01-04 Discovery Patent Holdings, Llc Virtual on-demand electronic book
US5619675A (en) * 1994-06-14 1997-04-08 Storage Technology Corporation Method and apparatus for cache memory management using a two level scheme including a bit mapped cache buffer history table and circular cache buffer list
US5768626A (en) * 1994-06-24 1998-06-16 Intel Corporation Method and apparatus for servicing a plurality of FIFO's in a capture gate array
US5603063A (en) * 1994-06-27 1997-02-11 Quantum Corporation Disk drive command queuing method using two memory devices for storing two types of commands separately first before queuing commands in the second memory device
US5828903A (en) * 1994-09-30 1998-10-27 Intel Corporation System for performing DMA transfer with a pipeline control switching such that the first storage area contains location of a buffer for subsequent transfer
US6374313B1 (en) * 1994-09-30 2002-04-16 Cirrus Logic, Inc. FIFO and method of operating same which inhibits output transitions when the last cell is read or when the FIFO is erased
US5634099A (en) * 1994-12-09 1997-05-27 International Business Machines Corporation Direct memory access unit for transferring data between processor memories in multiprocessing systems
US5805930A (en) * 1995-05-15 1998-09-08 Nvidia Corporation System for FIFO informing the availability of stages to store commands which include data and virtual address sent directly from application programs
US5696990A (en) * 1995-05-15 1997-12-09 Nvidia Corporation Method and apparatus for providing improved flow control for input/output operations in a computer system having a FIFO circuit and an overflow storage area
US6204847B1 (en) * 1995-07-17 2001-03-20 Daniel W. Wright Shared virtual desktop collaborative application system
US5765023A (en) * 1995-09-29 1998-06-09 Cirrus Logic, Inc. DMA controller having multiple channels and buffer pool having plurality of buffers accessible to each channel for buffering data transferred to and from host computer
US5781799A (en) * 1995-09-29 1998-07-14 Cirrus Logic, Inc. DMA controller arrangement having plurality of DMA controllers and buffer pool having plurality of buffers accessible to each of the channels of the controllers
US6598136B1 (en) * 1995-10-06 2003-07-22 National Semiconductor Corporation Data transfer with highly granular cacheability control between memory and a scratchpad area
US5659798A (en) * 1996-02-02 1997-08-19 Blumrich; Matthias Augustin Method and system for initiating and loading DMA controller registers by using user-level programs
US5864713A (en) * 1996-02-12 1999-01-26 Hewlett-Packard Company Method for determining if data should be written at the beginning of a buffer depending on space available after unread data in the buffer
US5949439A (en) * 1996-08-15 1999-09-07 Chromatic Research, Inc. Computing apparatus and operating method using software queues to improve graphics performance
US6108722A (en) * 1996-09-13 2000-08-22 Silicon Grpahics, Inc. Direct memory access apparatus for transferring a block of data having discontinous addresses using an address calculating circuit
US6247040B1 (en) 1996-09-30 2001-06-12 Lsi Logic Corporation Method and structure for automated switching between multiple contexts in a storage subsystem target device
US6148326A (en) * 1996-09-30 2000-11-14 Lsi Logic Corporation Method and structure for independent disk and host transfer in a storage subsystem target device
US6081849A (en) * 1996-10-01 2000-06-27 Lsi Logic Corporation Method and structure for switching multiple contexts in storage subsystem target device
US5915124A (en) * 1997-01-03 1999-06-22 Ncr Corporation Method and apparatus for a first device accessing computer memory and a second device detecting the access and responding by performing sequence of actions
US6304910B1 (en) 1997-09-24 2001-10-16 Emulex Corporation Communication processor having buffer list modifier control bits
US6005849A (en) * 1997-09-24 1999-12-21 Emulex Corporation Full-duplex communication processor which can be used for fibre channel frames
US6047339A (en) * 1997-10-27 2000-04-04 Emulex Corporation Buffering data that flows between buses operating at different frequencies
US6671762B1 (en) * 1997-12-29 2003-12-30 Stmicroelectronics, Inc. System and method of saving and restoring registers in a data processing system
US6367063B1 (en) * 1998-02-05 2002-04-02 Hughes Electronics Corporation Method and apparatus for selectively performing a plurality of logic operations and memory functions
KR100308113B1 (en) * 1998-03-26 2001-10-19 김영환 Data processing system
US7100020B1 (en) * 1998-05-08 2006-08-29 Freescale Semiconductor, Inc. Digital communications processor
US6243770B1 (en) 1998-07-21 2001-06-05 Micron Technology, Inc. Method for determining status of multiple interlocking FIFO buffer structures based on the position of at least one pointer of each of the multiple FIFO buffers
US6252600B1 (en) 1998-10-02 2001-06-26 International Business Machines Corporation Computer graphics system with dual FIFO interface
US6269413B1 (en) * 1998-10-30 2001-07-31 Hewlett Packard Company System with multiple dynamically-sized logical FIFOs sharing single memory and with read/write pointers independently selectable and simultaneously responsive to respective read/write FIFO selections
US6304936B1 (en) * 1998-10-30 2001-10-16 Hewlett-Packard Company One-to-many bus bridge using independently and simultaneously selectable logical FIFOS
US6401149B1 (en) * 1999-05-05 2002-06-04 Qlogic Corporation Methods for context switching within a disk controller
US6330626B1 (en) * 1999-05-05 2001-12-11 Qlogic Corporation Systems and methods for a disk controller memory architecture
US6715086B1 (en) 1999-06-30 2004-03-30 International Business Machines Corporation Data processing system and method having time-span support for input device driver
US6614438B1 (en) * 2000-05-30 2003-09-02 Koninlijke Philips Electronics N.V. Data-processing arrangement for processing different types of data
US20020103942A1 (en) * 2000-06-02 2002-08-01 Guillaume Comeau Wireless java device
US7162615B1 (en) * 2000-06-12 2007-01-09 Mips Technologies, Inc. Data transfer bus communication using single request to perform command and return data to destination indicated in context to allow thread context switch
FR2810426B1 (en) * 2000-06-16 2006-01-27 Canon Kk DEVICE AND METHOD FOR CONTROLLING ACCESS TO COMPUTER PERIPHERAL
US6779062B1 (en) * 2000-09-29 2004-08-17 Intel Corporation Streamlining ATA device initialization
US6925506B1 (en) * 2000-09-29 2005-08-02 Cypress Semiconductor Corp. Architecture for implementing virtual multiqueue fifos
US6715021B1 (en) * 2000-12-08 2004-03-30 Cypress Semiconductor Corp. Out-of-band look-ahead arbitration method and/or architecture
US6715000B2 (en) * 2001-03-16 2004-03-30 Texas Instruments Incorporated Method and device for providing high data rate for a serial peripheral interface
US20040098519A1 (en) * 2001-03-16 2004-05-20 Hugo Cheung Method and device for providing high data rate for a serial peripheral interface
US6957279B2 (en) * 2001-04-30 2005-10-18 Lsi Logic Corporation Selectable logical identifier mapping
US20020166004A1 (en) * 2001-05-02 2002-11-07 Kim Jason Seung-Min Method for implementing soft-DMA (software based direct memory access engine) for multiple processor systems
US6721826B2 (en) * 2001-09-25 2004-04-13 Lsi Logic Corporation Buffer partitioning for managing multiple data streams
US6968445B2 (en) * 2001-12-20 2005-11-22 Sandbridge Technologies, Inc. Multithreaded processor with efficient processing for convergence device applications
US7738496B1 (en) 2002-12-31 2010-06-15 Cypress Semiconductor Corporation Device that provides the functionality of dual-ported memory using single-ported memory for multiple clock domains
US7007114B1 (en) * 2003-01-31 2006-02-28 Qlogic Corporation System and method for padding data blocks and/or removing padding from data blocks in storage controllers
US7461131B2 (en) * 2003-03-07 2008-12-02 International Business Machines Corporation Use of virtual targets for preparing and servicing requests for server-free data transfer operations
US7492545B1 (en) 2003-03-10 2009-02-17 Marvell International Ltd. Method and system for automatic time base adjustment for disk drive servo controllers
US7457903B2 (en) 2003-03-10 2008-11-25 Marvell International Ltd. Interrupt controller for processing fast and regular interrupts
US7870346B2 (en) * 2003-03-10 2011-01-11 Marvell International Ltd. Servo controller interface module for embedded disk controllers
US7039771B1 (en) 2003-03-10 2006-05-02 Marvell International Ltd. Method and system for supporting multiple external serial port devices using a serial port controller in embedded disk controllers
US8595394B1 (en) * 2003-06-26 2013-11-26 Nvidia Corporation Method and system for dynamic buffering of disk I/O command chains
US8683132B1 (en) 2003-09-29 2014-03-25 Nvidia Corporation Memory controller for sequentially prefetching data for a processor of a computer system
US8356142B1 (en) 2003-11-12 2013-01-15 Nvidia Corporation Memory controller for non-sequentially prefetching data for a processor of a computer system
US8700808B2 (en) * 2003-12-01 2014-04-15 Nvidia Corporation Hardware support system for accelerated disk I/O
TWI278748B (en) * 2003-12-05 2007-04-11 Mediatek Inc Virtual first-in, first-out DMA device
US7934057B1 (en) 2003-12-24 2011-04-26 Cypress Semiconductor Corporation Logic for implementing a dual clock domain read access with predictable timing for bi-directional inputs/outputs
US7139150B2 (en) 2004-02-10 2006-11-21 Marvell International Ltd. Method and system for head position control in embedded disk drive controllers
GB0404696D0 (en) * 2004-03-02 2004-04-07 Level 5 Networks Ltd Dual driver interface
US7130982B2 (en) * 2004-03-31 2006-10-31 International Business Machines Corporation Logical memory tags for redirected DMA operations
US20050223131A1 (en) * 2004-04-02 2005-10-06 Goekjian Kenneth S Context-based direct memory access engine for use with a memory system shared by devices associated with multiple input and output ports
US7120084B2 (en) * 2004-06-14 2006-10-10 Marvell International Ltd. Integrated memory controller
US8166217B2 (en) 2004-06-28 2012-04-24 Marvell International Ltd. System and method for reading and writing data using storage controllers
US8032674B2 (en) * 2004-07-19 2011-10-04 Marvell International Ltd. System and method for controlling buffer memory overflow and underflow conditions in storage controllers
US7757009B2 (en) * 2004-07-19 2010-07-13 Marvell International Ltd. Storage controllers with dynamic WWN storage modules and methods for managing data and connections between a host and a storage device
US9201599B2 (en) * 2004-07-19 2015-12-01 Marvell International Ltd. System and method for transmitting data in storage controllers
US7386661B2 (en) 2004-10-13 2008-06-10 Marvell International Ltd. Power save module for storage controllers
US8356143B1 (en) 2004-10-22 2013-01-15 NVIDIA Corporatin Prefetch mechanism for bus master memory access
US7240267B2 (en) * 2004-11-08 2007-07-03 Marvell International Ltd. System and method for conducting BIST operations
US7802026B2 (en) * 2004-11-15 2010-09-21 Marvell International Ltd. Method and system for processing frames in storage controllers
US20060206635A1 (en) * 2005-03-11 2006-09-14 Pmc-Sierra, Inc. DMA engine for protocol processing
US7609468B2 (en) 2005-04-06 2009-10-27 Marvell International Ltd. Method and system for read gate timing control for storage controllers
US8726279B2 (en) * 2006-05-06 2014-05-13 Nvidia Corporation System for multi threaded multi processor sharing of asynchronous hardware units
US8145809B1 (en) 2007-03-09 2012-03-27 Cypress Semiconductor Corporation Busy detection logic for asynchronous communication port
DE102007023442B3 (en) * 2007-05-19 2008-10-09 Atmel Germany Gmbh Device and method for generating an acknowledgment signal
US7822885B2 (en) * 2007-10-16 2010-10-26 Applied Micro Circuits Corporation Channel-less multithreaded DMA controller
US20090248919A1 (en) * 2008-03-25 2009-10-01 Jerzy Szwagrzyk Method for external fifo acceleration
US8356128B2 (en) * 2008-09-16 2013-01-15 Nvidia Corporation Method and system of reducing latencies associated with resource allocation by using multiple arbiters
US8370552B2 (en) * 2008-10-14 2013-02-05 Nvidia Corporation Priority based bus arbiters avoiding deadlock and starvation on buses that support retrying of transactions
US8698823B2 (en) 2009-04-08 2014-04-15 Nvidia Corporation System and method for deadlock-free pipelining
US8239866B2 (en) * 2009-04-24 2012-08-07 Microsoft Corporation Reduction of memory latencies using fine grained parallelism and FIFO data structures
CN102893265B (en) * 2010-03-10 2018-06-08 起元技术有限责任公司 Management can independent access data cell storage
CN103186359B (en) 2011-12-30 2018-08-28 南京中兴软件有限责任公司 Hardware abstraction data structure, data processing method and system
US9384153B2 (en) * 2012-08-31 2016-07-05 Freescale Semiconductor, Inc. Virtualized local storage
US10140129B2 (en) 2012-12-28 2018-11-27 Intel Corporation Processing core having shared front end unit
US9417873B2 (en) 2012-12-28 2016-08-16 Intel Corporation Apparatus and method for a hybrid latency-throughput processor
US9361116B2 (en) * 2012-12-28 2016-06-07 Intel Corporation Apparatus and method for low-latency invocation of accelerators
US10346195B2 (en) 2012-12-29 2019-07-09 Intel Corporation Apparatus and method for invocation of a multi threaded accelerator
JP6403430B2 (en) * 2014-05-23 2018-10-10 キヤノン株式会社 Image processing apparatus and image processing method
US9477631B2 (en) * 2014-06-26 2016-10-25 Intel Corporation Optimized credit return mechanism for packet sends
CN106445640B (en) * 2016-10-20 2019-06-18 南京南瑞继保电气有限公司 A kind of embedded type virtual device operation method and system
US10552164B2 (en) 2017-04-18 2020-02-04 International Business Machines Corporation Sharing snapshots between restoration and recovery
US10564977B2 (en) 2017-04-18 2020-02-18 International Business Machines Corporation Selective register allocation
US10649785B2 (en) 2017-04-18 2020-05-12 International Business Machines Corporation Tracking changes to memory via check and recovery
US10963261B2 (en) 2017-04-18 2021-03-30 International Business Machines Corporation Sharing snapshots across save requests
US10545766B2 (en) 2017-04-18 2020-01-28 International Business Machines Corporation Register restoration using transactional memory register snapshots
US10540184B2 (en) 2017-04-18 2020-01-21 International Business Machines Corporation Coalescing store instructions for restoration
US10489382B2 (en) 2017-04-18 2019-11-26 International Business Machines Corporation Register restoration invalidation based on a context switch
US10572265B2 (en) 2017-04-18 2020-02-25 International Business Machines Corporation Selecting register restoration or register reloading
US10782979B2 (en) 2017-04-18 2020-09-22 International Business Machines Corporation Restoring saved architected registers and suppressing verification of registers to be restored
US10838733B2 (en) 2017-04-18 2020-11-17 International Business Machines Corporation Register context restoration based on rename register recovery
US11010192B2 (en) * 2017-04-18 2021-05-18 International Business Machines Corporation Register restoration using recovery buffers
US10740108B2 (en) 2017-04-18 2020-08-11 International Business Machines Corporation Management of store queue based on restoration operation
CN115840620B (en) * 2023-02-27 2023-05-16 珠海星云智联科技有限公司 Data path construction method, device and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0208430A1 (en) * 1985-06-28 1987-01-14 Hewlett-Packard Company A method and apparatus for performing variable length data read transactions
EP0442716A2 (en) * 1990-02-13 1991-08-21 International Business Machines Corporation Buffer queue management for multiple processes

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5133062A (en) * 1986-03-06 1992-07-21 Advanced Micro Devices, Inc. RAM buffer controller for providing simulated first-in-first-out (FIFO) buffers in a random access memory
US4949301A (en) * 1986-03-06 1990-08-14 Advanced Micro Devices, Inc. Improved pointer FIFO controller for converting a standard RAM into a simulated dual FIFO by controlling the RAM's address inputs
US4942515A (en) * 1986-03-31 1990-07-17 Wang Laboratories, Inc. Serial communications controller with FIFO register for storing supplemental data and counter for counting number of words within each transferred frame
JP2684362B2 (en) * 1986-06-18 1997-12-03 株式会社日立製作所 Variable length data storage method
US5046023A (en) * 1987-10-06 1991-09-03 Hitachi, Ltd. Graphic processing system having bus connection control capable of high-speed parallel drawing processing in a frame buffer and a system memory
US4831523A (en) * 1986-10-31 1989-05-16 Bull Hn Information Systems Inc. Multiple DMA controller chip sequencer
US4928247A (en) * 1987-08-13 1990-05-22 Digital Equipment Corporation Method and apparatus for the continuous and asynchronous traversal and processing of graphics data structures
US5050066A (en) * 1988-10-14 1991-09-17 Intel Corporation Apparatus with a single memory and a plurality of queue counters for queuing requests and replies on a pipelined packet bus
US5163131A (en) * 1989-09-08 1992-11-10 Auspex Systems, Inc. Parallel i/o network file server architecture
US5136582A (en) * 1990-05-29 1992-08-04 Advanced Micro Devices, Inc. Memory management system and method for network controller
US5210749A (en) * 1990-05-29 1993-05-11 Advanced Micro Devices, Inc. Configuration of srams as logical fifos for transmit and receive of packet data
US5043981A (en) * 1990-05-29 1991-08-27 Advanced Micro Devices, Inc. Method of and system for transferring multiple priority queues into multiple logical FIFOs using a single physical FIFO
US5247626A (en) * 1990-05-29 1993-09-21 Advanced Micro Devices, Inc. Fddi controller having flexible buffer management
US5136584A (en) * 1990-07-11 1992-08-04 At&T Bell Laboratories Hardware interface to a high-speed multiplexed link
US5274768A (en) * 1991-05-28 1993-12-28 The Trustees Of The University Of Pennsylvania High-performance host interface for ATM networks
US5426639A (en) * 1991-11-29 1995-06-20 At&T Corp. Multiple virtual FIFO arrangement
US5444853A (en) * 1992-03-31 1995-08-22 Seiko Epson Corporation System and method for transferring data between a plurality of virtual FIFO's and a peripheral via a hardware FIFO and selectively updating control information associated with the virtual FIFO's

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0208430A1 (en) * 1985-06-28 1987-01-14 Hewlett-Packard Company A method and apparatus for performing variable length data read transactions
EP0442716A2 (en) * 1990-02-13 1991-08-21 International Business Machines Corporation Buffer queue management for multiple processes

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
PATENT ABSTRACTS OF JAPAN vol. 011, no. 203 (P-591)2 July 1987 *
PATENT ABSTRACTS OF JAPAN vol. 014, no. 560 (E-1012)13 December 1990 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8683182B2 (en) 1995-08-16 2014-03-25 Microunity Systems Engineering, Inc. System and apparatus for group floating-point inflate and deflate operations
US8769248B2 (en) 1995-08-16 2014-07-01 Microunity Systems Engineering, Inc. System and apparatus for group floating-point inflate and deflate operations
CN102446084A (en) * 2010-09-30 2012-05-09 重庆重邮信科通信技术有限公司 Write-read control method and device of timing information
CN102446084B (en) * 2010-09-30 2016-08-03 重庆重邮信科通信技术有限公司 A kind of timing information write-read control method and device
US9811570B2 (en) 2011-07-08 2017-11-07 Ab Initio Technology Llc Managing storage of data for range-based searching

Also Published As

Publication number Publication date
US5444853A (en) 1995-08-22
JPH07505493A (en) 1995-06-15
JP3431149B2 (en) 2003-07-28
US5649230A (en) 1997-07-15

Similar Documents

Publication Publication Date Title
US5444853A (en) System and method for transferring data between a plurality of virtual FIFO's and a peripheral via a hardware FIFO and selectively updating control information associated with the virtual FIFO's
EP0489504B1 (en) Bidirectional FIFO buffer for interfacing between two buses
US5333276A (en) Method and apparatus for priority selection of commands
US5594877A (en) System for transferring data onto buses having different widths
US5978866A (en) Distributed pre-fetch buffer for multiple DMA channel device
US6115761A (en) First-In-First-Out (FIFO) memories having dual descriptors and credit passing for efficient access in a multi-processor system environment
US6895482B1 (en) Reordering and flushing commands in a computer memory subsystem
US5301279A (en) Apparatus for conditioning priority arbitration
US5968153A (en) Mechanism for high bandwidth DMA transfers in a PCI environment
US7127573B1 (en) Memory controller providing multiple power modes for accessing memory devices by reordering memory transactions
US5664122A (en) Method and apparatus for sequencing buffers for fast transfer of data between buses
EP0325856B1 (en) Interface circuit for data transfer between processor and input/output device
US6510497B1 (en) Method and system for page-state sensitive memory control and access in data processing systems
WO1999022302A1 (en) Buffering data that flows between buses operating at different frequencies
US5859990A (en) System for transferring data segments from a first storage device to a second storage device using an alignment stage including even and odd temporary devices
US6675251B1 (en) Bridge device for connecting multiple devices to one slot
US5903776A (en) Multiple priority accelerated graphics port (AGP) request queue
US6266723B1 (en) Method and system for optimizing of peripheral component interconnect PCI bus transfers
US6615296B2 (en) Efficient implementation of first-in-first-out memories for multi-processor systems
WO2000065436A2 (en) Computer system with graphics engine
US6260123B1 (en) Method and system for memory control and access in data processing systems
EP0618537B1 (en) System and method for interleaving status information with data transfers in a communications adapter
US6014717A (en) PCMCIA host adapter and method for variable data transfers
US6226721B1 (en) Method and system for generating and utilizing speculative memory access requests in data processing systems
US5666556A (en) Method and apparatus for redirecting register access requests wherein the register set is separate from a central processing unit

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): JP KR

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): AT BE CH DE DK ES FR GB GR IE IT LU MC NL PT SE

121 Ep: the epo has been informed by wipo that ep was designated in this application
DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
122 Ep: pct application non-entry in european phase