[go: up one dir, main page]

JPH05274253A - System bus controller - Google Patents

System bus controller

Info

Publication number
JPH05274253A
JPH05274253A JP4067408A JP6740892A JPH05274253A JP H05274253 A JPH05274253 A JP H05274253A JP 4067408 A JP4067408 A JP 4067408A JP 6740892 A JP6740892 A JP 6740892A JP H05274253 A JPH05274253 A JP H05274253A
Authority
JP
Japan
Prior art keywords
data
write
cpu
latch
dram
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
JP4067408A
Other languages
Japanese (ja)
Inventor
Takahiro Sonoda
隆宏 薗田
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP4067408A priority Critical patent/JPH05274253A/en
Publication of JPH05274253A publication Critical patent/JPH05274253A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)
  • Bus Control (AREA)

Abstract

(57)【要約】 【目的】 DRAMに対するライト・アクセスでのCP
Uのウェイト時間を減少させ、CPUの処理能力を向上
させる。 【構成】 DRAM12に対するライト・アクセス時に
おいて、CPU11がシステムバスS−BUS上に出力
した書込データ(CPU−DATA)は、バス・コント
ローラ111の制御により、第3クロックサイクルでラ
ッチA112に保持される。パリティ生成回路14は、
その保持されたデータ(Lathed−DATA)を基
にパリティデータを生成するので、CPU11は、ラッ
チA112に自己の出力した書込データがラッチされた
時点で、システムバスS−BUSへの次の書込データの
出力(バースト・モード時)または次の命令の実行(通
常ライト時)が可能になる。
(57) [Abstract] [Purpose] CP for write access to DRAM
The wait time of U is reduced and the processing capability of CPU is improved. [Structure] During write access to the DRAM 12, the write data (CPU-DATA) output from the CPU 11 on the system bus S-BUS is held in the latch A 112 in the third clock cycle under the control of the bus controller 111. It The parity generation circuit 14
Since parity data is generated based on the held data (Lathed-DATA), the CPU 11 writes the next data to the system bus S-BUS when the write data output by itself is latched by the latch A 112. Enables output of embedded data (during burst mode) or execution of the next instruction (during normal write).

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、CPUがシステムバス
を介して接続されたDRAM(ダイナミック・ランダム
・アクセス・メモリ)に対して行うライト・アクセスを
制御するシステムバス制御回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system bus control circuit for controlling write access performed by a CPU to a DRAM (dynamic random access memory) connected via a system bus.

【0002】[0002]

【従来の技術】コンピュータにおいては、主メモリとし
て、一般にROM(リード・オンリ・メモリ)やRAM
(ランダム・アクセス・メモリ)等の半導体メモリが用
いられる。また、最近では、DRAMの大容量化に伴
い、補助メモリとして複数のDRAMチップがボード上
に搭載されたRAMディスクが使用されるようになって
きている。
2. Description of the Related Art Generally, in a computer, a main memory is a ROM (Read Only Memory) or a RAM.
A semiconductor memory such as (random access memory) is used. Recently, with the increase in capacity of DRAM, a RAM disk having a plurality of DRAM chips mounted on a board has been used as an auxiliary memory.

【0003】ここで、図6にCPU(中央演算処理装
置)11がシステムバスS−BUSを介してDRAM1
2に接続されたシステムの回路ブロック図を示す。一般
にDRAM12が大容量で、しかもデータ保持に高い信
頼性が要求されたり、または悪条件下で使用されたりす
る等の場合、DRAM12に記憶されるデータのエラー
を検出する機能が必要となる。
Here, in FIG. 6, a CPU (Central Processing Unit) 11 has a DRAM 1 via a system bus S-BUS.
2 shows a circuit block diagram of the system connected to FIG. Generally, when the DRAM 12 has a large capacity and high reliability is required for holding data or is used under bad conditions, a function of detecting an error in data stored in the DRAM 12 is required.

【0004】この記憶データのエラー検出方法として
は、一般にパラティ・チェック(Par-ity Check )が用
いられている。このパリティ・チェックは2進データに
含まれている“1”となっているビット数が偶数(eve
n;イーブン)かまたは奇数(odd ;オッド)であるか
を検出することによりデータエラーを検出するものであ
り、DRAMへのデータ・ライト時にnビットの記憶デ
ータに1ビットのパリティ・ビットを付加して、その
(n+1)ビットのデータにおいて“1”となっている
ビットの個数が常に偶数(イーブン・パリティ)または
奇数(オッド・パリティ)となるようにして、その(n
+1)ビットのデータをDRAMに書き込む。そして、
DRAMからのデータ・リード時に上記1ビットのパリ
ティビットが付加された(n+1)ビットのデータを読
み出し、その読み出しデータにおいて“1”となってい
るビットの個数が偶数か奇数かにより、読み出したnビ
ットの記憶データのエラー検出を行うものである。
As a method of detecting an error in this stored data, a para-ity check is generally used. In this parity check, the number of bits of "1" included in binary data is even (eve
A data error is detected by detecting whether it is n; even) or odd (odd), and a 1-bit parity bit is added to the n-bit storage data when writing data to the DRAM. Then, the number of bits that are "1" in the (n + 1) -bit data is always even (even parity) or odd (odd parity).
Write +1) bit data to DRAM. And
When the data is read from the DRAM, the (n + 1) -bit data to which the above-mentioned 1-bit parity bit is added is read, and n is read depending on whether the number of "1" bits in the read data is even or odd. It is intended to detect an error in bit storage data.

【0005】図6に示すシステムにおいては、DRAM
12から読み出されるデータに対して上記パリティ・チ
ェックを行うために、CPU11とDRAM12間にパ
リティ生成回路(以後P−GENと略称する)14が設
けられている。
In the system shown in FIG. 6, the DRAM
A parity generation circuit (hereinafter abbreviated as P-GEN) 14 is provided between the CPU 11 and the DRAM 12 in order to perform the parity check on the data read from the data 12.

【0006】ところで、CPU11によるDRAM12
へのライト・アクセスには、大別して通常ライト(Norm
al Write)とバースト・ライト(Burst Write )があ
る。通常ライトは、DRAM12にデータをランダムに
1個ずつ書き込むモードであり、バースト・ライトはC
PU11がシステムバスS−BUSを一定期間専有し
て、複数(例えば、4個)のデータをDRAM12に連
続して書き込むモードである。
By the way, the DRAM 12 by the CPU 11
Write access to the normal write (Norm
al Write) and Burst Write. Normal write is a mode to write data one by one to the DRAM 12 at random, and burst write is C
In this mode, the PU 11 occupies the system bus S-BUS for a certain period of time and continuously writes a plurality of (for example, four) data to the DRAM 12.

【0007】次に、従来行われていた通常ライト、及び
バースト・ライトの各モードの動作を、それぞれ図7、
及び図8のタイミングチャートを参照しながら説明す
る。尚、CPU11は、図7(a)に示すシステム・ク
ロック(System Clock)に同期して動作するものとす
る。
[0007] Next, the operation of each mode of the normal write and the burst write which has been conventionally performed is shown in FIG.
Also, description will be made with reference to the timing chart of FIG. The CPU 11 operates in synchronization with the system clock shown in FIG.

【0008】CPU11は、DRAM12に対して通常
ライトを行う場合、まず最初のクロックサイクルC1の
後半で、DRAM12に対するデータ・ライト/データ
・リードの制御を行うDRC15に出力するライト・サ
イクル開始信号バーcyclen−starをアサート(有効に)
する(同図(b)参照)。
When a normal write is performed on the DRAM 12, the CPU 11 outputs a write cycle start signal bar cyclen output to the DRC 15 which controls data write / data read for the DRAM 12 in the latter half of the first clock cycle C1. -Star is asserted (enabled)
(Refer to the same figure (b)).

【0009】次に、CPU11は、次のクロックサイク
ルC2で、システムバスS−BUSのデータバス上にD
RAM12に対する書込データCPU−DATAを出力
する。(同図(C)参照)。
Next, in the next clock cycle C2, the CPU 11 outputs D on the data bus of the system bus S-BUS.
Write data CPU-DATA for RAM 12 is output. (Refer to the same figure (C)).

【0010】P−GEN14は、システムバスS−BU
Sのデータバス上に上記書込データCPU−DATAが
出力され確定すると、その書込データCPU−DATに
対するパリティデータ(PARITY−DATA)PDをクロック
サイクルC2の後半から次に続くクロックサイクルC3
の前半までの時間tp をかけて生成し、DRAM12に
出力する(同図(d)参照)。
The P-GEN 14 is a system bus S-BU.
When the write data CPU-DATA is output to the S data bus and is determined, the parity data (PARITY-DATA) PD for the write data CPU-DAT is supplied to the clock cycle C3 from the latter half of the clock cycle C2 to the next clock cycle C3.
It is generated by taking the time t p until the first half of the above, and is output to the DRAM 12 (see (d) in the same figure).

【0011】DRC15は、上記CPU11から入力さ
れるライト・サイクル開始信号バーCycle −Starのアサ
ートを検出することによりCPU11のライト・サイク
ルの開始を検知し、P−GEN14がDRAM12に出
力するパリティデータPDが確定する第4のクロックサ
イクルC4の開始で列アドレス・ストローブ信号バーC
ASを(以後、便宜上、バーCASと略称する)をアサ
ートする(同図(e)参照)。尚、この列アドレス・ス
トローブ信号バーCASが確定する時間は、DRC15
の出力特性のバラツキにより変化し、最大、時間tdだ
け遅延する。
The DRC 15 detects the start of the write cycle of the CPU 11 by detecting the assertion of the write cycle start signal Cycle-Star input from the CPU 11, and the parity data PD output from the P-GEN 14 to the DRAM 12 is detected. Column address strobe signal bar C at the start of the fourth clock cycle C4
AS is asserted (hereinafter abbreviated as CAS for convenience) (see (e) in the figure). The time for which the column address / strobe signal bar CAS is determined is DRC15.
Changes due to variations in the output characteristics of the above, and is delayed by a maximum of time td.

【0012】次に、DRC15は、上記バーCASの遅
延時間td 経過後、CPU11に出力するライトサイク
ル終了信号バーcycle - end をアサートする(同図
(f)参照)。
Next, after the delay time t d of the bar CAS has elapsed, the DRC 15 asserts a write cycle end signal bar cycle-end to be output to the CPU 11 (see (f) in the same figure).

【0013】CPU11は、上記システムバスS−BU
S上に出力した書込データCPU−DATAを、DRC
15の出力するバーCASの遅延時間td及びそれに続
くDRAM12の上記書込データCPU−DATAのデ
ータ・ホールド時間thが経過するまで保持しながらウ
ェイトし続ける(同図(c),(d),(e)参照)。
The CPU 11 is the system bus S-BU.
Write data CPU-DATA output on S to DRC
The delay time td output from the CAS 15 and the subsequent data hold time th of the write data CPU-DATA of the DRAM 12 continue to hold and wait ((c), (d), (d) in the figure). See e)).

【0014】そして、CPU11は、上記DRC15か
ら入力するライトサイクル終了信号バーバーcycle - en
d のアサートを検出して、ライトサイクルの終了を検知
する(同図(f)参照)。
Then, the CPU 11 inputs the write cycle end signal barbar cycle-en input from the DRC 15.
The end of the write cycle is detected by detecting the assertion of d (see (f) in the figure).

【0015】このように、従来のCPU11のDRAM
12に対する通常ライトは、システムクロック(system
−clock )の4クロックサイクルC1〜C4を要してい
た。次に、従来のCPU11のDRAM12に対するバ
ースト・ライトの動作を図8のタイミングチャートを参
照しながら説明する。
As described above, the DRAM of the conventional CPU 11
A normal light for 12 is the system clock (system clock
-Clock) 4 clock cycles C1 to C4. Next, a burst write operation of the conventional CPU 11 with respect to the DRAM 12 will be described with reference to the timing chart of FIG.

【0016】CPU11は、まず最初のデータ(1st
CPU−DATA)の書込みを、上述した通常ライトと
同様にして、クロックサイクルC1〜C4で行う。そし
て、以後の第2のデータ(2nd CPU−DATA),
第3のデータ(3rd CPU−DATA),及び第4の
データ(4th CPU−DATA)の書込みは、上記最
初のデータ(1st CPU−DATA)の書込みにおけ
るクロックサイクルC2〜C4により行う。
The CPU 11 starts with the first data (1st
Writing of (CPU-DATA) is performed in clock cycles C1 to C4 in the same manner as the normal writing described above. Then, the subsequent second data (2nd CPU-DATA),
The writing of the third data (3rd CPU-DATA) and the fourth data (4th CPU-DATA) is performed by clock cycles C2 to C4 in the writing of the first data (1st CPU-DATA).

【0017】したがって、従来のCPU11のDRAM
12に対する4ワードのデータのバースト・ライトは、
13クロックサイクルが必要であった。図9に、上述し
たCPU11のDRAM12に対するデータ書込におけ
るCPU11,P−GEN14,及びDRC15の、各
クロックサイクルC1〜C4における動作を示す。
Therefore, the DRAM of the conventional CPU 11
Burst write of 4 word data to 12
13 clock cycles were required. FIG. 9 shows operations of the CPU 11, the P-GEN 14, and the DRC 15 in each of the clock cycles C1 to C4 in the above-described data writing to the DRAM 12 of the CPU 11.

【0018】[0018]

【発明が解決しようとする課題】上述したように、従来
は、CPU11がシステムバスS−BUSを介してDR
AM12に対してデータ書込を行う場合、CPU11
は、システムバスS−BUSのデータバスに書込データ
を、通常ライトにおいて4クロックサイクル,バースト
・ライトにおいて13クロックサイクルの間出力し続け
ながらウェイトしなければならなかった。
As described above, conventionally, the CPU 11 performs the DR via the system bus S-BUS.
When writing data to AM12, CPU11
Had to wait while continuously outputting the write data to the data bus of the system bus S-BUS for 4 clock cycles in the normal write and 13 clock cycles in the burst write.

【0019】CPU11は、データ処理の際には、主メ
モリ上の作業領域に対して頻繁にライト・アクセスを行
う。したがって、主メモリであるDRAM12に対する
データ書込時間の長短は、CPU11の処理能力ひいて
はシステム全体のの処理能力に大きな影響を及ぼす。
The CPU 11 frequently performs write access to the work area on the main memory during data processing. Therefore, the length of the data writing time to the DRAM 12, which is the main memory, has a great influence on the processing capacity of the CPU 11, and thus the processing capacity of the entire system.

【0020】このため、CPUの処理能力を高めるため
には、主メモリ等に用いられるDRAMに対するデータ
書込み(ライト・アクセス)の際の、CPU11のウェ
イト時間を短縮させる必要がある。
Therefore, in order to increase the processing capacity of the CPU, it is necessary to reduce the wait time of the CPU 11 when writing (writing access) data to the DRAM used for the main memory or the like.

【0021】ところで、上述のようにCPUがDRAM
に対してライト・アクセスする際のCPUのウェイト時
間を長くさせている原因は、パリティデータが生成され
るまでCPUがシステムバスのデータバス上に書込デー
タを出力し続けなければならないことに起因している。
By the way, as described above, the CPU is a DRAM
The reason for increasing the wait time of the CPU when performing write access is to the fact that the CPU must continue to output write data on the data bus of the system bus until parity data is generated. is doing.

【0022】してみれば、CPUがパリティデータが生
成されるまでシステムバスのデータバス上に書込データ
を出力し続けなくても、DRAMに書込データとそのパ
リティデータを正しく書き込めるようにすれば、CPU
がDRAMにデータ書込を行う際のウェイト時間が短縮
され、CPUの処理能力の向上ひいてはシステム全体の
処理能力を向上させることが可能になるものと考えられ
る。
Therefore, even if the CPU does not continuously output the write data onto the data bus of the system bus until the parity data is generated, the write data and the parity data can be correctly written in the DRAM. For example, CPU
It is considered that the wait time at the time of writing data to the DRAM can be shortened, and the processing capacity of the CPU can be improved and the processing capacity of the entire system can be improved.

【0023】本発明の課題は、CPUがパリティデータ
が生成されるまでシステムバスのデータバス上に書込デ
ータを出力し続けなくても、DRAMに書込データとそ
のパリティデータを正しく書き込めるようにすることで
ある。
An object of the present invention is to enable the write data and its parity data to be correctly written in the DRAM without the CPU continuing to output the write data on the data bus of the system bus until the parity data is generated. It is to be.

【0024】[0024]

【課題を解決するための手段】本発明の手段は、次の通
りである。第1のラッチ手段1(図1のブロック図参
照、以下同じ)は、CPUがシステムバス上に出力する
書込データをラッチする。パリティデータ生成手段2
は、第1のラッチ手段1によりラッチされた書込データ
のパリティデータを作成する。第2のラッチ手段3は、
第1のラッチ手段1によりラッチされた書込データ及び
パリティデータ生成手段2により生成されたパリティデ
ータとをラッチし、それらのラッチしたデータをDRA
Mに書込データとして出力する。制御手段4は、CPU
から加わるライトサイクルの開始の指示を受けて作動を
開始し、前記CPUがシステムバス上に出力した書込デ
ータが確定した時点で第1のラッチ手段1に対し前記書
込データをラッチさせると共に前記CPUに対しデータ
書込の終了を通知し、パリティデータ生成手段2が前記
書込データのパリティデータを生成した時点で第2のラ
ッチ手段3に対し第1のラッチ手段1から出力される書
込データとパリティデータ生成手段2から出力される前
記書込データのパリティデータとをラッチさせる。この
制御手段4は、例えば請求項2記載のように前記DRA
Mに対するデータ書込がバーストライトにより行われる
場合、2回目以降の前記データ書込においては、前記D
RAMに対する書込制御を行うDRAM制御手段から前
記DRAMに対するデータ書込の終了の通知とを受け取
った後、前記CRUに対して前記データ書込の終了を通
知すると共に、前記第1及び第2のラッチ手段1,3の
ラッチタイミングを決定する。
The means of the present invention are as follows. The first latch means 1 (see the block diagram of FIG. 1, the same applies hereinafter) latches write data output by the CPU on the system bus. Parity data generation means 2
Creates parity data of the write data latched by the first latch means 1. The second latch means 3 is
The write data latched by the first latch means 1 and the parity data generated by the parity data generating means 2 are latched, and the latched data are DRA.
It is output to M as write data. The control means 4 is a CPU
The write operation is started in response to a write cycle start instruction from the CPU, and when the write data output from the CPU on the system bus is confirmed, the first latch means 1 is caused to latch the write data and The writing output from the first latch means 1 to the second latch means 3 at the time when the parity data generating means 2 generates the parity data of the write data by notifying the CPU of the end of the data writing. The data and the parity data of the write data output from the parity data generating means 2 are latched. This control means 4 is provided with the DRA, for example.
When the data write to M is performed by burst write, in the data write of the second time and thereafter, the D
After receiving the notification of the end of the data writing to the DRAM from the DRAM control means that controls the writing to the RAM, the CRU is notified of the end of the data writing, and the first and second The latch timing of the latch means 1 and 3 is determined.

【0025】[0025]

【作用】本発明の手段の作用は、次の通りである。CP
Uは、DRAMにデータ書込を行う場合、まずライトサ
イクルの開始を制御手段4に通知する。そして、次に、
CPUはシステムバスにDRAMに書込むべきデータ
(書込データ)を出力する。この書込データがシステム
バス上で確定すると、制御手段4は、第1のラッチ手段
1にその書込データをラッチさせる。このことにより、
第1のラッチ手段1は上記書込データをパリティデータ
生成手段2及び第2のラッチ手段3に出力する。続い
て、制御手段4は、直ちにCPUにデータ書込の終了を
通知する。このように、CPUがシステムバス上に出力
した書込データがシステムバス上で確定すると、直ちに
第1のラッチ手段2にラッチされる。このため、1ワー
ドのデータ書込を行う通常のライトの場合、CPUは、
DRAMに書込データがそのパリティデータと共に書き
込まれる前に、ライトサイクルを終了して、次の命令を
実行することができる。そして、CPUが次の命令を実
行している間、パリティデータ生成手段2は、上記書込
データのパリティデータを生成し、第2のラッチ手段3
に出力する。そして、このようにパリティデータが第2
のラッチ手段3に出力されると、制御手段4は、第2の
ラッチ手段3に第1のラッチ手段1から出力されている
CPUの書込データ及びパリティデータ生成手段2から
出力されている上記書込データのパリティデータをラッ
チさせ、それらのデータをDRAMに出力させる。続い
て、DRAM制御手段によりDRAMに対する書込制御
が行われ、上記書込データ及び上記パリティデータがD
RAMの当該アドレスに書き込まれる。そして、DRA
M制御手段は、上記書込終了後、直ちに制御手段4に対
してDRAMに対するデータ書込が終了したことを通知
する。以上のようにして、CPUのDRAMに対する通
常ライトが終了する。バースト・ライトにおいては、上
述したようにしてCPUの第1の書込データが第1のラ
ッチ手段1にラッチされた後、制御手段4が直ちにCP
Uにデータ書込の終了を通知する。CPUは、これを受
けてシステムバスに第2の書込データを出力する。この
間、パリティデータ生成手段2は、上記第1の書込デー
タのパイティデータを生成する。すなわち、CPUのシ
ステムバスへの第2の書込データの出力と、パリティデ
ータ生成手段2による第1の書込データのパリティデー
タの作成は並行して行われる。そして、上述のようにし
て第1の書込データがDRAMに書き込まれ、DRAM
制御手段から制御手段4にDRAMに対するデータ書込
の終了が通知されると、制御手段4は、第1のラッチ手
段1に第2の書込データをラッチさせると共に、CPU
に対し、DRAMに対するデータ書込の終了を通知す
る。これにより、CPUは第3の書込データをシステム
バスに出力する。そして、以後、パリティデータ生成手
段2、制御手段3、第2のラッチ手段、及びDRAM制
御手段により、上記第2の書込データに対し上述した上
記第1の書込データと同様な処理が行われ、DRAMに
第2の書込データが書き込まれる。そして、そのデータ
書込終了後、DRAM制御手段は、制御手段4にDRA
Mに対するデータ書込の終了を通知する。以後、同様に
して、CPUがシステムバス上に出力する第3,第4,
・・・の書込データがDRAMに書き込まれる。このよ
うに、バースト・ライトの場合は、第2回目以降のDR
AMに対するデータの書込みにおいては、CPUによる
第n回目の書込データのシステムバスへの出力と、パリ
ティ生成手段2による第n−1回目の書込データのパリ
ティデータの生成とが並行して、ほぼ同時に行われる。
したがって、CPUがパリティデータが生成されるまで
システムバスのデータバス上に書込データを出力し続け
なくても、DRAMに書込データとそのパリティデータ
を正しく書き込むことができる。
The operation of the means of the present invention is as follows. CP
When writing data in the DRAM, U first notifies the control means 4 of the start of the write cycle. And then,
The CPU outputs data (write data) to be written in the DRAM to the system bus. When this write data is confirmed on the system bus, the control means 4 causes the first latch means 1 to latch the write data. By this,
The first latch means 1 outputs the write data to the parity data generating means 2 and the second latch means 3. Then, the control means 4 immediately notifies the CPU of the end of data writing. Thus, when the write data output from the CPU on the system bus is confirmed on the system bus, it is immediately latched by the first latch means 2. Therefore, in the case of a normal write for writing 1-word data, the CPU
The write cycle can be terminated and the next instruction can be executed before the write data is written to the DRAM along with its parity data. Then, while the CPU is executing the next instruction, the parity data generation means 2 generates the parity data of the write data, and the second latch means 3 is generated.
Output to. Then, as described above, the parity data is the second
Output to the second latch means 3, the control means 4 outputs to the second latch means 3 the write data of the CPU output from the first latch means 1 and the parity data generating means 2. The parity data of the write data is latched and those data are output to the DRAM. Subsequently, the DRAM control means controls writing to the DRAM, and the write data and the parity data are D
It is written to the address in RAM. And DRA
The M control means immediately notifies the control means 4 of the completion of the data writing to the DRAM after the completion of the writing. As described above, the normal write to the DRAM of the CPU is completed. In the burst write, after the first write data of the CPU is latched by the first latch means 1 as described above, the control means 4 immediately sends CP.
Notify U of the end of data writing. In response to this, the CPU outputs the second write data to the system bus. During this period, the parity data generation means 2 generates the parity data of the first write data. That is, the output of the second write data to the system bus of the CPU and the generation of the parity data of the first write data by the parity data generating means 2 are performed in parallel. Then, as described above, the first write data is written in the DRAM,
When the control means notifies the control means 4 of the end of the data writing to the DRAM, the control means 4 causes the first latch means 1 to latch the second write data and the CPU
Is notified of the end of data writing to the DRAM. As a result, the CPU outputs the third write data to the system bus. Then, thereafter, the same processing as the above-mentioned first write data is performed on the above-mentioned second write data by the parity data generating means 2, the control means 3, the second latch means, and the DRAM control means. Then, the second write data is written in the DRAM. After the data writing is completed, the DRAM control unit causes the control unit 4 to perform the DRA.
Notify the end of data writing to M. Thereafter, similarly, the CPU outputs the third, fourth and fourth signals to the system bus.
.. is written in the DRAM. In this way, in the case of burst write, the second and subsequent DRs
In writing data to the AM, the output of the nth write data to the system bus by the CPU and the generation of the parity data of the (n-1) th write data by the parity generation means 2 are performed in parallel. It happens almost at the same time.
Therefore, even if the CPU does not continue to output the write data on the data bus of the system bus until the parity data is generated, the write data and the parity data can be correctly written in the DRAM.

【0026】[0026]

【実施例】以下、一実施例を図2〜図5を参照しながら
説明する。図2は、CPU11とDRAM12がシステ
ムバス制御回路100を介して接続されているシステム
の回路ブロック図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment will be described below with reference to FIGS. FIG. 2 is a circuit block diagram of a system in which the CPU 11 and the DRAM 12 are connected via the system bus control circuit 100.

【0027】尚、同図において、前記図6に示すブロッ
クと同一のブロックには同一の符号を付与している。同
図に示すように、CPU11とDRAM12間にはパリ
ティ生成機能付のシステムバス制御回路100が設けら
れている。
In the figure, the same blocks as those shown in FIG. 6 are designated by the same reference numerals. As shown in the figure, a system bus control circuit 100 with a parity generation function is provided between the CPU 11 and the DRAM 12.

【0028】このシステムバス制御回路100は、バス
・コントローラ(Bus Controller)11,ラッチA(L
ATCH−A)112,ラッチB(LATCH−B)1
13,及び前記P−GEN(パリティ生成回路)114
から成っている。
The system bus control circuit 100 includes a bus controller 11 and a latch A (L).
ATCH-A) 112, Latch B (LATCH-B) 1
13, and the P-GEN (parity generation circuit) 114
Made of.

【0029】バス・コントローラ111は、CPU11
によるDRAM12に対する通常ライト及びバースト・
ライトを制御するものであり、CPU11から入力され
るライトサイクル開始信号バーcycle_start
を検出してライトサイクルの制御を開始し、ラッチA1
12に対し、CPU11がシステムバスS−BUSのデ
ータバス上に出力した書込データCPU−DATAをラ
ッチさせるためのラッチAイネーブル信号バーLatch A
_enableを出力すると共に、ラッチB113に対し上記
ラッチA112から出力される前記書込データ並びにP
−GEN14から出力される前記書込データのパリティ
データをラッチさせるためのラッチBイネーブル信号バ
ーLatch B_enableを出力する。また、CPU11に対
して、1個のデータ転送が終了する毎にCPUサイクル
エンド信号バーCPU_cycle_endをアサート
して、CPU11に対し次の書込データの出力が可能に
なったことを通知する。
The bus controller 111 is the CPU 11
Normal write and burst to DRAM 12 by
The write cycle start signal bar cycle_start is input from the CPU 11 for controlling the write.
Is detected, control of the write cycle is started, and latch A1
12, the latch A enable signal bar Latch A for causing the CPU 11 to latch the write data CPU-DATA output on the data bus of the system bus S-BUS.
_Enable and outputs the write data and P output from the latch A112 to the latch B113.
Output a latch B enable signal bar Latch B_enable for latching the parity data of the write data output from the GEN14. Further, the CPU 11 asserts the CPU cycle end signal bar CPU_cycle_end each time one data transfer is completed, and notifies the CPU 11 that the next write data can be output.

【0030】ラッチA112は、バス・コントローラ1
11から加わるラッチAイネーブル信号バーLatch A_
enableがアサートされると、CPU11がシステムバス
S−BUSのデータバス上に出力している書込データ
(CPU−DATA)をラッチしてラッチB113に出
力する。
Latch A112 is the bus controller 1
Latch A enable signal bar Latch A_ added from 11
When enable is asserted, the CPU 11 latches the write data (CPU-DATA) output on the data bus of the system bus S-BUS and outputs it to the latch B113.

【0031】P−GEN14は、上記ラッチA112か
ら出力される上記書込データ(Latched −DATA)の
パリティデータ(PARITY−DATA)を生成し、ラッチ
B113に出力する。
The P-GEN 14 generates parity data (PARITY-DATA) of the write data (Latched-DATA) output from the latch A 112 and outputs it to the latch B 113.

【0032】ラッチB113は、バス・コントローラ1
11から加わるラッチBイネーブル信号バーLatch B_
enableがアサートされると、ラッチA112から出力さ
れている上記書込データ(Latched −DATA)とP−
GEN14から出力されるその書込データのパリティデ
ータ(PARITY−DATA)とをラッチして、それらのラ
ッチデータをDRAM12に出力する。
The latch B113 is the bus controller 1
Latch B enable signal bar Latch B_ added from 11
When enable is asserted, the write data (Latched-DATA) output from the latch A112 and P-
The parity data (PARITY-DATA) of the write data output from the GEN 14 is latched and the latched data is output to the DRAM 12.

【0033】次に、DRC(DRAM Controller)2
15は、DRAM12に対するラッチB113に格納さ
れているデータ(RAM−DATA)の書込毎に、所定
のタイミングでDRAM12に対し出力する列アドレス
・ストローブ信号バーCASをアサートし、上記データ
(RAM−DATA)をDRAM12の当該アドレスに
書き込ませる。次に、上記構成のシステムにおける、D
RAM12に対する通常ライト(NormalWrite)及びバ
ースト・ライト(Burst Write )の動作を説明する。
Next, a DRC (DRAM Controller) 2
Reference numeral 15 asserts the column address / strobe signal bar CAS which is output to the DRAM 12 at a predetermined timing every time the data (RAM-DATA) stored in the latch B 113 is written to the DRAM 12, and the above data (RAM-DATA ) Is written to the address of the DRAM 12. Next, in the system having the above configuration, D
The operations of normal write and burst write to the RAM 12 will be described.

【0034】図3は、CPU11がDRAM12に対し
て通常ライトを行うときの動作を説明するタイミングチ
ャートである。尚、同図(a)に示すクロックは、シス
テムクロック(system clock)である。
FIG. 3 is a timing chart for explaining the operation when the CPU 11 normally writes to the DRAM 12. The clock shown in FIG. 9A is a system clock.

【0035】通常ライトの場合、CPU11は、まず、
最初のクロックサイクルC1の後半でライトサイクル開
始信号バーcycle _starをアサートしてバスコントロー
ラ111及びDRC215に出力する(同図(b)参
照)。
In the case of normal light, the CPU 11 first
In the latter half of the first clock cycle C1, the write cycle start signal bar cycle_star is asserted and output to the bus controller 111 and the DRC 215 (see FIG. 7B).

【0036】次に、CPU11は、次のクロックサイク
ルC2の後半でシステムバスS−BUSのデータバス上
に書込データ(CPU−DATA)を出力する(同図
(c)参照)。この書込データ(CPU−DATA)
は、スルー状態にあるラッチA112を介してP−GE
N14及びラッチB113に出力される(同図(f)参
照)。
Next, the CPU 11 outputs the write data (CPU-DATA) on the data bus of the system bus S-BUS in the latter half of the next clock cycle C2 (see FIG. 7C). This write data (CPU-DATA)
Is connected to the P-GE via the latch A112 in the through state.
It is output to N14 and the latch B113 (see (f) in the figure).

【0037】バス・コントローラ111は、上記書込デ
ータ(CPU−DATA)がシステムバスS−BUSの
データバス上で確定すると、CPUサイクル・終了信号
バーCPU_cycle_endをアサートにしてCP
U11に加える(同図(d)参照)。
When the write data (CPU-DATA) is determined on the data bus of the system bus S-BUS, the bus controller 111 asserts the CPU cycle / end signal bar CPU_cycle_end to CP.
It is added to U11 (see (d) in the figure).

【0038】続いて、バス・コントローラ111は、次
のクロックサイクルC3(通常ライトの場合には、クロ
ックサイクルC1に相当)の開始で、ラッチAイネーブ
ル信号バーLatch A_enableをアサートしてラッチA1
12に加える(同図(e)参照)。
Subsequently, the bus controller 111 asserts the latch A enable signal bar Latch A_enable at the start of the next clock cycle C3 (corresponding to the clock cycle C1 in the case of normal write) to latch L1.
12 (see (e) in the figure).

【0039】このことによりラッチA112は、CPU
11の出力した書込データ(CPU−DATA)をラッ
チ(保持)し、P−GEN111及びラッチB113に
加える(同図(f)参照)。
As a result, the latch A112 becomes the CPU
The write data (CPU-DATA) output from 11 is latched (held) and added to the P-GEN 111 and the latch B 113 (see (f) in the figure).

【0040】P−GEN11は、クロックサイクルC3
において上記ラッチA112から出力されるCPU11
の書込データ(Latched −DATA)のパリティ・デー
タ(PARITY−DATA)を作成し、そのパリティ・デー
タ(PARITY−DATA)をラッチB113に出力する
(同図(g)参照)。
The P-GEN 11 has a clock cycle C3.
CPU11 output from the latch A112 in
Write parity data (PARITY-DATA) of the write data (Latched-DATA) and output the parity data (PARITY-DATA) to the latch B113 (see (g) in the figure).

【0041】続いて、バス・コントローラ111は、次
のクロックサイクルC4の開始でラッチBイネーブル信
号バーLatch B_enableをアサートしてラッチB113
に出力する(同図(h)参照)。
Subsequently, the bus controller 111 asserts the latch B enable signal bar Latch B_enable at the start of the next clock cycle C4 to latch L113.
Is output (see (h) of the same figure).

【0042】このことにより、ラッチB113は、ラッ
チA112から出力されるCPU11の書込データ(La
tched −DATA)並びにその書込データ(Latched −
Data)のパリティデータ(PARITY−DATA)を保
持し、それらのデータを書込データ(RAM DAT
A)としてDRAM12に出力する(同図(i)参
照)。
As a result, the latch B113 causes the write data (La of the CPU 11) output from the latch A112.
tched-DATA) and its write data (Latched-DATA)
Data) parity data (PARITY-DATA) is held, and these data are written data (RAM DAT).
It is output to the DRAM 12 as A) (see (i) in the figure).

【0043】また、DRC215は、上記クロックサイ
クルC4の開始で列アドレス・ストローブ信号バーCA
SをDRAM12に出力する。また、DRC215は、
上記信号バーCASの出力後、通常ライトが終了した旨
を示すラム・ライト・サイクル終了信号バーRAM_c
ycle_endをバス・コントローラ111に出力す
る(同図(k)参照)。
Further, the DRC 215 receives the column address strobe signal bar CA at the start of the clock cycle C4.
The S is output to the DRAM 12. Also, the DRC 215
After the output of the signal bar CAS, the RAM write cycle end signal bar RAM_c indicating that the normal write has ended
Cycle_end is output to the bus controller 111 (see (k) in the figure).

【0044】このように、CPU111がクロックサイ
クルC2でシステムバスS−BUSのデータバス上に出
力した書込データ(CPU−DATA)は、バス・コン
トローラ111の制御により、ラッチA112に直ちに
ラッチされ、以後、P−GEN114はそのラッチA1
12にラッチされたデータ(Latched −DATA)を基
にパリティデータの作成を行うので、CPU11は、第
2のクロックサイクルC2の終了後、直ちに次の命令を
実行することができる。
As described above, the write data (CPU-DATA) output from the CPU 111 on the data bus of the system bus S-BUS in the clock cycle C2 is immediately latched by the latch A112 under the control of the bus controller 111, After that, the P-GEN 114 has its latch A1.
Since parity data is created based on the data (Latched-DATA) latched by 12, the CPU 11 can immediately execute the next instruction after the end of the second clock cycle C2.

【0045】すなわち、CPU11側から見た通常ライ
ト(Normal Write)は、C1,C2の2つのクロックサ
イクルで終了する(従来は、上述したようにC1〜C4
のクロックサイクルを要した)。
That is, the normal write seen from the CPU 11 side is completed in two clock cycles of C1 and C2 (conventionally, as described above, C1 to C4 are used.
Clock cycle).

【0046】続いて、CPU11のバースト・ライトの
動作を図4並びに図5参照しながら説明する。バースト
・ライトの場合、CPU11は、まず最初のクロックサ
イクルC1の後半で、バス・コントローラ111及びD
RC215に対してバースト・ライトの開始を通知すべ
く、ライトサイクル開始信号バーcycle_star
tをアサートしてバス・コントローラ111及びDRC
215に加える(図4(b)参照)。
Next, the burst write operation of the CPU 11 will be described with reference to FIGS. In the case of burst write, the CPU 11 first sets the bus controllers 111 and D in the latter half of the first clock cycle C1.
In order to notify the RC 215 of the start of burst write, the write cycle start signal bar cycle_star
Assert t to assert bus controller 111 and DRC
215 (see FIG. 4B).

【0047】続いて、CPU11は、つぎのクロックサ
イクルC2の後半でシステムバスS−BUSのデータバ
ス上にDRAM12に対する第1の書込データ(1st
CPU−DATA)を出力する(同図(c)参照)。
Subsequently, the CPU 11 writes the first write data (1st) to the DRAM 12 on the data bus of the system bus S-BUS in the latter half of the next clock cycle C2.
CPU-DATA) is output (see (c) in the figure).

【0048】続いて、CPU11は、上記書込データ1
stDATAがデータバス上で確定した時点で、バス・
コントローラ111は、CPUシクル終了信号バーCP
U_cycle_endがアサートに変化したことを次
のクロックサイクルC3の開始で検出し、次のクロック
サイクルC4の後半に第2の書込データ(2nd CP
U−DATA)をシステムバスS−BUSのデータバス
に出力する。
Subsequently, the CPU 11 causes the write data 1 to be written.
When stDATA is confirmed on the data bus,
The controller 111 displays the CPU cycle end signal bar CP
The change of U_cycle_end to assert is detected at the start of the next clock cycle C3, and the second write data (2nd CP) is detected in the latter half of the next clock cycle C4.
U-DATA) is output to the data bus of the system bus S-BUS.

【0049】また、上記クロックサイクルC3の開始
で、バス・コントローラ111は、ラッチAイネーブル
信号バーLatch A_enableをアサートして、ラッチA1
12に上記CPU11の第1の書込データ(1st C
PU−DATA)ラッチ(保持)させる(同図(e),
(f)参照)。
Further, at the start of the clock cycle C3, the bus controller 111 asserts the latch A enable signal bar Latch A_enable to set the latch A1.
The first write data (1st C
PU-DATA) Latch (hold) ((e) in the figure,
(See (f)).

【0050】P−GEN14は、上述したようにしてラ
ッチA112に上記第1の書込データ(1st−CPU
−DATA)がラッチされると、ラッチA112から上
記第1の書込データ(1st CPU−DATA)を入
力し、その書込データ(1st CPU−DATA)の
パリティデータ(1st PARITY−DATA)を
第3のクロックサイクルC3内で生成し、ラッチB11
3に出力する(同図(g)参照)。
The P-GEN 14 causes the latch A 112 to write the first write data (1st-CPU) as described above.
-DATA) is latched, the first write data (1st CPU-DATA) is input from the latch A 112 and the parity data (1st PARITY-DATA) of the write data (1st CPU-DATA) is input. 3 within clock cycle C3, latch B11
3 (see (g) of the same figure).

【0051】次に、バス・コントローラ111は、次の
第4のクロックサイクルC4の開始で、ラッチBイネー
ブル信号バーLatch B−enableをアサートしてラッチB
113に加える(同図(h)参照)。
Next, the bus controller 111 asserts the latch B enable signal bar Latch B-enable to start latch B at the start of the next fourth clock cycle C4.
113 (see (h) in the figure).

【0052】このことにより、ラッチB113は上記第
1の書込データ(1st CPU−DATA)及びその
パリティデータ(1st PARITY−DATA)を
ラッチ(保持)し、DRAM12に出力する(同図
(i)参照)。したがって、この時点で、DRAM12
には、上記第1の書込データ1st DATA並びにそ
のパリティデータ(1st PARITY DATA)
が、DRAM12に対し最初の書込データ(1st R
AM−DATA)として出力される。
As a result, the latch B113 latches (holds) the first write data (1st CPU-DATA) and its parity data (1st PARITY-DATA) and outputs it to the DRAM 12 ((i) in the figure). reference). Therefore, at this point, the DRAM 12
Is the first write data 1st DATA and its parity data (1st PARITY DATA).
Of the first write data (1st R
It is output as AM-DATA).

【0053】DRC215は、上記最初の書込データ
(RAM−DATA)が確定すると、列アドレス・スト
ローブ信号バーCASをDRAM12に出力し、その最
初の書込データ(1st RAM−DATA)をDRA
Mに書き込ませる(同図(j)参照)。
When the first write data (RAM-DATA) is determined, the DRC 215 outputs the column address / strobe signal bar CAS to the DRAM 12, and the first write data (1st RAM-DATA) is DRA.
The data is written in M (see (j) in the same figure).

【0054】続いて、DRC215は、ラム・サイクル
・終了信号バーRAM_cycle_endをアサート
してバス・コントローラ111に出力する(同図(k)
参照)。
Subsequently, the DRC 215 asserts the RAM cycle end signal bar RAM_cycle_end and outputs it to the bus controller 111 ((k) in the figure).
reference).

【0055】以上のようにしてクロックサイクルC1〜
C4で第1の書込データ(1stRAM−DATA)が
DRAM12の当該アドレスに書き込まれる。ところ
で、上述したように、CPU11は、クロックサイクル
C3の開始でバス・コントローラ111から加わるCP
Uサイクル終了信号バーCPU_cycle_endの
最初のアサートを検出し、クロックサイクルC3の後半
で第2の書込データ(2nd CPU−DATA)をシ
ステムバスS−BUSのデータバス上に出力する(同図
(c)参照)。
As described above, the clock cycles C1 to C1.
At C4, the first write data (1stRAM-DATA) is written to the address of the DRAM 12. By the way, as described above, the CPU 11 adds the CP from the bus controller 111 at the start of the clock cycle C3.
The first assertion of the U cycle end signal CPU_cycle_end is detected, and the second write data (2nd CPU-DATA) is output to the data bus of the system bus S-BUS in the latter half of the clock cycle C3 (see FIG. )reference).

【0056】バス・コントローラ111は、上述したよ
うに、第4のクロックサイクルC4でDRC215がラ
ム・サイクル・終了信号バーRAM−cycle−en
dをアサートしたのを検出すると、CPUサイクル終了
信号バーCPU−cycle−endをアサートしてC
PU11に加える(同図(k),(d)参照)。
In the bus controller 111, as described above, the DRC 215 outputs the RAM cycle end signal bar RAM-cycle-en at the fourth clock cycle C4.
When it detects that d has been asserted, it asserts the CPU cycle end signal bar CPU-cycle-end and outputs C
It is added to PU11 (see (k) and (d) in the same figure).

【0057】このことにより、CPU11は、次のクロ
ックサイクルC5の後半で第3の書込データ(3rd
CPU−DATA)をシステムバスS−BUSのデータ
バス上に出力する。
As a result, the CPU 11 causes the third write data (3rd) in the latter half of the next clock cycle C5.
CPU-DATA) on the data bus of the system bus S-BUS.

【0058】また、バス・コントローラ111は、第4
のクロック・サイクル・終了信号バーRAM_cycl
e_endのアサート検出により、次の第5のクロック
サイクルC5の開始で、ラッチAイネーブル信号バーL
atch_enableをアソートしてラッチA112
に加える(同図(e)参照)。
The bus controller 111 has a fourth
Clock cycle / end signal bar RAM_cycle
Upon detection of assertion of e_end, at the start of the next fifth clock cycle C5, the latch A enable signal L
Asch_enable is assorted and latch A112
(See (e) of the same figure).

【0059】このことにより、ラッチA112はシステ
ムバスS−BUSのデータバスからCPU11の出力し
た上記第2の書込データ(2nd CPU−DATA)
を、第5のクロックサイクルC5の期間中ラッチ(保
持)し、ラッチB113及びP−GEN14に出力する
(同図(f)参照)。
As a result, the latch A112 causes the second write data (2nd CPU-DATA) output by the CPU 11 from the data bus of the system bus S-BUS.
Is latched (held) during the fifth clock cycle C5, and is output to the latch B113 and the P-GEN 14 (see (f) in the figure).

【0060】P−GEN14は、第5のクロックサイク
ルC5の期間内に、上記第2の書込データ(2nd C
PU−DATA)のパリティデータ(2nd PARI
TYDATA)を生成し、ラッチB113に出力する
(同図(g)参照)。
The P-GEN 14 receives the second write data (2nd C) within the period of the fifth clock cycle C5.
PU-DATA) parity data (2nd PARI
TYDATA) is generated and output to the latch B113 (see (g) in the figure).

【0061】続いて、バス・コントローラ111は、第
6のクロックサイクルC6の開始でラッチBイネーブル
信号バーLatch B_enableをアサートしてラッチB11
3に加える(同図(h)参照)。
Subsequently, the bus controller 111 asserts the latch B enable signal bar Latch B_enable at the start of the sixth clock cycle C6 to latch L11.
3 (see (h) of the same figure).

【0062】上述したように、上記CPU11の第2の
書込データ(2nd CPU−DATA)のパリティデ
ータ(2nd PARITY DATA)は、既にP−
GEN14により第5のクロックサイクルC5で生成さ
れDRAM12に出力されているので、上記第6のクロ
ックサイクルC6の開始でアサートされるラッチBイネ
ーブル信号バーLatch B_enableにより、ラッチB11
3はラッチ112の出力する第2の書込データ(2nd
CPU−DATA)とそのパリティデータ(2nd
CPU−DATA)を共にラッチし、それらを第2の書
込データ(2nd RAM−DATA)としてDRAM
12に出力する(同図(i)参照) 続いて、DRC215は、第6のクロックサイクルC6
の前半で列アドレス・ストローブ信号バーCASをアサ
ートして、DRAM12に出力する(同図(j)参
照)。
As described above, the parity data (2nd PARITY DATA) of the second write data (2nd CPU-DATA) of the CPU 11 is already P-.
Since it is generated by the GEN 14 in the fifth clock cycle C5 and is output to the DRAM 12, the latch B enable signal bar Latch B_enable asserted at the start of the sixth clock cycle C6 causes the latch B11.
3 is the second write data (2nd
CPU-DATA) and its parity data (2nd
CPU-DATA) are latched together and they are used as the second write data (2nd RAM-DATA) in the DRAM.
12 (see (i) in the figure). Then, the DRC 215 outputs the sixth clock cycle C6.
In the first half, the column address strobe signal CAS is asserted and output to the DRAM 12 (see (j) in the same figure).

【0063】このことにより、第2の書込データ(2n
d CPU−DATA)とそのパリティデータ(2nd
PARITY DATA)から成るデータ(2nd
RAM−DATA)が、DRAM12に書き込まれる。
DRC215は、上述のようにして列アドレス・ストロ
ーブ信号バーCASをアサートした後、ラム・サイクル
・終了信号バーRAM_cycle_endをアサート
して、バス・コントローラ111に加える。
As a result, the second write data (2n
d CPU-DATA) and its parity data (2nd
Data composed of PARITY DATA (2nd)
RAM-DATA) is written in the DRAM 12.
The DRC 215 asserts the column address strobe signal bar CAS as described above and then asserts the ram cycle end signal bar RAM_cycle_end to apply it to the bus controller 111.

【0064】以後、同様にして、上記クロックサイクル
C5,C6と同様の動作が、2回(クロックサイクルC
7,C8及びクロックサイクルC9,C10)繰り返さ
れ、CPU11の第3の書込データ(3rd CPU−
DATA)並びにそのパリティデータ(3rd PAR
ITY−DATA),CPU11の第4の書込データ
(4th CPU−DATA)並びにそのパリティデー
タ(4th PARITY−DATA)が、それぞれ第
8のクロックサイクルC8,第10のクロックサイクル
10でDRAM12に書き込まれる。
Thereafter, the same operation as the clock cycles C5 and C6 is repeated twice (clock cycle C
7, C8 and clock cycles C9, C10) are repeated, and the third write data (3rd CPU-
DATA) and its parity data (3rd PAR
ITY-DATA), the fourth write data of the CPU 11 (4th CPU-DATA), and its parity data (4th PARITY-DATA) are written to the DRAM 12 at the eighth clock cycle C8 and the tenth clock cycle 10, respectively. ..

【0065】そして、この場合、CPU10が第8のク
ロックサイクルC8でシステムバスS−BUSのデータ
バス上に出力した第4の書込データ(4th CPU−
DATA)は、次の第9のクロックサイクルC9でバス
・コントローラ111がラッチA112に出力するラッ
チAイネーブル信号バーLatch_enableをア
サートすることによりラッチA112にラッチ(保持)
されるので、CPU11は、第9のクロックサイクルC
9から次の命令を実行することが可能である。
Then, in this case, the fourth write data (4th CPU-) output from the CPU 10 on the data bus of the system bus S-BUS at the eighth clock cycle C8.
DATA) is latched (held) in the latch A 112 by asserting the latch A enable signal bar Latch_enable which the bus controller 111 outputs to the latch A 112 in the next ninth clock cycle C9.
Therefore, the CPU 11 causes the ninth clock cycle C
From 9 it is possible to execute the next instruction.

【0066】すなわち、CPU11側から見た場合、D
RAM12に対する4個のデータのバースト・ライト
は、8クロックサイクルで終了する。このように、2個
のラッチA112,ラッチB113,及びそれらのラッ
チ112、113のラッチタイミングを制御するバス・
コントローラ111を含むシステムバス制御回路100
を、CPU11とDRAM11間に設けたことにより、
CPU11がシステムバスS−BUSのデータバス上に
DRAM11への書込データを出力保持し続けるウェイ
ト・サイクルが、通常ライトにおいて4クロックサイク
ルから2クロックサイクルへ、バースト・ライトにおい
て13クロックサイクルから8クロックサイクルへと減
少する。
That is, when viewed from the CPU 11 side, D
The burst write of 4 data to the RAM 12 is completed in 8 clock cycles. In this way, the two latches A112, the latch B113, and the bus for controlling the latch timing of these latches 112, 113 are provided.
System bus control circuit 100 including controller 111
Is provided between the CPU 11 and the DRAM 11,
The wait cycle in which the CPU 11 continues to output and hold the write data to the DRAM 11 on the data bus of the system bus S-BUS is from 4 clock cycles to 2 clock cycles in normal write and from 13 clock cycles to 8 clocks in burst write. Cycles down.

【0067】したがって、CPU11の処理能力が従来
よりも1段と向上し、それに伴ってシステム全体の処理
能力も従来に比較し著しく向上する。尚、上記実施例で
は、バースト・ライトにおいて4ワードの連続書き込み
を行っているが、行アドレス・ストローブ信号(バーR
AS)をアサートにしたまま、列アドレス・ストローブ
信号(バーCAS)をクロック入力することにより、同
一行アドレスの全データを連続して書き込む場合にも適
用可能である。
Therefore, the processing capacity of the CPU 11 is further improved as compared with the conventional one, and accordingly, the processing capacity of the entire system is remarkably improved as compared with the conventional one. Incidentally, in the above-mentioned embodiment, although four words are continuously written in the burst write, the row address strobe signal (bar R
By applying a column address strobe signal (bar CAS) as a clock with AS) being asserted, the present invention can be applied to a case where all data of the same row address are continuously written.

【0068】[0068]

【発明の効果】本発明によれば、CPUがパリティデー
タが生成されるまでシステムバスのデータバス上に書込
データを出力し続けなくても、DRAMに書込データと
そのパリティデータを正しく書き込めるようにしたの
で、CPUがDRAMにデータ書込を行う際のウェイト
時間が短縮され、CPUの処理能力の向上ひいてはシス
テム全体の処理能力を向上させることが可能になる。
According to the present invention, the write data and the parity data can be correctly written in the DRAM even if the CPU does not continuously output the write data on the data bus of the system bus until the parity data is generated. Since this is done, the wait time when the CPU writes data in the DRAM is shortened, and it is possible to improve the processing capability of the CPU and thus the processing capability of the entire system.

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

【図1】本発明のブロック図である。FIG. 1 is a block diagram of the present invention.

【図2】一実施例のシステムバス制御回路を適用したシ
ステムの回路ブロック図である。
FIG. 2 is a circuit block diagram of a system to which a system bus control circuit of an embodiment is applied.

【図3】上記システムでのDRAMに対する通常ライト
の動作を説明するタイミングチャートである。
FIG. 3 is a timing chart for explaining a normal write operation for the DRAM in the above system.

【図4】上記システムでのDRAMに対するバースト・
ライトの動作を説明するタイミングチャートである。
FIG. 4 shows a burst for DRAM in the above system.
6 is a timing chart illustrating a write operation.

【図5】上記システム内の各ブロックの上記バースト・
ライトでの各クロックサイクルC1〜C9(C1)の動
作を説明する図である。
FIG. 5 shows the burst of each block in the system.
It is a figure explaining operation | movement of each clock cycle C1-C9 (C1) in write.

【図6】従来のCPUがDRAMに対するバースト・ラ
イトを行うシステムの回路ブロック図である。
FIG. 6 is a circuit block diagram of a system in which a conventional CPU performs burst write to DRAM.

【図7】上記従来のシステムでのCPUのDRAMに対
する通常ライトの動作を説明するタイミングチャートで
ある。
FIG. 7 is a timing chart for explaining a normal write operation for the DRAM of the CPU in the above conventional system.

【図8】上記従来のシステムでのCPUのDRAMに対
するバースト・ライトの動作を説明するタイミングチャ
ートである。
FIG. 8 is a timing chart for explaining a burst write operation for the DRAM of the CPU in the above conventional system.

【図9】上記従来のシステム内の各ブロックの通常ライ
ト及びバースト・ライトにおける各クロックサイクルで
の動作を説明する図である。
FIG. 9 is a diagram for explaining the operation in each clock cycle in the normal write and burst write of each block in the conventional system.

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

1 第1のラッチ手段 2 パリティデータ生成手段 3 第2のラッチ手段 4 制御手段 1 First Latch Means 2 Parity Data Generation Means 3 Second Latch Means 4 Control Means

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 CPUがシステムバス上に出力する書込
データをラッチする第1のラッチ手段と、 該第1のラッチ手段によりラッチされた書込データのパ
リティデータを作成するパリティデータ生成手段と、 前記第1のラッチ手段によりラッチされた書込データ及
び前記パリティデータ生成手段により生成されたパリテ
ィデータとをラッチし、それらのラッチしたデータをD
RAMに書込データとして出力する第2のラッチ手段
と、 前記CPUからライトサイクルの開始の指示を受けて作
動を開始し、前記CPUがシステムバス上に出力した書
込データが確定した時点で前記第1のラッチ手段に対し
前記書込データをラッチさせると共に前記CPUに対し
データ書込の終了を通知し、前記パリティデータ生成手
段が前記書込データのパリティデータを生成した時点で
前記第2のラッチ手段に前記第1のラッチ手段から出力
される書込データと前記パリティデータ生成手段から出
力される前記書込データのパリティデータとをラッチさ
せる制御手段と、 を具備したことを特徴とするシステムバス制御装置。
1. A first latch means for latching write data output from a CPU on a system bus, and a parity data generating means for generating parity data of the write data latched by the first latch means. , The write data latched by the first latch means and the parity data generated by the parity data generating means are latched, and the latched data are D
Second latch means for outputting to the RAM as write data, and operation upon receiving a write cycle start instruction from the CPU, and when the write data output on the system bus by the CPU is confirmed. When the parity data generation means generates the parity data of the write data, the second latch means is caused to latch the write data and the CPU is notified of the end of the data write. And a control unit that causes the latch unit to latch the write data output from the first latch unit and the parity data of the write data output from the parity data generation unit. Bus controller.
【請求項2】 前記制御手段は、前記DRAMに対する
データ書込がバーストライトにより行われる場合、2回
目以降の前記データ書込においては、前記DRAMに対
する書込制御を行うDRAM制御手段から前記DRAM
に対するデータ書込の終了の通知とを受け取った後、前
記CRUに対して前記データ書込の終了を通知すると共
に、前記第1及び第2のラッチ手段のラッチタイミング
を決定することを特徴とする請求項1記載のシステムバ
ス制御装置。
2. When the data writing to the DRAM is performed by a burst write, the control means controls the DRAM control means to perform the write control on the DRAM in the second and subsequent data writing.
To the CRU and to determine the latch timing of the first and second latch means after receiving the notification of the end of the data writing to the CRU. The system bus control device according to claim 1.
JP4067408A 1992-03-25 1992-03-25 System bus controller Pending JPH05274253A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4067408A JPH05274253A (en) 1992-03-25 1992-03-25 System bus controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4067408A JPH05274253A (en) 1992-03-25 1992-03-25 System bus controller

Publications (1)

Publication Number Publication Date
JPH05274253A true JPH05274253A (en) 1993-10-22

Family

ID=13344072

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4067408A Pending JPH05274253A (en) 1992-03-25 1992-03-25 System bus controller

Country Status (1)

Country Link
JP (1) JPH05274253A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0736823A (en) * 1993-07-23 1995-02-07 Nec Corp Bus controller
JP2010146645A (en) * 2008-12-19 2010-07-01 Fujitsu Microelectronics Ltd Semiconductor memory and system
JP2015022450A (en) * 2013-07-18 2015-02-02 富士通株式会社 Writing control program and method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0736823A (en) * 1993-07-23 1995-02-07 Nec Corp Bus controller
JP2508979B2 (en) * 1993-07-23 1996-06-19 日本電気株式会社 Bus controller
JP2010146645A (en) * 2008-12-19 2010-07-01 Fujitsu Microelectronics Ltd Semiconductor memory and system
JP2015022450A (en) * 2013-07-18 2015-02-02 富士通株式会社 Writing control program and method

Similar Documents

Publication Publication Date Title
US7506226B2 (en) System and method for more efficiently using error correction codes to facilitate memory device testing
US7823024B2 (en) Memory hub tester interface and method for use thereof
US5784332A (en) Clock frequency detector for a synchronous memory device
US20080155136A1 (en) Memory controller, computer, and data read method
JP2002366444A (en) System and method for correcting soft errors in a random access memory device
US20140379979A1 (en) Memory access alignment in a double data rate ('ddr') system
US20200142845A1 (en) Deterministic operation of storage class memory
US11694732B2 (en) Active random access memory
US5991233A (en) Switch signal generators for simultaneously setting input/output data paths, and high-speed synchronous SRAM devices using the same
US6484244B1 (en) Method and system for storing and processing multiple memory commands
US6295620B1 (en) Memory test facilitation circuit using stored test data repeatedly
JP4275033B2 (en) Semiconductor memory device, test circuit and method
JPH05274253A (en) System bus controller
JPH11232214A (en) Processor for information processing device and control method thereof
US6762973B2 (en) Data coherent logic for an SRAM device
JPS6037998B2 (en) semiconductor storage device
JPH07129456A (en) Computer system
JP2970088B2 (en) LSI tester
US20230266894A1 (en) Memory control apparatus, method for controlling memory control apparatus, and storage medium
JPH1153267A (en) Memory data error automatic correcting circuit
JPH09106674A (en) Synchronous dynamic semiconductor memory device
JP2986049B2 (en) Memory access system
JPH0746495B2 (en) DRAM parity generation / check method
JP2536781B2 (en) Parity check device
JPH06110788A (en) Ram operation monitoring circuit