Skip to content
Sign in

You’re reading crazybill’s reply in this thread.Jump to it

VEEP3.0 rating from 163 members57.7K ptsRate

Improving memory management in multifunction embedded devices

Improving memory management in multifunction embedded devices







David Cross and Stephen Harris
Page 1 of 2
EE Times
(08/15/2008 7:00 PM EDT)

Consumer embedded devices are becoming increasingly loaded with a range of diverse software applications and device drivers in response to end-user multitasking demands.



The most apparent example of this is the mobile handset, which consolidates the functionality of a portable media player, digital still camera, portable navigation system and Web terminal.



Many key players in the mobile device industry have opted to use MLC NAND flash (with current costs at roughly $2/Gbyte) in their products, rather than less cost-effective flash technology such as NOR and SLC NAND. Although this is the most economical high-density storage solution, MLC NAND is difficult to manage effectively while maintaining high throughput. The most basic MLC NAND controller must encapsulate at least the following functionality: (1) error correction, (2) bad block management and (3) wear leveling.



Error correction requires the use of either a software algorithm that reads all incoming and outgoing data (placing the processor in the data path) or a dedicated hardware ECC engine. When a soft algorithm is used, all error correction work must also be done in software. If a dedicated ECC engine is implemented, at least two approaches are possible.



The first is implementing an ECC engine that performs both error correction and error detection. This implementation is less common on embedded processors because of the complexity and inflexibility of such a design. As MLC NAND technology continues to develop, the amount of bit errors caused by geometry-related issues increases and calls, in turn, for higher orders of bit error correction. Because of this and other factors, inflexible hardware ECC designs for embedded processors (which evolve more slowly than NAND technology) quickly become obsolete, often unable to justify up-front development costs.



The second (and more common) approach is implementing the ECC engine as an ECC calculation or error detection mechanism. This approach relies on software to actually perform the error correction for read data pages and to retrieve the ECC from the engine in order to write it to NAND for written pages. As is the case with a soft implementation, this makes the embedded processor a part of the data path for all incoming and outgoing data between the NAND and destination peripherals.



A basic MLC NAND controller is also required to manage bad blocks. Doing so involves correctly interpreting blocks marked by the manufacturer as bad, as well as identifying blocks that have gone bad through repeated usage. This management is almost always implemented in software, creating extra load for a multipurpose application processor. NAND controllers need to implement a wear-leveling algorithm to reduce the number of blocks that become bad from over-usage. Depending on the methods used to implement this algorithm, this requires that large data structures be maintained in volatile memory or read from the nonvolatile storage to track usage statistics.



The requirement that NAND controllers manage bad blocks and spread writes throughout the NAND also requires that the physical block locations where data is actually written to the NAND differ from the logical block locations seen by a file system. This logical-to-physical mapping must be maintained by the software and imposes not only additional memory requirements for data structures but also added processor cycles for their maintenance. These requirements scale proportionally to the size of the attached NAND device or devices used.



The impact of all of these software requirements for memory management can cause significant performance reductions, but this is not always the case for fixed-function devices. In the latest iPod Nano (third generation), for example, the Apple engineers were able to achieve above-average performance during data transfer between a PC host and their device (~10 Mbytes/s), an industry usage model commonly referred to as "sideloading." Teardown analysis demonstrates that there are two main ways that their engineering team was able to attain this performance. The first is by dedicating much of their application processor's bandwidth to sideloading. The iPod is unusable as a music player while sideloading is ongoing. The second is using large file system caches in the 256-Mb DDR SDRAM, reporting back to the PC host that data is written long before it actually hits nonvolatile memory.





Page 2: Improving memory management in multifunction embedded devices






Page 1 2

Join the conversation about e.Digital.

Reply

Replies

  1. "The requirement that NAND controllers manage bad blocks and spread writes throughout the NAND also requires that the physical block locations where data is actually written to the NAND differ from the logical block locations seen by a file system. This logical-to-physical mapping must be maintained by the software and imposes not only additional memory requirements for data structures but also added processor cycles for their maintenance. These requirements scale proportionally to the size of the attached NAND device or devices used."





    Not a problem for e.Digital, no additional memory requirements necessary, for MLC or SLC NAND. While beating that, with yet, other bells and whistles allowing for non contiguous or contiguous total data recall under complex utility.

    We wait

    doni

    1. Doni.

      Here a question I wanted to ask you a long time ago.Is there flash memeory in electronics cars and if so is it possble that our tech could lenghten time battery life?

      Thanks for all of your imput.

      1. Is there flash memeory in electronics cars and if so is it possble that our tech could lenghten time battery life?

        "electronics cars" ??

        e.Digital saves power through patented novel digital processes where power is consumed at a less rate compared to status quo digital processes.

        A digital process cannot be compared to electric motor power consumption.

        With that, e.Digital does have applications to monitor only the condition of a battery, that IMO, could be utilized for various battery technologies.

        doni

        1. Apple's Asia-Pacific senior product marketing manager Yeo Eng Yiong (unseen) displays the new iPod nano at its India launch in Mumbai, September 2007. Japan has warned users of Apple iPod nanos of a potential fire risk after two new instances in which the popular portable music players overheated.(AFP/File/Sajjad Hussain)

          By JESSICA MINTZ, AP Technology Writer Tue Aug 19, 4:03 PM ET

          SEATTLE - Apple Inc. said Tuesday that batteries from a single supplier are to blame for the meltdown of some models of its tiny iPod Nano digital music player.


          The company's written statement came in response to a Japanese government report that two iPod Nanos overheated in Tokyo, scorching nearby paper and a woven straw mat.

          Apple said the flaw affected first-generation Nanos, sold between September 2005 and December 2006, in very rare instances. The company's statement added that "There have been no reports of serious injuries or property damage, and no reports of incidents for any other iPod Nano model."

          Japan's government has been working with Apple to investigate three separate cases of iPods that overheated while being recharged, according to Ministry of Economy, Trade and Industry official Hiroyuki Yoshitsune. A defect in the lithium-ion battery was suspected in all three cases.

          Millions of lithium-ion laptop batteries made by Sony for Apple, Dell Inc., Lenovo Inc. and other PC makers were recalled in 2006 and 2007 after it was discovered that they could overheat and ignite.

          Apple did not immediately return a call seeking the name of the company that made the iPod batteries in question. Yoshitsune declined to name the supplier.

          No one was injured during the two Tokyo incidents disclosed Tuesday. Yoshitsune said the cases involved an iPod Nano, model number MA099, which singed nearby paper in August, and model MA005, which burned a traditional Japanese tatami mat in January. Both music players were twisted out of shape from the heat and became unusable, he said.

          The latest problem follows a similar report from the Japanese ministry in March about sparks shooting out of an iPod Nano.

          Apple's iPod players are extremely popular in Japan and coveted as fashion items, even though Japanese manufacturers produce a host of iPod rivals.