JP2005141637A - Memory management device - Google Patents

Memory management device Download PDF

Info

Publication number
JP2005141637A
JP2005141637A JP2003379731A JP2003379731A JP2005141637A JP 2005141637 A JP2005141637 A JP 2005141637A JP 2003379731 A JP2003379731 A JP 2003379731A JP 2003379731 A JP2003379731 A JP 2003379731A JP 2005141637 A JP2005141637 A JP 2005141637A
Authority
JP
Japan
Prior art keywords
page
virtual
real
correspondence
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2003379731A
Other languages
Japanese (ja)
Inventor
Yoshimasa Okabe
吉正 岡部
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2003379731A priority Critical patent/JP2005141637A/en
Publication of JP2005141637A publication Critical patent/JP2005141637A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)
  • Storing Facsimile Image Data (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To solve the disadvantage that, although virtual memory control can improve memory use efficiency, in an image processing apparatus with a plurality of processors, a load concentrates at a CPU performing the virtual memory control, and page mapping delays memory access to pose a fault in real time processing. <P>SOLUTION: A memory management device of improved memory use efficiency suitable for real time parallel processing has an interface for every processor to prevent a load concentration, has an exclusive register separate from the interfaces to ensure page mapping in a fixed time, and gives the interfaces a function of requesting page mapping to the register to allocate and release a page without the intervention of a CPU 5. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明はメモリ管理装置に関する。   The present invention relates to a memory management device.

以下に従来のメモリ管理装置の例として特許文献1に記載されているMMUを挙げる。図5は特許文献1による画像処理装置の構成を簡略化して表したものである。図5において11が画像処理装置、12がホストコンピューター、13がCPU、14が入力バッファ、15が画像圧縮回路、16が画像伸張回路、17がMMU、18がRAM、19が出力バッファである。   The following is an example of the conventional memory management device, which is the MMU described in Patent Document 1. FIG. 5 shows a simplified configuration of the image processing apparatus according to Patent Document 1. In FIG. 5, 11 is an image processing apparatus, 12 is a host computer, 13 is a CPU, 14 is an input buffer, 15 is an image compression circuit, 16 is an image expansion circuit, 17 is an MMU, 18 is a RAM, and 19 is an output buffer.

以下、従来の構成例の動作を簡単に説明する。ホストCPU12が画像処理装置11に出力する画像データは、一旦入力バッファ14が蓄える。CPU13は入力バッファ14から画像データを読み出して画像圧縮回路17に入力する。画像圧縮回路17は入力画像データに圧縮変換を施して圧縮データにする。CPUは画像圧縮回路17から圧縮データを取り出し、MMU17を経由してRAM18に記憶する。画像を出力する際にCPU17はMMU17を経由してRAM18から圧縮データを読み出し、画像伸張回路16に入力する。画像伸張回路16は圧縮データを伸張して元の画像データに戻す。CPUは画像伸張回路から画像データを取り出し、MMU17を経由してRAM18に記憶する。更にCPUは出力バッファ19からの信号に応じてMMU17を経由でRAM18から画像データを読み出し、出力バッファ19に転送する。出力バッファ19は蓄える画像データの量に応じた信号をCPUに出力するので、CPUは出力バッファ19の出力速度に合わせて画像データの転送速度を調整できる。   The operation of the conventional configuration example will be briefly described below. Image data output from the host CPU 12 to the image processing apparatus 11 is temporarily stored in the input buffer 14. The CPU 13 reads the image data from the input buffer 14 and inputs it to the image compression circuit 17. The image compression circuit 17 performs compression conversion on the input image data to form compressed data. The CPU extracts the compressed data from the image compression circuit 17 and stores it in the RAM 18 via the MMU 17. When outputting an image, the CPU 17 reads the compressed data from the RAM 18 via the MMU 17 and inputs the compressed data to the image expansion circuit 16. The image decompression circuit 16 decompresses the compressed data and restores the original image data. The CPU extracts the image data from the image expansion circuit and stores it in the RAM 18 via the MMU 17. Further, the CPU reads out image data from the RAM 18 via the MMU 17 in accordance with a signal from the output buffer 19 and transfers it to the output buffer 19. Since the output buffer 19 outputs a signal corresponding to the amount of image data to be stored to the CPU, the CPU can adjust the transfer speed of the image data in accordance with the output speed of the output buffer 19.

この一連の動作において、CPU13が出力するアドレスは仮想アドレスであって、RAM18に入力するアドレスは実アドレスであり、MMU17の役割は仮想アドレスを実アドレスに変換することである。このアドレス変換の仕組みを図6を用いて説明する。図6は仮想アドレスと実アドレスの対応を示した図である。図6において20が仮想アドレス、21が実アドレス、22が下位ビット、23が仮想ページ番号、24が実ページ番号である。メモリは2のN乗バイトを単位とするページ毎に管理されており、仮想ページと実ページにはそれぞれページ番号が付けられる。仮想アドレスの(N+1)ビット目以上が仮想ページ番号23であり、実アドレスの(N+1)ビット目以上が実ページ番号24である。下位ビット22の部分は仮想アドレスと実アドレスで同じであり、仮想アドレスから実アドレスへの変換は仮想ページ番号を実ページ番号で置き換えることにより実行される。   In this series of operations, the address output by the CPU 13 is a virtual address, the address input to the RAM 18 is a real address, and the role of the MMU 17 is to convert the virtual address into a real address. The mechanism of this address translation will be described with reference to FIG. FIG. 6 shows the correspondence between virtual addresses and real addresses. In FIG. 6, 20 is a virtual address, 21 is a real address, 22 is a lower bit, 23 is a virtual page number, and 24 is a real page number. The memory is managed for each page in units of 2 N bytes, and a page number is assigned to each of the virtual page and the real page. The (N + 1) th bit or more of the virtual address is the virtual page number 23, and the (N + 1) th bit or more of the real address is the real page number 24. The lower bit 22 is the same for the virtual address and the real address, and the conversion from the virtual address to the real address is performed by replacing the virtual page number with the real page number.

次に従来例におけるアドレス変換の適用と、その効果を図7を用いて説明する。図7はMMUのアドレス変換テーブルによって対応付けられた仮想アドレス空間のページと実アドレス空間のページの関係を示した図である。図7において、30は仮想メモリ空間、31は実メモリ空間、32はページ管理テーブル、33は仮想ページ、34は実ページ、である。ページ管理テーブル11は各々の仮想ページに対応する実ページの有無と、有れば実ページの番号とを記憶した表である。アドレス変換は仮想アドレスから仮想ページ番号を取り出し、ページ管理テーブルを参照して対応する実ページ番号を取得し、アドレスの上位ビットを実ページ番号に置き換えることで行なわれる。   Next, application of address translation in the conventional example and its effect will be described with reference to FIG. FIG. 7 is a diagram showing the relationship between the pages in the virtual address space and the pages in the real address space associated with each other by the MMU address translation table. In FIG. 7, 30 is a virtual memory space, 31 is a real memory space, 32 is a page management table, 33 is a virtual page, and 34 is a real page. The page management table 11 is a table that stores the presence / absence of a real page corresponding to each virtual page and the number of the real page, if any. The address conversion is performed by taking out the virtual page number from the virtual address, obtaining the corresponding real page number by referring to the page management table, and replacing the upper bits of the address with the real page number.

ページ管理テーブルの管理と更新はCPUの役目である。新たな仮想ページにアクセスする時は、CPUはページ管理テーブルにアクセスして対応する実ページの有無を確認し、もし無ければ実ページのうち仮想ページに対応していないものを探し、見つけた実ページ番号をページ管理テーブルの新たな仮想ページ番号の位置に登録する。すると、この時点からその仮想ページがアクセス可能になる。逆にCPUがページ管理テーブルのある仮想ページ番号の位置の登録を削除すると、その仮想ページはアクセス不能になり、対応していた実ページは開放されて別の仮想ページに再割当てできるようになる。   The management and update of the page management table is the role of the CPU. When accessing a new virtual page, the CPU checks the presence or absence of a corresponding real page by accessing the page management table, and if not, searches for a real page that does not correspond to the virtual page and finds the actual page found. The page number is registered at the position of the new virtual page number in the page management table. Then, the virtual page becomes accessible from this point. Conversely, when the CPU deletes the registration of the position of a virtual page number in the page management table, the virtual page becomes inaccessible, and the corresponding real page is released and can be reassigned to another virtual page. .

仮想メモリ空間のうち実際にアクセス可能なのは、対応する実ページがある仮想ページだけである。逆に言えば、アクセスしない仮想ページには実ページを対応させなくてよい。これを従来例の画像処理装置に適用すると、画像データのままアクセスできる必要があるのは、それぞれの時点でプリンタに出力する部分だけであって、それ以外の部分は必要が生じる毎に圧縮データを読み出して伸張して実メモリ上に書き戻せばよく、画像データのプリンタに出力し終えた部分もアクセスすることは無く、画像データの未だホストCPUから入力されていない部分もアクセスすることは無いので、必要な実メモリ空間の容量は画像データ全体を収める容量より小さくてよいことになる。   Of the virtual memory space, only virtual pages with corresponding real pages are actually accessible. Conversely, a real page does not have to correspond to a virtual page that is not accessed. When this is applied to a conventional image processing apparatus, only the portion that is output to the printer at each point of time needs to be accessed as image data, and the other portions are compressed data whenever necessary. Can be read and decompressed and written back to the real memory, the part of the image data that has been output to the printer is not accessed, and the part of the image data that has not yet been input from the host CPU is also accessed. Therefore, the required capacity of the real memory space may be smaller than the capacity for storing the entire image data.

このように、MMUを用いることにより、CPUから見て実メモリよりも大きな容量のメモリが仮想的に存るように見せることが可能であり、大きなメモリ容量を要する信号処理を比較的小さな容量のメモリを用いて実行することが可能になる。
特開平5−227444号公報
In this way, by using the MMU, it is possible to make it appear that a memory having a larger capacity than the actual memory exists from the viewpoint of the CPU, and signal processing that requires a large memory capacity can be performed with a relatively small capacity. It can be executed using memory.
JP-A-5-227444

デジタルスチルカメラやデジタルビデオカメラのような撮像機器では、撮像回路により光電変換した画像データを処理し、更に圧縮変換してメディアに記録するまでの過程で画像データを収容するメモリを必要とする。ところが近年、画質の向上に伴って画像データの収容にますます大容量のメモリを要するようになっているので、これを仮想メモリの技術を用いて効率良く小容量のメモリに収容することが出来れば、大きなコスト削減が実現できる。しかしながら従来の構成を撮像機器に用いるには大きな難点がある。   An imaging device such as a digital still camera or a digital video camera requires a memory for storing the image data in the process from processing the image data photoelectrically converted by the imaging circuit to further compressing and recording the data. However, in recent years, with the improvement of image quality, it has become increasingly necessary to accommodate large amounts of memory to accommodate image data, and this can be efficiently accommodated in small-capacity memory using virtual memory technology. For example, a significant cost reduction can be realized. However, there is a great difficulty in using the conventional configuration for an imaging device.

前記従来の構成ではCPU3の他に信号処理回路として画像圧縮回路5、画像伸張回路6があるが、これら信号処理回路のデータの入出力は全てCPU3が行っているのでCPU3に大きな負荷が集中する。更に、各々の信号処理回路の処理速度はCPU3が行う入出力の速度で制約されるので、個々の信号処理回路の性能を向上させても、全体としての処理性能の向上に直結しない、という問題がある。   In the conventional configuration, there are an image compression circuit 5 and an image expansion circuit 6 as signal processing circuits in addition to the CPU 3. However, since the CPU 3 performs all data input / output of these signal processing circuits, a large load is concentrated on the CPU 3. . Further, since the processing speed of each signal processing circuit is limited by the input / output speed performed by the CPU 3, there is a problem that even if the performance of each signal processing circuit is improved, the overall processing performance is not directly improved. There is.

また、ページ管理テーブルの管理と更新はCPUの役割なので、新たな仮想ページにアクセスする際には空いている実ページのサーチなどに少なからず時間を要し、この間は全体の処理が止まってしまう問題もある。   Further, since the management and update of the page management table is the role of the CPU, it takes time to search for a free real page when accessing a new virtual page, and the entire processing stops during this time. There is also a problem.

特許文献1に記載するコンピューター周辺機器のようなシステムでは、データを受取る側で転送速度が決められるので、全体として得られる処理速度が小さくてもシステムとして破綻する事はない。またデータの受け渡しはホストインターフェースとプリンタインターフェースにおいてハンドシェイク手順により行われるので、ページ管理テーブルの更新の為にシステム全体が一時停止するようなことがあってもデータが失われることは無い。しかしながら、デジタルスチルカメラやデジタルビデオカメラのような撮像装置は画像データを数十ナノ秒毎に取り込みつつ、遅滞無く高速に処理する必要があるので、従来の構成のように非効率で全体が時々止まってしまうようなメモリ制御システムでは正しい動作を期待できない。   In a system such as a computer peripheral device described in Patent Document 1, since the transfer speed is determined on the data receiving side, the system does not fail even if the overall processing speed is low. In addition, since the data transfer is performed by a handshake procedure in the host interface and the printer interface, no data is lost even if the entire system is temporarily stopped due to the update of the page management table. However, an imaging apparatus such as a digital still camera or a digital video camera needs to process image data every few tens of nanoseconds and process it at high speed without delay. In a memory control system that stops, correct operation cannot be expected.

本発明は上記課題を解決するためにページングによる仮想メモリ管理を行うメモリ管理装置であって調停回路と対応登録回路と複数のプロセッサインターフェースとを備え、前記プロセッサインターフェースはアドレス変換バッファを備え、前記アドレス変換バッファは少なくとも一対の実ページと仮想ページとの対応を記憶する機能を有し、かつ前記対応に従って仮想アドレスを実アドレスに変換するものであり、前記対応登録回路は全ての実ページと仮想ページとの対応を記憶する機能を有し、前記プロセッサインターフェースは対応登録回路へのアクセスを要求する機能を有し、前記調停回路は前記要求するプロセッサインターフェースのうち一つにアクセス権を与え、プロセッサインターフェースは前記アクセス権を得た時に前記対応登録回路にアクセスするものであり、複数のプロセッサが仮想メモリ空間にアクセスできる事を特徴とするメモリ管理装置である。   The present invention is a memory management device that performs virtual memory management by paging to solve the above-described problem, and includes an arbitration circuit, a corresponding registration circuit, and a plurality of processor interfaces. The processor interface includes an address conversion buffer, and the address The conversion buffer has a function of storing a correspondence between at least a pair of real pages and virtual pages, and converts a virtual address into a real address according to the correspondence, and the correspondence registration circuit includes all real pages and virtual pages. The processor interface has a function of requesting access to the correspondence registration circuit, and the arbitration circuit gives an access right to one of the requested processor interfaces. When the access right is obtained Is intended to access the register circuit, a memory management unit, characterized in that a plurality of processors can access the virtual memory space.

対応登録装置は対応の参照または削除の要求に対して必ず一定時間内に操作を完了することができ、登録の要求に対しても空きページがある限り一定時間内に操作を完了することができる。従って、撮像回路からのデータの取り込みのように遅滞が許されない極めてリアルタイム性の高い処理にも本発明のメモリ管理装置は適用可能であり、使用済みの実ページは各々のプロセッサインターフェースにより遅滞無く開放されるのでメモリを効率的に利用することが可能である。   The corresponding registration device can always complete the operation within a certain time for a request for corresponding reference or deletion, and can complete the operation within a certain time as long as there is an empty page for the registration request. . Therefore, the memory management device of the present invention can be applied to processing with extremely high real-time characteristics where delay is not allowed, such as taking in data from an imaging circuit, and used real pages are released without delay by each processor interface. Therefore, the memory can be used efficiently.

本発明の請求項1に記載の発明は、ページングによる仮想メモリ管理を行うメモリ管理装置であって調停回路と対応登録回路と複数のプロセッサインターフェースとを備え、前記プロセッサインターフェースはアドレス変換バッファを備え、前記アドレス変換バッファは少なくとも一対の実ページと仮想ページとの対応を記憶する機能を有し、かつ前記対応に従って仮想アドレスを実アドレスに変換するものであり、前記対応登録回路は全ての実ページと仮想ページとの対応を記憶する機能を有し、前記プロセッサインターフェースは対応登録回路へのアクセスを要求する機能を有し、前記調停回路は前記要求するプロセッサインターフェースのうち一つにアクセス権を与え、前記プロセッサインターフェースは前記アクセス権を得た時に前記対応登録回路にアクセスするものであり、複数のプロセッサが仮想メモリ空間にアクセスできる事を特徴とするメモリ管理装置であるので、アドレス変換の負荷が各プロセッサ毎のプロセッサインターフェースに分散されているのでアドレス変換がボトルネックになる事がなくなる、という作用を有する。   The invention according to claim 1 of the present invention is a memory management device that performs virtual memory management by paging, comprising an arbitration circuit, a corresponding registration circuit, and a plurality of processor interfaces, wherein the processor interface comprises an address translation buffer, The address conversion buffer has a function of storing a correspondence between at least a pair of real pages and virtual pages, and converts a virtual address into a real address according to the correspondence, and the correspondence registration circuit includes all real pages. A function of storing a correspondence with a virtual page, the processor interface has a function of requesting access to a correspondence registration circuit, and the arbitration circuit gives an access right to one of the requested processor interfaces; When the processor interface gains the access right, Since it is a memory management device that accesses the corresponding registration circuit and has a feature that a plurality of processors can access the virtual memory space, the address conversion load is distributed to the processor interface for each processor, so the address It has the effect that conversion does not become a bottleneck.

本発明の請求項2に記載の発明は、請求項1記載のメモリ管理装置であって、少なくとも一つのプロセッサインターフェースはプロセッサが過去にアクセスした仮想ページの番号を記憶する機能と、前記記憶した仮想ページの番号とプロセッサがアクセスを要求している仮想ページの番号を比較する機能を有し、前記比較結果に従って前記対応登録回路にアクセスして実ページと仮想ページとの対応を登録する機能を有することを特徴とするメモリ管理装置であり、プロセッサインターフェースが自ら実ページと仮想ページとの対応を登録するため、特定プロセッサによる対応の登録を待つ必要が無く、よって実ページと仮想ページとの対応の登録がボトルネックになることが無くなる、という作用を有する。   The invention according to claim 2 of the present invention is the memory management device according to claim 1, wherein at least one processor interface stores a function of storing a virtual page number accessed by the processor in the past, and the stored virtual A function of comparing a page number and a virtual page number requested by the processor, and a function of accessing the correspondence registration circuit according to the comparison result and registering a correspondence between the real page and the virtual page Since the processor interface registers the correspondence between the real page and the virtual page by itself, it is not necessary to wait for the registration of the correspondence by the specific processor, so that the correspondence between the real page and the virtual page can be reduced. It has the effect that registration does not become a bottleneck.

本発明の請求項3に記載の発明は、請求項1乃至2記載のメモリ管理装置であって、少なくとも一つのプロセッサインターフェースは前記検知結果に従って前記対応登録回路にアクセスし、特にプロセッサが過去にアクセスした仮想ページと実ページの対応を抹消する機能を有することを特徴とするメモリ管理装置であり、アクセスが終わった実ページをプロセッサインターフェースが直ちに開放するため、不必要に実ページが拘束されることがなくなる、という作用を有する。   According to a third aspect of the present invention, in the memory management device according to the first or second aspect, at least one processor interface accesses the correspondence registration circuit according to the detection result, and in particular, the processor has accessed in the past. The memory management device has a function of deleting the correspondence between the virtual page and the real page, and the real page is unnecessarily restrained because the processor interface immediately releases the real page that has been accessed. Has the effect of eliminating.

本発明の請求項4に記載の発明は、請求項1乃至3記載のメモリ管理装置であって、前記対応登録回路は少なくともページ管理テーブルとページ検索装置を有し、前記ページ管理テーブルは全ての実ページと仮想ページとの対応を記憶するものであり、前記ページ検索装置はページ管理テーブルにアクセスして対応する仮想ページが無い実ページを検索する機能を有することを特徴とするメモリ管理装置であり、ページ検索装置をページ管理テーブルと一体化することによりページ検索の為の回路の総和を小さくし、かつ検索速度を高速化することが出来る、という作用を有する。   The invention according to claim 4 of the present invention is the memory management device according to any one of claims 1 to 3, wherein the correspondence registration circuit includes at least a page management table and a page search device, and the page management table includes all of the page management tables. The memory management device stores a correspondence between a real page and a virtual page, and the page search device has a function of accessing a page management table and searching for a real page having no corresponding virtual page. In addition, by integrating the page search device with the page management table, the total of circuits for page search can be reduced and the search speed can be increased.

本発明の請求項5に記載の発明は、請求項4記載のメモリ管理装置であって、前記ページ検索装置は前記プロセッサインターフェースからのアクセスが無い期間にページ管理テーブルにアクセスし、対応する仮想ページが無い実ページを検索する機能を有することを特徴とするメモリ管理装置であり、プロセッサインターフェースからのアクセスが無い期間を利用して、プロセッサインターフェースからの要求に先立って対応する仮想ページが無い、空いている実ページを検索しておくことにより、プロセッサインターフェースから空いている実ページの検索を要求された時に直ちに実ページ番号を応答する事が可能になり、実ページと仮想ページとの対応の登録の際にプロセッサインターフェースが待たされる時間を短縮できる、という作用を有する。
(実施の形態)
以下、図1乃至図5を参照して本発明の実施例を詳細に説明する。図1は本発明によるメモリ管理装置を用いたデジタルスチルカメラの構成を示すブロック図である。図1において1は撮像回路、2はYC処理回路、3は圧縮処理回路、4は記録回路、5はCPU、6はMMU、7はメモリ回路であり、このうちMMU6が本発明によるメモリ管理装置である。1乃至5の回路は各々メモリ回路7にアクセスする機能を備えており、メモリ回路7へのアクセスは全てMMU6を介して行われる。
The invention according to claim 5 of the present invention is the memory management device according to claim 4, wherein the page search device accesses the page management table during a period when there is no access from the processor interface, and the corresponding virtual page. A memory management device characterized by having a function of searching for a real page with no page, and using a period when there is no access from the processor interface, there is no corresponding virtual page prior to a request from the processor interface, By searching for a real page, it is possible to immediately respond with a real page number when a search for a free real page is requested from the processor interface, and registering the correspondence between the real page and the virtual page The time that the processor interface waits at the time of Having.
(Embodiment)
Hereinafter, embodiments of the present invention will be described in detail with reference to FIGS. FIG. 1 is a block diagram showing a configuration of a digital still camera using a memory management device according to the present invention. In FIG. 1, 1 is an imaging circuit, 2 is a YC processing circuit, 3 is a compression processing circuit, 4 is a recording circuit, 5 is a CPU, 6 is an MMU, and 7 is a memory circuit, of which the MMU 6 is a memory management device according to the present invention. It is. Each of the circuits 1 to 5 has a function of accessing the memory circuit 7, and all accesses to the memory circuit 7 are performed via the MMU 6.

以下、図1を用いてデジタルスチルカメラとしての動作を簡単に説明する。撮像回路1はCCDなどの光電変換素子を備えており、入射光の像を入力画像データに変換する。撮像回路1が出力する入力画像データはMMU6経由でメモリ回路7に記憶する。YC処理回路2はMMU6経由でメモリ回路7から入力画像データを読み出して圧縮に適したYCデータに変換し、再びMMU6経由でメモリ回路7に書き戻す。圧縮処理回路3はMMU6経由でメモリ回路7からYCデータを読み出して圧縮変換を施し、生成した圧縮ファイルを再びMMU6経由でメモリ回路7に書き戻す。記録回路4はMMU6経由でメモリ回路7から圧縮ファイルを読み出してフラッシュメモリに保存する。CPUは図1の1乃至4の回路を制御するとともに、MMU6経由でメモリ回路7にアクセスし、圧縮ファイルのヘッダ部の操作などを行う。図1の1乃至4の回路はCPUと独立に動作することが可能であり、特に撮像回路1とYC処理回路2と圧縮処理回路3はCPUの介在なしに1画面分の処理を実行できる。MMU6はアクセスの際にアドレス変換を行い、アドレス変換に要する時間の間はアドレスの中継を保留し、アドレス変換に成功した場合のみメモリ回路7にアクセスを中継する。メモリ回路7は複数のアクセス要求を受付可能なメモリシステムであって、図1の1乃至4の回路は独立かつ並列にメモリにアクセスできる。   Hereinafter, the operation as a digital still camera will be briefly described with reference to FIG. The imaging circuit 1 includes a photoelectric conversion element such as a CCD, and converts an incident light image into input image data. Input image data output from the imaging circuit 1 is stored in the memory circuit 7 via the MMU 6. The YC processing circuit 2 reads input image data from the memory circuit 7 via the MMU 6, converts it into YC data suitable for compression, and writes it back to the memory circuit 7 again via the MMU 6. The compression processing circuit 3 reads the YC data from the memory circuit 7 via the MMU 6 and performs compression conversion, and writes the generated compressed file back to the memory circuit 7 via the MMU 6 again. The recording circuit 4 reads the compressed file from the memory circuit 7 via the MMU 6 and stores it in the flash memory. The CPU controls the circuits 1 to 4 in FIG. 1 and accesses the memory circuit 7 via the MMU 6 to operate the header portion of the compressed file. The circuits 1 to 4 in FIG. 1 can operate independently of the CPU. In particular, the imaging circuit 1, the YC processing circuit 2, and the compression processing circuit 3 can execute processing for one screen without intervention of the CPU. The MMU 6 performs address conversion at the time of access, holds the address relay for the time required for address conversion, and relays the access to the memory circuit 7 only when the address conversion is successful. The memory circuit 7 is a memory system that can accept a plurality of access requests, and the circuits 1 to 4 in FIG. 1 can access the memory independently and in parallel.

図2はMMUの構成と特に調停回路の役割を説明するブロック図である。図2において40乃至44はプロセッサインターフェース、45は調停回路、46は対応登録回路である。以下、図2を用いて調停回路の役割を説明する。   FIG. 2 is a block diagram illustrating the configuration of the MMU and particularly the role of the arbitration circuit. In FIG. 2, reference numerals 40 to 44 denote processor interfaces, 45 denotes an arbitration circuit, and 46 denotes a correspondence registration circuit. Hereinafter, the role of the arbitration circuit will be described with reference to FIG.

本構成ではメモリにアクセスするプロセッサと同数のプロセッサインターフェースを設け、それぞれがアドレス変換を行う機能と対応登録装置にアクセスする機能を備える。各々のプロセッサは独立に動作するため、対応登録装置へのアクセスが同時に発生することがある。そのような場合に複数の要求を調停し、一度に一つずつアクセスを実行させるのが調停回路の役目である。図2では40と41と43のプロセッサから調停回路への矢印が実線で表しており、これは三つの要求が同時に発生した場合を表わしたものである。調停回路における優先順位の制御は各種の方法があるが、この実施例ではプロセッサインターフェースの優先順位を固定する方法を採っており、要求したプロセッサインタースのうち最も優先順位が高いものに対してアクセス権を与えるよう制御している。図2では調停回路45からプロセッサインターフェース41に向かう矢印が実線で表してあり、これはアクセス権の付与を表したものである。図2の例は調停の結果、プロセッサインターフェース41だけがアクセス権を得て対応登録装置46にアクセスしている様子を表している。   In this configuration, the same number of processor interfaces as the number of processors accessing the memory are provided, each having a function of performing address conversion and a function of accessing the corresponding registration device. Since each processor operates independently, access to the corresponding registration device may occur simultaneously. In such a case, it is the role of the arbitration circuit to arbitrate a plurality of requests and execute access one at a time. In FIG. 2, arrows from the processors 40, 41, and 43 to the arbitration circuit are indicated by solid lines, and this represents a case where three requests are generated simultaneously. There are various methods for controlling the priority in the arbitration circuit. In this embodiment, the method of fixing the priority of the processor interface is adopted, and the highest priority among the requested processor interfaces is accessed. It is controlled to give the right. In FIG. 2, an arrow from the arbitration circuit 45 to the processor interface 41 is indicated by a solid line, and this indicates that an access right is granted. The example of FIG. 2 shows a state in which only the processor interface 41 obtains the access right and accesses the correspondence registration device 46 as a result of the arbitration.

図3はプロセッサインターフェースの構成例を示した図である。図3において50はプロセッサ、51は一個のプロセッサインターフェース、52は調停回路、53は対応登録装置、54はメモリ装置、55は仮想アドレスのアドレス有効信号、56はアドレス下位ビット、57は仮想アドレス上位ビット、58は制御回路、59と60と63はレジスタ、61は実アドレスの上位ビット、62は実アドレスのアドレス有効信号、64はセレクタ、65は実ページ番号である。   FIG. 3 is a diagram showing a configuration example of the processor interface. In FIG. 3, 50 is a processor, 51 is one processor interface, 52 is an arbitration circuit, 53 is a corresponding registration device, 54 is a memory device, 55 is an address valid signal of a virtual address, 56 is a low-order address bit, and 57 is a high-order virtual address Bit, 58 is a control circuit, 59, 60 and 63 are registers, 61 is an upper bit of the real address, 62 is an address valid signal of the real address, 64 is a selector, and 65 is a real page number.

以下、図3を用いてプロセッサインターフェースのアドレス変換に伴う動作を説明する。プロセッサインターフェースの制御回路58はプロセッサ50が出力する仮想アドレスのアドレス有効信号を監視し、アドレスが有効である場合には仮想アドレス上位ビット57とレジスタ59が記憶する仮想ページ番号を比較する。レジスタ59は制御回路58の制御により直前のアクセスにおける仮想アドレス上位ビット57を仮想ページ番号として記憶している。従って比較結果が一致である場合には仮想アドレス上位ビットが前回のアクセスと同じであった事になる。レジスタ60は制御回路58の制御により前回のアクセスにおける実ページ番号を記憶し、これを実アドレス上位ビット61として出力しているので、前記比較結果が一致であるなら直ちに実アドレスの有効信号62を出力する。その結果、メモリ回路54では実アドレスに対するアクセスが行われる。   Hereinafter, the operation accompanying the address conversion of the processor interface will be described with reference to FIG. The control circuit 58 of the processor interface monitors the address valid signal of the virtual address output from the processor 50, and if the address is valid, compares the virtual address upper bit 57 with the virtual page number stored in the register 59. The register 59 stores the virtual address upper bits 57 in the previous access as a virtual page number under the control of the control circuit 58. Therefore, when the comparison result is coincident, the virtual address upper bits are the same as the previous access. The register 60 stores the actual page number in the previous access under the control of the control circuit 58 and outputs this as the actual address upper bits 61. Therefore, if the comparison result is coincident, the effective signal 62 of the actual address is immediately output. Output. As a result, the memory circuit 54 accesses the real address.

先の比較結果が不一致である場合は、仮想アドレス上位ビット57が前回のアクセスと違っているので、新しい仮想ページ番号に対応する新しい実ページ番号を取得する必要がある。それには対応登録装置へのアクセスが必要なので制御回路58は先ず調停回路52にアクセス権を要求し、アクセス権が得られるまで待つ。朝廷回路52からアクセス権が与えられたなら制御装置58はセレクタ64を制御して仮想アドレス上位ビット57を仮想ページ番号65として対応登録回路53に出力させ、同時に登録装置53に対応参照要求コードを出力する。対応登録装置53は対応参照要求コードに応じて仮想ページ番号65に対応する実ページ番号66を出力する機能を有する。対応登録装置53から実ページ番号66が得られたなら、これをレジスタ60に記憶し、同時にレジスタ63にレジスタ59の内容を退避し、更に同時に仮想アドレス上位ビット57をレジスタ59に記憶する。すると仮想アドレス上位ビット57とレジスタ59の出力は一致するので、この時点で実アドレスの有効信号62を出力する。   If the previous comparison result does not match, the virtual address upper bit 57 is different from the previous access, so it is necessary to obtain a new real page number corresponding to the new virtual page number. For this purpose, since access to the corresponding registration device is required, the control circuit 58 first requests an access right to the arbitration circuit 52 and waits until the access right is obtained. When the access right is given from the imperial court circuit 52, the control device 58 controls the selector 64 to output the virtual address upper bit 57 as the virtual page number 65 to the corresponding registration circuit 53, and at the same time, the corresponding reference request code is sent to the registration device 53. Output. The correspondence registration device 53 has a function of outputting a real page number 66 corresponding to the virtual page number 65 in accordance with the correspondence reference request code. If the real page number 66 is obtained from the corresponding registration device 53, it is stored in the register 60, and at the same time, the contents of the register 59 are saved in the register 63, and at the same time, the virtual address upper bit 57 is stored in the register 59. Then, since the virtual address upper bit 57 and the output of the register 59 match, the valid signal 62 of the real address is output at this point.

プロセッサ50が図1における記録回路4であれば、アクセスし終えた仮想ページにはそれ以降アクセスする必要が無いので、直ちに実ページを開放する。レジスタ59はそのために直前の仮想ページ番号を記憶しており、制御回路58は実ページ番号66の保存後、直ちにセレクタ64をレジスタ63の出力に切替えて直前の仮想ページ番号を対応登録装置に出力し、同時に制御装置58は登録装置53に対応削除要求コードを出力する。対応登録装置53は対応削除要求コードに応じて仮想ページ番号65で指定された対応を解消する機能を有する。   If the processor 50 is the recording circuit 4 in FIG. 1, the accessed virtual page does not need to be accessed thereafter, so the real page is immediately released. For this purpose, the register 59 stores the immediately preceding virtual page number, and the control circuit 58 immediately switches the selector 64 to the output of the register 63 after saving the actual page number 66 and outputs the immediately preceding virtual page number to the corresponding registration device. At the same time, the control device 58 outputs a corresponding deletion request code to the registration device 53. The correspondence registration device 53 has a function of canceling the correspondence designated by the virtual page number 65 in accordance with the correspondence deletion request code.

プロセッサ50が図1における撮像回路1であれば、アクセスした仮想ページに対応する実ページが無い場合にも遅滞無くアクセスを継続する必要がある。そのため制御回路58は仮想ページ番号66が対応登録回路53に出力されるのと同時に対応登録回路53に対応登録要求コードを出力する。対応登録回路53は対応登録要求コードに応じて対応関係の無い実ページを要求された仮想ページに対応付ける機能を有する。   If the processor 50 is the imaging circuit 1 in FIG. 1, it is necessary to continue access without delay even when there is no real page corresponding to the accessed virtual page. Therefore, the control circuit 58 outputs a correspondence registration request code to the correspondence registration circuit 53 at the same time when the virtual page number 66 is outputted to the correspondence registration circuit 53. The correspondence registration circuit 53 has a function of associating a real page having no correspondence relationship with the requested virtual page according to the correspondence registration request code.

図4は本実施例における対応登録装置の構成を説明するブロック図である。図4において53は対応登録装置、70はセレクタ、71は制御装置、73は対応テーブル、74は有効ビットテーブル、75は空きページテーブル、76は選択された要求コード、77は選択された仮想ページ番号、79は実ページ番号、80は有効ビット、81は応答コード、82はローダブルカウンタ、83は番地、85は32ビットデータ、86は空きページ番号である。以下、図4を用いて対応登録装置の動作を説明する。   FIG. 4 is a block diagram illustrating the configuration of the correspondence registration apparatus in the present embodiment. In FIG. 4, 53 is a corresponding registration device, 70 is a selector, 71 is a control device, 73 is a correspondence table, 74 is a valid bit table, 75 is an empty page table, 76 is a selected request code, and 77 is a selected virtual page. No. 79, actual page number, 80 valid bit, 81 response code, 82 loadable counter, 83 address, 85 bit data, 86 free page number. Hereinafter, the operation of the correspondence registration apparatus will be described with reference to FIG.

セレクタ70は複数のプロセッサインターフェースからの入力のうち、有効な要求コードを伴う入力を選択して出力する。選択された仮想ページ番号77は対応テーブル73と有効ビットテーブル74にアドレスとして入力される。対応テーブル73は仮想ページ番号に対応する実ページ番号を、有効ビットテーブル74は仮想ページ番号に対応する実ページの有無を各々記憶しており、選択された仮想ページ番号77に対応する実ページ番号79と、有効ビット80を出力する。ここで有効ビットは1であれば有効である。制御装置71は有効ビット80を監視し、1であれば成功コードを応答コード81として出力し、0であれば失敗コードを出力する。応答コード81はセレクタ70により有効な要求コードを出力しているプロセッサインターフェースだけに対して出力される。実ページ番号79は全てのプロセッサインターフェースに対して出力され、成功コードを受取ったプロセッサインターフェースが受信する。   The selector 70 selects and outputs an input with a valid request code among the inputs from the plurality of processor interfaces. The selected virtual page number 77 is input as an address to the correspondence table 73 and the effective bit table 74. The correspondence table 73 stores a real page number corresponding to the virtual page number, and the valid bit table 74 stores the presence / absence of a real page corresponding to the virtual page number. The real page number corresponding to the selected virtual page number 77 is stored. 79 and a valid bit 80 are output. Here, if the valid bit is 1, it is valid. The control device 71 monitors the valid bit 80. If it is 1, it outputs a success code as a response code 81, and if it is 0, it outputs a failure code. The response code 81 is output only to the processor interface outputting a valid request code by the selector 70. The real page number 79 is output to all the processor interfaces, and is received by the processor interface that has received the success code.

要求コード76が対応削除要求コードであれば、制御装置71は有効ビットテーブル74に0を書き込むと同時に、対応テーブル73が出力する実ページ番号79をローダブルカウンタ82にロードさせる。ここでローダブルカウンタ82は制御信号84の指示によりロードとインクリメントの一方を行う機能を有し、インクリメントにおいてはLSBから6ビット目以上の上位ビットをカウントアップするので、出力は32ずつ増加する。次に制御装置71は有効ビットテーブルの操作を行う。有効ビットテーブル74は全ての実ページ番号について対応する仮想ページの有無を各1ビットで記憶するものであり、32ビット幅のRAMに収められている。各々のビットは1であれば対応ありを示し、番地とビット位置により指定できる。ローダブルカウンタ82の値は制御回路71に入力され、制御回路71はそのうちの6ビット目以上の上位ビットを番地83として有効ビットテーブル74に出力する。削除要求コードに対して制御装置71は有効ビットテーブル74から32ビットデータ83を読み出し、ローダブルカウンタ出力の5ビット目以下の下位ビットが指す位置のビットを0にしてから同じ番地に書き戻す。この時点で指定の仮想ページに対応していた実ページは空きページとなり登録削除は完了するので、制御回路71は成功コードを出力する。   If the request code 76 is a correspondence deletion request code, the control device 71 writes 0 in the valid bit table 74 and loads the real page number 79 output from the correspondence table 73 into the loadable counter 82. Here, the loadable counter 82 has a function of performing one of loading and incrementing according to the instruction of the control signal 84. In incrementing, since the upper bits of the sixth and higher bits are counted up from the LSB, the output increases by 32. Next, the control device 71 operates the effective bit table. The effective bit table 74 stores the presence / absence of corresponding virtual pages for all real page numbers in one bit, and is stored in a 32-bit wide RAM. If each bit is 1, it indicates correspondence and can be specified by an address and a bit position. The value of the loadable counter 82 is input to the control circuit 71, and the control circuit 71 outputs the higher-order bits of the 6th and higher bits as the address 83 to the effective bit table 74. In response to the deletion request code, the control device 71 reads the 32-bit data 83 from the valid bit table 74, sets the bit at the position indicated by the fifth and lower bits of the loadable counter output to 0, and writes it back to the same address. At this time, the real page corresponding to the designated virtual page becomes an empty page, and the registration deletion is completed. Therefore, the control circuit 71 outputs a success code.

制御回路71は有効な要求コードを受けていない時も32ビットデータ83を読み出し、全ビットが0であればローダブルカウンタ82を32ずつインクリメントする操作を繰り返す。その結果、空きページがある限りにおいてローダブルカウンタ82は空きページが参照できる番地を指して停止する。このようにして空きページを予め見つけておけば必要が生じた時に遅滞なく登録が可能である。また、この構成では空きページを32ページずつ検索できるので、空きページを一つずつ探す方式よりも遙かに短い時間で検索を終えることができる。   The control circuit 71 reads the 32-bit data 83 even when no valid request code is received, and repeats the operation of incrementing the loadable counter 82 by 32 if all bits are 0. As a result, as long as there is an empty page, the loadable counter 82 points to an address where the empty page can be referred to and stops. In this way, if an empty page is found in advance, registration is possible without delay when necessary. Further, in this configuration, 32 pages of free pages can be searched, so that the search can be completed in a much shorter time than the method of searching for free pages one by one.

要求コード76が対応登録要求コードであれば、制御装置71は32ビットデータ83を読み出し、1であるビットがあれば、最も下位のビットのビット位置と番地から空きページ番号86を求めて、これを対応テーブル73に書き込むと同時に有効ビットテーブル74には1を書き込み、さらに32ビットデータ83のうち1である最も下位のビットを0にして同じ番地に書き戻す。この時点で空きページが一つ減り、空きページ番号86は選択された仮想ページ番号77に対応付けられ、実ページ番号79として出力されるので制御装置71は成功コードを出力する。32ビットデータ83が全て0であれば、ローダブルカウンタ82をずつ32インクリメントし、次の32ビットデータ83を読み出して1であるビットが有れば上記操作を行い、無ければカウンタが一巡する回数を上限としてインクリメントを繰り返す。カウンタが一巡しても1であるビットが無ければ、その時点で制御回路は失敗コードを出力する。   If the request code 76 is a corresponding registration request code, the control device 71 reads the 32-bit data 83, and if there is a bit of 1, obtains a free page number 86 from the bit position and address of the least significant bit. Are simultaneously written in the correspondence table 73, and 1 is written in the effective bit table 74, and the least significant bit of 1 in the 32-bit data 83 is set to 0 and written back to the same address. At this point, the number of empty pages is reduced by one, and the empty page number 86 is associated with the selected virtual page number 77 and is output as the real page number 79, so the control device 71 outputs a success code. If the 32-bit data 83 is all 0s, the loadable counter 82 is incremented by 32, the next 32-bit data 83 is read, the above operation is performed if there is a bit of 1, and if not, the number of times the counter makes a round The increment is repeated up to. If there is no bit which is 1 even if the counter makes a round, the control circuit outputs a failure code at that time.

以上のような構成と動作により、対応登録装置は対応の参照または削除の要求に対して必ず一定時間内に操作を完了することができ、登録の要求に対しても空きページがある限り一定時間内に操作を完了することができる。従って、撮像回路からのデータの取り込みのように遅滞が許されない極めてリアルタイム性の高い処理にも本発明のメモリ管理装置は適用可能であり、使用済みの実ページは各々のプロセッサインターフェースにより遅滞無く開放されるのでメモリを効率的に利用することが可能である。   With the configuration and operation as described above, the corresponding registration device can always complete the operation within a certain time in response to a request for corresponding reference or deletion, and for a certain time as long as there is an empty page for the registration request. Within the operation can be completed. Therefore, the memory management device of the present invention can be applied to processing with extremely high real-time characteristics where delay is not allowed, such as taking in data from an imaging circuit, and used real pages are released without delay by each processor interface. Therefore, the memory can be used efficiently.

本発明にかかるメモリ管理装置は、撮像回路からのデータの取り込みのように遅滞が許されない極めてリアルタイム性の高い処理にも本発明のメモリ管理装置は適用可能であり、使用済みの実ページは各々のプロセッサインターフェースにより遅滞無く開放されるのでメモリを効率的に利用することが可能であるため、デジタルカメラや携帯電話端末等に適用できる。   The memory management device according to the present invention can be applied to processing with extremely high real-time characteristics in which delay is not permitted, such as data fetching from an imaging circuit, and each used real page is Since the memory interface can be used efficiently because it is released without delay by the processor interface, it can be applied to a digital camera, a mobile phone terminal, and the like.

本発明によるメモリ管理装置を用いたデジタルスチルカメラの構成を示すブロック図The block diagram which shows the structure of the digital still camera using the memory management apparatus by this invention MMUの構成と特に調停回路の役割を説明するブロック図Block diagram explaining the configuration of the MMU and in particular the role of the arbitration circuit プロセッサインターフェースの構成例を示したブロック図Block diagram showing a configuration example of the processor interface 本実施例における対応登録装置の構成を説明するブロック図Block diagram for explaining the configuration of the correspondence registration apparatus in the present embodiment 従来のメモリ管理装置による画像処理装置の構成を示すブロック図A block diagram showing a configuration of an image processing apparatus using a conventional memory management apparatus 仮想アドレスと実アドレスの対応を示す説明図Explanatory diagram showing the correspondence between virtual addresses and real addresses 仮想アドレス空間のページと実アドレス空間のページの関係を示す説明図Explanatory diagram showing the relationship between pages in the virtual address space and pages in the real address space

符号の説明Explanation of symbols

1 撮像回路
2 YC処理回路
3 圧縮処理回路
4 記録回路
5 CPU
6 MMU
7 メモリ回路
11 画像処理装置
12 ホストコンピューター
13 CPU
14 入力バッファ
15 画像圧縮回路
16 画像伸張回路
17 MMU
18 RAM
19 出力バッファ
20 仮想アドレス
21 実アドレス
22 下位ビット
23 仮想ページ番号
24 実ページ番号
30 仮想メモリ空間
31 実メモリ空間
32 ページ管理テーブル
33 仮想ページ
34 実ページ
40、41、42、43、44 プロセッサインターフェース
45 調停回路
46 対応登録回路
50 プロセッサ
51 プロセッサインターフェース
52 調停回路
53 対応登録装置
54 メモリ装置
55 仮想アドレスのアドレス有効信号
56 アドレス下位ビット
57 仮想アドレス上位ビット
58 制御回路
59、60、63 レジスタ
61 実アドレスの上位ビット
62 実アドレスのアドレス有効信号
64 セレクタ
65 実ページ番号
70 セレクタ
71 制御装置
73 対応テーブル
74 有効ビットテーブル
75 空きページテーブル
76 選択された要求コード
77 選択された仮想ページ番号
79 実ページ番号
80 有効ビット
81 応答コード
82 ローダブルカウンタ
83 番地
85 32ビットデータ
86 空きページ番号
DESCRIPTION OF SYMBOLS 1 Imaging circuit 2 YC processing circuit 3 Compression processing circuit 4 Recording circuit 5 CPU
6 MMU
7 Memory Circuit 11 Image Processing Device 12 Host Computer 13 CPU
14 Input buffer 15 Image compression circuit 16 Image expansion circuit 17 MMU
18 RAM
19 Output buffer 20 Virtual address 21 Real address 22 Lower bit 23 Virtual page number 24 Real page number 30 Virtual memory space 31 Real memory space 32 Page management table 33 Virtual page 34 Real pages 40, 41, 42, 43, 44 Processor interface 45 Arbitration Circuit 46 Corresponding Registration Circuit 50 Processor 51 Processor Interface 52 Arbitration Circuit 53 Corresponding Registration Device 54 Memory Device 55 Virtual Address Address Valid Signal 56 Address Lower Bit 57 Virtual Address Upper Bit 58 Control Circuit 59, 60, 63 Register 61 Real Address Upper bit 62 Address valid signal of real address 64 Selector 65 Real page number 70 Selector 71 Controller 73 Corresponding table 74 Valid bit table 75 Empty page Table 76 selected request code 77 selected virtual page number 79 real page number 80 valid bits 81 response code 82 loadable counter 83 address 85 32-bit data 86 empty page number

Claims (5)

ページングによる仮想メモリ管理を行うメモリ管理装置であって調停回路と対応登録回路と複数のプロセッサインターフェースとを備え、前記プロセッサインターフェースはアドレス変換バッファを備え、前記アドレス変換バッファは少なくとも一対の実ページと仮想ページとの対応を記憶する機能を有し、かつ前記対応に従って仮想アドレスを実アドレスに変換するものであり、前記対応登録回路は全ての実ページと仮想ページとの対応を記憶する機能を有し、前記プロセッサインターフェースは対応登録回路へのアクセスを要求する機能を有し、前記調停回路は複数のプロセッサからの前記アクセス要求を調停し、一時に一つのプロセッサインターフェースに対応登録回路にアクセス権を与えるものであり、前記アクセス権を得たプロセッサインターフェースは前記対応登録回路にアクセスして実ページと仮想ページとの対応を取得するものであり、複数のプロセッサが仮想メモリ空間にアクセスできる事を特徴とするメモリ管理装置。 A memory management device for performing virtual memory management by paging, comprising an arbitration circuit, a corresponding registration circuit, and a plurality of processor interfaces, the processor interface comprising an address translation buffer, and the address translation buffer comprising at least a pair of real pages and a virtual Has a function of storing the correspondence with pages, and converts a virtual address into a real address according to the correspondence, and the correspondence registration circuit has a function of storing the correspondence between all real pages and virtual pages. The processor interface has a function of requesting access to the corresponding registration circuit, and the arbitration circuit arbitrates the access requests from a plurality of processors, and gives the access right to the corresponding registration circuit to one processor interface at a time. And the process that gained the access right. Sa interface is intended to obtain the correspondence between the access to the corresponding register circuit and real page virtual page, a memory management device, characterized in that a plurality of processors can access the virtual memory space. 請求項1に記載のメモリ管理装置であって、少なくとも一つのプロセッサインターフェースはプロセッサが過去にアクセスした仮想ページの番号を記憶する機能と、前記記憶した仮想ページの番号とプロセッサがアクセスを要求している仮想ページの番号を比較する機能を有し、前記比較結果に従って前記対応登録回路にアクセスして実ページと仮想ページとの対応を登録する機能を有することを特徴とするメモリ管理装置。 2. The memory management device according to claim 1, wherein at least one processor interface has a function of storing a virtual page number accessed by the processor in the past, and the stored virtual page number and the processor requesting access. A memory management device having a function of comparing the number of a virtual page, and a function of accessing the correspondence registration circuit according to the comparison result and registering a correspondence between a real page and a virtual page. 請求項1または2に記載のメモリ管理装置であって、少なくとも一つのプロセッサインターフェースは前記検知結果に従って前記対応登録回路にアクセスし、特にプロセッサが過去にアクセスした仮想ページと実ページの対応を抹消する機能を有することを特徴とするメモリ管理装置。 3. The memory management device according to claim 1, wherein at least one processor interface accesses the correspondence registration circuit according to the detection result, and in particular erases the correspondence between a virtual page and a real page accessed by the processor in the past. A memory management device having a function. 請求項1乃至3のいずれかに記載のメモリ管理装置であって、前記対応登録回路は少なくともページ管理テーブルとページ検索装置を有し、前記ページ管理テーブルは全ての実ページと仮想ページとの対応を記憶するものであり、前記ページ検索装置はページ管理テーブルにアクセスして対応する仮想ページが無い実ページを検索する機能を有することを特徴とするメモリ管理装置。 4. The memory management device according to claim 1, wherein the correspondence registration circuit includes at least a page management table and a page search device, and the page management table corresponds to all real pages and virtual pages. And the page search device has a function of accessing a page management table and searching for a real page having no corresponding virtual page. 請求項1乃至3のいずれかに記載のメモリ管理装置であって、前記対応登録回路は少なくともページ管理テーブルと空きページテーブルとページ検索装置を有し、前記ページ管理テーブルは全ての実ページと仮想ページとの対応を記憶するものであり、前記空きページテーブルは実ページ毎に仮想ページとの対応の有無を記憶するものであり、前記ページ検索装置は空きページテーブルにアクセスして対応する仮想ページが無い実ページを検索する機能を有することを特徴とするメモリ管理装置。 4. The memory management device according to claim 1, wherein the correspondence registration circuit includes at least a page management table, an empty page table, and a page search device, and the page management table includes all real pages and virtual pages. The empty page table stores the presence / absence of the correspondence with the virtual page for each real page, and the page search device accesses the empty page table to correspond to the virtual page. A memory management device having a function of searching for a real page having no content.
JP2003379731A 2003-11-10 2003-11-10 Memory management device Pending JP2005141637A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003379731A JP2005141637A (en) 2003-11-10 2003-11-10 Memory management device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003379731A JP2005141637A (en) 2003-11-10 2003-11-10 Memory management device

Publications (1)

Publication Number Publication Date
JP2005141637A true JP2005141637A (en) 2005-06-02

Family

ID=34689690

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003379731A Pending JP2005141637A (en) 2003-11-10 2003-11-10 Memory management device

Country Status (1)

Country Link
JP (1) JP2005141637A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100772863B1 (en) 2006-01-13 2007-11-02 삼성전자주식회사 Method and apparatus for shortening operating time of page replacement in demand paging applied system
JP2008217591A (en) * 2007-03-06 2008-09-18 Fuji Xerox Co Ltd Information processor, image processor, image forming apparatus, image forming system, and address conversion processing program
JP2011061603A (en) * 2009-09-11 2011-03-24 Toshiba Corp Image processing device, and method for processing image
JP2012088894A (en) * 2010-10-19 2012-05-10 Renesas Electronics Corp Data processor

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100772863B1 (en) 2006-01-13 2007-11-02 삼성전자주식회사 Method and apparatus for shortening operating time of page replacement in demand paging applied system
US7953953B2 (en) 2006-01-13 2011-05-31 Samsung Electronics Co., Ltd. Method and apparatus for reducing page replacement time in system using demand paging technique
JP2008217591A (en) * 2007-03-06 2008-09-18 Fuji Xerox Co Ltd Information processor, image processor, image forming apparatus, image forming system, and address conversion processing program
JP2011061603A (en) * 2009-09-11 2011-03-24 Toshiba Corp Image processing device, and method for processing image
JP2012088894A (en) * 2010-10-19 2012-05-10 Renesas Electronics Corp Data processor

Similar Documents

Publication Publication Date Title
US6954806B2 (en) Data transfer apparatus and method
US8467618B2 (en) Data processing device, image encoding/decoding device and data processing system
CN111176725B (en) Data processing method, device, equipment and storage medium
JP2001216194A (en) Arithmetic processor
KR940005790B1 (en) Data processing unit with dma function
US7913059B2 (en) Information processing device, data transfer method, and information storage medium
US20200210351A1 (en) Image processing accelerator
US7660924B2 (en) Semiconductor integrated circuit device which executes data transfer between a plurality of devices connected over network, and data transfer method
JPH11194995A (en) Microprocessor with built-in dram and data transfer method therefor
JP2003281079A (en) Bus interface selection by page table attribute
JP2005141637A (en) Memory management device
EP1408508A1 (en) Storage device
US7321438B2 (en) Parallel processing for a first and second image data from one input image
JP6294732B2 (en) Data transfer control device and memory built-in device
JP2007087177A (en) Information processor
US8244919B2 (en) Data transfer apparatus, system and method using the same
WO2020227878A1 (en) Method for scheduling data in memory, and data scheduling device and system
JP3453761B2 (en) Address translation method
JP4431492B2 (en) Data transfer unit that supports multiple coherency granules
JP2008210280A (en) Semiconductor device and dma controller
JP3742066B2 (en) Camera image processing device
JP2000003328A (en) Address reference system for input/output control device
KR100915308B1 (en) Apparatus and method for converting first dimension image data into second dimensions image data
JPH09182072A (en) Image compression device
JPS608971A (en) Central processing unit