CN1794142A - Data buffer system and rending method of data buffer device - Google Patents

Data buffer system and rending method of data buffer device Download PDF

Info

Publication number
CN1794142A
CN1794142A CN 200510136258 CN200510136258A CN1794142A CN 1794142 A CN1794142 A CN 1794142A CN 200510136258 CN200510136258 CN 200510136258 CN 200510136258 A CN200510136258 A CN 200510136258A CN 1794142 A CN1794142 A CN 1794142A
Authority
CN
China
Prior art keywords
data
interface
buffer zone
read
controller
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN 200510136258
Other languages
Chinese (zh)
Other versions
CN100430868C (en
Inventor
蔡文宗
徐荣灿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Via Technologies Inc
Original Assignee
Via Technologies Inc
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 Via Technologies Inc filed Critical Via Technologies Inc
Priority to CNB2005101362585A priority Critical patent/CN100430868C/en
Publication of CN1794142A publication Critical patent/CN1794142A/en
Application granted granted Critical
Publication of CN100430868C publication Critical patent/CN100430868C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

A method for fetching data buffer device includes setting the first common interface and the second common interface as well as independent fetching and writing - in path on data buffer device, using the first interface controller to process data format conversion between the first interface unit and data converting unit, using the second interface controller to process data format conversion between the second interface unit and data converting unit, making data buffer device be adapted to different interface unit by replacing two said interface units.

Description

The read method of data buffering system and data buffer device
Technical field
The present invention relates to a kind of data buffer device, particularly relate to a kind of two kinds of data buffer devices between the distinct interface device that are applicable to.
Background technology
Under distinct interface, data all have its specific format and transfer rate, therefore need a specific buffering to make data to transmit in distinct interface.Fig. 1 is a known data Caching Mechanism, utilize a state machine (state machine) 11 as between bus 12 and the dynamic storage 13 material transmission.Though it is low that known data Caching Mechanism is easy to carry out and spends, but its usefulness is not good, can only do unidirectional data transmission in the same time, and the speed of deal with data is difficult to promote, and can't adapt to user's demand.
Summary of the invention
The purpose of this invention is to provide a kind of be applicable to two kinds between the distinct interface device the data buffering system and a kind of read method of data buffer device.
The invention provides a kind of data buffering system, comprise a first interface device, one second interface arrangement, one first interface controller, one second interface controller and a data buffer device.First interface controller has one first interface and one first common interface.This first interface controller is linked up by this first interface and this first interface device, to handle the request of this first interface device.This first interface controller carries out read or write operation by this first common interface to a data buffer device.This second interface controller comprises one second interface and one second common interface.The operation that this second interface controller carries out access or writes this second interface arrangement by this second interface.This second common interface, this data buffer device by this second common interface with the data that receive this second interface controller and transmit or transmit data to this second interface controller.This data buffer device comprises a writing unit and a reading unit.This writing unit comprises that one first writes buffer zone, one second and writes a buffer zone and a writing controller.This writing controller according to the requirement of this first interface device and this second interface arrangement, makes this first write buffer zone and this second and write buffer zone and alternately receive the data that this first interface device transmits, and is sent to this second interface arrangement.This reading unit comprises that one first reads buffer zone, one second and reads a buffer zone and a Read Controller.This Read Controller according to the requirement of this first interface device and this second interface arrangement, makes this first read buffer zone and this second and read buffer zone and alternately receive the data that this second interface arrangement transmits, and is sent to this first interface device.
The present invention also provides a kind of read method of data buffer device, and this data buffer device is applicable between a first interface device and one second interface arrangement, comprises the following steps.One first interface controller is provided, has one first interface and one first common interface, this first interface controller is linked up by this first interface and this first interface device, and this first interface controller is linked up by this first common interface and this data buffer device.One second interface controller is provided, has one second interface and one second common interface, this second interface controller is linked up by this second interface and this second interface arrangement, and this second interface controller is linked up by this second common interface and this data buffer device.This data buffer device is provided, have a writing unit and a reading unit, this writing unit wherein, comprise that one first writes buffer zone, one second and writes a buffer zone and a writing controller, this reading unit comprises that one first reads buffer zone, one second and reads a buffer zone and a Read Controller.When this first interface device transmits data to this second interface arrangement by this data buffer device, comprise the following steps.This first interface device transmits one by this first interface and writes requirement to this first interface controller.This first interface controller transmits this by this first common interface and writes requirement to this writing controller.This writing controller receives the data of this first interface device and is stored in this writing unit by this first interface controller, comprises the following steps.Select this first to write buffer zone, to receive the data that this first interface device transmits.When this first when writing buffer zone and filling up data, this writing controller switches to this and second writes buffer zone.When this first writes buffer zone and do not fill up data and this write operation when finishing, next write operation second writes buffering and begins to write from this.When this first interface device reads the data of this second interface arrangement by this data buffer device, comprise the following steps.This first interface device transmits a reading requirement to this first interface controller by this first interface.This first interface controller transmits this reading requirement to this Read Controller by this first common interface.This Read Controller reads the data of this second interface arrangement and is stored in this reading unit by this second interface controller, comprises the following steps.Select this first to read buffer zone, to receive the data that this second interface arrangement transmits.When this first when reading buffer zone and filling up data, this Read Controller switches to this and second reads buffer zone.And when this first when reading buffer zone and not filling up data and this read operation and finish, when next read operation, this second interface arrangement second reads buffering and begins to write data from this.
For above and other objects of the present invention, feature and advantage can be become apparent, cited below particularlyly go out preferred embodiment, and be described with reference to the accompanying drawings as follows.
Description of drawings
Fig. 1 is a known data Caching Mechanism synoptic diagram.
Fig. 2 is the block schematic diagram according to one embodiment of the invention.
Fig. 3 is the running synoptic diagram of data buffer device 20 among Fig. 2.
Fig. 4 is the access control sequential chart according to data buffer device among Fig. 2 20.
Fig. 5 is that bus 21 writes data the process flow diagram of data buffer device 20 among the embodiment according to Fig. 2.
Fig. 6 is that data buffer device 20 writes data the process flow diagram of dynamic storage 22 among the embodiment according to Fig. 2.
Fig. 7 is that data buffer device 20 reads the process flow diagram of data in the dynamic storage 22 among the embodiment according to Fig. 2.
Fig. 8 is among the embodiment according to Fig. 2, the process flow diagram of data in the bus 21 reading of data snubber assemblys 20.
The reference numeral explanation
11~bus; 12~state machine; 13~dynamic storage
20~data buffer device; 21~bus;
22~dynamic storage; 23~writing controller;
24~Read Controller; 25a, 25b, 25c, 25d~multiplexer;
26a~first writes buffer zone; 26b~second writes buffer zone;
27a~first read buffer zone; 27b~second read buffer zone
S50~selection first writes buffer zone 26a and awaits orders
S51~first writes buffer zone 26a reception one and writes request
Do S52~first write buffer zone 26a and be written into?
S53~first writes the data that buffer zone 26a receives bus 21
The write operation that S54~first writes buffer zone 26a finishes
S55~selection second writes buffer zone 26b and awaits orders
S56~second writes buffer zone 26b and receives one and write request
Do S57~second write buffer zone 26b and be written into?
S58~second writes the data that buffer zone 26b receives bus 21
The write operation that S59~first writes buffer zone 26a finishes
S61~selection first writes buffer zone 26a and awaits orders
But S62~first writes buffer zone 26a and fills up data or first and write buffer zone 26a and do not fill up data as yet receive and write data transmission among the buffer zone 26a to the requirement that writes of dynamic storage 22 with first
S63~first writes buffer zone 26a data is sent to dynamic storage 22
S64~first writes the DTD of buffer zone 26a
S65~selection second writes buffer zone 26b and awaits orders
But S66~second writes buffer zone 26b and fills up data or second and write buffer zone 26b and do not fill up data as yet receive and write data transmission among the buffer zone 26b to the requirement that writes of dynamic storage 22 with second
S67~second data transmission that writes among the buffer zone 26b is arrived dynamic storage 22
S68~second writes the DTD of buffer zone 26b
S701~selection first is read buffer zone 27a and is awaited orders
S703~first read buffer zone 27a and receives one and read request
Can S705~first read buffer zone 27a receive data?
S707~first read the data that buffer zone 27a receives dynamic storage 22
S709~when first reads buffer zone 27a reception finishing touch data
S711~first read the function that read operation finishes and data buffer device 20 does not have unlatching to read in advance of buffer zone 27a
S713~selection second is read buffer zone 27b and is awaited orders
S715~second read buffer zone 27b and receives one and read request
Can S717~second read buffer zone 27b receive data?
S719~second read the data that buffer zone 27b receives dynamic storage 22
S721~when second reads buffer zone 27b reception finishing touch data
S723~second read the function that read operation finishes and data buffer device 20 does not have unlatching to read in advance of buffer zone 27b
S801~selection first is read buffer zone 27a and is awaited orders
S803~first read the request of reading that buffer zone 27a receives bus 21
S805~first read the function whether buffer zone 27a has the data that read in advance and data buffer device 20 whether to have unlatching to read in advance
S807~first read buffer zone 27a and receives the data that dynamic storage 22 transmits again
S809~when first reads buffer zone 27a and fills up data or receive a reading requirement
S811~first data that read among the buffer zone 27a are sent to bus 21
S813~when first reads buffer zone 27a transmission finishing touch data
Does S815~bus 21 continue to send reading requirement?
S817~selection second is read buffer zone 27b and is awaited orders
S819~second read the request of reading that buffer zone 27b receives bus 21
S821~second read the function whether buffer zone 27b has the data that read in advance and data buffer device 20 whether to have unlatching to read in advance
S823~second read buffer zone 27b and receives the data that dynamic storage 22 transmits again
S825~when second reads buffer zone 27b and fills up data or receive reading requirement
S827~second data that read among the buffer zone 27b are sent to bus 21
S829~when second reads buffer zone 27b transmission finishing touch data
Does S831~bus 21 continue to send reading requirement?
Embodiment
Fig. 2 is the block schematic diagram according to one embodiment of the invention.Bus 21 is come Data transmission with dynamic storage 22 by a data buffer device 20.Wherein bus 21 can be pci bus, isa bus, AMBA bus, AHA bus, SOC/Local bus, asb bus, APB bus, ZSB bus and ZPB bus.Dynamic storage 22 can be SDRAM or DDR RAM.Bus 21 is by bus controller 28 reading of data snubber assemblys 20, and data buffer device 20 carries out accessing operation by 29 pairs of dynamic storagies of dynamic storage controller.Data buffer device 20 has the first fixing common interface 28b and the second common interface 29b, and by the first common interface 28b and the second common interface 29b and bus controller 28 and dynamic storage controller 29 communications, and bus controller 28 is linked up by a bus interface 28a and bus 21, and dynamic storage controller 29 is linked up by a dynamic memory interface (DMI) 29a and dynamic storage 22.Profit when bus 21 or dynamic storage 22 are replaced by the bus of other kind or dynamic storage, only needs to change bus controller 28 or dynamic storage controller 29 gets final product, and need not change data buffer device 20 in such a way.
Data buffer device 20 comprises that writing controller 23, Read Controller 24, first write buffer zone 26a, second and write buffer zone 26b, first and read buffer zone 27a, second and read buffer zone 27b and multiplexer 25a, 25b, 25c and 25d.First writes buffer zone 26a, second writes buffer zone 26b, first and reads buffer zone 27a and second and read buffer zone 27b and can be a first-in first-out buffer, buffer or storer.
When bus 21 will be carried out a write operation when transferring data to dynamic storage 22, bus 21 transmits one and writes and asks to bus controller 28 and writing controller 23.Writing controller 23 selects one to write buffer zone after receiving the request of writing, with the first buffer zone 26a is the example explanation, bus 21 transmits data to data buffer device 20 by the first common interface 28b of bus controller 28, writing controller 23 control this moment multiplexer 25a make the data that write by bus 21 be temporary in the first buffer zone 26a by the first common interface 28b of bus controller 28.When the first buffer zone 26a write full data and write operation and do not finish as yet, writing controller 23 control multiplexer 25a made the data that write by bus 21 be temporary in the second buffer zone 26b.Writing controller 23 control this moment multiplexer 25d, the dynamic memory interface (DMI) 29a by dynamic storage controller 29 is sent to dynamic storage 22 with the data of the first write buffer 25a.Do not fill up as yet if first writes buffer zone 26a, but when write operation has finished, writing controller 23 control multiplexer 25d, the dynamic memory interface (DMI) 29a by dynamic storage controller 29 is sent to dynamic storage 22 with the data of the first write buffer 25a.After write operation finishes, when next write operation begins, writing controller 23 according to a last write operation last use write buffer zone, select a different buffer zone that writes.With Fig. 2 is the example explanation, data buffer device 20 has first and second and writes buffer zone 26a and 26b, when if write operation finishes, the data buffer that writes of using is first to write buffer zone and be 26a, during then next write operation, writing controller 23 control multiplexer 25a write buffer zone 26b by second and begin storage data.
When bus 21 will be carried out a read operation when reading the data of dynamic storage 22, bus 21 transmits one and reads and ask to bus controller 28 and Read Controller 24.Read Controller 24 selects one to read buffer zone after receiving the request of reading, reading buffer zone 27a with first is the example explanation, Read Controller 24 control this moment multiplexer 25c, the second common interface 29b of the data that make dynamic storage 22 by dynamic storage 29 is temporary in first and reads buffer zone 27a.If first reads buffer zone 27a when having filled up data and read operation and not finishing as yet, Read Controller 24 control multiplexer 25c make to be temporary in the second buffer zone 27b by the data of the dynamic storage 22 second common interface 29b by dynamic storage 29.Read Controller 24 control this moment multiplexer 25b, the bus interface 28a by bus 28 is sent to bus 21 with the data of the first read buffers 27a.Read buffer zone 27a and do not fill up as yet when first, but read operation has been when having finished, Read Controller 24 control multiplexer 25b, the bus interface 28a by bus 28 is sent to bus 21 with the data of the first read buffers 27a.After read operation finishes, when next read operation begins, Read Controller 24 according to a last read operation last use read buffer zone, select a different buffer zone that reads.With Fig. 2 is the example explanation, data buffer device 20 has first and second and reads buffer zone 27a and 27b, when supposing that read operation finishes, the reading of data buffer zone that uses is first to read buffer zone and be 27a, during then next read operation, Read Controller 24 control multiplexer 25c read buffer zone 27b by second and begin storage data.
In addition, data buffer device 20 also has one and reads the function that (Pre-read) and postpones to write (Post-write) in advance, and the write operation in the data buffer device 20 and read operation can carry out simultaneously.
Reading buffer zone 27a and second with first reads buffer zone 27b and one has 8 double words symbol (double word, DW) the first in first out buffer of (that is having 8 * 32 positions) is that example illustrates read functions in advance, if bus 21 is the data of continuous two 8DW from the data that dynamic storer 22 reads, the data storing that Read Controller 24 reads first 8DW earlier reads buffer zone one, read buffer zone 27a as first, then the data in advance of second 8DW is stored in second and reads buffer zone 27b, profit in such a way, send reading requirement when reading second 8DW data when bus 21, just can directly read buffer zone 27b and read by second.Writing buffer zone 26a and second with first, to write buffer zone 26b be that example explanation postpones the function that writes.In general, after a complete write operation represented that data are written to dynamic storage 22 really by bus 21, writing controller 23 sent an Ack signal and gives the just complete at last write operation of bus 21.But efficient for expedited data snubber assembly 20, writing controller 23 is written in data and writes buffer zone, write after the buffer zone 26a as first, promptly send the Ack signal and give bus 21, and the data of carrying out next write operation and will write buffer zone are written in the dynamic storage 22.The sharp usefulness that can improve data buffer device 20 in such a way.
Fig. 3 is the running synoptic diagram of data buffer device 20 among Fig. 2.Among Fig. 3, WB1, WB2, RB1 and RB2 represent that respectively first writes buffer zone 26a, second and write buffer zone 26b, first and read buffer zone 27a, second and read buffer zone 27b.PUSH represents that buffer zone receives data, and POP represents the buffer zone output data.WB1_PUSH represents that first writes the data that buffer zone 26a receives bus 21 transmission, WB1_POP represents that first writes buffer zone 26a the data in the buffer zone are sent in the dynamic storage 22, RB1_PUSH represents that first reads the data that buffer zone 27a receives dynamic storage 22 transmission, and RB1_POP represents that first reads the interior data of buffer zone 27a transmission buffer zone to bus 21.When first writes buffer zone 26a and transmits data in the buffer zone to dynamic storage 22, second writes buffer zone 26b receives the data that bus 21 transmits immediately, and write buffer zone when running (writing buffer zone 26a), read and write buffer zone and also can operate (reading buffer zone 27a) simultaneously as first as first.Utilize such function mode can make data buffer device 20 use different paths simultaneously, as write paths or read path, but and continuous uninterrupted deal with data.
Known snubber assembly is to send an access requirement and a data length earlier when storer is carried out access, as 8DW, to storer, carries out accessing operation again.And in the present invention, be to utilize the time span of access requirement to decide the length that transmits data.Please refer to Fig. 4.Fig. 4 is the access control sequential chart according to data buffer device among Fig. 2 20.When Read Controller 24 receives the reading requirement Read_Request that bus 21 sends, just select one to read buffer zone, read buffer zone 27a as first, begin to receive the data that dynamic storage 22 transmits.In the present embodiment, bus 21 reads the data of 8DW, so lasting 8 period of time T of activation of reading requirement Read_Request, and the first read operation RB1_PUSH that reads buffer zone 27a also continues 8 period of time T of activation.When first read buffer zone 27a and fill up data after, data are sent to bus 21 immediately at once, in the same manner, RB1_POP also continues 8 period of time T of activation.
When writing controller 23 writing of receiving that bus 21 sends requires Write_Request, just select one to write buffer zone, write buffer zone 26a as first, begin to receive the data that bus 21 transmits.In the present embodiment, bus 21 writes the data of a 8DW, therefore writes to require Write_Request to continue 8 period of time T of activation, and the first read operation WB1_PUSH that writes buffer zone 26a also continues 8 period of time T of activation.When first write buffer zone 26a and fill up data after, data are sent to dynamic storage 22 immediately at once, in the same manner, WB1_POP also continues 8 period of time T of activation.
In the present invention, data buffer device 20 is except can successional Data transmission, and the data that also can only transmit a certain particular address are to bus 21 or dynamic storage 22.For instance, suppose that bus 21 has the data of a 8DW, but when having only the 5th to 8DW data to write dynamic storage 22, writing controller still is written to the data of this 8DW and writes in the buffer zone, but just only writes the 5th data to 8DW when being written to dynamic storage 22.In like manner, bus 21 also can sharp read the data of any one DW in the dynamic storage 22 in a like fashion.
In the embodiment of Fig. 2, complete write operation has comprised by bus 21 and data has been write data buffer device 20 and data buffer device 20 writes 22 two steps of dynamic storage with data.For more clearly demonstrating above-mentioned mechanism, please refer to Fig. 5 and Fig. 6.
Fig. 5 is that bus 21 writes data the process flow diagram of data buffer device 20 among the embodiment according to Fig. 2.Write buffer zone 26a and receive one when writing request (as a Write_Reques signal) (step S51) when first, bus 21 first when writing buffer zone 26a and can be written into (step S52), transmits data to the first and writes buffer zone 26a (step S53) by the time.Write buffer zone 26a and fill up data and write operation when not finishing as yet when first, jump to step S57, wait for that second writes buffer zone 26b and become the free time, continue write operation.If first write operation that writes buffer zone 26a finishes (step S54), then jump to step S55, selection second writes buffer zone 26b and awaits orders.Write buffer zone 26b and receive and write when request (step S56) when second, bus 21 second when writing buffer zone 26b and can be written into (step S57), transmits data to the second and writes buffer zone 26b (step S58) by the time.Write buffer zone 26b and fill up data and write operation when not finishing as yet when second, jump to step S52, wait for that first writes buffer zone 26a and become the free time, continue write operation.If second write operation that writes buffer zone 26b finishes (step S59), then jump to step S52, select first to write buffer zone 26a and await orders (step S50).
Fig. 6 is that data buffer device 20 writes data the process flow diagram of dynamic storage 22 among the embodiment according to Fig. 2.But write buffer zone 26a and fill up data or first and write buffer zone 26a and do not fill up data as yet receive the data transmission (step S62) when writing of dynamic storage 22 requires that writes among the buffer zone 26a first when first, first writes buffer zone 26a writes requirement according to this data is sent to dynamic storage 22 (step S63).When DTD (step S64), if second write among the buffer zone 26b data are arranged, then jump to step S67, second data that write among the buffer zone 26b are continued to be transferred to dynamic storage 22.If first writes buffer zone 26a and second when writing buffer zone 26b and all not having data, then jump to step S65, selection second writes buffer zone 26b and awaits orders.But write buffer zone 26b and fill up data or second and write buffer zone 26b and do not fill up data as yet receive the data transmission (step S66) when writing of dynamic storage 22 requires that writes among the buffer zone 26b second when second, second writes buffer zone 26b writes requirement according to this data is sent to dynamic storage 22 (step S67).In step S68, if second write the data end of transmission among the buffer zone 26b,, then jump to step S63 if first write data are still arranged among the buffer zone 26b, first data that write among the buffer zone 26a are continued to be transferred to dynamic storage 22.If first writes buffer zone 26a and second when writing buffer zone 26b and all not having data, then jump to step S61, selection first writes buffer zone 26a and awaits orders.
In the embodiment of Fig. 2, complete read operation has comprised that data buffer device 20 reads data in the dynamic storage 22 and two steps of data of bus 21 reading of data snubber assemblys 20.For more clearly demonstrating above-mentioned mechanism, please refer to Fig. 7 and Fig. 8.
Fig. 7 is that data buffer device 20 reads the process flow diagram of data in the dynamic storage 22 among the embodiment according to Fig. 2.When first reads buffer zone 27a and receives a request of reading (as a Read_Reques signal) (step S703), dynamic storage 22 waits for first when reading buffer zone 27a and can receive data (step S705), begins to transmit data to the first and reads buffer zone 27a (step S707).Read buffer zone 27a and fill up data (8DW) (step S709) when first, the function that if reading requirement does not finish as yet or data buffer device 20 has unlatching to read in advance, jump to step S717, select second to read the data that buffer zone 27b continues to receive dynamic storage 22 transmission.For instance, if first reads the buffer that buffer zone 27a is a 8DW, dynamic storage 22 is sent to first with the data of next DW and reads buffer zone 27a, read buffer zone 27a when receiving the data of last DW (the 8th) when first, if it (is the function that data volume>8DW) or data buffer device 20 have unlatching to read in advance that reading requirement finishes as yet, jump to step S717, otherwise jump to step S711.When first read operation end and the data buffer device 20 that reads buffer zone 27a do not have to open the function (step S711) that reads in advance, jump to step S713, selection second is read buffer zone 27b and is awaited orders.
Read buffer zone 27b and receive one and read when request (step S715) when second, dynamic storage 22 waits for second when reading buffer zone 27b and can receive data (step S717), begins to transmit data to the second and reads buffer zone 27b (step S719).When second reads buffer zone 27b and fills up data (8DW) (step S721), the function that if reading requirement does not finish as yet or data buffer device 20 has unlatching to read in advance, jump to step S705, select first to read the data that buffer zone 27a continues to receive dynamic storage 22 transmission.When second read operation that reads buffer zone 27b finishes and data buffer device 20 when not have to open the function (step S723) that reads in advance, jump to step S701, selection first is read buffer zone 27a and is awaited orders.Fig. 8 is among the embodiment according to Fig. 2, the process flow diagram of data in the bus 21 reading of data snubber assemblys 20.Read buffer zone 27a and receive reading when request (step S803) of bus 21 when first, data buffer device 20 judges earlier first reads the function (step S805) whether buffer zone 27a has the data that read in advance and hit and data buffer device 20 whether to have unlatching to read in advance, if both are all and are, then jump to step S811, first data that read among the buffer zone 27a are sent to bus 21.Not have to open the function that reads in advance if first reads data or the data buffer device 20 that buffer zone 27a do not read in advance, then jump to step S807, first reads the data that buffer zone 27a receives dynamic storage 22 transmission again.When first reads buffer zone 27a and fill up data or receive a reading requirement (step S809), data buffer device 20 is sent to bus 21 (step S811) with first data that read among the buffer zone 27a.When first reads buffer zone 27a transmission finishing touch data (step S813), judge whether bus 21 continues to send reading requirement (step S815).If bus 21 continues to send reading requirement, then jump to step S821, if bus 21 stops to send reading requirement, then jump to step S817, selection second is read buffer zone 27b and is awaited orders.
Read buffer zone 27b and receive reading when request (step S819) of bus 21 when second, data buffer device 20 judges earlier second reads the function (step S821) whether buffer zone 27b has the data that read in advance and hit and data buffer device 20 whether to have unlatching to read in advance, if both are all and are, then jump to step S827, second data that read among the buffer zone 27b are sent to bus 21.Not have to open the function that reads in advance if second reads data or the data buffer device 20 that buffer zone 27b do not read in advance, then jump to step S823, second reads the data that buffer zone 27b receives dynamic storage 22 transmission again.When second reads buffer zone 27b and fill up data or receive reading requirement (step S825), data buffer device 20 is sent to bus 21 (step S827) with second data that read among the buffer zone 27b.When second reads buffer zone 27b transmission finishing touch data (step S829), if bus 21 continues to send reading requirement, then jump to step S805, if bus 21 stops to send reading requirement, then jump to step S831, selection first is read buffer zone 27a and is awaited orders.
Though the present invention discloses as above with preferred embodiment; right its is not in order to limit the present invention; those skilled in the art can do some changes and retouching under the premise without departing from the spirit and scope of the present invention, so protection scope of the present invention is as the criterion with claim of the present invention.

Claims (26)

1. data buffering system comprises:
One first interface device;
One second interface arrangement;
One first interface controller has one first interface and one first common interface, comprising:
One first interface, this first interface controller is linked up by this first interface and this first interface device, to handle the request of this first interface device; And
One first common interface, this first interface controller carries out read or write operation by this first common interface to a data buffer device;
One data buffer device comprises:
One writing unit comprises:
One first writes buffer zone;
One second writes buffer zone; And
One writing controller according to the requirement of this first interface device and this second interface arrangement, makes this first write buffer zone and this second and write buffer zone and alternately receive the data that this first interface device transmits, and is sent to this second interface arrangement; And
One reading unit comprises:
One first reads buffer zone;
One second reads buffer zone; And
One Read Controller according to the requirement of this first interface device and this second interface arrangement, makes this first read buffer zone and this second and read buffer zone and alternately receive the data that this second interface arrangement transmits, and is sent to this first interface device;
One second interface controller comprises:
One second interface, the operation that this second interface controller carries out access or writes this second interface arrangement by this second interface; And
One second common interface, this data buffer device by this second common interface with the data that receive this second interface controller and transmit or transmit data to this second interface controller.
2. data buffering as claimed in claim 1 system, wherein also comprise one first multiplexer, in response to the control of this writing controller, receive the data that this first interface device transmits, and be sent to this and first write buffer zone and this second one of writing in the buffer zone.
3. data buffering as claimed in claim 1 system wherein also comprises one second multiplexer, first writes buffer zone and this second and writes the data of buffer zone and be sent to this second interface arrangement in order to receive this.
4. data buffering as claimed in claim 1 system wherein also comprises one the 3rd multiplexer, first reads buffer zone and this second and reads the data of buffer zone and be sent to this first interface device in order to receive this.
5. data buffering as claimed in claim 1 system, wherein also comprise one the 4th multiplexer, in response to the control of this Read Controller, receive the data that this second interface arrangement transmits, and be sent to this and first read buffer zone and this second one of reading in the buffer zone.
6. data buffering as claimed in claim 1 system, wherein this first writes buffer zone, this second writes buffer zone, this first reads buffer zone and this second to read buffer zone be first-in first-out buffer.
7. data buffering as claimed in claim 1 system, wherein this first interface device is a bus unit.
8. data buffering as claimed in claim 1 system, wherein this second interface arrangement is a dynamic storage.
9. data buffering as claimed in claim 1 system, wherein this writing unit and this reading unit are running simultaneously.
10. data buffering as claimed in claim 1 system, wherein this first common interface and this second common interface are the specific and fixing interface of this data buffer device.
11. data buffering as claimed in claim 1 system when wherein this first interface controller receives a request of this first interface device, utilizes the length of this request time to determine the size of data of each transmission.
12. data buffering as claimed in claim 1 system, wherein this reading unit also has a read functions in advance, when this first when reading buffer zone and reading data, this Read Controller can be in advance second reads buffer zone with the next record data storing to this, reads for this first interface device.
13. data buffering as claimed in claim 1 system, wherein first interface controller can first read buffer zone or this second and reads arbitrary address reading data in the buffer zone from this.
14. data buffering as claimed in claim 10 system, wherein first common interface comprises a request signal, the size of data that this first interface controller transmits according to this request signal decision.
15. the read method of a data buffer device, this data buffer device are applicable between a first interface device and one second interface arrangement, comprise:
One first interface controller is provided, has one first interface and one first common interface, this first interface controller is linked up by this first interface and this first interface device, and this first interface controller is linked up by this first common interface and this data buffer device;
One second interface controller is provided, has one second interface and one second common interface, this second interface controller is linked up by this second interface and this second interface arrangement, and this second interface controller is linked up by this second common interface and this data buffer device;
This data buffer device is provided, have a writing unit and a reading unit, wherein this writing unit comprises that one first writes buffer zone, one second and writes a buffer zone and a writing controller, and this reading unit comprises that one first reads buffer zone, one second and reads a buffer zone and a Read Controller; And
When this first interface device transmits data to this second interface arrangement by this data buffer device, comprising:
This first interface device transmits one by this first interface and writes requirement to this first interface controller;
This first interface controller transmits this by this first common interface and writes requirement to this writing controller; And
This writing controller receives the data of this first interface device and is stored in this writing unit by this first interface controller, comprising:
Select this first to write buffer zone, to receive the data that this first interface device transmits;
When this first when writing buffer zone and filling up data, this writing controller switches to this and second writes buffer zone; And
When this first writes buffer zone and do not fill up data and this write operation when finishing, next write operation second writes buffering and begins to write from this;
When this first interface device reads the data of this second interface arrangement by this data buffer device, comprising:
This first interface device transmits a reading requirement to this first interface controller by this first interface;
This first interface controller transmits this reading requirement to this Read Controller by this first common interface; And
This Read Controller reads the data of this second interface arrangement and is stored in this reading unit by this second interface controller, comprising:
Select this first to read buffer zone, to receive the data that this second interface arrangement transmits;
When this first when reading buffer zone and filling up data, this Read Controller switches to this and second reads buffer zone; And
When this first when reading buffer zone and not filling up data and this read operation and finish, when next read operation, this second interface arrangement second reads buffering and begins to write data from this.
16. the read method of data buffer device as claimed in claim 15 wherein also is included in and uses before this reading unit and this writing unit, and this reading unit and this writing unit are carried out initialization.
17. the read method of data buffer device as claimed in claim 15 wherein also comprises:
When this first when writing buffer zone and filling up data, this writing controller is sent to this second interface arrangement with these first data that write buffer zone by this second interface controller.
18. the read method of data buffer device as claimed in claim 15 wherein also comprises:
When this first when reading buffer zone and filling up data, this Read Controller is sent to this first interface device with these first data that read buffer zone by this first interface controller.
19. the read method of data buffer device as claimed in claim 15 wherein also comprises:
When this first when reading buffer zone and reading data, this Read Controller can be in advance second reads buffer zone with the next record data storing to this, reads for this first interface device.
20. the read method of data buffer device as claimed in claim 15 wherein also comprises:
When this first writes buffer zone and do not fill up data and this write operation when finishing, this writing controller is sent to this second interface arrangement with these first data that write buffer zone.
21. the read method of data buffer device as claimed in claim 15 wherein also comprises:
When this first when reading buffer zone and not filling up data and this read operation and finish, this Read Controller is sent to this first interface device with these first data that read buffer zone.
22. the read method of data buffer device as claimed in claim 15 wherein also comprises:
When this first writes buffer zone and do not fill up data and this writing controller and receive another and write when requiring, this writing controller is ended this first write operation that writes buffer zone, switch to this second write buffer and continue to receive the data that this first interface device transmits, and these first data that write buffer zone are sent to this second interface arrangement.
23. the read method of data buffer device as claimed in claim 15 wherein also comprises:
When this first when reading buffer zone and not filling up data and this Read Controller and receive another reading requirement, this Read Controller is ended this first read operation that reads buffer zone, switch to this second read buffers and continue to receive the data that this second interface arrangement transmits, and these first data that read buffer zone are sent to this first interface device.
24. the read method of data buffer device as claimed in claim 15, wherein first interface controller can first read buffer zone or this second and reads arbitrary address reading data in the buffer zone from this.
25. the read method of data buffer device as claimed in claim 15, wherein first interface controller utilizes this to write to require or length of time of reading requirement determines each to write or the size of reading of data.
26. the read method of data buffer device as claimed in claim 15, wherein second interface controller utilizes this to write to require or length of time of reading requirement determines each to write or the size of reading of data.
CNB2005101362585A 2005-12-26 2005-12-26 Data buffer system and rending method of data buffer device Active CN100430868C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101362585A CN100430868C (en) 2005-12-26 2005-12-26 Data buffer system and rending method of data buffer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101362585A CN100430868C (en) 2005-12-26 2005-12-26 Data buffer system and rending method of data buffer device

Publications (2)

Publication Number Publication Date
CN1794142A true CN1794142A (en) 2006-06-28
CN100430868C CN100430868C (en) 2008-11-05

Family

ID=36805636

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101362585A Active CN100430868C (en) 2005-12-26 2005-12-26 Data buffer system and rending method of data buffer device

Country Status (1)

Country Link
CN (1) CN100430868C (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729280B (en) * 2008-10-29 2012-01-11 晨星软件研发(深圳)有限公司 Data transmission method and circuit device capable of automatically selecting transmission interface
CN103593148A (en) * 2013-11-08 2014-02-19 大唐移动通信设备有限公司 CDF side off-line call ticket data quick access method and device
CN105608020A (en) * 2015-12-09 2016-05-25 上海兆芯集成电路有限公司 Host interface controller and storage apparatus control method
CN107077304A (en) * 2016-09-18 2017-08-18 深圳市大疆创新科技有限公司 Data conversion equipment, chip, method, device and image system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6807613B1 (en) * 2000-08-21 2004-10-19 Mircon Technology, Inc. Synchronized write data on a high speed memory bus
US6701390B2 (en) * 2001-06-06 2004-03-02 Koninklijke Philips Electronics N.V. FIFO buffer that can read and/or write multiple and/or selectable number of data words per bus cycle
CN2528080Y (en) * 2001-09-28 2002-12-25 威盛电子股份有限公司 Chip group and controller for supporting information signal interruption
US7139878B2 (en) * 2003-06-20 2006-11-21 Freescale Semiconductor, Inc. Method and apparatus for dynamic prefetch buffer configuration and replacement
CN1328668C (en) * 2003-11-19 2007-07-25 威盛电子股份有限公司 Initialization device of elastic buffer and method thereof

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729280B (en) * 2008-10-29 2012-01-11 晨星软件研发(深圳)有限公司 Data transmission method and circuit device capable of automatically selecting transmission interface
CN103593148A (en) * 2013-11-08 2014-02-19 大唐移动通信设备有限公司 CDF side off-line call ticket data quick access method and device
CN103593148B (en) * 2013-11-08 2017-10-27 大唐移动通信设备有限公司 The method and device that a kind of CDF sides offline bill data are quickly accessed
CN105608020A (en) * 2015-12-09 2016-05-25 上海兆芯集成电路有限公司 Host interface controller and storage apparatus control method
CN105608020B (en) * 2015-12-09 2019-02-26 上海兆芯集成电路有限公司 Host interface controller and storage device control method
CN107077304A (en) * 2016-09-18 2017-08-18 深圳市大疆创新科技有限公司 Data conversion equipment, chip, method, device and image system

Also Published As

Publication number Publication date
CN100430868C (en) 2008-11-05

Similar Documents

Publication Publication Date Title
US9734085B2 (en) DMA transmission method and system thereof
EP2849077A1 (en) Method for writing data into storage device and storage device
CN104090847B (en) Address distribution method of solid-state storage device
US7581015B2 (en) Communication device having transmitting and receiving units supports RDMA communication
US9336146B2 (en) Accelerating cache state transfer on a directory-based multicore architecture
CN1794214A (en) Method of direct storage access for non-volatibility storage and its device
US11669272B2 (en) Predictive data transfer based on availability of media units in memory sub-systems
TWI437429B (en) Multi-channel hybrid density memory storage device and control method thereof
CN101038532A (en) Data storage device and method thereof
CN101036197A (en) Nonvolatile memory device for matching memory controllers of different numbers of banks to be simultaneously accessed
CN1794142A (en) Data buffer system and rending method of data buffer device
CN102622348B (en) Method and device enabling plurality of windows to perform analytical display on network page simultaneously
JPWO2009013879A1 (en) MEMORY CONTROLLER AND NONVOLATILE MEMORY DEVICE USING THE SAME
CN1832035A (en) DDR memory controller and matrix line access method for matrix transposition
CN1292568C (en) Device and method for group continuous transfer of multi-team data
CN1658176A (en) Method and equipment of data communication
CN1181579A (en) Information recording method and its device
CN1652248A (en) Method and memory system in which operating mode is set using address signal
CN114631083B (en) Time-to-live for memory access by a processor
CN1831799A (en) Direct memory access controller and method for data transfer using it
JP2005174286A5 (en)
JPH09179779A (en) Computer system and data transfer method
TWI747660B (en) Method and apparatus and computer program product for reading data from multiple flash dies
CN104461967A (en) Parallel data interface supporting synchronous and asynchronous transmission modes
CN101488119B (en) Address interpretation method, apparatus and single-board

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant