Data processing apparatus and shared memory accessing method
First Claim
Patent Images
1. A data processing apparatus for processing data by causing a plurality of function blocks to share a single shared memory, said data processing apparatus comprising:
- a memory controller configured to cause said plurality of function blocks to write and read data to/and from said shared memory in response to requests from any one of said function blocks;
a cache memory; and
a companding section configured to compress the data to be written to said cache memory while expanding the data read therefrom;
whereinsaid memory controller checks to determine which of a plurality of areas in said shared memory a write and/or read request from any one of said function blocks corresponds to,if said write and/or read request from one of said function blocks is found corresponding to a cache area of said shared memory, then said memory controller causes the data to be written and/or read to and/or from said shared memory and said cache memory in such a manner that the data is subjected to a caching process involving the use of said cache memory,if said write and/or read request from one of said function blocks is found corresponding to a compressed cache area of said shared memory, then said memory controller causes the data to be written and/or read to and/or from said shared memory and said shared cache memory in such a manner that the data is compressed by said companding section before being subjected to a caching process involving the use of said cache memory, andif said write and/or read request from one of said function blocks is found corresponding to a non-cache area of said shared memory, then said memory controller stops the use of said cache memory while causing the data to be written and/or read to/and from said shared memory,if said write and/or read request from one of said function blocks is found corresponding to said cache area of said shared memory, then said memory controller under control of a host controller causes the data to be written and/or read to and/or from said shared memory and said cache memory in such a manner that said caching process is stopped or that the data is compressed by said companding section before being subjected to said caching process involving the use of said cache memory; and
/orif said write and/or read request from one of said function blocks is found corresponding to said compressed cache area of said shared memory, then said memory controller under control of said host controller causes the data to be written and/or read to and/or from said shared memory and said shared cache memory in such a manner that the data is not compressed by said companding section before being subjected to said caching process or that the use of said cache memory is stopped.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention provides a data processing apparatus for processing data by causing a plurality of function blocks to share a single shared memory, the data processing apparatus including: a memory controller configured to cause the plurality of function blocks to write and read data to/and from the shared memory in response to requests from any one of the function blocks; a cache memory; and a companding section configured to compress the data to be written to the cache memory while expanding the data read therefrom.
-
Citations
6 Claims
-
1. A data processing apparatus for processing data by causing a plurality of function blocks to share a single shared memory, said data processing apparatus comprising:
-
a memory controller configured to cause said plurality of function blocks to write and read data to/and from said shared memory in response to requests from any one of said function blocks; a cache memory; and a companding section configured to compress the data to be written to said cache memory while expanding the data read therefrom;
whereinsaid memory controller checks to determine which of a plurality of areas in said shared memory a write and/or read request from any one of said function blocks corresponds to, if said write and/or read request from one of said function blocks is found corresponding to a cache area of said shared memory, then said memory controller causes the data to be written and/or read to and/or from said shared memory and said cache memory in such a manner that the data is subjected to a caching process involving the use of said cache memory, if said write and/or read request from one of said function blocks is found corresponding to a compressed cache area of said shared memory, then said memory controller causes the data to be written and/or read to and/or from said shared memory and said shared cache memory in such a manner that the data is compressed by said companding section before being subjected to a caching process involving the use of said cache memory, and if said write and/or read request from one of said function blocks is found corresponding to a non-cache area of said shared memory, then said memory controller stops the use of said cache memory while causing the data to be written and/or read to/and from said shared memory, if said write and/or read request from one of said function blocks is found corresponding to said cache area of said shared memory, then said memory controller under control of a host controller causes the data to be written and/or read to and/or from said shared memory and said cache memory in such a manner that said caching process is stopped or that the data is compressed by said companding section before being subjected to said caching process involving the use of said cache memory; and
/orif said write and/or read request from one of said function blocks is found corresponding to said compressed cache area of said shared memory, then said memory controller under control of said host controller causes the data to be written and/or read to and/or from said shared memory and said shared cache memory in such a manner that the data is not compressed by said companding section before being subjected to said caching process or that the use of said cache memory is stopped. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A shared memory accessing method for use with a data processing apparatus for processing data by causing a plurality of function blocks to share a single shared memory, said shared memory accessing method comprising the steps of:
-
compressing the data to be written to a cache memory while expanding the data read therefrom; determining which of a plurality of areas in said shared memory a write and/or read request from any one of said function blocks corresponds to; if in said determining step said write and/or read request from one of said function blocks is found corresponding to a cache area of said shared memory, then causing the data to be written and/or read to and/or from said shared memory and said cache memory in such a manner that the data is subjected to a caching process involving the use of said cache memory; if in said determining step said write and/or read request from one of said function blocks is found corresponding to a compressed cache area of said shared memory, then causing the data to be written and/or read to and/or from said shared memory and said shared cache memory in such a manner that the data is compressed in a companding step before being subjected to a caching process involving the use of said cache memory; and if in said determining step said write and/or read request from one of said function blocks is found corresponding to a non-cache area of said shared memory, then stopping the use of said cache memory while causing the data to be written and/or read to/and from said shared memory, if said write and/or read request from one of said function blocks is found corresponding to said cache area of said shared memory, then a memory controller under control of a host controller causes the data to be written and/or read to and/or from said shared memory and said cache memory in such a manner that said caching process is stopped or that the data is compressed by a companding section before being subjected to said caching process involving the use of said cache memory; and
/orif said write and/or read request from one of said function blocks is found corresponding to said compressed cache area of said shared memory, then said memory controller under control of said host controller causes the data to be written and/or read to and/or from said shared memory and said shared cache memory in such a manner that the data is not compressed by said companding section before being subjected to said caching process or that the use of said cache memory is stopped.
-
Specification