Abstract:
Memory devices and memory interfaces are disclosed. In an implementation a memory controller of a memory device is configured to receive a first part of an address for memory access, and to perform a memory access based on said first part and a part of a previously received address.

Description:
FIELD OF THE INVENTION 
       [0001]    The present invention relates to memory devices, memory interfaces for interfacing with memory devices, apparatuses comprising a memory device and/or a memory interface and corresponding methods. 
         [0002]    Many modern electronic devices comprise one or more memory devices for storing data. For example, systems like mobile phones, GPS systems (Global Positioning System) or other mobile devices or embedded systems often use a flash memory for storing data and code. Flash memories are memories which are rewritable, but retain stored data when power is switched off. 
         [0003]    Among flash memories, serial flash memories or parallel flash memories are specific types of flash memories. Serial flash memories generally comprise fewer pins for transmitting information to and from the memory device, for example for pins like an enabling pin, a clock pin, a data input pin and a data output pin. As fewer pins are provided in a serial flash memory device, serial flash memory devices are sometimes preferred for mobile electronic devices where space constrains are important. On the other hand, if for example a single pin is provided for data input and a single pin is provided for data output, all transmission like command transmission, address transmission or data transmission occurs serially, i.e. one bit after the other, which tends to be slower than a parallel data transmission. 
       SUMMARY 
       [0004]    According to an embodiment, a memory device is provided, comprising:
   a memory controller, said memory controller comprising an input to receive an address for a memory access, and   a memory coupled to said memory controller,   said memory controller being adapted to:   receive a first part of an address, and   perform a memory access based on said first port and a port of a previously received address.   
 
         [0010]    Other embodiments relate to memory interfaces, electronic apparatuses comprising a memory device or a memory interface and corresponding methods. 
         [0011]    It is to be noted that the above summary is intended to provide a brief overview of some aspects of the present invention and is not to be construed as limiting. In particular, the above mentioned features of a memory device are not construed to be essential for the invention. 
     
    
     
       BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS 
         [0012]      FIG. 1  shows a block diagram of an electronic apparatus according to an embodiment of the present invention. 
           [0013]      FIG. 2  shows a flow diagram of a method according to an embodiment of the present invention. 
           [0014]      FIG. 3  shows a flow diagram of a method according to a further embodiment of the present invention. 
           [0015]      FIGS. 4 and 5  show examples of addresses of some embodiments of the present invention. 
       
    
    
     DETAILED DESCRIPTION OF THE INVENTION 
       [0016]    In the following, some embodiments of the present invention will be described in detail. It is to be understood that the following description is given only for the purpose of illustration and is not to be taken in a limiting sense. The scope of the invention is not intended to be limited by the embodiments described hereinafter with reference to the accompanying drawings, but is intended to be limited only by the appended claims and equivalents thereof. 
         [0017]    It is to be understood that in the following description of embodiments any direct connection or coupling between functional blocks, devices, components, circuit elements or other physical or functional units shown in the drawings or described herein, i.e. any connection without intervening elements, could also be implemented by an indirect connection or coupling, i.e. a connection or coupling with one or more intervening elements. Furthermore, it should be appreciated that functional blocks or units shown in the drawings may be implemented as separate circuits in some embodiments, but may also be fully or partially implemented in a common circuit, for example an integrated circuit, in other embodiments. It is further to be understood that any connection which is described as being wire-based in this following specification may also be implemented as a wireless communication connection unless noted to be contrary. 
         [0018]    It should be noted that the drawings are provided to give an illustration of some aspects of some embodiments of the present invention and are therefore regarded to be schematic only. In particular, elements shown in the drawings are not necessarily to scale with each other, and the placement of various elements in the drawings is chosen to provide a clear understanding of the respective embodiment and is not to be construed as necessarily reflecting the actual relative locations of the various components shown. Therefore, any directional terminology like “top”,“bottom”,“left” or “right” is used only for easy reference to the drawings and is not to be construed as limiting the actual positions. 
         [0019]    The features of various embodiments described in the following may be combined with each other unless specifically noted otherwise. On the other hand, describing an embodiment as comprising a plurality of features is not to be construed as indicating that all these features are necessary for practicing the present invention or that all these features may only be used in combination with each other. Instead, in other embodiments, some features may be left out or replaced by alternative features, and in other embodiments additional features may be added. 
         [0020]    Turning now to  FIG. 1 , an electronic apparatus  10  according to an embodiment of the present invention is shown. Electronic apparatus  10  may basically be any kind of electronic apparatus, for example a computer or a mobile electronic device like a cellular phone, a portable gaming device, a GPS receiver (Global Positioning System) or personal digital systems. 
         [0021]    Electronic device  10  comprises a memory device  15  according to an embodiment of the present invention. Memory device  15  may but need not, be a flash memory device. However, in other embodiments memory device  15  may be or comprise a different type of memory device, for example a random access memory (RAM) or a phase change memory. Memory device  15  in an embodiment may but need not, be a memory device incorporated in electronic apparatus  10 , but in other embodiments may also be a removable memory device, for example a memory device of a removable memory card. 
         [0022]    Electronic apparatus  10  furthermore comprises circuitry  11  and a memory interface  12  according to an embodiment of the present invention via which circuitry  11  may access memory device  15 , for example write data to memory device  15  or read data from memory device  15 . Memory interface  12  may comprise a bus system for coupling with circuitry  11 . Circuitry  11  may be any kind of circuitry incorporated in the particular electronic apparatus  10  and may for example comprise one or more processors, logic elements, resistors, capacitors, integrated circuits or any other type of electronic components. For example, in case electronic apparatus  10  is a cellular phone, circuitry  11  may comprise communication circuitry. 
         [0023]    Memory interface  12  is coupled with memory device  15  via a connection  16  in the embodiment of  FIG. 1 . In an embodiment, connection  16  may be a serial connection. For example, connection  16  may comprise a single line for transmitting data from memory interface  12  to memory device  15  and a further line for receiving data from memory device  15  at memory interface  12 . In addition, connection  16  may comprise further lines for example a line for transmitting a clock signal or a line for transmitting an enabling signal. However, other connections like parallel connections are also possible. 
         [0024]    Memory device  15  in the embodiment shown comprises a memory controller  13  and memory  14  which may be arranged in one or more memory banks. 
         [0025]    In order to access memory device  15  upon a request from circuitry  11 , for example for reading data from memory device  15 , memory interface  12  transmits a corresponding access command together with access information via connection  16  to memory device  15 . Such access information generally comprises a memory address at which the access is to be performed, for example a memory address from which data is to be read. In an embodiment, the connection  16  is such that the address is sent sequentially to memory controller  13  of memory device  15 . For example, when connection  16  is a serial connection as explained above, bits of the address are sent one after the other. For example, sending a 24-bit-address then may require 24 clock cycles during each of which one bit is sent. However, the number of 24 bits is to be taken only as an example. Also, a similar situation may occur with parallel connections  16  the width of which is smaller than the address length. For example, if connection  16  is a 4-bit parallel connection and the address length again is 24 bits, 6 clock cycles during each of which 4 address bits are transmitted are needed for transmitting the complete address. 
         [0026]    In some embodiments, memory controller  13  starts the memory access after having only received a part of the complete address via connection  13 . In an embodiment, the remaining (not yet) received part of the address is estimated based on a previous address of a previous memory access. Therefore, in such an embodiment the memory access is performed with an estimated address which may, but need not be correct. This kind of access will be also referred to as “opportunity access” in the following. In such embodiments, time can be saved in case the estimated address used for the opportunity access (in the following also referred to as opportunity access address or OA address) corresponds to the actual desired address. After having received the complete address, in an embodiment memory controller  13  may then check whether the OA address was the correct one and if not, repeat the memory access with the complete address then received. 
         [0027]    In an embodiment, memory interface  12  or a control unit thereof accommodates the different access times needed when the opportunity access (OA) is successful and when it is not successful and the complete received address has to be used by inserting different numbers of so-called “dummy clock cycles”, i.e. different numbers of clock cycles where essentially nothing related to the memory access happens for example on the above-mentioned bus system apart from waiting for the completion of the address transmission. 
         [0028]    The above concepts will be illustrated further in the following with reference to  FIGS. 2 and 3 . 
         [0029]      FIG. 2  shows an embodiment of a method which may for example be implemented in memory interface  12 , and  FIG. 3  shows a flow diagram of an embodiment of a method which for example may be implemented in memory controller  13 . However, it should be noted that the embodiments discussed now with reference to  FIGS. 2 and 3  may be implemented independent from the embodiment of  FIG. 1  and also independent from each other. 
         [0030]    Turning now to  FIG. 2 , at  20  for example in memory interface  12  or in another part of a circuit which intends to access a memory an address for the memory access is received or determined. Determining the address may for example involve converting a received logical address to a physical address of the memory device, although such a conversion in other embodiments may also be performed in the memory device itself. 
         [0031]    At  21 , the address received or determined at  20  is transmitted to a memory device like for example memory device  15  of  FIG. 1 , possibly together with command data (for example a read command). 
         [0032]    At  22 , the above-mentioned opportunity access address is determined based on a part of the address transmitted at  21  and a part of a previously used address, for example a previous address used immediately preceding the address determined at  20 . Examples for such opportunity access addresses will be discussed later. 
         [0033]    At  23  it is determined if the opportunity access address is correct, i.e. if it matches the address received or determined at  20 . If the OA address is correct, this means that the actual memory access in the memory device is performed faster than with an access based on the complete received address at the memory device. In this case, at  24  a reduced number of dummy cycles is inserted. The reduced number of dummy cycles may be a positive number less than a regular number of dummy cycles which is necessary in case the memory access is based on the complete received address, or may be even zero. 
         [0034]    If the OA address is not correct, this means that the memory access will be performed based on the complete address upon receipt in the memory device, and the regular number of dummy cycles is inserted at  25 . The dummy cycles as explained above may for example be dummy cycles on a bus system. 
         [0035]    It should be noted that the diagram of  FIG. 2  is not to be construed as indicating that the various action described with reference thereto necessarily have to performed in the detected order. For example, in  FIG. 2 , the determining of the OA address at  22  and the actions described with reference to  23 ,  24  and  25  may be performed before the transmission of the address at  21  or also parallel to the transmission of the address, i.e. the various actions at  22 - 25  may be performed while the address is transmitted to the memory device. 
         [0036]    Turning now to  FIG. 3 , a method of an embodiment which may be implemented in a memory controller like memory controller  13  of a memory device, for example a flash memory device, will be described. 
         [0037]    At  30 , a first part of an address is received. At  31 , an opportunity access address (OA address) is determined based on the first address part received at  30  and a part of previous address received during a previous memory access, for example received for an immediately preceding memory access. 
         [0038]    At  32 , a memory access based on the OA address is initiated, for example data is read from a memory associated with the memory controller at the OA address. 
         [0039]    At  33 , a second address part is received, the first address part received at  30  and the second address part received at  33  in this embodiment forming the complete actual address. At  34 , it is checked if the OA address matches this actual address. If this is the case, the memory access at  32  was made using the correct address, and at  35  the OA memory access results obtained by the memory access at  32  are returned, for example to a circuitry from which the address (usually together with some additional command) was received. 
         [0040]    If, on the other hand, the OA address does not match the actual address, at  36  a memory access based on the actual address is initiated, i.e. a regular access based on the complete received address. At  37 , the result of this regular memory access is then returned. 
         [0041]    Similar to what has been explained for the embodiment of  FIG. 2 , the arrangement of the various actions in  FIG. 3  serve merely as examples, and in other embodiments other orders are possible. For example, the receiving of the second address part at  33  in an embodiment may be performed in parallel to the OA memory access at  32 , i.e. while the memory controller where the method is implemented accesses the memory at the same time the memory controller continues to receive the address. 
         [0042]    In the following, examples for forming opportunity access addresses will be explained with reference to  FIGS. 4 and 5 . In these examples, it is assumed that the memory addresses comprise 24 bits each and have to be transmitted via a serial bus, i.e. one bit after the other. However, the number of 24 bits serves only as an example and depending on the type of memory other address lengths may be used as well. 
         [0043]    In these examples it is assumed that A 23  is the most significant bit, i.e. the bit with the highest value (e.g. 2 23 ), while A 00  is the least significant bit, i.e. the bit with the lowest value (e.g. 2 0 ). Moreover, it is assumed in the example of  FIG. 4  that in consecutive memory accesses there is a high probability that one or more of the most significant bits remain constant over a plurality of addresses, i.e. that the address usually does not change much from access to access. 
         [0044]    In the embodiment of  FIG. 4 , for example 16 megabyte of memory may be addressed, and the memory may be grouped in 128 kilobyte-groups, where the group is given by the 7 most significant bits which for example tend to change not often. 
         [0045]    In  FIG. 4 , in an upper row generally denoted with 40 address bits A 23  to A 00  of an address currently sent from a memory interface like memory interface  12  of  FIG. 1  to a memory device, for example memory controller  13  of memory device  15  of  FIG. 1 , are shown. The order in which the address bits are sent is given by a row generally labeled  46  in  FIG. 4 . As can be seen, in this embodiment the address bits are not sent in their consecutive order, i.e. the order according to their values, but at first address bits A 16  to A 00  are sent, and then address bits A 23 -A 17  are sent. In other words, the seven most significant bits A 23 -A 17  are sent at the end of the address transmission. In this embodiment, as indicated by  47  an opportunity access location (OAL) is set to 17, i.e. after 17 (of the 24) received address bits the opportunity access explained above is started, for example the memory access at  32  in the embodiment of  FIG. 3 . Reference numeral  47  may for example symbolize a register within a memory controller where the OAL is stored. For example, in the register a number of address bits received, i.e. a size of an address part received, before the opportunity access starts, may be stored. In other words, after having received the address bits A 16 -A 00 , an opportunity access address is formed which is shown in a middle row of  FIG. 4  and generally labeled  41  by combining these 17 bits of the current sent address  40  with the 7 most significant bits A 23 -A 17  of a previously received address which is shown in the lower row of  FIG. 4  and generally labeled  42 . Previous address  42  may for example be an address used for a memory access immediately preceding the memory access for which the current sent address  40  is intended. The bits of the previous address as indicated by a row  48  in  FIG. 4  of the embodiment currently discussed were sent in the same order as the bits of the currently sent address  40 , although in other embodiments this need not be the case. The start of the opportunity access in  FIG. 4  is also marked with an arrow  43 . In the embodiment of  FIG. 4 , when checking if the opportunity access address  41  corresponds to the actual address, i.e. currently sent address  40 , only the bits A 23 -A 17  need to be compared as indicated in  FIG. 4  since the remaining opportunity access address is formed on the basis of the currently sent address  40 . As a matter of course, in some embodiments nevertheless the complete addresses may be compared. 
         [0046]    In case the opportunity access address is correct, i.e. in case opportunity access address  41  matches actual address  40 , as indicated by an arrow  44  7 clock cycles corresponding to the transmission of the 7 address bits A 23 -A 17  are saved, and the number of dummy cycles mentioned previously may be reduced accordingly. 
         [0047]    It should be noted that the choice of the opportunity access location (after 17 received bits in the embodiment of  FIG. 4 ) serves only as an example, and other values may be used as well. The choice of the opportunity access location and the order the address bits are sent may be adapted to each other, such that until the opportunity access in an embodiment the lower bits are sent, while after that the higher bits are sent. For example, if the opportunity access location would be set to  15  in the embodiment of  FIG. 4 , first address bits are A 14 -A 00  could be sent followed by address bits A 23 -A 15 . In an embodiment, the choice of the opportunity access location may be user configurable. Generally, a lower opportunity access location, i.e. an earlier start of opportunity access, saves more time in case the opportunity access address matches the actual intented address, but tends to reduce the probability of such a match somewhat. 
         [0048]    It should furthermore be noted that the general order explained with reference to  FIG. 4 , i.e. sending lower bits prior to sending higher bits, is suitable in particular for situations where the probability that the lower bits change from address to address is higher than the probability that the higher bits change, for example if adjacent addresses accessed consecutively. In other situations, for example situations where the higher bits tend to change more often, a different order may be used, for example the higher bits may be sent first. 
         [0049]    Also, more complexe orders of sending the bits may be used, for example depending on the actual significance of the various bits. For example, in some embodiments the memory may be organized in so-called memory banks, and some bits may indicate the memory bank to be used. Depending on whether the memory bank tends to change often or less often from address to address, the bits concerning the memory bank may be sent first or last. In general, the ordering of bits and the location of the opportunity access as already mentioned may be chosen depending on which bits tend to change more often, which then may be sent first. 
         [0050]    In  FIG. 5 , the reference numerals basically correspond to the reference numerals of  FIG. 4  plus 10, i.e. the currently sent address is generally labeled  50 , the opportunity access address is generally labeled  51 , the previous address is generally labeled  52 , the start of opportunity access is generally labeled  53 , the time saving of the opportunity access is generally labeled  54 , the opportunity access location is generally labeled  57 , the order of the currently sent address is generally labeled  56  and the order of the previous address is generally labeled  58 . 
         [0051]    In the embodiment of  FIG. 5 , it is assumed that for example the memory is arranged in banks of 64 kilobytes with a full 16 megabyte address range (where for example the bank is given by the 8 most significant bits A 23 -A 16 ). In situations where the bank changes often A 23 -A 16  may be sent first followed by A 07 -A 00 . After having received these bits, the opportunity access starts as depicted in  FIG. 5 . After this, the more significant bits of the address within the bank A 15 -A 08  may follow. 
         [0052]    As can be seen from the above discussions of variations and alternatives, the scope of the present invention is not to be construed as being limited by the above described embodiments.