JPS63197252A - Electronic computer - Google Patents

Electronic computer

Info

Publication number
JPS63197252A
JPS63197252A JP62030356A JP3035687A JPS63197252A JP S63197252 A JPS63197252 A JP S63197252A JP 62030356 A JP62030356 A JP 62030356A JP 3035687 A JP3035687 A JP 3035687A JP S63197252 A JPS63197252 A JP S63197252A
Authority
JP
Japan
Prior art keywords
cache memory
address
physical address
memory
bit
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
JP62030356A
Other languages
Japanese (ja)
Inventor
Yoshihiko Motohashi
良彦 本橋
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 JP62030356A priority Critical patent/JPS63197252A/en
Publication of JPS63197252A publication Critical patent/JPS63197252A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To easily obtain an electronic computer containing a cache memory by converting a logic address into an n-bit physical address (n: an integer of >=2) and using a part of an output signal of the n-bit physical address to decide the selection or non-selection of the cache memory. CONSTITUTION:When the logic address is converted into a physical address by a memory managing unit MMU13, a bit of conversion information corresponding to the page number of the logic address is read out of a main memory 3. Then the page number held by the memory 3 is used as the page number of the physical address corresponding to the page number of the logic address. The most significant bit of the output signal of the physical address is inputted to a cache memory control means 16 in a cache memory 12 as a cache memory control signal 15. When this signal 15 goes to 0, the memory 12 is set under a selection state and then in a non-selection state when the signal 15 goes to 1 respectively.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はキャッシュメモリを備えた電子計算機に関する
ものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an electronic computer equipped with a cache memory.

従来の技術 電子計算機の性能を向上させるために、プロセッサがア
クセスしたデータを保持する高速なキャー、 −/ −
J 工II −III?−7#rt JP −、−t+
 L±M;’1倍柱m(rIP−’IVe置される。し
かしながら、例えばダイレクトメモリアクセスフ/ドロ
ー2C以下DMAコントローラと称する)を持つ電子計
算機ではDMAコントローラも主記憶装置をアクセスす
るため、プロセッサが主記憶装置をアクセスしなくても
主記憶装置内のデータが変更されることがある。すなわ
ちキャッシュメモリが保持しているデータと主記憶装置
内のデータの間に不一致が発生する。また、マルチプロ
セッサ構成の電子計算機(マルチプロセッサシステム)
では主記憶を共有する複数のプログラムが別々のプロセ
ッサ上で実行されることがおり、キャッシュ間およびキ
ャッシュと主記憶間にデータの不一致が発生する。
Conventional Technology To improve the performance of electronic computers, high-speed storage, which holds data accessed by processors, is used.
J Engineering II-III? -7#rt JP -, -t+
L±M;'1 x column m (rIP-'IVe is placed. However, for example, in a computer with a direct memory access file 2C or below, referred to as a DMA controller), the DMA controller also accesses the main memory, so Data in main memory may be changed without the processor accessing main memory. That is, a mismatch occurs between the data held in the cache memory and the data in the main storage device. In addition, an electronic computer with a multiprocessor configuration (multiprocessor system)
In some cases, multiple programs that share main memory are executed on separate processors, resulting in data mismatch between caches and between cache and main memory.

このようなデータの不一致を解決するための1つの方法
として、プロセッサやDMAコントローラなどの複数の
装置がアクセスするアドレス空間のデータを、キャッシ
ュメモリに保持することを禁止するという方法がある。
One method for resolving such data mismatches is to prohibit data in an address space accessed by multiple devices such as processors and DMA controllers from being held in the cache memory.

マルチプロセッサシステムでは、複数のプロセッサで共
有しているデータを、プロセッサごとの論理アドレス空
間内の任意のアドレスにマツピングできることが望まし
い。そのため、例えば、ベージング方式のメモリ管理を
行なうマルチプロセッサシステムでは、論理アドレスか
ら物理アドレスを求めるためにページ毎に設けられた変
換情報Cページテーブルエントリー)に、そのページの
物理ページ番号とともにキャッシュメモリ制御ビットも
保持している。そして、論理アドレスから物理アドレス
へのアドレス変換を行なう際、メモリ管理ユニットc以
下MMUと称する)はキャッシュメモリ制御ビットの値
に従って、アドレス信号とは別の信号としてキャッシュ
メモリ選択信号を出力し、キャッシュメモリの選択およ
び非選択状態の制御を行なっていた。
In a multiprocessor system, it is desirable to be able to map data shared by multiple processors to any address within the logical address space of each processor. Therefore, for example, in a multiprocessor system that performs memory management using the paging method, the conversion information (C page table entry) provided for each page to obtain the physical address from the logical address is stored together with the physical page number of the page for cache memory control. It also holds bits. When converting an address from a logical address to a physical address, the memory management unit (hereinafter referred to as MMU) outputs a cache memory selection signal as a signal different from the address signal according to the value of the cache memory control bit, and It controlled memory selection and non-selection states.

発明が解決しようとする問題点 しかしながら前記した従来の方法は、MMUを内蔵して
いるがキャッシュメモリ制御信号を出力する機能を持た
ないプロセッサには適用できないという問題点を有して
いた。特にプロセッサがマイクロプロセッサの場合には
、マイクロプロセッサの使用者が内蔵MMUを改造する
ことが不可能であるため大きな問題となっていた。
Problems to be Solved by the Invention However, the conventional method described above has a problem in that it cannot be applied to a processor that has a built-in MMU but does not have the function of outputting a cache memory control signal. Particularly when the processor is a microprocessor, this poses a serious problem because it is impossible for the user of the microprocessor to modify the built-in MMU.

本発明はかかる問題に鑑みてなされたものであり、キャ
ッシュメモリ制御信号を出力する機能を持たないMMU
内蔵のプロセッサに対しても、論理アドレス指定された
空間に対応して変換出力される物理アドレスの一部を用
いてキャッシュメモリの選択および非選択の状態を制御
することのできる電子計算機を提供することを目的とす
る。
The present invention has been made in view of such problems, and is applicable to MMUs that do not have the function of outputting cache memory control signals.
To provide an electronic computer capable of controlling the selection and non-selection states of a cache memory even for a built-in processor using a part of a physical address converted and output corresponding to a space designated by a logical address. The purpose is to

問題点を解決するための手段 本発明は、論理アドレスをn(nは2以上の整数)ビッ
トの物理アドレスに変換出力するメモリー管理手段を有
するプロセッサと、前記nビットの物理アドレスの出力
信号を用いてアクセスされるキャッシュメモリと、前記
nビットの物理アドレスの出力信号の1部を用いて前記
キャッシュメモリの選択および非選択状態を決定するキ
ャッシュメモリ制御手段とを有する電子計算機である。
Means for Solving the Problems The present invention provides a processor having memory management means for converting and outputting a logical address into an n-bit physical address (n is an integer of 2 or more), and an output signal of the n-bit physical address. and a cache memory control means that determines a selected or non-selected state of the cache memory using a part of the output signal of the n-bit physical address.

作  用 本発明による作用は次のようになる。For production The effects of the present invention are as follows.

アドレス変換時、プロセッサは内蔵のメモリ管理手段を
使用して論理アドレスを物理アドレスに変換しアドレス
信号として出力する。そして、そのアドレス信号の一部
を制御信号としてキャッシュメモリの選択および非選択
状態が制御される。
During address conversion, the processor uses built-in memory management means to convert a logical address into a physical address and outputs it as an address signal. The selected and non-selected states of the cache memory are controlled using part of the address signal as a control signal.

実施例 第1図は本発明の電子計算機の一実施例を示すブロック
図である。システムは、同等の複数のプロセッサモジュ
ール1.2および主記憶装置3がシステムバス4に接続
されているマルチプロセッサ構成である。
Embodiment FIG. 1 is a block diagram showing an embodiment of the electronic computer of the present invention. The system has a multiprocessor configuration in which a plurality of equivalent processor modules 1.2 and a main memory 3 are connected to a system bus 4.

各フロセッサモジュール1.2はプロセッサ11とキャ
ッシュメモリ12とを具備する。プロセッサ11はベー
ジング方式の仮想記憶をサポートするMMU13を内蔵
する。
Each processor module 1.2 comprises a processor 11 and a cache memory 12. The processor 11 has a built-in MMU 13 that supports virtual memory using a paging method.

MMU13は、4にバイトの大きさのページ単位で論理
アドレスを物理アドレスに変換し、この物理アドレスを
アドレス信号14としてシステムバス4に出力する。
The MMU 13 converts the logical address into a physical address in page units of 4 bytes in size, and outputs this physical address to the system bus 4 as an address signal 14.

論理アドレスと物理アドレスのビット構成は同型式であ
り、これらのアドレスの幅は32ビツトである。この下
位12ピツ)(A11からAO)はページ内オフセット
であり、上位20ビツト(A31からA12)がページ
番号である。すなわち、アドレス空間は1メガ個(=2
2’)のページに分割され、管理される。また、ページ
単位に変換情報Cページテーブルエントリー)が設けら
れ、このページテーブルエントリーは主記憶装置3に保
持される。
The bit configurations of logical addresses and physical addresses are of the same type, and the width of these addresses is 32 bits. The lower 12 bits (A11 to AO) are the intra-page offset, and the upper 20 bits (A31 to A12) are the page number. In other words, the address space is 1 mega (=2
It is divided into 2') pages and managed. Furthermore, conversion information C (page table entry) is provided for each page, and this page table entry is held in the main storage device 3.

各々の変換情報(ページテーブルエントリー)は第2図
に示すようにページ番号21とページ情報22から構成
される。ここでMMU13によって論理アドレスから物
理アドレスに変換する際には、まず論理アドレスのペー
ジ番号に対応する変換情報(ページテーブルエントリー
)が主記憶装置3より読みだされ、これに保持されてい
るページ番号をこの論理アドレスのページ番号に対応す
る物理アドレスのページ番号として生成する。
Each conversion information (page table entry) is composed of a page number 21 and page information 22 as shown in FIG. When converting a logical address to a physical address by the MMU 13, first the conversion information (page table entry) corresponding to the page number of the logical address is read from the main storage device 3, and the page number held therein is read out from the main storage device 3. is generated as the page number of the physical address corresponding to the page number of this logical address.

この物理アドレスの出力信号の層上位ビットA31をキ
ャッシュメモリ制御信号15とし、キヤツシュメモリ1
2内のキャッシュメモリ制御手段16に入力する。この
キャッシュメモリ制御信号16が0の時キャッシュメモ
リ12は選択状態となり、1の時キャッシュメモリ12
は非選択状態となる。また、この物理アドレスの下位3
1ビツト(A30からAo)がアクセスアドレス信号1
7として   ゛            キャッシュ
メモリ12に入力されキャッシュメモリ12のアクセス
に使用される。
The layer upper bit A31 of the output signal of this physical address is used as the cache memory control signal 15, and the cache memory 1
The data is input to the cache memory control means 16 in 2. When this cache memory control signal 16 is 0, the cache memory 12 is in the selected state, and when it is 1, the cache memory 12 is in the selected state.
becomes unselected. Also, the lower 3 of this physical address
1 bit (A30 to Ao) is access address signal 1
7. ゛ It is input to the cache memory 12 and used for accessing the cache memory 12.

以上のようにして、キャッシュメモリ制御信号を出力す
る機能を持たないMMU内蔵のプロセッサに対しても、
論理アドレスで指定された空間に対して変換出力される
物理アドレスの一部を制御信号として用いてキャッシュ
メモリの選択および非選択の状態を制御することができ
る。
As described above, even for processors with a built-in MMU that do not have the function of outputting cache memory control signals,
It is possible to control the selection and non-selection states of the cache memory by using a part of the physical address converted and output to the space designated by the logical address as a control signal.

発明の効果 以上述べてきたように、本発明によれば、キャッシュメ
モリ制御信号を出力する機能を持たないMMU内蔵のプ
ロセッサに対しても、論理アドレスで指定された空間に
対して変換出力される物理発明はアドレス信号によって
キャッシュメモリの選択および非選択の状態を制御する
ため追加されるハードウェアはわずかである。従って、
本発明は、キャッシュメモリを有する電子計算機を容易
に実現する上できわめて有効である。
Effects of the Invention As described above, according to the present invention, even for a processor with a built-in MMU that does not have the function of outputting a cache memory control signal, a cache memory control signal can be converted and output to a space specified by a logical address. Since the physical invention controls the selection and non-selection states of the cache memory by address signals, only a small amount of hardware is added. Therefore,
The present invention is extremely effective in easily realizing an electronic computer having a cache memory.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例における電子計算機のブロッ
ク図、第2図は同電子計算機における変換情報(ページ
テーブルエントリー)の構成図テある。 1.2・・・・・・プロセッサモジエール、11・・・
・・・プロセッサ、12・・・・・・キャッシュメモリ
、13・・・・・・メモリ管理ユニット、14・・・・
・・物理アドレス信号、15・・・・・・キャッシュメ
モリ制御信号、16・・・・・・キャッシュメモリ制御
手段。
FIG. 1 is a block diagram of an electronic computer according to an embodiment of the present invention, and FIG. 2 is a configuration diagram of conversion information (page table entries) in the computer. 1.2...Processor module, 11...
...Processor, 12...Cache memory, 13...Memory management unit, 14...
. . . Physical address signal, 15 . . . Cache memory control signal, 16 . . . Cache memory control means.

Claims (1)

【特許請求の範囲】[Claims] 論理アドレスをn(nは2以上の整数)ビットの物理ア
ドレスに変換出力するメモリー管理手段を有するプロセ
ッサと、前記nビットの物理アドレスの出力信号を用い
てアクセスされるキャッシュメモリと、前記nビットの
物理アドレスの出力信号の1部を用いて前記キャッシュ
メモリの選択および非選択状態を決定するキャッシュメ
モリ制御手段とを有してなる電子計算機。
a processor having memory management means for converting and outputting a logical address to an n-bit physical address (n is an integer of 2 or more); a cache memory accessed using an output signal of the n-bit physical address; and a cache memory that is accessed using an output signal of the n-bit physical address; cache memory control means for determining a selected or non-selected state of the cache memory using a part of the output signal of the physical address of the computer.
JP62030356A 1987-02-12 1987-02-12 Electronic computer Pending JPS63197252A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62030356A JPS63197252A (en) 1987-02-12 1987-02-12 Electronic computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62030356A JPS63197252A (en) 1987-02-12 1987-02-12 Electronic computer

Publications (1)

Publication Number Publication Date
JPS63197252A true JPS63197252A (en) 1988-08-16

Family

ID=12301577

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62030356A Pending JPS63197252A (en) 1987-02-12 1987-02-12 Electronic computer

Country Status (1)

Country Link
JP (1) JPS63197252A (en)

Similar Documents

Publication Publication Date Title
US4386402A (en) Computer with dual vat buffers for accessing a common memory shared by a cache and a processor interrupt stack
US4769770A (en) Address conversion for a multiprocessor system having scalar and vector processors
US8108617B2 (en) Method to bypass cache levels in a cache coherent system
JPH01146187A (en) Semiconductor memory device built-in cache memory
US5749093A (en) Enhanced information processing system using cache memory indication during DMA accessing
EP0509994B1 (en) Centralized reference and change table for a multiprocessor virtual memory system
US5161219A (en) Computer system with input/output cache
EP0530682B1 (en) Method and system for addressing a very large memory
GB2386441A (en) Bus interface selection by page table attributes
JPH10143431A (en) Caching method of data for microprocessor and computer system
JPS5868286A (en) Cash memory and operation thereof
JPS6184755A (en) Data processing system
US4964037A (en) Memory addressing arrangement
JPS63197252A (en) Electronic computer
KR920010446A (en) Method and apparatus for fast page mode selection
JPS6329297B2 (en)
JPS59173828A (en) Data processing system
KR960005394B1 (en) Dual process board sharing cache memory
JPH0291744A (en) Cache memory system
JPH0561769A (en) Memory access method
JPS58201157A (en) Control circuit of bank memory
JPH0336648A (en) Electronic computer, tlb device and microprocessor chip
KR100236530B1 (en) Address generating circuit of a digital signal processor
JPH05143445A (en) Memory accelerating mechanism for virtual memory computer
JP2570361B2 (en) Storage control method