JPH0991193A - Memory controller - Google Patents

Memory controller

Info

Publication number
JPH0991193A
JPH0991193A JP24936495A JP24936495A JPH0991193A JP H0991193 A JPH0991193 A JP H0991193A JP 24936495 A JP24936495 A JP 24936495A JP 24936495 A JP24936495 A JP 24936495A JP H0991193 A JPH0991193 A JP H0991193A
Authority
JP
Japan
Prior art keywords
memory
cpu
clock
memory control
data
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
JP24936495A
Other languages
Japanese (ja)
Inventor
Takeshi Ikeda
剛 池田
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.)
Niigata Fuji Xerox Manufacturing Co Ltd
Original Assignee
Niigata Fuji Xerox Manufacturing 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 Niigata Fuji Xerox Manufacturing Co Ltd filed Critical Niigata Fuji Xerox Manufacturing Co Ltd
Priority to JP24936495A priority Critical patent/JPH0991193A/en
Publication of JPH0991193A publication Critical patent/JPH0991193A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To optimally perform the memory control without depending on the operating speed of a CPU and to bring out maximum memory performance by using clocks dedicated to memory control whose cycle is different from the clocks for CPU control. SOLUTION: While the CPU 1 is operated based on CPU clocks 7, a memory control circuit 3 controls memory control signals 13, memory address signals 15 and data buffer control signals 14 based on MEM clocks 6. Further, by tentatively holding memory read data in a data butter 5, the memory control circuit 3 can start next memory read control without waiting for the operation end of the CPU 1.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、CPU凡びメモリ
からなる演算処理装置に於けるメモリ制御装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory control device in an arithmetic processing device including a CPU and a memory.

【0002】[0002]

【従来の技術】従来のCPU及びメモリからなる演算処
理装置では、CPUとメモリ制御装置に同一のクロック
を供給していた。そのクロックは一般的にCPUに最適
化されたクロックであり、そのクロックに基づきメモリ
制御信号を生成しているため、メモリに対しては増長な
ウェイト(待ち時間)が挿入される。
2. Description of the Related Art In a conventional processor including a CPU and a memory, the same clock is supplied to the CPU and the memory controller. The clock is generally a clock optimized for the CPU, and the memory control signal is generated based on the clock. Therefore, an increased wait (wait time) is inserted in the memory.

【0003】図3は従来のこの種の演算処理装置の一例
を示すブロック図である。CPU1はステータス信号1
1により外部サイクルを起動する。メモリ制御回路が、
このステータス信号11によりメモリ読み込み/書き込
みサイクルを判断すると、アドレス信号8からメモリア
ドレス信号15を生成し、メモリ制御信号13とともに
メモリ4に出力し、読み込み/書き込みの制御を行う。
データはデータバス9を介して転送される。サイクルの
終了はRDY信号12によりメモリ制御回路3あるいは
CPU制御回路2からCPU1に伝えられる。
FIG. 3 is a block diagram showing an example of a conventional arithmetic processing device of this type. CPU1 is status signal 1
1 starts the external cycle. The memory control circuit
When the memory read / write cycle is determined by the status signal 11, the memory address signal 15 is generated from the address signal 8 and output to the memory 4 together with the memory control signal 13 to control the read / write.
Data is transferred via the data bus 9. The end of the cycle is transmitted from the memory control circuit 3 or the CPU control circuit 2 to the CPU 1 by the RDY signal 12.

【0004】図4は、図3に示した従来例におけるメモ
リ読み込みを示すタイミングチャートである。図中16
が示すCPUクロック7の立ち上りで外部サイクルが開
始される。そして、図中17で示されるCPUクロック
7の立ち上りに応答してメモリ制御信号13がアクティ
ブになる(図中18)と、それより所定時間経てメモリ
データが出力される(図中19)。そこでメモリ制御回
路3はRDY信号12をアクティブにする(図中20)
と、CPU1はデータバス9のデータをサンプルする
(図中21)。
FIG. 4 is a timing chart showing memory reading in the conventional example shown in FIG. 16 in the figure
The external cycle is started at the rising edge of the CPU clock 7 indicated by. Then, when the memory control signal 13 becomes active (18 in the figure) in response to the rising of the CPU clock 7 shown in 17 in the figure, memory data is output after a predetermined time from that (19 in the figure). Therefore, the memory control circuit 3 activates the RDY signal 12 (20 in the figure).
Then, the CPU 1 samples the data on the data bus 9 (21 in the figure).

【0005】更に、メモリ制御回路3はメモリ制御信号
13を非アクティブにする(図中22)と同時にメモリ
アドレス15を次のアドレスに切り替え(図中23)、
メモリ制御信号13をアクティブにし(図中24)、次
の読み込みを開始する。次のデータは図中25で示すC
PUクロック7の立ち上がりでCPU1にサンプルされ
る。
Further, the memory control circuit 3 deactivates the memory control signal 13 (22 in the figure) and, at the same time, switches the memory address 15 to the next address (23 in the figure).
The memory control signal 13 is activated (24 in the figure) to start the next reading. The next data is C shown by 25 in the figure.
Sampled by the CPU 1 at the rising edge of the PU clock 7.

【0006】[0006]

【発明が解決しようとする課題】上述のように、従来の
メモリ制御装置では、1つのクロックでCPUとメモリ
を制御しているため、メモリ制御信号13がアクティブ
から次にアクティブになるまでの期間(図4中の18と
24の間)がCPUクロック7により制約を受けるた
め、メモリ制御信号13のタイミングを細かく設定する
ことが不可能であり、それにより増長なウェイト・サイ
クルを挿入しなければならないので、メモリ性能向上の
妨げの原因となっているという問題点がある。
As described above, in the conventional memory control device, since the CPU and the memory are controlled by one clock, the period from when the memory control signal 13 becomes active to the next becomes active. Since (between 18 and 24 in FIG. 4) is restricted by the CPU clock 7, it is impossible to finely set the timing of the memory control signal 13, so that an additional wait cycle must be inserted. Therefore, there is a problem that it is a cause of hindering the improvement of the memory performance.

【0007】[0007]

【課題を解決するための手段】本発明の装置は、CPU
と、前記CPUが行う演算処理内容及び演算結果を記憶
するメモリと、前記メモリを制御するメモリ制御回路と
からなる演算処理装置におけるメモリ制御装置におい
て、前記CPUに供給されるCPUクロックと異なる周
期の、前記メモリの動作速度に最適化されたMEMクロ
ックが供給されることと、前記CPUクロックとMEM
クロックの周期が異なる為に、前記CPUが読み取るま
でメモリからの出力データを保持するデータバッファを
具備することを特徴とする。
The device of the present invention comprises a CPU
In a memory control device in an arithmetic processing device comprising a memory for storing the contents of arithmetic processing performed by the CPU and an arithmetic result, and a memory control circuit for controlling the memory, a cycle different from the CPU clock supplied to the CPU Supplying a MEM clock optimized for the operating speed of the memory, and the CPU clock and MEM
Since the clock cycle is different, the CPU is provided with a data buffer that holds the output data from the memory until the CPU reads it.

【0008】[0008]

【発明の実施の形態】次に、本発明について図面を参照
して説明する。
Next, the present invention will be described with reference to the drawings.

【0009】図1は、本発明の一実施例を示すブロック
図である。図1の演算処理装置に於いて、CPU1はC
PUクロック7に基づき演算処理及びメモリ4に対する
アクセスを行う。メモリ4のデータバス10は、データ
を一時的に保持するデータバッファ5を介してCPU1
のデータバス9に接続される。
FIG. 1 is a block diagram showing one embodiment of the present invention. In the arithmetic processing unit of FIG. 1, the CPU 1 is C
The arithmetic processing and access to the memory 4 are performed based on the PU clock 7. The data bus 10 of the memory 4 is connected to the CPU 1 via a data buffer 5 that temporarily holds data.
Is connected to the data bus 9.

【0010】また、メモリ制御装置3にはCPUクロッ
クより高速でかつメモリ4に最適化されたメモリクロッ
ク(MEM6)が供給される。ここにいう最適化とは、
メモリ4の規格の一つでメモリ4の動作速度を示す最小
サイクルタイム(tc)、及びCAS信号に関する規
格、すなわち最小CAS幅(tw)と最小CASプリチ
ャージ幅(tp)に基づいて行ない、以下の条件を満す
Tをメモリクロックの周期とすることをいう。下記の式
において、xとyは整数値であり、xTはCAS幅を、
yTはCASプリチャージ幅をそれぞれ表わす。このよ
うな条件を満たすということは、CAS規格を満たしな
がらMEMクロック6の周期の整数倍がメモリ4の最小
サイクルタイムになるようにMEMクロック6の周期を
定めるということになる。
The memory controller 3 is supplied with a memory clock (MEM6) that is faster than the CPU clock and optimized for the memory 4. Optimization here means
One of the standards of the memory 4 is the minimum cycle time (tc) indicating the operation speed of the memory 4, and the standard for the CAS signal, that is, the minimum CAS width (tw) and the minimum CAS precharge width (tp). It means that T that satisfies the condition of is the cycle of the memory clock. In the formula below, x and y are integer values, and xT is the CAS width,
yT represents the CAS precharge width. Satisfying such a condition means that the cycle of the MEM clock 6 is determined so that an integral multiple of the cycle of the MEM clock 6 becomes the minimum cycle time of the memory 4 while satisfying the CAS standard.

【0011】xT+yT=tc …… (条件1) xT≧tw …… (条件2) yT≧tp …… (条件3) 一例として、tc=50ns、tw=20ns、tp=
10nsの場合、T=25nsや16.7nsが現実的
なところである。
XT + yT = tc (condition 1) xT ≧ tw (condition 2) yT ≧ tp (condition 3) As an example, tc = 50 ns, tw = 20 ns, tp =
In the case of 10 ns, T = 25 ns and 16.7 ns are realistic places.

【0012】メモリ制御回路3は、MEMクロック6に
基づき、CPU1のアドレス信号8及びステータス信号
11からメモリ制御信号13(CAS等)及びデータバ
ッファ制御信号14を生成する。
The memory control circuit 3 generates a memory control signal 13 (CAS, etc.) and a data buffer control signal 14 from the address signal 8 and the status signal 11 of the CPU 1 based on the MEM clock 6.

【0013】まず、CPU1はステータス信号11によ
り外部サイクルを起動する。メモリ制御回路3がステー
タス信号11によりメモリ読み込み/書き込みサイクル
を検知すると、アドレス信号8からメモリアドレス信号
15を生成して、メモリ制御信号13(CAS等)とと
もにメモリ4に出力し、読み込み/書き込みの制御を行
う。メモリ4からの読み込みデータはメモリデータバス
10を通りデータバッファ5に保持される。この時のデ
ータバッファ5の制御はメモリ制御回路3がデータバッ
ファ制御信号14により行う。データバッファ5に保持
されたデータは、データバス9を介してCPU1に転送
される。サイクルの終了はRDY信号12によりメモリ
制御回路3あるいはCPU制御回路2からCPU1に伝
えられる。
First, the CPU 1 activates the external cycle by the status signal 11. When the memory control circuit 3 detects the memory read / write cycle by the status signal 11, it generates the memory address signal 15 from the address signal 8 and outputs it to the memory 4 together with the memory control signal 13 (CAS, etc.) for read / write. Take control. The read data from the memory 4 passes through the memory data bus 10 and is held in the data buffer 5. The memory control circuit 3 controls the data buffer 5 at this time by the data buffer control signal 14. The data held in the data buffer 5 is transferred to the CPU 1 via the data bus 9. The end of the cycle is transmitted from the memory control circuit 3 or the CPU control circuit 2 to the CPU 1 by the RDY signal 12.

【0014】図2はメモリ4がファーストページDRA
Mの場合のメモリ読み込みサイクルを示すタイミングチ
ャートである。CPU1は図中26に示すCPUクロッ
ク7の立ち上りに応答して、外部サイクルを開始するべ
くアドレス信号8をアクティブにする(図中27)。一
方、メモリ制御回路3は図中28で示すMEMクロック
6の立ち上りに応答してステータス信号11及びアドレ
ス信号8をサンプルし、メモリサイクルを開始する。
In FIG. 2, the memory 4 has a first page DRA.
9 is a timing chart showing a memory read cycle in the case of M; The CPU 1 activates the address signal 8 to start the external cycle in response to the rising edge of the CPU clock 7 shown by 26 in the figure (27 in the figure). On the other hand, the memory control circuit 3 samples the status signal 11 and the address signal 8 in response to the rising edge of the MEM clock 6 shown by 28 in the figure, and starts the memory cycle.

【0015】まず、メモリ制御回路3はアドレス信号8
からメモリアドレシ信号15を生成出力する(図中2
9)。次に、図中30で示すMEMクロック6の立ち上
りに応答してメモリ制御信号13をアクティブにする
(図中31)。そこから一定の時間を経てメモリ4のデ
ータバス10に読み込みデータが出力される(図中3
2)。メモリ制御回路3は図中33で示されるMEMク
ロック6の立ち上りでメモリ制御信号13を非アクティ
ブ(図中34)にすると同時に、メモリアドレス信号1
5を次のアドレス(A2)に切り替える(図中35)。
更にメモリ4からの読み込みデータをデータバッファ5
に保持する(図中36)と同時にデータバス9に読み込
みデータを出力する。
First, the memory control circuit 3 uses the address signal 8
Generates and outputs a memory address signal 15 (2 in the figure)
9). Next, the memory control signal 13 is activated in response to the rising edge of the MEM clock 6 shown by 30 in the drawing (31 in the drawing). After a certain time from that point, the read data is output to the data bus 10 of the memory 4 (3 in the figure).
2). The memory control circuit 3 deactivates the memory control signal 13 (34 in the figure) at the rising edge of the MEM clock 6 shown by 33 in the figure, and at the same time, the memory address signal 1
5 is switched to the next address (A2) (35 in the figure).
Further, the read data from the memory 4 is transferred to the data buffer 5
(36 in the figure) and at the same time, the read data is output to the data bus 9.

【0016】メモリ制御回路3は1回目のデータ保持
(図中36)後の最初のCPUクロック7の立ち下り4
7に応答してRDY信号12をアクティブにする(図中
38)と、CPU1はCPUクロック立ち上り39に応
答してデータをサンプルする。ここで注目されるべき
は、CPU1によるこのデータサンプル39より早く、
メモリ制御回路3はMEMクロック立ち上り37によ
り、次の読み込みの為にメモリ制御信号13をアクティ
ブにしている(図中40)点である。すなわち、データ
バッファ5においてリードデータを一時保持することに
より、CPUクロック7の立ち上り39によるCPU1
の動作を待つことなく、メモリ制御を行うことができる
ようになるのである。
The memory control circuit 3 has the first falling edge 4 of the CPU clock 7 after the first data holding (36 in the figure).
When the RDY signal 12 is activated in response to 7 (38 in the figure), the CPU 1 samples data in response to the CPU clock rising edge 39. It should be noted that, earlier than this data sample 39 by the CPU 1,
The memory control circuit 3 activates the memory control signal 13 for the next read by the MEM clock rising 37 (40 in the figure). That is, by temporarily holding the read data in the data buffer 5, the CPU 1 at the rising edge 39 of the CPU clock 7
Memory control can be performed without waiting for the operation of.

【0017】メモリ制御回路3はMEMクロック6の立
ち上り41でデータバッファ5にメモリ4からの読み込
みデータを保持し直す(図中42)。この時保持される
データは2回目の読み込みデータ(D2)であり、CP
Uクロック立ち上り43でCPU1にサンプルされる。
この間、RDY信号12はアクティブのままである。3
回目の読み取りデータは次のCPUクロック立ち上り4
4には間に合わない為、一旦メモリ制御回路3はRDY
信号12をCPUクロック立ち下り45で非アクティブ
にし(図中46)、CPUクロック立ち上り44でデー
タがサンプルされないようにする。次のCPUクロック
7の立ち下り48で再度アクティブにする(図中49)
ことにより3回目、4回目のデータがCPUクロックの
立ち上り50、51でCPU1にサンプルされる。
The memory control circuit 3 re-holds the read data from the memory 4 in the data buffer 5 at the rising edge 41 of the MEM clock 6 (42 in the figure). The data held at this time is the second read data (D2), and CP
Sampled by the CPU 1 at the U clock rising edge 43.
During this time, the RDY signal 12 remains active. 3
The next read data is the next CPU clock rising 4
Since it is not in time for 4, memory control circuit 3 once
The signal 12 is made inactive at the CPU clock falling edge 45 (46 in the figure) so that data is not sampled at the CPU clock rising edge 44. Reactivate at the next falling edge 48 of the CPU clock 7 (49 in the figure)
As a result, the third and fourth data are sampled by the CPU 1 at the rising edges 50 and 51 of the CPU clock.

【0018】[0018]

【発明の効果】以上説明したように、本発明によるメモ
リ制御装置は、CPUの動作の基本となるクロック(C
PUクロック7)とは異なる周期のクロック(MEMク
ロック6)をメモリ制御専用に用い、メモリ制御信号1
3のタイミングを細かく設定することが可能となり、最
適なタイミングでメモリを動作させることができ、演算
処理装置に於けるメモリ性能の向上を図ることができ
る。
As described above, the memory control device according to the present invention uses the clock (C
A clock (MEM clock 6) having a different cycle from the PU clock 7) is used exclusively for memory control, and the memory control signal 1
The timing 3 can be set finely, the memory can be operated at the optimum timing, and the memory performance in the arithmetic processing device can be improved.

【0019】更に、読み取りデータを一時保持すること
により、CPUの動作による待ち時間を削除し、より効
果的にメモリタイミングを最適化することができる。
Further, by temporarily holding the read data, the waiting time due to the operation of the CPU can be eliminated and the memory timing can be optimized more effectively.

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

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

【図2】図1に示した実施例におけるメモリ読み込みの
タイミングチャート例である。
FIG. 2 is an example of a timing chart of memory reading in the embodiment shown in FIG.

【図3】従来例を示すブロック図である。FIG. 3 is a block diagram showing a conventional example.

【図4】図3に示した従来例におけるメモリ読み込みの
タイミングチャート例である。
FIG. 4 is an example of a timing chart of memory reading in the conventional example shown in FIG.

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

1 CPU 2 CPU制御回路 3 メモリ制御回路 4 メモリ 5 データバッファ 6 MEMクロック 7 CPUクロック 8 アドレス信号 9 データバス 10 メモリデータバス 11 ステータス信号 12 RDY信号 13 メモリ制御信号 14 データバッファ制御信号 15 メモリアドレス信号 1 CPU 2 CPU control circuit 3 Memory control circuit 4 Memory 5 Data buffer 6 MEM clock 7 CPU clock 8 Address signal 9 Data bus 10 Memory data bus 11 Status signal 12 RDY signal 13 Memory control signal 14 Data buffer control signal 15 Memory address signal

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 CPUと、前記CPUが行う演算処理内
容及び演算結果を記憶するメモリと、前記メモリを制御
するメモリ制御回路とからなる演算処理装置におけるメ
モリ制御装置において、 前記CPUに供給されるCPUクロックと異なる周期
の、前記メモリの動作速度に最適化されたMEMクロッ
クが供給されることと、前記CPUクロックとMEMク
ロックの周期が異なる為に、前記CPUが読み取るまで
メモリからの出力データを保持するデータバッファを具
備することを特徴とするメモリ制御装置。
1. A memory control device in an arithmetic processing device, comprising: a CPU; a memory for storing the contents of arithmetic processing performed by the CPU and an arithmetic result; and a memory control circuit for controlling the memory, which is supplied to the CPU. Since the MEM clock optimized for the operation speed of the memory and having a different cycle from the CPU clock is supplied and the cycles of the CPU clock and the MEM clock are different, the output data from the memory is read until the CPU reads the data. A memory control device comprising a data buffer for holding.
【請求項2】 前記最適化は、前記MEMクロックの周
期の整数倍が、前記メモリのCAS規格を満たしなが
ら、前記メモリの最小サイクルタイムとなるように、前
記MEMクロックの周期を定めることにより行なうこと
を特徴とする請求項1記載のメモリ制御装置。
2. The optimization is performed by determining the cycle of the MEM clock so that an integer multiple of the cycle of the MEM clock is the minimum cycle time of the memory while satisfying the CAS standard of the memory. The memory control device according to claim 1, wherein:
JP24936495A 1995-09-27 1995-09-27 Memory controller Pending JPH0991193A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24936495A JPH0991193A (en) 1995-09-27 1995-09-27 Memory controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24936495A JPH0991193A (en) 1995-09-27 1995-09-27 Memory controller

Publications (1)

Publication Number Publication Date
JPH0991193A true JPH0991193A (en) 1997-04-04

Family

ID=17191932

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24936495A Pending JPH0991193A (en) 1995-09-27 1995-09-27 Memory controller

Country Status (1)

Country Link
JP (1) JPH0991193A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003032168A1 (en) * 2001-09-28 2003-04-17 Supreme Magic Corporation Data processor

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03204742A (en) * 1990-01-08 1991-09-06 Oki Electric Ind Co Ltd Memory control circuit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03204742A (en) * 1990-01-08 1991-09-06 Oki Electric Ind Co Ltd Memory control circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003032168A1 (en) * 2001-09-28 2003-04-17 Supreme Magic Corporation Data processor

Similar Documents

Publication Publication Date Title
JPH06139189A (en) Common bus arbitrating mechanism
JPH0667768A (en) Method for operating processor of type including bus unit and executing unit, central processing unit, computer system and clock control device circuit
JP3728468B2 (en) Memory control device
JPH08147161A (en) Data processor
US5579526A (en) Synchronous/asynchronous feedback system having logic circuit for changing the state of the processing core in response to output of synchronous state machine and asynchronous late inputs
JPH0991193A (en) Memory controller
US6618790B1 (en) Burst suspend and resume with computer memory
JPH11306074A (en) Information processor
JP3450667B2 (en) Data processor
JP2508979B2 (en) Bus controller
KR960011280B1 (en) Cache memory access time control circuit
JPH03211655A (en) Multistage wait control central processing unit
JPH0460859A (en) Weight controlling system for information processor
JPH0876876A (en) Clock supply control circuit of microprocessor
JPH0816389A (en) Arithmetic processor
JP2536102B2 (en) Data processing device
JPH0540687A (en) Device and method for processing information
JP3133696B2 (en) DRAM control circuit
JPS58205258A (en) Data processor
JP3366235B2 (en) Data read control device
JPH04287421A (en) Start circuit for a/d converter or d/a converter
KR970049174A (en) PLC (PLC)
JPH0425958A (en) Address counter control system
JP2003162412A (en) Power-saving circuit for cpu
JPH1091431A (en) Data processor

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19991026