Claims
- 1. A system for caching data streams, comprising:
a spatial cache system coupled to a processing unit and to a memory, wherein the spatial cache system is adapted to reduce memory latency of the processing unit, wherein the spatial cache system is adapted to store prefetched blocks, each stored prefetched block comprising a plurality of cache lines, and wherein, if a cache line requested by the processing unit resides in one of the stored prefetched blocks and does not reside in the processing unit, then the spatial cache system is adapted to provide the processing unit with the requested cache line.
- 2. The system according to claim 1, wherein the spatial cache system is adapted to provide the processing unit with a cache line requested by the processing unit, the requested cache line not residing in one of the stored prefetched blocks and not residing in the processing unit.
- 3. The system according to claim 2, wherein, if the requested cache line does not reside in the spatial cache system, then the spatial cache system is adapted to generate a missing block request, the requested missing block comprising a plurality of cache lines including the requested cache line.
- 4. The system according to claim 3, wherein, if the requested cache line does not reside in the spatial cache system, then the spatial cache system is adapted to generate a prefetch block request, the requested prefetch block comprising a block with a block address that is sequentially related to a block address of the requested missing block.
- 5. The system according to claim 3, wherein, if the requested cache line does not reside in the spatial cache system, then the spatial cache system is adapted to generate a prefetch block request, the requested prefetch block comprising a particular block of a set of aligned blocks, the set comprising the requested missing block and the particular block.
- 6. The system according to claim 3, wherein the spatial cache system is adapted to receive the requested missing block and adapted to send the requested cache line to the control processor.
- 7. The system according to claim 6, wherein one or more cache lines other than the requested cache line of the requested missing block are stored in the spatial cache system and can be used by the control processor.
- 8. The system according to claim 6, wherein the requested cache line of the requested missing block is not both stored in the spatial cache system and useable by the control processor.
- 9. The system according to claim 1, wherein, if the cache line requested by the processing unit resides in one of the stored prefetched blocks and does not reside in the processing unit, then the spatial cache system is adapted to generate a prefetch block request unless the requested prefetch block already resides in the spatial cache system, the requested prefetch block having a block address that is sequentially related to a block address of the stored prefetch block comprising the requested cache line.
- 10. The system according to claim 1, wherein the spatial cache system is adapted to invalidate a cache line to be written into the memory by the control processor, the cache line residing in the spatial cache system.
- 11. The system according to claim 10, wherein the cache line residing in the spatial cache system is an older version of the cache line to be written into the memory by the control processor.
- 12. The system according to claim 1, wherein the spatial cache system is adapted to invalidate a block stored in the spatial cache system, the block comprising a cache line to be written into the memory by the control processor.
- 13. The system according to claim 1, wherein the spatial cache system comprises a prefetch control, a spatial cache and a prefetch request buffer, the prefetch control being coupled to the spatial cache, the spatial cache being coupled to the prefetch request buffer.
- 14. The system according to claim 13, wherein the spatial cache comprises a data array and a directory.
- 15. The system according to claim 13, wherein the prefetch request buffer comprises a missing request queue and a prefetch request stack.
- 16. The system according to claim 15, wherein the missing request queue comprises a first-in-first-out (FIFO) buffer.
- 17. The system according to claim 15, wherein the prefetch request stack comprises a last-in-first-out (LIFO) buffer.
- 18. The system according to claim 15, wherein the spatial cache system is adapted to handle a plurality of prefetch block requests and missing block requests.
- 19. The system according to claim 1, wherein the spatial cache system is adapted not to allow the requested cache line to be reused.
- 20. The system according to claim 1, wherein the spatial cache system is adapted to make a space comprising the requested cache line a more likely candidate to be refilled.
- 21. The system according to claim 1, wherein the spatial cache system is adapted to prefetch a particular block of a set of aligned blocks.
- 22. The system according to claim 21, wherein the set comprises the particular block and one of a first block and a second block, the first block residing in the spatial cache system and comprising the cache line requested by the processing unit, the second block not residing in the spatial cache system and comprising the cache line requested by the processing unit.
- 23. A method for reducing memory latency between a memory and a control processor, comprising:
providing a spatial cache system that is coupled to the memory and to the control processor, the spatial cache system comprising blocks stored in a spatial cache, the blocks comprising a plurality of cache lines; if a cache line requested by the control processor does not reside in the control processor and does reside in the spatial cache, then the spatial cache system sends the requested cache line to the control processor; and if the cache line requested by the control processor does not reside in the control processor and does not reside in the spatial cache, then the spatial cache system generates a missing block request and generates a prefetch block request.
- 24. The method according to claim 23, wherein the missing block request requests to fetch a missing block that comprises the requested cache line.
- 25. The method according to claim 24, wherein the prefetch block request requests to fetch a prefetch block having a block address that is sequentially related to a block address of the missing block.
- 26. The method according to claim 23, further comprising:
receiving a missing block from the memory in response to the missing block request; sending the requested cache line of the missing block to the control processor; and storing cache lines other than the requested cache line of the missing block in the spatial cache.
- 27. The method according to claim 23, further comprising:
receiving a missing block from the memory in response to the missing block request; sending the requested cache line of the missing block to the control processor; storing the missing block in the spatial cache; and making the requested cache line stored in the spatial cache inaccessible to the control processor after the requested cache line has been sent to the control processor.
- 28. The method according to claim 23, comprising:
invalidating a particular cache line residing in the spatial cache if an updated version of the particular cache line is to be written into the memory by the control processor.
- 29. The method according to claim 23, comprising:
if the cache line requested by the control processor does not reside in the control processor and does reside in the spatial cache, then the spatial cache system sends the requested cache line to the control processor and no longer makes the requested cache line in the spatial cache available to the control processor.
- 30. The method according to claim 23, comprising:
if the cache line requested by the control processor does not reside in the control processor and does reside in the spatial cache, then the spatial cache system sends the requested cache line to the control processor and indicates that a space in which the requested cache line resided is a more likely candidate to be refilled.
- 31. A method for reducing memory latency between a memory and a control processor, the method comprising:
if a cache line miss occurs in the control processor, then receiving a request for the missed cache line from the control processor; determining if the requested cache line resides in a spatial cache; if the requested cache line does reside in the spatial cache, then sending the requested cache line to the control processor; and if the requested cache line does not reside in the spatial cache, then generating a missing block request and a prefetch block request.
- 32. The method according to claim 31, wherein the missing block request requests to fetch a missing block that comprises the requested cache line.
- 33. The method according to claim 32, wherein the prefetch block request requests to fetch a prefetch block having a block address that is sequentially related to a block address of the missing block.
- 34. The method according to claim 31, comprising:
receiving a missing block from the memory in response to the missing block request; sending the requested cache line of the missing block to the control processor; and storing cache lines other than the requested cache line of the missing block in the spatial cache.
- 35. The method according to claim 31, comprising:
receiving a missing block from the memory in response to the missing block request; sending the requested cache line of the missing block to the control processor; storing the missing block in the spatial cache; and making the requested cache line stored in the spatial cache inaccessible to the control processor after the requested cache line has been sent to the control processor.
- 36. The method according to claim 31, further comprising:
invalidating a particular cache line residing in the spatial cache if an updated version of the particular cache line is to be written into the memory by the control processor.
- 37. The method according to claim 31, further comprising:
if the requested cache line does reside in the spatial cache, then sending the requested cache line to the control processor and making the requested cache line in the spatial cache no longer available to the control processor.
- 38. The method according to claim 31, further comprising:
if the requested cache line does reside in the spatial cache, then sending the requested cache line to the control processor and making a space in which the requested cache line resided a more likely candidate to be refilled.
- 39. The method according to claim 31, further comprising:
prefetching a particular block of a set of aligned blocks.
- 40. The method according to claim 39, wherein the set of aligned blocks comprises a particular block and one of a first block and a second block, the first block residing in the spatial cache and comprising the requested cache line, the second block not residing in the spatial cache and comprising the requested cache line.
RELATED APPLICATIONS
[0001] This application makes reference to, claims priority to and claims benefit from United States Provisional Patent Application Serial No. 60/409,256, entitled “System and Method for Controlling Prefetching” and filed on Sep. 9, 2002; U.S. Provisional Patent Application Serial No. 60/409,240, entitled “System and Method for Caching” and filed on Sep. 9, 2002; and U.S. Provisional Patent Application Serial No. 60/409,361, entitled “System and Method for Directional Prefetching” and filed on Sep. 9, 2002.
Provisional Applications (3)
|
Number |
Date |
Country |
|
60409256 |
Sep 2002 |
US |
|
60409240 |
Sep 2002 |
US |
|
60409361 |
Sep 2002 |
US |