JPS6284349A - Memory control device - Google Patents

Memory control device

Info

Publication number
JPS6284349A
JPS6284349A JP60223592A JP22359285A JPS6284349A JP S6284349 A JPS6284349 A JP S6284349A JP 60223592 A JP60223592 A JP 60223592A JP 22359285 A JP22359285 A JP 22359285A JP S6284349 A JPS6284349 A JP S6284349A
Authority
JP
Japan
Prior art keywords
access
main memory
store buffer
data
cpu
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
JP60223592A
Other languages
Japanese (ja)
Inventor
Masayuki Tanji
雅行 丹治
Atsuhiko Nishikawa
敦彦 西川
Soichi Takatani
高谷 荘一
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP60223592A priority Critical patent/JPS6284349A/en
Publication of JPS6284349A publication Critical patent/JPS6284349A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To reduce a store buffer to the minimum number of gates by making the bit width of a main memory address fewer than data by several bits by logic physical conversion. CONSTITUTION:Access from a CPU 100 to a main memory 300 and an IO device 400 is wholly made through a memory control device 200. It is judged by a circuit 270 whether the access from the CPU 100 is to the main memory 300 or to the IO device 400. In the case of access to the main memory 300, an operation command is give to a main memory access controlling circuit 230 and a store buffer 260. The command to the store buffer is effective only in the case of write access. In the case where access from the CPU 100 is to the IO device, a command is given to an IO access control circuit 240 through a line 214.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明はメモリ制@装置におけるストアバッファに係り
、特に、ゲートアレイ等ハードウェア量に制約のある素
子で装置を構成する場合に有効なストアバッファに関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to a store buffer in a memory-based @device, and in particular to a store buffer that is effective when the device is configured with elements such as gate arrays that have a limited amount of hardware. Regarding.

〔発明の背景〕[Background of the invention]

CPUからのライトアクセスを高速化するためのストア
バッファでは、ストアバッファ中のデータを如何に早く
追い出すか、又は、如何に無駄なデータを格納しないよ
うにするかについて、例えば、特開昭56−54558
号公報に見られるような工夫がなされている。しかし、
ストアバッファを構成するハードウェアの量の観点から
の工夫はこれまでになかった。
Regarding the store buffer for speeding up write access from the CPU, for example, Japanese Patent Application Laid-Open No. 56-1999 describes how to quickly flush out data in the store buffer or how to avoid storing unnecessary data. 54558
The device has been devised as seen in the publication. but,
Up until now, no effort has been made from the perspective of the amount of hardware that makes up the store buffer.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、ストアバッファ回路を最小のゲート数
で実現することにある。
An object of the present invention is to realize a store buffer circuit with a minimum number of gates.

〔発明の概要〕[Summary of the invention]

ストアバッファは、データとそのデータを格納するアド
レスの組を単位として、その一つ又は複数の組で構成さ
れる。10アクセスにおけるアドレスは、一般に、仝開
領域を広く取るために、データと同一のビット幅で表現
されるが、主メモリアドレスは論理・物理変換により、
ビット幅がデータより数ビット少ないのが一般的である
A store buffer is composed of one or more pairs of data and an address for storing the data. Addresses in 10 accesses are generally expressed with the same bit width as the data to ensure a wide open area, but main memory addresses are
Generally, the bit width is several bits less than the data.

本発明は、この点に着目し、ストアバッファを最小のゲ
ート数で実現することを可能とする。
The present invention focuses on this point and makes it possible to realize a store buffer with a minimum number of gates.

〔発明の実施例〕[Embodiments of the invention]

第1図にシステムの構成図を示す。100がCP[J、
2(10がメモリ制卸装置であり、300の主記憶及び
400の10装置に対するCPUからのアクセスは全て
のメイリ割例装置を介して行なわれる。
Figure 1 shows a diagram of the system configuration. 100 is CP[J,
2 (10 is a memory control device), and access from the CPU to the main memory 300 and the 10 devices 400 is performed through all the memory distribution devices.

第2図はメモリ制御装置内の構成を表わす図である。2
20,230,240は、夫々、CPUインターフェイ
ス回路、主メモリアクセス側倒回路、IOアクセス制制
置回路ある。250は、CPUから出力された論理アド
レスを物理アドレスに変換するだめのアドレス変換回路
であり、260は主メモリに対するライトデータを、そ
のアドレスと共に保持するストアバッファである。
FIG. 2 is a diagram showing the internal configuration of the memory control device. 2
20, 230, and 240 are a CPU interface circuit, a main memory access bypass circuit, and an IO access control circuit, respectively. 250 is an address conversion circuit for converting a logical address output from the CPU into a physical address, and 260 is a store buffer that holds write data to the main memory together with the address.

201.202,203は夫々CPUとメモリff1l
l−装置間のアドレス・データ・制社11i号バスを表
わす。また、204〜206及び207〜209は、夫
々、主メモリ及びIO装置との間のアドレス・データ・
側副信号バスを表わし、210〜212はメモリ制卸装
置内部のアドレス・データ・制御信号パスを表わす。
201, 202, 203 are the CPU and memory ff1l respectively
1 represents the address/data/system No. 11i bus between devices. Further, 204 to 206 and 207 to 209 indicate addresses, data, and data between the main memory and the IO device, respectively.
21 represents a collateral signal bus, and 210 to 212 represent address, data, and control signal paths within the memory control device.

270はCPUよりのアクセスが主メモリに対するもの
であるか、l09fitに対するものであるかを判定す
る回路であって、主メモIJ K対するアクセスである
場合には213を介して主メモリアクセス制御回路と、
ストアバッファに動作指令を与える。但し、ストアバッ
ファに対する@作指令はライトアクセスの場合にのみ有
効である。
270 is a circuit that determines whether the access from the CPU is to the main memory or to l09fit; if the access is to the main memory IJK, it is connected to the main memory access control circuit via 213; ,
Give operation commands to the store buffer. However, the @create command for the store buffer is valid only for write access.

また、CPUからのアクセスが■0装置に対するもので
ある場合には、214を介してIOアクセス制飼回路に
指令を与j−る。
Further, if the access from the CPU is to the 0 device, a command is given to the IO access control circuit via 214.

このように、ストアバッファに格納するのは。In this way, store it in the store buffer.

主メモリに対するデータ及びアドレスのみとすることが
でき、アドレスがCPU内で扱う論理アドレス、即チ、
IOアクセスに用いられるアドレスよりもビット幅が狭
いために、より少ない〕・−ドウエアでストアバッファ
を構成することができる。
It can be only data and addresses for main memory, and addresses are logical addresses handled within the CPU, i.e.,
Since the bit width is narrower than the address used for IO access, the store buffer can be configured with less hardware.

第3図にはCP[Jよりのアクセスが、主メモリに対す
るアクセスか、■0装置に対するアクヤスかを判定する
ための一つの例として、論理アドレス領域による例を示
した。本例ではアドレス巾が32ビツトとしてアドレス
領域の$00000000〜$ 7FFFFFFFが主
メモリ領域であって。
FIG. 3 shows an example using a logical address area as an example for determining whether an access from CP[J is an access to the main memory or an access to the 0 device. In this example, the address width is 32 bits, and the address area from $00000000 to $7FFFFFFFF is the main memory area.

$ 80000000〜8F’FFFFFFFをIO領
領域している。但し、$ば16進数を表わす。
The IO area is $80000000 to 8F'FFFFFFFF. However, $ represents a hexadecimal number.

第2図の270は、これに対応して、主メモリアクセス
かIOアクセスかの判定を、アドレスバスの一部の値(
本実施例では最上位ビットのみ)によって行なうことを
表わしている。
Correspondingly, 270 in FIG. 2 determines whether it is a main memory access or an IO access.
In this embodiment, only the most significant bit) is used.

第4図は、CPUよりのアクセスが主メモリに対するア
クセスか、IO装置に対するアクセスかを判定するだめ
の他の一つの例として、アドレス空間を拡張する制(1
1tl信号を用いる例を示した。
Figure 4 shows another example of how to determine whether an access from the CPU is to main memory or to an IO device.
An example using a 1tl signal was shown.

この場合には、主メモリ及び■0として夫々4GB (
CPUアドレスが32ピツト巾とした場合)の論理空間
をもつことができる。
In this case, the main memory and ■0 each have 4 GB (
If the CPU address is 32 pits wide), it can have a logical space of 32 bits.

この場合には、第2図の270の入力として制御ll信
号バスが選ばれる。
In this case, the control 11 signal bus is selected as the input at 270 in FIG.

〔発明の効果〕〔Effect of the invention〕

現在多用されつつある32ピツ1[長の1チツプCPU
では、物理アドレスは一般に22〜26ビツトの範囲で
選ばれる。これは、ストアバッファに物理アドレスを格
納すれば論理アドレスを格納する場合に比べて、6〜1
0ビツトも短くて良いことを示す。−ビットの7リツプ
フロツプを構成するのに四ゲートを必要とすれば、スト
アバッファの一エントリ当り24〜40ゲートの縮減と
なり、例えば、ストアバッファとしてへエントリ準備す
ると仮定した場合には、192〜:う20ケートもの縮
減となる。
32-bit 1-chip CPU, which is currently being widely used.
In this case, the physical address is generally chosen in the range of 22 to 26 bits. This means that if you store a physical address in the store buffer, it will be 6 to 1 times more expensive than if you store a logical address.
This shows that 0 bits can also be short. - If 4 gates are required to configure a 7-bit lip-flop, the reduction will be 24 to 40 gates per entry in the store buffer. For example, assuming that an entry is prepared as a store buffer, 192 to: This is a reduction of 20 kg.

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

第1図は本発明の一実施例のシステムの構成を示すブロ
ック図、第2図は本発明を実施したメモリ制御装置の系
統図、第3図、第4図は主メモリアクセスとIOアクセ
スを分離する手段の例を示す図である。 100・・・CP[J、200・・・メモリ制御装置(
MCU)、300・・・主メモリ、400・・・工0装
置。
FIG. 1 is a block diagram showing the configuration of a system according to an embodiment of the present invention, FIG. 2 is a system diagram of a memory control device implementing the present invention, and FIGS. 3 and 4 show main memory access and IO access. It is a figure which shows the example of a means for separating. 100...CP[J, 200...Memory control device (
MCU), 300... Main memory, 400... Engineering device.

Claims (1)

【特許請求の範囲】[Claims] 1、処理装置より出力する論理アドレスを物理アドレス
に変換するアドレス変換回路と、前記処理装置より出力
するデータを、格納すべき前記物理アドレスと共に一時
的に記憶するストアバッファと主メモリアクセス制御回
路と、IOアクセス制御回路とよりなるメモリ制御装置
において、前記出力データが前記主メモリに対するデー
タか前記IOに対するデータかを判別する手段と、前記
主メモリに対するデータのみを前記ストアバッファに格
納する手段とからなることを特徴とするメモリ制御装置
1. An address conversion circuit that converts a logical address output from a processing device into a physical address, a store buffer and a main memory access control circuit that temporarily store data output from the processing device together with the physical address to be stored. , a memory control device comprising an IO access control circuit, comprising means for determining whether the output data is data for the main memory or data for the IO, and means for storing only data for the main memory in the store buffer. A memory control device characterized by:
JP60223592A 1985-10-09 1985-10-09 Memory control device Pending JPS6284349A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60223592A JPS6284349A (en) 1985-10-09 1985-10-09 Memory control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60223592A JPS6284349A (en) 1985-10-09 1985-10-09 Memory control device

Publications (1)

Publication Number Publication Date
JPS6284349A true JPS6284349A (en) 1987-04-17

Family

ID=16800583

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60223592A Pending JPS6284349A (en) 1985-10-09 1985-10-09 Memory control device

Country Status (1)

Country Link
JP (1) JPS6284349A (en)

Similar Documents

Publication Publication Date Title
JPS6118059A (en) Memory circuit
JP2704419B2 (en) A bus master that selectively attempts to fill all entries in the cache line.
JPS6284349A (en) Memory control device
JPS60120450A (en) Controlling system of buffer memory
JPH07176183A (en) Memory device for execution of read, correction and write in one cycle
JPH0844621A (en) Processing unit and method for generation of memory access cycle at inside of processing unit
JPH06274462A (en) Asynchronous writing system for shared memory
JP2874230B2 (en) Memory addressing method of microcomputer
JPH07334420A (en) Extended memory control circuit
JP3343556B2 (en) Storage system
JP3357693B2 (en) Emulation memory mapping circuit and emulation system
JPH0352160B2 (en)
JPH05151150A (en) Computer data input/output device
JPS60169954A (en) Memory access system
JPH0344748A (en) Read control system for memory data
JPH01315858A (en) Data transfer control method and device
JPH07262091A (en) Memory system
JPS59114657A (en) Memory interface circuit of microcomputer
JPH0756860A (en) Multi-cpu system
JPH04315243A (en) Memory control circuit
JPH0457128A (en) Access device for memory
JPH04372029A (en) Storage device
JPH0224748A (en) Address switching circuit
JPS6255752A (en) Control system for extension of data bus
JPH0287246A (en) Bank memory control system