JPH0332823B2 - - Google Patents

Info

Publication number
JPH0332823B2
JPH0332823B2 JP59247619A JP24761984A JPH0332823B2 JP H0332823 B2 JPH0332823 B2 JP H0332823B2 JP 59247619 A JP59247619 A JP 59247619A JP 24761984 A JP24761984 A JP 24761984A JP H0332823 B2 JPH0332823 B2 JP H0332823B2
Authority
JP
Japan
Prior art keywords
register
data
master
slave
memory device
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.)
Expired - Lifetime
Application number
JP59247619A
Other languages
Japanese (ja)
Other versions
JPS61131048A (en
Inventor
Hiroshi Takahashi
Yoshihisa Ogawa
Toshuki Odakawa
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP59247619A priority Critical patent/JPS61131048A/en
Publication of JPS61131048A publication Critical patent/JPS61131048A/en
Publication of JPH0332823B2 publication Critical patent/JPH0332823B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Description

【発明の詳細な説明】 〔産業上利用分野〕 本発明は情報処理システム等におけるメモリ装
置に対するアクセスの制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for controlling access to a memory device in an information processing system or the like.

マスタ/スレーブ型フリツプフロツプは公知の
ように、通常1集積回路内に組み込まれた2段の
フリツプフロツプからなり、前段のフリツプフロ
ツプは外部からの入力信号によつてセツトされる
ように構成され、後段のフリツプフロツプは外部
から指定した場合のみ、前段フリツプフロツプの
出力によつてセツトされて、その状態を保持する
ように構成されている。
As is well known, a master/slave type flip-flop usually consists of a two-stage flip-flop built into one integrated circuit, with the front-stage flip-flop configured to be set by an external input signal, and the rear-stage flip-flop configured to be set by an input signal from the outside. is set by the output of the flip-flop at the front stage only when specified from the outside, and is configured to maintain that state.

従つてある限定された用途においては、両段の
フリツプフロツプによつて、それぞれ構成される
レジスタを、異なる内容を保持することのできる
レジスタとして使用することが可能であり、この
ような使い方によつて所要部品を減少できる場合
がある。
Therefore, in certain limited applications, it is possible to use the registers constructed by the flip-flops in both stages as registers that can hold different contents. It may be possible to reduce the number of required parts.

このように構成する2レジスタは、メモリ装置
に入出力するデータ及び命令のバツフアとしても
利用することができる。
The two registers configured in this manner can also be used as a buffer for data and instructions input/output to the memory device.

〔従来の技術と発明が解決しようとする問題点〕[Problems to be solved by conventional technology and invention]

第2図はマスタ/スレーブ型フリツプフロツプ
回路で構成するレジスタを、メモリ装置に入出力
する情報の保持等に使用するメモリアクセス制御
回路の一構成例を示すブロツク図である。
FIG. 2 is a block diagram showing an example of the structure of a memory access control circuit that uses a register constituted by a master/slave type flip-flop circuit to hold information to be input/output to a memory device.

メモリ装置1は公知の制御方式によつて、アド
レス線2によつて指定された記憶アドレスの情報
を読み出し情報線3に出力し、又は書き込み情報
線4の情報を指定された記憶アドレスに書き込む
機能を持つ。
The memory device 1 has a function of outputting information at a storage address specified by an address line 2 to a read information line 3 or writing information from a write information line 4 to a specified storage address using a known control method. have.

記憶アドレスはメモリ装置1に入出力するデー
タのアドレスを保持するデータアドレスレジスタ
5、又は命令を読み出すための記憶アドレスを保
持する命令アドレスレジスタ6の何れかから指定
される。
The storage address is specified from either the data address register 5 that holds the address of data to be input/output to the memory device 1, or the instruction address register 6 that holds the storage address for reading instructions.

メモリ装置1内で、1記憶アドレスに記憶され
る1語の情報は固定長(例えば32ビツト)のデー
タ又は命令と、それと組み合わせて誤り訂正符号
を構成する例えば5ビツトの冗長符号からなり、
読み出し情報線3及び書き込み情報線4は、同じ
構成の1語幅を有する。
In the memory device 1, one word of information stored at one storage address consists of fixed-length data or instructions (for example, 32 bits) and a redundant code of, for example, 5 bits that constitutes an error correction code in combination with the data or instruction.
The read information line 3 and the write information line 4 have the same configuration and one word width.

メモリ装置1から読み出された情報は、マス
タ/スレーブ型フリツプフロツプ回路7のマスタ
側フリツプフロツプで構成したマスタレジスタ8
に入力して保持される。
The information read from the memory device 1 is stored in a master register 8 constituted by a flip-flop on the master side of the master/slave type flip-flop circuit 7.
is entered and retained.

このアクセスが命令読み出しであつた場合に
は、命令バツフア制御回路10からの制御線11
による信号により、マスタレジスタ8の出力を次
のクロツク信号でスレーブレジスタ9に設定す
る。
If this access is for reading an instruction, the control line 11 from the instruction buffer control circuit 10
The output of the master register 8 is set in the slave register 9 by the next clock signal.

スレーブレジスタ9はマスタ/スレーブ型フリ
ツプフロツプ回路7のスレーブ側フリツプフロツ
プで構成したレジスタである。
The slave register 9 is a register constituted by a flip-flop on the slave side of the master/slave type flip-flop circuit 7.

命令バツフア制御回路10は、通常1ステツプ
の命令を常に読み出してスレーブレジスタ9に保
持し、1命令の実行が終わる時、次の命令がスレ
ーブレジスタ9に有れば、その出力を誤り検出訂
正回路(以下においてECC回路という)12に
入力する。
The instruction buffer control circuit 10 usually always reads out one step of the instruction and holds it in the slave register 9. When the execution of one instruction is finished, if the next instruction is in the slave register 9, the output is sent to the error detection and correction circuit. (hereinafter referred to as the ECC circuit) 12.

ECC回路12は、メモリ装置1から読み出し
た情報を、誤り訂正符号に基づいて検査する機
能、その結果、訂正可能な誤りを検出した場合に
は、誤り訂正を実行する機能、及びメモリ装置1
への書き込みデータについて、誤り訂正符号を構
成するための冗長符号を発生する機能を有する。
The ECC circuit 12 has a function of checking information read from the memory device 1 based on an error correction code, a function of executing error correction when a correctable error is detected as a result, and a function of performing error correction on the memory device 1.
It has a function of generating a redundant code for configuring an error correction code for data written to.

今の場合は、ECC回路12は命令について誤
りの検出/訂正処理を行い、出力される命令は命
命令レジスタ13に設定され、命令レジスタ13
の内容は通常のようにして命令実行に使用され
る。
In this case, the ECC circuit 12 performs error detection/correction processing on the instruction, and the output instruction is set in the instruction instruction register 13.
The contents of are used for instruction execution in the usual manner.

スレーブレジスタ9に保持する命令を命令レジ
スタ13に転送すると、命令バツフア制御回路1
0は適当なタイミングに、前記のようにして次の
命令をスレーブレジスタ9に読み出しておく。
When the instruction held in the slave register 9 is transferred to the instruction register 13, the instruction buffer control circuit 1
0 reads the next instruction to the slave register 9 at an appropriate timing as described above.

命令の実行等によつて、メモリ装置1に記憶す
るデータにアクセスする場合には、メモリ装置1
から読み出したデータは、前記と同様にマスタレ
ジスタ8に保持される。データの場合には、マス
タレジスタ8の出力がECC回路12に入力され、
前記と同様に誤り検出/訂正処理し、その出力は
データ線14によつて、演算回路等へ送られる。
When accessing data stored in the memory device 1 by executing a command or the like, the memory device 1
The data read from is held in the master register 8 in the same manner as described above. In the case of data, the output of the master register 8 is input to the ECC circuit 12,
Error detection/correction processing is performed in the same manner as described above, and the output thereof is sent to an arithmetic circuit or the like via a data line 14.

メモリ装置1へデータを書き込む場合には、演
算回路等からデータ線15で書き込むデータを受
け取る。1語全体を書き込む場合には、データ線
15のデータをゲート回路19を経てマスタレジ
スタ8に保持し、マスタレジスタ8の出力を
ECC回路12に入力して冗長符号出力17を得、
この冗長符号17とマスタレジスタ8に保持する
データ部分の内容とを連結して書き込み情報線4
に乗せることにより、指定の記憶アドレスに記憶
する。
When writing data to the memory device 1, data to be written is received from an arithmetic circuit or the like via a data line 15. When writing an entire word, the data on the data line 15 is held in the master register 8 via the gate circuit 19, and the output of the master register 8 is
input to the ECC circuit 12 to obtain a redundant code output 17;
This redundant code 17 and the contents of the data portion held in the master register 8 are connected to write information line 4.
By placing it on the , it is stored at the specified storage address.

1語のデータ内の一部のみを更新し、他の部分
は以前の記憶内容を保存する、いわゆる部分書き
込みの場合には、書き込むべき記憶アドレスの1
語をまずメモリ装置1から読み出してマスタレジ
スタ8に保持し、その一部を更新してから再書き
込みを行う。
In the case of so-called partial writing, in which only a part of one word of data is updated and the other part preserves the previous memory contents, one of the memory addresses to be written is
The word is first read from the memory device 1 and held in the master register 8, and a part of it is updated before being rewritten.

このために読み出したデータは、前記と同様に
マスタレジスタ8からECC回路12に入力し、
誤り検出処理され、誤りが無ければ誤り検出処理
を終わつて、マスタレジスタ8内の指定部分のみ
を、データ線15からのデータによつて更新す
る。
The data read for this purpose is input from the master register 8 to the ECC circuit 12 in the same manner as described above.
Error detection processing is performed, and if there is no error, the error detection processing is completed and only the specified portion in the master register 8 is updated with data from the data line 15.

その後、マスタレジスタ8のデータ、及び該デ
ータについてECC回路12で発生する冗長符号
を、前記書き込み動作の場合と同様にしてメモリ
装置1に書き込む。
Thereafter, the data in the master register 8 and the redundant code generated by the ECC circuit 12 for the data are written into the memory device 1 in the same manner as in the write operation.

部分書き込みのためにメモリ装置1からマスタ
レジスタ8に読み出したデータについて、ECC
回路12で訂正可能な誤りが検出された場合に
は、マスタレジスタ8の内容を正しいデータに修
正後、前記の部分書き込み処理をする必要があ
る。
ECC is applied to data read from memory device 1 to master register 8 for partial writing.
If a correctable error is detected in the circuit 12, it is necessary to correct the contents of the master register 8 to correct data and then perform the above-described partial write process.

しかし、ECC回路12を訂正処理状態にした
まゝ、その出力で直接マスタレジスタ8を変更す
ると、ECC回路12の入力を自身で変更するこ
とになつて、訂正出力を不安定にする。
However, if the output of the ECC circuit 12 is left in the correction processing state and the master register 8 is directly changed, the input of the ECC circuit 12 will be changed by itself, making the correction output unstable.

このために、例えばECC回路12の訂正出力
18を一旦バツフア16に設定し、バツフア16
の出力をマスタレジスタ8に設定することによ
り、マスタレジスタ8を修正する。
For this purpose, for example, the correction output 18 of the ECC circuit 12 is once set to the buffer 16, and
The master register 8 is modified by setting the output of the master register 8 to the master register 8.

このように、マスタ/スレーブ型フリツプフロ
ツプを利用しても、バツフア16を設ける必要が
あるために、部品の減少効果が減殺されるという
問題があつた。
As described above, even if a master/slave type flip-flop is used, there is a problem that the effect of reducing the number of components is diminished because the buffer 16 must be provided.

〔問題点を解決するための手段〕[Means for solving problems]

前記の問題点は、マスタ/スレーブ型フリツプ
フロツプ回路のマスタ側フリツプフロツプによつ
て構成するマスタレジスタと、スレーブ側フリツ
プフロツプによつて構成するスレーブレジスタを
有し、メモリ装置に入出力するデータを該マスタ
レジスタに保持し、該メモリ装置から読み出した
命令を該スレーブレジスタに保持し、該マスタレ
ジスタに保持するデータの一部を変更して、該メ
モリ装置に再書き込みするに際し、該メモリ装置
から読み出して該マスタレジスタに保持するデー
タについて誤り訂正符号検査によつて誤りを検出
した場合には、該データを上記スレーブレジスタ
に転送し、該スレーブレジスタのデータについて
誤り訂正符号による誤り訂正処理を実行するよう
に構成された本発明のメモリアクセス制御方式に
よつて解決される。
The above-mentioned problem is that the master/slave type flip-flop circuit has a master register constituted by a master-side flip-flop and a slave register constituted by a slave-side flip-flop, and the data input/output to the memory device is transferred to the master register. The instructions read from the memory device are held in the slave register, and when a part of the data held in the master register is changed and rewritten to the memory device, the instructions read from the memory device and the instructions read from the memory device are changed. If an error is detected in the data held in the master register by error correction code inspection, the data is transferred to the slave register and error correction processing using the error correction code is executed for the data in the slave register. This problem is solved by the memory access control method of the present invention.

〔作用〕[Effect]

即ち、マスタレジスタのデータに誤りが検出さ
れ、訂正する場合には、マスタレジスタの内容を
スレーブレジスタに転送し、スレーブレジスタの
出力をECC回路に入力して訂正処理し、その出
力でマスタレジスタを修正する。
In other words, when an error is detected in the data of the master register and needs to be corrected, the contents of the master register are transferred to the slave register, the output of the slave register is input to the ECC circuit for correction processing, and the output is used to correct the master register. Fix it.

従つて、ECC回路の訂正処理入力はマスタレ
ジスタの修正によつて変化せず、安定な訂正出力
を得ることができ、且つ部品数は減少する。
Therefore, the correction processing input of the ECC circuit does not change due to modification of the master register, a stable correction output can be obtained, and the number of components is reduced.

なお、上記のようにして訂正処理をした場合に
は、その後命令バツフア制御回路は、改めてメモ
リ装置から次の命令を読み出して、スレーブレジ
スタに命令を保持するように制御する。
Note that when the correction process is performed as described above, the instruction buffer control circuit thereafter controls the next instruction to be read out from the memory device again and held in the slave register.

〔実施例〕〔Example〕

第1図は本発明の一実施例を示すブロツク図で
ある。図において、第2図と同一の部分は同じ符
号で示す。
FIG. 1 is a block diagram showing one embodiment of the present invention. In the figure, the same parts as in FIG. 2 are designated by the same reference numerals.

従来と同様に、マスタレジスタ8はメモリ装置
1に入出力するデータを保持するレジスタとして
使用され、スレーブレジスタ9は次に実行すべき
命令を保持する命令バツフアに使用される。
As in the prior art, master register 8 is used as a register to hold data to be input/output to memory device 1, and slave register 9 is used as an instruction buffer to hold the next instruction to be executed.

前記のようにして、部分書き込みのためにマス
タレジスタ8に読み出されたデータはECC回路
12で誤りが検査される。
As described above, the data read into the master register 8 for partial writing is checked for errors by the ECC circuit 12.

そこで誤りが検出されない場合には、従来の例
と同様に部分書き込みが処理される。
If no error is detected, partial writing is processed in the same way as in the conventional example.

訂正可能な誤りが検出された場合には、ECC
回路12は制御線20によりマスタ/スレーブ型
フリツプフロツプ7を制御して、マスタレジスタ
8の内容をスレーブレジスタ9へ転送し、且つ
ECC回路12への入力をスレーブレジスタ9側
に切り換える。
If a correctable error is detected, ECC
Circuit 12 controls master/slave flip-flop 7 via control line 20 to transfer the contents of master register 8 to slave register 9;
Switch the input to the ECC circuit 12 to the slave register 9 side.

又、制御線20の信号は命令バツフア制御回路
10へも送られ、命令バツフア制御回路10はス
レーブレジスタ9に保持していた命令が破壊され
たことを知るので、その後の例えば次の命令を命
令レジスタ13に設定する制御の開始において、
改めてメモリ装置1から次の命令を読み出すよう
に制御する。
Further, the signal on the control line 20 is also sent to the instruction buffer control circuit 10, and the instruction buffer control circuit 10 knows that the instruction held in the slave register 9 has been destroyed, so it can issue the next instruction after that, for example. At the start of the control set in register 13,
Control is performed to read the next instruction from the memory device 1 again.

ECC回路12はスレーブレジスタ9からの入
力に対して、誤り検出に続く誤り訂正処理を継続
し、訂正データをデータ線18を経てマスタレジ
スタ8に設定することにより、ECC回路12は
訂正処理を終了する。
The ECC circuit 12 continues error correction processing following error detection on the input from the slave register 9, and sets the correction data to the master register 8 via the data line 18, so that the ECC circuit 12 completes the correction processing. do.

次いで、データ線15のデータにより、マスタ
レジスタ8のデータの一部を更新する。
Next, part of the data in the master register 8 is updated using the data on the data line 15.

ECC回路12は冗長符号発生状態に切り換わ
り、マスタレジスタ8のデータを入力として、冗
長符号出力17出力する。
The ECC circuit 12 switches to a redundant code generation state, takes the data of the master register 8 as input, and outputs a redundant code output 17.

冗長符号出力17と、マスタレジスタ8のデー
タを結合して、書き込み情報線4を経てメモリ装
置1への再書き込みを行うことにより、部分書き
込みの処理を終了する。
The redundant code output 17 and the data in the master register 8 are combined and rewritten into the memory device 1 via the write information line 4, thereby completing the partial write process.

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

以上の説明から明らかなように本発明によれ
ば、メモリアクセス制御に必要なバツフア等が減
少するので、情報処理システムの経済性及び信頼
性を改善するという著しい工業的効果がある。
As is clear from the above description, according to the present invention, the buffer required for memory access control is reduced, so there is a significant industrial effect of improving the economic efficiency and reliability of the information processing system.

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

第1図は本発明一実施例構成のブロツク図、第
2図は従来の一構成例ブロツク図である。 図において、1はメモリ装置、5はデータアド
レスレジスタ、6は命令アドレスレジスタ、7は
マスタ/スレーブ型フリツプフロツプ回路、8は
マスタレジスタ、9はスレーブレジスタ、10は
命令バツフア制御回路、12はECC回路、13
は命令レジスタ、16はデータバツフア、20は
制御線を示す。
FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is a block diagram of a conventional configuration. In the figure, 1 is a memory device, 5 is a data address register, 6 is an instruction address register, 7 is a master/slave type flip-flop circuit, 8 is a master register, 9 is a slave register, 10 is an instruction buffer control circuit, and 12 is an ECC circuit. , 13
1 is an instruction register, 16 is a data buffer, and 20 is a control line.

Claims (1)

【特許請求の範囲】[Claims] 1 マスタ/スレーブ型フリツプフロツプ回路の
マスタ側フリツプフロツプによつて構成するマス
タレジスタと、スレーブ側フリツプフロツプによ
つて構成するスレーブレジスタを有し、メモリ装
置に入出力するデータを該マスタレジスタに保持
し、該メモリ装置から読み出した命令を該スレー
ブレジスタに保持し、該マスタレジスタに保持す
るデータの一部を変更して、該メモリ装置に再書
き込みするに際し、該メモリ装置から読み出して
該マスタレジスタに保持するデータについて誤り
訂正符号検査によつて誤りを検出した場合には、
該データを上記スレーブレジスタに転送し、該ス
レーブレジスタのデータについて誤り訂正符号に
よる誤り訂正処理を実行するように構成されてな
ることを特徴とするメモリアクセス制御方式。
1 A master/slave type flip-flop circuit has a master register constituted by a master-side flip-flop and a slave register constituted by a slave-side flip-flop. An instruction read from the memory device is held in the slave register, and when a part of the data held in the master register is changed and rewritten to the memory device, the instruction is read from the memory device and held in the master register. If an error is detected in the data by error correction code checking,
A memory access control system characterized in that the data is transferred to the slave register, and the data in the slave register is subjected to error correction processing using an error correction code.
JP59247619A 1984-11-22 1984-11-22 Memory access controlling system Granted JPS61131048A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59247619A JPS61131048A (en) 1984-11-22 1984-11-22 Memory access controlling system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59247619A JPS61131048A (en) 1984-11-22 1984-11-22 Memory access controlling system

Publications (2)

Publication Number Publication Date
JPS61131048A JPS61131048A (en) 1986-06-18
JPH0332823B2 true JPH0332823B2 (en) 1991-05-14

Family

ID=17166200

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59247619A Granted JPS61131048A (en) 1984-11-22 1984-11-22 Memory access controlling system

Country Status (1)

Country Link
JP (1) JPS61131048A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02118744A (en) * 1988-10-28 1990-05-07 Nec Corp Electronic disk device

Also Published As

Publication number Publication date
JPS61131048A (en) 1986-06-18

Similar Documents

Publication Publication Date Title
US3898443A (en) Memory fault correction system
JPH0833842B2 (en) Logical operation device
JPH0332823B2 (en)
JPS62242258A (en) Storage device
JPH0317760A (en) Data write confirming system
JPS6349809B2 (en)
JPS60214043A (en) Pipeline control circuit
JPH0423056A (en) Ram circuit
JPS61288243A (en) Processing system for compare and swap instruction
JPS6128145B2 (en)
JPH02183332A (en) Programmed control system
JPH01171033A (en) Arithmetic unit
JPH0136137B2 (en)
JPS59110098A (en) Error correcting device of data storage device
JPS63216150A (en) Storage device
JPS59103158A (en) Debug system of digital signal processing program
JPH11327940A (en) Instruction re-execution control method
JPH0250500B2 (en)
JPS63170756A (en) Main memory initialization method
JPH0271346A (en) Error correction controller for memory
JPS58199500A (en) Memory control circuit of memory device
JPH05265786A (en) Parity check circuit
JPS60201437A (en) Microprocessor
JPH0391198A (en) Memory rewrite system
JPS59176851A (en) Data storing system