Method and apparatus for transfer of data between cache and flash memory in an internal combustion engine control system
First Claim
1. A method of accessing flash memory in an internal combustion engine control system, said method comprising the steps of:
- providing an auxiliary memory cache having substantially faster access speed than the flash memory and substantially smaller data storage capacity than the flash memory;
copying data stored in a first area of the flash memory into said auxiliary memory cache;
operating on any of said copied data in said auxiliary memory cache; and
writing said operated on data in said auxiliary memory cache back into said first area of the flash memory, in response to either of two conditions;
(a) the passage of a predetermined time period of approximately twenty-four hours since the copying step, or (b) an attempted read or write access to an area of the flash memory containing flash memory data not presently contained within said auxiliary memory cache, whichever occurs first.
0 Assignments
0 Petitions
Accused Products
Abstract
In a microprocessor-based automotive control system including flash memory and a RAM cache sized substantially smaller than the storage capacity of the flash memory, a caching technique is operable, in accordance with one aspect of the invention, to move areas of the flash memory into and out of the cache. The flash memory is updated by the contents of the cache each time the a new access is attempted to an area of flash memory or after a predefined time period has elapsed since such an access has been attempted. In accordance with another aspect of the invention, 9 bit storage within the flash memory is disallowed and only word (16 bit) or longword (32 bit) storage is allowed therein, so that the flash memory is addressable only on even boundaries thereof. A software algorithm is operable to modify a request for access to an odd flash memory address so that the request properly points to an address of the cache that contains the actual data of interest.
53 Citations
8 Claims
-
1. A method of accessing flash memory in an internal combustion engine control system, said method comprising the steps of:
-
providing an auxiliary memory cache having substantially faster access speed than the flash memory and substantially smaller data storage capacity than the flash memory;
copying data stored in a first area of the flash memory into said auxiliary memory cache;
operating on any of said copied data in said auxiliary memory cache; and
writing said operated on data in said auxiliary memory cache back into said first area of the flash memory, in response to either of two conditions;
(a) the passage of a predetermined time period of approximately twenty-four hours since the copying step, or (b) an attempted read or write access to an area of the flash memory containing flash memory data not presently contained within said auxiliary memory cache, whichever occurs first.- View Dependent Claims (2, 3, 4)
-
-
5. An automotive electronic control system comprising:
-
a flash memory unit;
a cache having substantially smaller data storage capacity than said flash memory unit; and
a processor having means for copying data stored in a first area of said flash memory unit into said cache and means for writing data in said cache back into said first area of said flash memory unit, in response to either of two conditions;
(a) the passage of a predetermined time period of approximately twenty-four hours since the copying step, or (b) an attempted read from or write to an area of the flash memory unit containing flash memory data not currently contained within said cache, whichever occurs first.- View Dependent Claims (6, 7, 8)
-
Specification