JPH0573419A - Virtual storage device - Google Patents

Virtual storage device

Info

Publication number
JPH0573419A
JPH0573419A JP3234884A JP23488491A JPH0573419A JP H0573419 A JPH0573419 A JP H0573419A JP 3234884 A JP3234884 A JP 3234884A JP 23488491 A JP23488491 A JP 23488491A JP H0573419 A JPH0573419 A JP H0573419A
Authority
JP
Japan
Prior art keywords
cpu
memory
address
bank
virtual
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
JP3234884A
Other languages
Japanese (ja)
Inventor
Yasuhiro Takase
康弘 高瀬
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP3234884A priority Critical patent/JPH0573419A/en
Publication of JPH0573419A publication Critical patent/JPH0573419A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the reduction of the processing speed of a system caused by a virtual storage processing. CONSTITUTION:By providing a real memory 7 having back constitution at every page of about 64K bytes, and data lines 18, 19, address lines 14, 15, and bank selectors 5, 6 by two systems, respectively, a CPU 2 can make access to different banks simultaneously with a CPU 1. Also, the CPU 2 monitors a virtual address outputted by the CPU 1 and writes that of high access frequency in a reference memory 3, it is resolved into a bank address and a real memory address by an address decoder 4 and the rear/write of data in executed to a real memory 7.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、仮想記憶制御を行う情
報処理装置(仮想記憶装置)に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing device (virtual storage device) for controlling virtual storage.

【0002】[0002]

【従来の技術】従来の仮想記憶装置は、図2に示すよう
に一つのCPU1で通常の演算処理と仮想記憶処理を行
っている。そして、仮想メモリアドレスを出力するのに
実メモリ9上にあるアドレス変換テーブルを参照して、
そのアドレスが実メモリ9上にある場合は、そのまま実
メモリ9をアクセスする。
2. Description of the Related Art In a conventional virtual storage device, as shown in FIG. 2, one CPU 1 performs normal arithmetic processing and virtual storage processing. Then, in order to output the virtual memory address, the address conversion table in the real memory 9 is referred to,
If the address is on the real memory 9, the real memory 9 is directly accessed.

【0003】実メモリ9上に存在しない場合は、実メモ
リ9の使用頻度の少ないブロックを仮想領域に待避して
必要なブロックを仮想記憶領域8から実メモリ9上にロ
ードする。
If it does not exist in the real memory 9, the block that is used less frequently in the real memory 9 is saved in the virtual area and the necessary block is loaded from the virtual storage area 8 onto the real memory 9.

【0004】[0004]

【発明が解決しようとする課題】上述した従来の仮想記
憶装置は、仮想記憶制御を行うときに本来の演算処理を
一時中断してアドレス変換の処理を行い、実メモリに該
当するアドレスが存在しない場合、仮想記憶領域から該
当するアドレスを含むブロックをロードするという処理
を行うため、仮想記憶制御の処理に時間がかかり、仮想
記憶制御を行わない情報処理装置に対して、処理速度が
遅いという欠点がある。
In the above-mentioned conventional virtual memory device, when performing virtual memory control, the original arithmetic processing is temporarily suspended to perform address conversion processing, and there is no corresponding address in the real memory. In this case, since the process of loading the block including the corresponding address from the virtual storage area is performed, the processing of the virtual storage control takes time, and the processing speed is slower than that of the information processing device that does not perform the virtual storage control. There is.

【0005】本発明の目的は、上述した処理速度の低下
を改善した仮想記憶装置を提供することにある。
It is an object of the present invention to provide a virtual memory device that improves the above-mentioned decrease in processing speed.

【0006】[0006]

【課題を解決するための手段】前記目的を達成するた
め、本願の第1の発明に係る仮想記憶装置においては、
一定ページ容量のページ毎にバンク構成を持っている一
定の主記憶容量をもち、2系統のアドレスラインと2系
統のデータラインと2つのバンクセレクタを有し、別の
バンクであれば、同時に2つのアドレスをアクセス可能
な実メモリと、通常の演算処理を行う第1のCPU及び
仮想記憶処理専用の第2のCPUとを含み、第2のCP
Uは、第1のCPUを一時的に停止するためのWAIT
信号からなるデュアルCPU構成になっており、第2の
CPUは第1のCPUがアクセス中でないバンクを上記
バンクセレクタを使って第1のCPUとは独立にメモリ
を選択してメモリのあるページを仮想領域にページアウ
トしたり、仮想領域からメモリにページインする機能を
有するものである。
In order to achieve the above object, in the virtual storage device according to the first invention of the present application,
It has a fixed main storage capacity having a bank structure for each page of a fixed page capacity, has two lines of address lines, two lines of data lines, and two bank selectors. A second CP including a real memory that can access one address, a first CPU that performs normal arithmetic processing, and a second CPU dedicated to virtual memory processing.
U is a WAIT for temporarily stopping the first CPU
It has a dual CPU configuration consisting of signals, and the second CPU selects a bank which is not being accessed by the first CPU independently of the first CPU by using the bank selector to select a page having the memory. It has a function of page-out to the virtual area and page-in from the virtual area to the memory.

【0007】また、本願の第2の発明においては、前記
第1の発明における仮想記憶装置であって、第1のCP
Uが出力する仮想アドレスを第2のCPUが監視して、
アクセス頻度の高いバンクアドレスを書き込むための参
照メモリと、参照メモリの内容によって、前記メモリの
バンクを選択するためのバンクアドレスをバンクセレク
タに出力し、バンクセレクタに選択されたバンク内のメ
モリアドレスを生成するアドレスデコーダーとを有する
ものである。
According to a second invention of the present application, the virtual memory device according to the first invention, wherein the first CP
The second CPU monitors the virtual address output by U,
A reference memory for writing a bank address that is frequently accessed and a bank address for selecting a bank of the memory according to the contents of the reference memory are output to a bank selector, and the memory address in the bank selected by the bank selector is output. And an address decoder for generating.

【0008】また、前記第2の発明における仮想記憶装
置であって、参照メモリは、Nワードのレジスタ構成に
なっており、第2のCPUによって内容が変えられるも
のである。
Further, in the virtual memory device according to the second aspect of the invention, the reference memory has an N-word register structure, and the contents can be changed by the second CPU.

【0009】[0009]

【作用】図1に示すように、64Kバイト程度のページ
毎にバンク構成を持つ実メモリ7と、データライン1
8,19、アドレスライン14,15、バンクセレクタ
5,6をそれぞれ2系統持つことによりCPU2がCP
U1と同時に異なるバンクをアクセスすることができ
る。またCPU1が出力する仮想アドレスをCPU2が
監視して参照メモリ3にアクセス頻度の高いものを書き
込んでおき、アドレスデコーダー4によってバンクアド
レスと実メモリアドレスに分解され実メモリ7に対して
データのリード/ライトを行う。
As shown in FIG. 1, a real memory 7 having a bank structure for each page of about 64 Kbytes and a data line 1 are provided.
8 and 19, address lines 14 and 15, and bank selectors 5 and 6 each have two systems, so that the CPU 2 has a CP.
Different banks can be accessed at the same time as U1. The CPU 2 monitors the virtual address output by the CPU 1 and writes the frequently accessed address in the reference memory 3, and the address decoder 4 decomposes the address into a bank address and a real memory address. Write.

【0010】[0010]

【実施例】次に本発明について図面を参照して説明す
る。
The present invention will be described below with reference to the drawings.

【0011】図1は、本発明の一実施例を示すブロック
図、図3は、CPU1が出力する仮想アドレスの構成を
示す図、図4は、参照メモリ3のレジスタ構成を示す図
である。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 3 is a diagram showing a configuration of a virtual address output by the CPU 1, and FIG. 4 is a diagram showing a register configuration of the reference memory 3.

【0012】図1において、CPU1は、通常の演算処
理を行い、その時のメモリのリード/ライト動作は次の
手順で行う。CPU1は、仮想アドレスをアドレスライ
ン11を使ってCPU2とアドレスデコーダー4に出力
する。
In FIG. 1, the CPU 1 performs normal arithmetic processing, and the read / write operation of the memory at that time is performed in the following procedure. The CPU 1 outputs the virtual address to the CPU 2 and the address decoder 4 using the address line 11.

【0013】アドレスデコーダー4は、この仮想アドレ
スを図3のようにアドレスAとアドレスBに分解して図
4に示される参照メモリ3のレジスタ内容と比較してア
ドレスAに一致するバンクアドレスをセレクタ5に出力
する。
The address decoder 4 decomposes this virtual address into addresses A and B as shown in FIG. 3 and compares it with the register contents of the reference memory 3 shown in FIG. 4 to select a bank address that matches the address A. Output to 5.

【0014】セレクタ5は、実メモリ7のバンクを選択
し、またアドレスデコーダー4はアドレスBをアドレス
1ライン14を通して実メモリ7に出力して、実メモリ
7の物理アドレスを選択することにより、データライン
18を通してリード/ライトを行う。
The selector 5 selects a bank of the real memory 7, and the address decoder 4 outputs the address B to the real memory 7 through the address 1 line 14 to select the physical address of the real memory 7, thereby Read / write is performed through the line 18.

【0015】一方CPU2は、CPU1が出力する仮想
アドレスを監視して内部メモリに仮想アドレスのアドレ
スA部分の回数をカウントして、そのアクセス頻度の高
いものから図5に示すNワードのテーブルを作成し、そ
の内容を図4に示す参照メモリ3のレジスタに書き込
む。
On the other hand, the CPU 2 monitors the virtual address output by the CPU 1 and counts the number of times of the address A portion of the virtual address in the internal memory, and creates the N word table shown in FIG. 5 from the one having the highest access frequency. Then, the contents are written in the register of the reference memory 3 shown in FIG.

【0016】またCPU1が参照メモリ3にない仮想ア
ドレスを出力した場合、CPU2は、WAIT信号10
をアクティブにして、CPU1を一時停止させ参照メモ
リ3のNワードのテーブルのうち、アクセス頻度の低い
アドレスAをバンクアドレスライン17を使ってセレク
タ6に出力してバンクを選択して、そのページの内容を
仮想記憶領域8に待避(ページアウト)させ、新たな仮
想アドレスを含むページを仮想記憶領域8から実メモリ
7にロード(ページイン)する。
When the CPU 1 outputs a virtual address which is not in the reference memory 3, the CPU 2 outputs the WAIT signal 10
Of the table of N words in the reference memory 3 is activated to output the address A having a low access frequency to the selector 6 using the bank address line 17 to select a bank, The contents are saved in the virtual storage area 8 (page out), and the page including the new virtual address is loaded from the virtual storage area 8 to the real memory 7 (page in).

【0017】そして同時に参照メモリ3の内容とCPU
2の内部メモリのテーブルを更新して、WAIT信号1
0をイナクティブにする。以上がCPU2が実メモリ7
と仮想記憶領域8との間で行う仮想記憶処理である。
At the same time, the contents of the reference memory 3 and the CPU
WAIT signal 1 is updated by updating the table in the internal memory of 2.
Make 0 inactive. The above is the CPU 2 in the real memory 7
And virtual storage area 8 is a virtual storage process.

【0018】しかし、上記の処理において、CPU2が
CPU1にWAIT信号10を出力する(アクティブ)
とCPU1が停止するため、この時間が多くなるとシス
テム全体の実行スピードが落ちることとなり、CPU2
は、図6に示すアルゴリズムで仮想記憶処理を行うこと
により処理スピードの低下を抑えることができる。
However, in the above processing, the CPU 2 outputs the WAIT signal 10 to the CPU 1 (active).
When this time increases, the execution speed of the entire system decreases and the CPU2
Is capable of suppressing a decrease in processing speed by performing virtual storage processing with the algorithm shown in FIG.

【0019】図6のアルゴリズムによれば、CPU2
は、CPU1が現在アクセス中の仮想記憶領域8のペー
ジの次のページを実メモリ7にページインしている。次
のページが既に実メモリ7にページインされている場合
はなにもしない。
According to the algorithm of FIG. 6, the CPU 2
Is page-in to the real memory 7 the page next to the page of the virtual storage area 8 currently being accessed by the CPU 1. If the next page has already been paged in to the real memory 7, nothing is done.

【0020】これによりCPU2は、仮想記憶処理をC
PU1がメモリアクセス中でも行うことができるため、
仮想記憶処理によるCPU1が停止する時間を少なくで
きる。CPU1が停止するのは次の場合で、まず仮想ア
ドレスが連続的に順番に出力される場合は、CPU2が
参照メモリ3のレジスタの内容を書き換える時、CPU
1がジャンプ命令等で不連続な仮想アドレスを出力し
て、そのアドレスA部分が参照メモリ3に存在しない時
で、CPU2はWAIT信号10をアクティブにしてC
PU1を停止させ仮想記憶処理を行う。
As a result, the CPU 2 executes the virtual memory processing in C
Since it can be performed even while PU1 is accessing the memory,
The time during which the CPU 1 is stopped due to the virtual memory processing can be reduced. The CPU 1 is stopped in the following cases. First, when the virtual addresses are continuously output in sequence, when the CPU 2 rewrites the contents of the register of the reference memory 3,
1 outputs a discontinuous virtual address due to a jump instruction or the like, and when the address A portion does not exist in the reference memory 3, the CPU 2 activates the WAIT signal 10 and C
PU1 is stopped and virtual memory processing is performed.

【0021】CPU1は、処理中ほとんどの場合仮想ア
ドレスは連続したものを出力するため、CPU1の処理
速度は、仮想記憶をしないものに比べてほとんど低下し
ない。
In most cases, the CPU 1 outputs consecutive virtual addresses during processing, so that the processing speed of the CPU 1 is not much lower than that of the one without virtual memory.

【0022】なお、図1において実メモリ7の容量を1
Mバイト、ページ容量を64Kバイトにしているが、こ
れは一実施例であり、容量を限定するものではない。
In FIG. 1, the real memory 7 has a capacity of 1
Although M bytes and page capacity are set to 64 Kbytes, this is an example and the capacity is not limited.

【0023】[0023]

【発明の効果】以上説明したように本発明は、仮想記憶
を行う情報処理装置において、システムの処理速度を低
下させないで仮想記憶処理を行うことができるという効
果を有する。
As described above, the present invention has the effect that the virtual memory processing can be performed in the information processing apparatus for virtual memory without reducing the processing speed of the system.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】従来の仮想記憶装置を示すブロック図である。FIG. 2 is a block diagram showing a conventional virtual storage device.

【図3】図1のアドレスライン11に出力される仮想ア
ドレスの構成を示す図である。
FIG. 3 is a diagram showing a configuration of a virtual address output to an address line 11 of FIG.

【図4】図1の参照メモリ3のレジスタ内容を示す図で
ある。
FIG. 4 is a diagram showing register contents of a reference memory 3 of FIG.

【図5】CPU2の内部メモリテーブルの構成を示す図
である。
FIG. 5 is a diagram showing a configuration of an internal memory table of the CPU 2.

【図6】CPU2の仮想記憶処理のアルゴリズムを示し
た図である。
FIG. 6 is a diagram showing an algorithm of virtual storage processing of the CPU 2.

【図7】CPU2の仮想記憶処理のアルゴリズムを示し
た図である。
FIG. 7 is a diagram showing an algorithm of virtual storage processing of the CPU 2.

【図8】CPU2の仮想記憶処理のアルゴリズムを示し
た図である。
FIG. 8 is a diagram showing an algorithm of virtual storage processing of the CPU 2.

【符号の説明】[Explanation of symbols]

1 CPU 2 CPU 3 参照メモリレジスタ 4 アドレスデコーダー 5 セレクタ 6 セレクタ 7 実メモリ 8 仮想記憶領域 9 実メモリ(従来の仮想記憶装置のもの) 10 WAIT信号 11 アドレスライン(仮想アドレス) 12 参照メモリのレジスタ番号 13 参照メモリの書き込み用データライン 14 アドレスライン(実メモリアドレス) 15 アドレスライン(実メモリアドレス) 16 バンクアドレスライン 17 バンクアドレスライン 18 データライン 19 データライン 1 CPU 2 CPU 3 Reference Memory Register 4 Address Decoder 5 Selector 6 Selector 7 Real Memory 8 Virtual Storage Area 9 Real Memory (of Conventional Virtual Storage Device) 10 WAIT Signal 11 Address Line (Virtual Address) 12 Reference Memory Register Number 13 reference memory write data line 14 address line (real memory address) 15 address line (real memory address) 16 bank address line 17 bank address line 18 data line 19 data line

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 一定ページ容量のページ毎にバンク構成
を持っている一定の主記憶容量をもち、2系統のアドレ
スラインと2系統のデータラインと2つのバンクセレク
タを有し、別のバンクであれば、同時に2つのアドレス
をアクセス可能な実メモリと、 通常の演算処理を行う第1のCPU及び仮想記憶処理専
用の第2のCPUとを含み、 第2のCPUは、第1のCPUを一時的に停止するため
のWAIT信号からなるデュアルCPU構成になってお
り、 第2のCPUは第1のCPUがアクセス中でないバンク
を上記バンクセレクタを使って第1のCPUとは独立に
メモリを選択してメモリのあるページを仮想領域にペー
ジアウトしたり、仮想領域からメモリにページインする
機能を有することを特徴とする仮想記憶装置。
1. A bank having a fixed main storage capacity having a bank structure for each page and having two lines of address lines, two lines of data lines, and two bank selectors. If so, it includes a real memory that can access two addresses at the same time, a first CPU that performs normal arithmetic processing, and a second CPU that is dedicated to virtual memory processing. It has a dual CPU configuration consisting of a WAIT signal for temporarily stopping, and the second CPU uses the bank selector to set a memory independently of the first CPU for a bank which is not being accessed by the first CPU. A virtual storage device having a function of selecting a page in a memory to page out to a virtual area and a page from a virtual area to a memory.
【請求項2】 前記請求項1に記載の仮想記憶装置であ
って、 第1のCPUが出力する仮想アドレスを第2のCPUが
監視して、アクセス頻度の高いバンクアドレスを書き込
むための参照メモリと、 参照メモリの内容によって、前記メモリのバンクを選択
するためのバンクアドレスをバンクセレクタに出力し、
バンクセレクタに選択されたバンク内のメモリアドレス
を生成するアドレスデコーダーとを有することを特徴と
する仮想記憶装置。
2. The virtual memory device according to claim 1, wherein the second CPU monitors a virtual address output from the first CPU and writes a bank address that is frequently accessed. And outputs a bank address for selecting a bank of the memory to the bank selector according to the content of the reference memory,
A virtual memory device having an address decoder for generating a memory address in a selected bank by a bank selector.
【請求項3】 前記請求項2に記載の仮想記憶装置であ
って、 参照メモリは、Nワードのレジスタ構成になっており、
第2のCPUによって内容が変えられるものであること
を特徴とする仮想記憶装置。
3. The virtual memory device according to claim 2, wherein the reference memory has a register configuration of N words,
A virtual storage device, the contents of which can be changed by a second CPU.
JP3234884A 1991-09-13 1991-09-13 Virtual storage device Pending JPH0573419A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3234884A JPH0573419A (en) 1991-09-13 1991-09-13 Virtual storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3234884A JPH0573419A (en) 1991-09-13 1991-09-13 Virtual storage device

Publications (1)

Publication Number Publication Date
JPH0573419A true JPH0573419A (en) 1993-03-26

Family

ID=16977834

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3234884A Pending JPH0573419A (en) 1991-09-13 1991-09-13 Virtual storage device

Country Status (1)

Country Link
JP (1) JPH0573419A (en)

Similar Documents

Publication Publication Date Title
EP0902922B1 (en) Method and apparatus for caching system management mode information with other information
JPH04242848A (en) System for controlling cache memory by running mode
US5161219A (en) Computer system with input/output cache
JPH0529945B2 (en)
JPH0573419A (en) Virtual storage device
JP2002041358A (en) Processor system
JPH0421222B2 (en)
US5933856A (en) System and method for processing of memory data and communication system comprising such system
JPS59197946A (en) Memory device
JPH04324194A (en) Rom circuit
JP3259732B2 (en) Register file circuit
JPH07152650A (en) Cache control unit
JPH07141174A (en) Register
JPH04245346A (en) Microcomputer system
JP3701951B2 (en) Processor system using processor, main memory controller and synchronous dynamic memory
JP3047992B2 (en) Main memory key control method
JPH05143445A (en) Memory accelerating mechanism for virtual memory computer
JPH04291642A (en) Cache control system
JPH02226447A (en) Computer system and memory access therefor
JPH02176839A (en) Information processor
JPH056659A (en) Dynamic ram
JPH0728990A (en) Graphic memory access circuit
JPH0561769A (en) Memory access method
JPH0981458A (en) Access method to cache in data-processing system
JPS5891570A (en) Information processing system