1. Field of the Invention
The present invention generally relates to a buffer, and more particularly to a time-sharing buffer access system.
2. Description of Related Art
A data buffer or buffer is commonly used in electronic devices to temporarily hold data before the data is being moved from one place to another place. Regarding a flash memory controller, for example, a buffer such as static random-access memory (SRAM) is adopted to be accessed by master devices such as a host and/or a flash memory. The host and the flash memory may probably be in conflict as both want to access the buffer at the same time. A priority rule is commonly adopted to solve the conflict problem. Specifically, the master devices are assigned with respective priorities, such that a master device with lower priority should wait for other master devices with higher priority to finish their tasks or release their access rights. Therefore, the conventional flash memory control is low in overall performance of the master devices accessing the buffer.
In order to overcome the problems mentioned above, a need has thus arisen to propose a novel scheme of managing buffer access in an efficient manner.
In view of the foregoing, it is an object of the embodiment of the present invention to provide a time-sharing buffer access system for managing a buffer among plural master devices in order to efficiently manage buffer access.
According to one embodiment, a time-sharing buffer access system includes a plurality of buffer handling units, a buffer switch and a time slot controller. The buffer handling units are operable to associatively couple master devices, respectively. A first end of each buffer handling unit is used to independently transfer data to or from the associated master device. A second end of each buffer handling unit is coupled to the buffer switch. The time slot controller is configured to define a time slot, during which one of the buffer handling units is selected by the buffer switch such that data are only transferred between the selected buffer handling unit and the buffer.
According to another embodiment, a memory controller includes a front-end device, a back-end device, a central processing unit (CPU), a buffer and a time-sharing buffer access system. The front-end device is configured to communicate with a host, and the back-end device is configured to communicate with a non-volatile memory. The buffer is operable to be accessed among the front-end device, the back-end device and the CPU. The time-sharing buffer access system is configured to simultaneously transfer data to or from the front-end device, the back-end device and the CPU, and to allocate dedicated time slots respectively and exclusively for the front-end device, the back-end device and the CPU in turn for transferring data between the time-sharing buffer system and the buffer.
In the embodiment, the front-end device 14_A is configured to communicate with the host 16 to act as an interface between the host 16 and the system 10. The back-end device 14_B is configured to communicate with the non-volatile memory 18 to act as an interface between the non-volatile memory 18 and the system 10.
In one example, each time period may be divided to three time slots, of which the first time slot may be allocated to the front-end device 14_A, the second time slot, to the back-end device 14_B, and the third time slot to the CPU 14_C. Accordingly, during the first time slot, only data with respect to the associated front-end device 14_A (and the host 16) may be transferred between the system 10 and the buffer 12; during the second time slot, only data with respect to the back-end device 14_B (and the non-volatile memory 18) may be transferred between the system 10 and the buffer 12; and during the third time slot, only data with respect to the associated CPU 14_C may be transferred between the system 10 and the buffer 12. The time period of the embodiment may, but not necessarily, correspond to one or more clock cycles. In another example, each time period may be divided to four time slots, of which the first time slot may be allocated to the front-end device 14_A, the second and the third time slots to the back-end device 14_B, and the fourth time slot to the CPU 14_C.
As shown in
In one example, the communication channel 104 is a 32-bit channel, such that 32-bit data may be transferred at a time. The transfer buffer 1013 is composed of four data blocks, each being 32-bit wide, therefore resulting in a 128-bit transfer buffer 1013. Accordingly, 128-bit data may be transferred at a time, via the buffer switch 102, between the buffer handling unit 101 and the buffer 12.
Although specific embodiments have been illustrated and described, it will be appreciated by those skilled in the art that various modifications may be made without departing from the scope of the present invention, which is intended to be limited solely by the appended claims.
Number | Name | Date | Kind |
---|---|---|---|
4860193 | Bentley et al. | Aug 1989 | A |
5121479 | O'Brien | Jun 1992 | A |
5179665 | Roslund et al. | Jan 1993 | A |
5224213 | Dieffenderfer et al. | Jun 1993 | A |
5293486 | Jordan et al. | Mar 1994 | A |
5414816 | Oyadomari | May 1995 | A |
5450546 | Krakirian | Sep 1995 | A |
5561823 | Anderson | Oct 1996 | A |
5729708 | Satoh et al. | Mar 1998 | A |
5822618 | Ecclesine | Oct 1998 | A |
5822776 | De Korte et al. | Oct 1998 | A |
5832306 | Martin | Nov 1998 | A |
6185640 | Ross | Feb 2001 | B1 |
6629168 | Kroll et al. | Sep 2003 | B1 |
6977941 | Takahashi et al. | Dec 2005 | B2 |
7216185 | Kato | May 2007 | B2 |
7353344 | Tsuiki | Apr 2008 | B2 |
7450457 | Shiota et al. | Nov 2008 | B2 |
7657673 | Ueda | Feb 2010 | B2 |
7930450 | Swarnkar et al. | Apr 2011 | B1 |
8635386 | Takahashi | Jan 2014 | B2 |
8700824 | Brume et al. | Apr 2014 | B2 |
20030163620 | Minami et al. | Aug 2003 | A1 |
20060149875 | Dong et al. | Jul 2006 | A1 |
20080140883 | Salessi et al. | Jun 2008 | A1 |
20120176842 | Shiota et al. | Jul 2012 | A1 |
20130013825 | Muto | Jan 2013 | A1 |
20130179607 | Brume et al. | Jul 2013 | A1 |
Number | Date | Country | |
---|---|---|---|
20140195701 A1 | Jul 2014 | US |