This is a continuation of U.S. patent application Ser. No. 12/904,733 filed Oct. 14, 2010.
Conventional electronic devices regularly include one or more types of memories. Typically a memory controller is utilized to manage the flow of data between one or more processing units and one or more memory units of the electronic device. A common type of memory in conventional electronic devices is the flash memory. Flash memory is designed to be erased and programmed in large sections of the memory.
In the conventional art there are multiple architectures, command sets, protocols, bus interfaces and the like standards for memory devices. For example, there are also multiple standards for flash memory devices, such as legacy, ONFI, Samsung and JEDEC. Such flash memory standards are each slightly different, and each allow for vendor specific commands. A conventional memory controller typically functions with a single memory standard or a small subset of the standards. The different architectures, command sets, protocols, signal interface definitions and the like prevent a conventional memory controller from supporting memory accesses to different memory devices. Accordingly, there is a continuing need for memory controller techniques to support multiple standards.
The present technology may best be understood by referring to the following description and accompanying drawings that are used to illustrate embodiment of the present technology.
Embodiments of the present technology are directed toward programmable memory controllers, and the setup and operation thereof. In a setup embodiment, command sets for one or more memory devices are determined. The one or more memory devices may include one or more flash memory devices having one or more different architectures, conforming to different standards, utilizing different communication protocols, having different interfaces and/or the like. Each of the command operations are decomposed into one or more primitives. The primitives may include command cycles, address cycles, and/or data cycles. A mapping between the command operations and the one or more primitives are stored in a command translation data structure of a memory controller.
In an operation embodiment, a command translation data structure of a memory controller is programmed with a mapping between one or more command operations and one or more primitives. The one or more primitives were decomposed from one or more command operations determined for one or more memory devices. Thereafter, the memory controller receives command operations from one or more processing units. Each received command operation is translated by the memory controller to a set of one or more corresponding primitives using the command translation data structure. The memory controller then outputs the set of one or more corresponding primitives for each received command operation. The appropriate primitives are output to an appropriate memory device and/or an appropriate processing unit.
Embodiments of the present technology are illustrated by way of example and not by way of limitation, in the figures of the accompanying drawings and in which like reference numerals refer to similar elements and in which:
Reference will now be made in detail to the embodiments of the present technology, examples of which are illustrated in the accompanying drawings. While the present technology will be described in conjunction with these embodiments, it will be understood that they are not intended to limit the invention to these embodiments. On the contrary, the invention is intended to cover alternatives, modifications and equivalents, which may be included within the scope of the invention as defined by the appended claims. Furthermore, in the following detailed description of the present technology, numerous specific details are set forth in order to provide a thorough understanding of the present technology. However, it is understood that the present technology may be practiced without these specific details. In other instances, well-known methods, procedures, components, and circuits have not been described in detail as not to unnecessarily obscure aspects of the present technology.
Embodiments of the present technology are directed toward programmable memory controller techniques that support different command sets, protocols and interfaces and new command sets, protocols and interfaces in the future. In addition, embodiments reduce the amount of data passed between the processor and the memory controller for each command.
Referring to
Referring again to
At 120, the command operations are each decomposed into one or more primitives of one or more cycles. The primitives may include one or more command (CMD) cycles, one or more address (ADDR) cycles, and/or one or more data (DATA) cycles. The command operations may also be decomposed into one or more durations for one or more of the primitives for each of one or more protocols corresponding to one or more sets of the one or more command operations. The command operation may also be decomposed into one or more delays after one or more primitives for each of one or more protocols corresponding to one or more sets of one or more command operations. The durations before one or more primitives and/or delays after one or more primitives may implement timing parameters of the one or more protocols. The command operation may also be decomposed into one or more signal interfaces definitions for one or more sets of command operations. The signal interface definitions may define the state and/or use of various pins for each primitive and/or protocol.
Referring to now
By breaking down the memory protocol into primitives, arbitrarily complex sequences can be constructed by chaining together the primitives as building blocks. At 130, one or more sequences of primitives for specifying at least a portion of one or more command operations may optionally be determined. In one implementation, a macro may be specified for each of one or more commonly used sequence of primitives. The macro for a given sequence is generated from one or more primitives, one or more durations and/or one or more delays. In one implementation, durations and delays may be implemented by the concept of ‘busy’ and/or ‘poll.’ Busy and/or polling concepts are utilized to implement timing between the primitives. Busy, however, is not put on the bus. An exemplary set of primitives and macros is illustrated in Table 1.
At 140, the one or more primitives are stored in a command translation data structure of the memory controller. The command translation data structure may be programmed with a mapping between the command operations and the primitives of the programmable memory controller. The mapping between the one or more command operations and the one or more sequences of primitives may also include one or more durations for one or more primitives for each of one or more protocols corresponding to one or more sets of the one or more command operations for one or more memory devices. The mapping between the one or more command operations and the one or more sequences of primitives may also include one or more delays after one or more of the primitives for each of one or more protocols corresponding to one or more sets of the command operations for one or more of the memory devices. The mapping between the one or more command operations and the one or more sequences of primitives may also include one or more signal interface definitions for one or more sets of command operations for one or more memory devices. The data structure may be programmed, as microcode or the like, into the memory controller at the beginning of boot. The microcode is written and programmed into the memory controller to adapt to different memory device standards, different protocols, and/or specific features for one or more different memory devices.
If one or more sequences of primitives are also determined at 130, the sequences may also be stored as macros in the command translation data structure. In such case, the data structure provides a mapping between operation commands and the primitives and optionally the macros for each standard. In another implementation, firmware of the memory controller may be programmed to selectively execute the one or more sequences of primitives.
The above described setup process may be implemented in hardware, software (e.g., computing device executable instructions stored in one or more computing device readable media), firmware (e.g., computing device programmable circuits) or one or more combinations of hardware, software and/or firmware.
Referring now to
Referring now to
Thereafter, command operations 470 are received by the memory controller 210 from one or more processing units 220, at 520. In one implementation, the received command operations 470 may be buffered in the command buffer 410 of the memory controller 210. The command buffer 410 may be a first-in-first-out (FIFO) buffer.
At 530, the command operations 470 are each translated by the memory controller to a set of one or more corresponding primitives 480 using the command translation data structure. Portions of given command operations may also be translated to one or more sequences of one or more primitives, referred to herein as macros, using the command translation data structure. Translation of the command operations to one or more corresponding primitives and/or sequences of one or more primitives may also include a duration of one or more of the primitives. Translation of the command operations may also include one or more delays after one or more of the primitives. Translation of the command operations to one or more corresponding primitives and/or sequences may also include one or more signal interface definitions. In one implementation, the front end 420 converts received command operations 470 into a set of primitives and/or macros 480 as mapped in the command operation primitive data structure in the program memory 430.
In one implementation, to perform a page read, a front end of the memory controller using table 1 may issue a ‘0’ primitive code followed by a ‘1’ primitive code, or it can issue a ‘2’ primitive code to accomplish the same task. The flexibility allowed by the former however allows the interleaving of operations across different chip enables (CEs) or logical units (LUNs) of a memory cell array. Such interleaving of primitives may improve performance. In another example, this approach allows for support of an 8 KB page device even though the hardware is designed to support 4 KB only. This can be done by issuing a 6, 8 and 0.
In another implementation, the primitives are used as part of a micro-instruction set and a set of memory controller commands maybe arranged as a table of pointers, or substantially microcode. An exemplary micro-instruction set and corresponding set of memory controller commands is illustrated in Table 2.
At 540, set of primitives are output from the memory controller to one or more memory devices and/or one or more processing units. In one implementation, the back end 440 encodes the appropriate parameters of the primitives and/or macros 480 including any applicable durations and/or delays. The back end 440 then converts the set of primitives and/or macros 480 corresponding to each received command operation 470 into a corresponding bit stream 490 according to any applicable signal interface definition. The pad interface 460 outputs the bit stream 490 with the appropriate timing.
In another implementation, select primitives and/or macros may be built into a hardware sequence. The hardware sequence may be implemented in programmable firmware 450 of the back end 440.
The back end 450 may also interleave one or more sets of primitives and/or macros as illustrated in
As indicated above, each primitive can be programmed with a duration and/or a delay (in clock cycles) after the primitive. This allows the memory controller 210 to meet whatever timing parameters are needed. For example, a common operation in dealing with flash devices is polling for some kind of ready status. To offload the firmware from having to do this polling manually, and thereby expending clock cycles, support is available to autonomously perform this checking as part of a constructed sequence.
As indicated above, the command translation data structure may be extended to define the state and/or use of the various pins for each primitive thereby addressing varying signal interface definitions. For example, in one standard, pin A sees a clock-like signal that is used to clock in data from the flash and in another standard, pin B is used instead. Similarly, double data rate (DDR) and single data rate (SDR) protocol can also be specified for each primitive.
The above described memory controller and/or functions performed by the memory controller may be implemented in hardware, software (e.g., computing device executable instructions stored in one or more computing device readable media), firmware (e.g., computing device programmable circuits) or one or more combinations of hardware, software and/or firmware.
The foregoing descriptions of specific embodiments of the present technology have been presented for purposes of illustration and description. They are not intended to be exhaustive or to limit the invention to the precise forms disclosed, and obviously many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the present technology and its practical application, to thereby enable others skilled in the art to best utilize the present technology and various embodiments with various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the claims appended hereto and their equivalents.
Number | Name | Date | Kind |
---|---|---|---|
4360916 | Kustedjo et al. | Nov 1982 | A |
5343481 | Kraft | Aug 1994 | A |
5533035 | Saxena et al. | Jul 1996 | A |
5603001 | Sukegawa et al. | Feb 1997 | A |
5734926 | Feeley et al. | Mar 1998 | A |
5787279 | Rigoutsos | Jul 1998 | A |
5878279 | Athenes | Mar 1999 | A |
6000006 | Bruce et al. | Dec 1999 | A |
6119196 | Muller et al. | Sep 2000 | A |
6222144 | Nishikawa | Apr 2001 | B1 |
6223144 | Barnett | Apr 2001 | B1 |
6636940 | Hodges | Oct 2003 | B1 |
6760743 | Heddes et al. | Jul 2004 | B1 |
6772276 | Dover | Aug 2004 | B2 |
6985977 | Vrancic | Jan 2006 | B2 |
7100103 | Mizrachi et al. | Aug 2006 | B2 |
7237016 | Schober | Jun 2007 | B1 |
7386683 | Blumrich | Jun 2008 | B2 |
7392330 | Weatherspoon | Jun 2008 | B2 |
7454546 | Lilley | Nov 2008 | B1 |
7457897 | Lee et al. | Nov 2008 | B1 |
7603523 | Blumrich | Oct 2009 | B2 |
7689998 | Chrysanthakopoulos | Mar 2010 | B1 |
7761636 | Mott et al. | Jul 2010 | B2 |
7877254 | Luan et al. | Jan 2011 | B2 |
7877524 | Annem et al. | Jan 2011 | B1 |
7979615 | Spitzer | Jul 2011 | B1 |
8103836 | Blumrich | Jan 2012 | B2 |
8108590 | Chow et al. | Jan 2012 | B2 |
8694750 | Vyshetski | Apr 2014 | B2 |
8732350 | Vyshetski | May 2014 | B2 |
9208108 | Vyshetsky et al. | Dec 2015 | B2 |
20020078270 | Hofstee et al. | Jun 2002 | A1 |
20020161941 | Chue et al. | Oct 2002 | A1 |
20030172147 | Chang et al. | Sep 2003 | A1 |
20040044811 | Vrancic | Mar 2004 | A1 |
20040186946 | Lee | Sep 2004 | A1 |
20050057973 | Khatami et al. | Mar 2005 | A1 |
20050097182 | Bishop | May 2005 | A1 |
20050097183 | Westrelin | May 2005 | A1 |
20050160200 | Saito | Jul 2005 | A1 |
20050289253 | Edirisooriya et al. | Dec 2005 | A1 |
20060004931 | Weatherspoon | Jan 2006 | A1 |
20060075395 | Lee et al. | Apr 2006 | A1 |
20060136570 | Pandya | Jun 2006 | A1 |
20060152981 | Ryu | Jul 2006 | A1 |
20060236039 | Golander | Oct 2006 | A1 |
20070073920 | Wu et al. | Mar 2007 | A1 |
20070174495 | Tung et al. | Jul 2007 | A1 |
20080034153 | Lee et al. | Feb 2008 | A1 |
20080126684 | Wu et al. | May 2008 | A1 |
20080140910 | Flynn et al. | Jun 2008 | A1 |
20080250195 | Chow et al. | Oct 2008 | A1 |
20080270681 | Van Acht et al. | Oct 2008 | A1 |
20090002761 | La et al. | Jan 2009 | A1 |
20090070520 | Mizushima | Mar 2009 | A1 |
20090100307 | Lee | Apr 2009 | A1 |
20090138654 | Sutardja | May 2009 | A1 |
20090150605 | Flynn et al. | Jun 2009 | A1 |
20090287876 | Yeh | Nov 2009 | A1 |
20090300318 | Allen et al. | Dec 2009 | A1 |
20100146171 | Takemae | Jun 2010 | A1 |
20100268864 | Ramiya Mothilal | Oct 2010 | A1 |
20110055668 | Kim et al. | Mar 2011 | A1 |
20110131354 | Smith et al. | Jun 2011 | A1 |
20110161553 | Saxena et al. | Jun 2011 | A1 |
20110161561 | Tsai et al. | Jun 2011 | A1 |
Number | Date | Country |
---|---|---|
0502211 | Sep 1992 | EP |
1271332 | Jan 2003 | EP |
1840722 | Oct 2007 | EP |
2004110436 | Apr 2004 | JP |
2004110438 | Apr 2004 | JP |
2007034581 | Feb 2007 | JP |
2008158991 | Jul 2008 | JP |
Entry |
---|
8273A High Performance Programmable DMA Controller' datasheet by Intel, Oct. 1989. |
Express Apps—PEX 8311′ by PLX Technology, Jan. 2006. |
Wikipedia—Microcontroller article found on http://web.archive.org from Nov. 27, 2007. |
Ashok Sharma, Advanced Semiconductor Memories Architecture, Designs, and Applications, IEEE Press, 2003, at 393-401. |
Gupta, A. et al.: DFTL: A Flash Translation Layer Employing Demand-based Selective Caching of Page-level1 Address Mappings. In: Proceedings of the 14th international conference on Architectural support for programming languages and operating systems, ASPLOS '09, Mar. 7-11, 2009, Washington, DC, USA. pp. 229-240. |
Number | Date | Country | |
---|---|---|---|
20120110242 A1 | May 2012 | US |