Next Patent: Digital data processor with improved paging
Next Patent: Digital data processor with improved paging
[0001] 1. Field of the Invention
[0002] The present invention relates to a processor preferred for the case of processing bit stream data in a central processing unit (CPU).
[0003] 2. Description of the Related Art
[0004] In a conventional general processor, for example, as shown in
[0005] Instruction codes of programs to be executed in the CPU
[0006] In the processor shown in
[0007] Summarizing the problem to be solved by the invention, in the processor shown in
[0008] Further, in the processor shown in
[0009] Further, the data cache memory
[0010] Further, in the conventional processor, sometimes where a first-in-first-out (FIFO) memory is provided between the second level cache memory
[0011] An object of the present invention is to provide a processor capable of processing a large amount of data such as image data at a high speed with a small size and low manufacturing costs.
[0012] In order to achieve the above object, according to a first aspect of the present invention, there is provided a processor comprising an operation processing circuit for performing operation processing using data and stream data, a first cache memory for inputting and outputting said data with said operation processing circuit, a second cache memory interposed between a main storage apparatus and said first cache memory, and a storage circuit interposed between said main storage apparatus and said operation processing circuit and having at least part of a storage region outputting said stream data in the order of input.
[0013] In the processor of the first aspect of the present invention, the operation processing circuit performs predetermined processing, and the data required in the process of the related processing is input and output between the first cache memory and the operation processing circuit.
[0014] The related data is transferred between the main storage apparatus and the operation processing circuit via the first cache memory and the second cache memory.
[0015] Alternatively, in the processor of the first aspect of the present invention, the operation processing circuit performs predetermined processing, and the stream data required in the related processing step is input and output between the storage circuit and the operation processing circuit.
[0016] The input and output of the data between the storage circuit and the operation processing circuit are carried out by the FIFO system of output in the order of input.
[0017] The related storage circuit is interposed between the operation processing circuit and the main storage apparatus. The stream data is transferred between the operation processing circuit and the main storage apparatus without interposition of the second cache memory.
[0018] Further, in the processor of the first aspect of the present invention, preferably said storage circuit outputs said stream data in the order of the input by successively increasing or decreasing an address accessed by said operation processing circuit.
[0019] Further, in the processor of the first aspect of the present invention, preferably said storage circuit manages the storage region for outputting said stream data in the order of the input by dividing it to at least a first storage region and a second storage region, transfers data between said second storage region and said main storage apparatus when the operation processing circuit accesses said first storage region, and transfers data between said first storage region and said main storage apparatus when said operation processing circuit accesses said second storage region.
[0020] Further, in the processor of the first aspect of the present invention, preferably said stream data is bit stream data of an image, and said storage circuit stores picture data in a storage region other than the storage region for storing said bit stream data.
[0021] Further, in the processor of the first aspect of the present invention, preferably said storage circuit can change the sizes of the storage region for storing said stream data and the storage region for storing said picture data.
[0022] Further, in the processor of the first aspect of the present invention, preferably further comprises a DMA circuit for controlling the transfer of said stream data between said storage circuit and said main storage apparatus.
[0023] Further, in the processor of the first aspect of the present invention, preferably, when a plurality of accesses simultaneously occur with respect to the related storage circuit, said storage circuit sequentially performs processing in accordance with the related plurality of accesses based on a priority order determined in advance.
[0024] Further, in the processor of the first aspect of the present invention, preferably said storage circuit is a one-port type memory.
[0025] According to a second aspect of the present invention, there is provided a processor comprising an operation processing circuit for executing an instruction code and performing operation processing using data and stream data according to need, a first cache memory for supplying said instruction code to said operation processing circuit, a second cache memory for input and output of said data with said operation processing circuit, a third cache memory interposed between the main storage apparatus and said first cache memory and said second cache memory, and a storage circuit interposed between said main storage apparatus and said operation processing circuit and having at least part of a storage region outputting said stream data in an order of the input.
[0026] These and other objects and features of the present invention will become clearer from the following description of the preferred embodiments given with reference to the attached drawings, in which:
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034] Below, an explanation will be made of a processor according to a preferred embodiment of the present invention.
[0035]
[0036] As shown in
[0037] Here, the CPU
[0038] Note that, the CPU
[0039] Further, the data cache memory
[0040] Further, the instruction cache memory
[0041] The CPU
[0042] The CPU
[0043] The CPU
[0044] The CPU
[0045] Here, as the image processing performed by the CPU
[0046] Further, the CPU
[0047] The instruction cache memory
[0048] The page replacement between the instruction cache memory
[0049] The data cache memory
[0050] The page replacement between the instruction cache memory
[0051] The second cache memory
[0052] When the second cache memory
[0053] The page transfer between the second cache memory
[0054] The external memory
[0055] The data buffer memory
[0056] The data buffer memory
[0057] Here, the size of the storage region
[0058] In the control register
[0059] Here, the size of the storage region
[0060] Then, where the size of the storage region
[0061] On the other hand, the storage region
[0062] The data buffer memory
[0063] The address stored in the BP register
[0064] For example, as shown in
[0065] The address stored in the BP register
[0066] The address stored in the BP register
[0067] For example, when the CPU
[0068] Further, when the CPU
[0069] The transfer of the bit stream data between the storage region
[0070] A programmer may designate the direction of transfer of the bit stream data between the storage region
[0071] The DMA circuit
[0072] Where requests or requirements with respect to a plurality of processing to be performed by the DMA circuit
[0073] Further, a predetermined priority order is assigned to access with respect to the data buffer memory
[0074] For example, in access with respect to the data buffer memory
[0075] Below, an explanation will be given of examples of the operation of the processor
[0076] In the related example of operation, the explanation will be made of the operation of the processor
[0077]
[0078] Step S
[0079] By this, the size of the storage region
[0080] Step S
[0081] In this case, for example, the bit stream data is written in the entire area of the storage region
[0082] Further, the bit stream data is sequentially written into the storage region
[0083] Step S
[0084] The address stored in the BP register
[0085] The related incrementation is carried out for example from the 0-th row toward the “2n−1”-th row in
[0086] Note that the address stored in the BP register
[0087] Step S
[0088] Step S
[0089] Step S
[0090] On the other hand, where the address stored in the BP register
[0091] When the processing of step S
[0092] In this example of operation, an explanation will be made of the operation of the processor
[0093]
[0094] Step S
[0095] By this, the size of the storage region
[0096] Step S
[0097] The address stored in the BP register
[0098] The related incrementation is carried out for example from the 0-th row toward the “2n−1”-th row in (A)
[0099] Note that the address stored in the BP register
[0100] Step S
[0101] Step S
[0102] Step S
[0103] On the other hand, when the address stored in the BP register
[0104] When the processing of step S
[0105] Step S
[0106] As explained above, according to the processor
[0107] As a result, it becomes possible to transfer image data between the CPU
[0108] Further, according to the processor
[0109] As a result, it becomes unnecessary to provide an FIFO memory in the chip independently, so a reduction of the size and a lowering of the cost can be achieved.
[0110] Further, according to the processor
[0111] As a result, a memory environment adapted to the application program to be executed in the CPU
[0112] Further, according to the processor
[0113] The present invention is not limited to the above embodiment.
[0114] For example, in the above embodiment, bit stream data used in image processing of the MPEG2 or the like was illustrated as the stream data, but other data can be used too as the stream data so far as it is data which is continuously sequentially processed in the CPU
[0115] Summarizing the effects of the invention, as explained above, according to the present invention, a processor capable of processing a large amount of data such as image data at a high speed with a small size and inexpensive configuration can be provided.
[0116] Further, according to the present invention, a processor capable of continuously processing stream data with a small size and inexpensive configuration can be provided.