JPH0423056A - Ram circuit - Google Patents
Ram circuitInfo
- Publication number
- JPH0423056A JPH0423056A JP2127546A JP12754690A JPH0423056A JP H0423056 A JPH0423056 A JP H0423056A JP 2127546 A JP2127546 A JP 2127546A JP 12754690 A JP12754690 A JP 12754690A JP H0423056 A JPH0423056 A JP H0423056A
- Authority
- JP
- Japan
- Prior art keywords
- data
- circuit
- write
- read
- ram
- 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
Links
- 230000006378 damage Effects 0.000 abstract description 2
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
Description
【発明の詳細な説明】
技術分野
本発明はRAM回路に関し、特にマイクロ命令により格
納データが読出されるRAM回路に関するものである。DETAILED DESCRIPTION OF THE INVENTION TECHNICAL FIELD The present invention relates to a RAM circuit, and more particularly to a RAM circuit from which stored data is read by microinstructions.
従来技術
従来、マイクロ命令によって格納データの読出しが行わ
れるRAM回路では、データの読出し時に当該データの
正当性を保証すべくパリティチエツクまたはFCCチエ
ツクが行われるのが一般的である。BACKGROUND ART Conventionally, in a RAM circuit in which stored data is read by a microinstruction, a parity check or an FCC check is generally performed when reading data to ensure the validity of the data.
この従来のマイクロ命令で読出しを行うようなRAM回
路は、読出し時にデータの正当性を7<リティまたはE
CC訂正回路でチエツクしているが、−Uデータを書込
んだ後読出しのみを行うような使い方をする場合、読出
しが長時同行なわれな0ようなアドレスのデータに関し
ては、データが自然破壊されて2ビット以上の致命的な
エラーとなる可能性があり、信頼性が低いという問題点
がある。This conventional RAM circuit that performs reading using microinstructions checks the validity of data at the time of reading.
Although it is checked by the CC correction circuit, if -U data is written and then only read, data at an address such as 0 may be naturally destroyed if reading is not carried out for a long time. There is a problem that the reliability is low because there is a possibility that a fatal error of 2 or more bits will occur.
発明の目的
本発明の目的は、読出しが長時同行われないようなアド
レスのデータの自然破壊を防止して、信頼性の向上を図
ったRAM回路を提供することである。OBJECTS OF THE INVENTION An object of the present invention is to provide a RAM circuit which improves reliability by preventing natural destruction of data at addresses where reading is not performed simultaneously for a long time.
発明の構成
本発明によれば、命令によってデータの読出しが行われ
るRAM回路であって、前記命令による読出し処理が実
行されていないときに、2クロック毎に1回内容が更新
されてRAMのアドレスを生成するカウンタと、前記2
クロックの前1炙で前記RAMからデータを読出すとと
もに誤り訂正をなす読出し制御手段と、前記2クロック
の後゛Vで前記読出し制御手段により読出されたデータ
を再度前記RAMへ書込む書込み制御手段とを含むこと
を特徴とするRAM回路か得られる。Structure of the Invention According to the present invention, in a RAM circuit in which data is read by an instruction, when the read processing by the instruction is not executed, the contents are updated once every two clocks, and the address of the RAM is updated. a counter that generates the above 2
a read control means for reading data from the RAM and performing error correction at one time before the clock; and a write control means for writing the data read by the read control means back into the RAM at V after the two clocks. A RAM circuit is obtained which is characterized in that it includes the following.
実施例
次に、本発明の実施例について図面を参照して説明する
。Embodiments Next, embodiments of the present invention will be described with reference to the drawings.
図は本発明の実施例のRAM回路のブロック図である。The figure is a block diagram of a RAM circuit according to an embodiment of the present invention.
本実施例のRAM回路は、マイクロ命令で読出されない
ときのRAM回路6のアドレスとなるカウンタ1、マイ
クロ命令が無効であることを示す無効フラグ2、通常実
行時にアドレスデータ106を格納するアドレスレジス
タ3、RAM回路6への書込みデータとして、外部デー
タ110または読出しレジスタ]2の出力Illを選択
する第1選択回路4、RAM回路6へのアドレスデータ
として、アドレスレジスタ3の出力107またはカウン
タ1の出力1.08を選択する第2選択回路5、マイク
ロ命令によりデータ113か出されるRAM回路6、ラ
イトフラグ8の出力103の否定論理を出力する否定回
路7、書込み命令I00、無効フラグ2の出力102、
否定回路7の出力104により読出しデータの書込み信
号を発生する書込み信号発生回路9、読出しデータ11
3のチエツクをなすECCチエツク訂正回路10、書込
み命令100と否定回路7の出力104を入力とする論
理積回路11、読出しデータ114を格納する読出しレ
ジスタ]2からなる。The RAM circuit of this embodiment includes a counter 1 that serves as the address of the RAM circuit 6 when not read by a microinstruction, an invalid flag 2 that indicates that the microinstruction is invalid, and an address register 3 that stores address data 106 during normal execution. , the first selection circuit 4 selects the external data 110 or the output Ill of the read register] 2 as the write data to the RAM circuit 6, and the output 107 of the address register 3 or the output of the counter 1 as the address data to the RAM circuit 6. 1.08, a RAM circuit 6 that outputs data 113 according to a microinstruction, a negation circuit 7 that outputs the negation logic of the output 103 of the write flag 8, a write instruction I00, and an output 102 of the invalid flag 2. ,
A write signal generation circuit 9 generates a write signal for read data based on the output 104 of the NOT circuit 7, and a read data 11.
3, an AND circuit 11 which receives the write command 100 and the output 104 of the NOT circuit 7, and a read register which stores read data 114.
まず、RAM回路6への初期書込み時は、無効フラグ2
が論理Oなので、第1選択回路4は書込みデータ110
を選択して書込みデータ目2として出力し、また第2選
択回路5はアドレスレジスタ3のデータ107を選択し
てRAM回路6のアドレスデータ109として出力する
。First, at the time of initial writing to the RAM circuit 6, the invalid flag 2 is set.
is logic O, the first selection circuit 4 selects the write data 110.
is selected and outputted as the second write data, and the second selection circuit 5 selects the data 107 of the address register 3 and outputs it as the address data 109 of the RAM circuit 6.
このとき、書込み命令+00が論理1、無効フラグ2が
論理Oの条件により、書込み信号発生回路9は書込み信
号105を論理1にするので、RAM回路6にはアドレ
スレジスタ3て指示されるアドレスに書込みデータ11
0のデータが書込まれる。At this time, under the conditions that the write command +00 is logic 1 and the invalid flag 2 is logic O, the write signal generation circuit 9 sets the write signal 105 to logic 1, so the RAM circuit 6 inputs the address specified by the address register 3. Write data 11
Data of 0 is written.
アドレスデータ106を0O−4FF(16進)ニ1づ
つ変化させなから1ワードづつ書込んで行くことで、書
込みが終了する。Writing is completed by changing the address data 106 by 1 from 00 to 4FF (hexadecimal) and writing one word at a time.
次に、通常実行時にマイクロ命令でデータが読出されて
いる時は、書込み命令100が論理o1無効フラグ2が
論理Oの条件より、書込み信号発生回路9は、論理Oを
書込信号105として出力する。Next, when data is being read by a microinstruction during normal execution, the write command 100 is at logic o1 and the invalid flag 2 is at logic O, so the write signal generation circuit 9 outputs logic O as the write signal 105. do.
無効フラグ2が論理0のため、第2選択回路5はアドレ
スレジスタ3のデータ107を選択しアドレスデータ1
09として出力する。RAM回路6の読出しデータ11
3はECCチエツク訂正回路1(]に送られて読出しデ
ータ114として出力される。Since the invalid flag 2 is logic 0, the second selection circuit 5 selects the data 107 of the address register 3 and sets it to address data 1.
Output as 09. Read data 11 of RAM circuit 6
3 is sent to the ECC check correction circuit 1 ( ) and output as read data 114 .
次に、通常実行時にマイクロ命令でデータが読出されて
いないときは、書込み命令100が論理0、無効フラグ
2が論理1になる。ライトフラグ8は無効フラグ2が論
理1のとき、1クロック毎に否定回路7のライトフラグ
否定データ104を入力するので、ライトフラグ8のデ
ータは〇−・1→0・・と更新される。カウンタ1はラ
イトフラグ8が論理1のとき更新されるので、2クロッ
ク毎に更新されることになる。Next, when data is not read by a microinstruction during normal execution, the write instruction 100 becomes logic 0 and the invalid flag 2 becomes logic 1. Since the write flag 8 inputs the write flag negation data 104 of the negation circuit 7 every clock when the invalid flag 2 is logic 1, the data of the write flag 8 is updated as 0-.1→0. Since the counter 1 is updated when the write flag 8 is logic 1, it is updated every two clocks.
ライトフラグ8が論理0のときは、RAM回路6の読出
し動作となり、書込み信号発生回路9は書込み命令10
0、無効フラグ2の条件も含めて論理0を書込み信号1
05として出力する。カウンタ1は更新されないので初
期値00を出力し、無効フラグ2が論理1のために第2
選択回路5は、カウンタ1のデータ108をアドレスデ
ータ109として出力する。無効フラグ2の無効フラグ
データ102とライトフラグ否定データ104とにより
、論理積回路11から出力される読出しレジスタセット
信号+15が論理1になるので、RAM回路6のアドレ
ス00の読出しデータ113はECC訂正回路10を通
り読出しレジスタ12に格納される。When the write flag 8 is logic 0, the RAM circuit 6 performs a read operation, and the write signal generation circuit 9 receives the write command 10.
0, write logic 0 including the invalid flag 2 condition, signal 1
Output as 05. Since counter 1 is not updated, it outputs the initial value 00, and invalid flag 2 is set to logic 1, so the counter 1 outputs the initial value 00.
The selection circuit 5 outputs the data 108 of the counter 1 as address data 109. Due to the invalid flag data 102 of the invalid flag 2 and the write flag negation data 104, the read register set signal +15 output from the AND circuit 11 becomes logic 1, so the read data 113 at address 00 of the RAM circuit 6 is ECC corrected. It passes through the circuit 10 and is stored in the read register 12.
次のクロッつてライトフラグ8が論理1になり、RAM
回路6への再書込み動作へ移る。無効フラグ2が論理1
のために、第1選択回路4は読出しレジスタ12の再書
込みデータIllを書込みデータ112として出力する
。書込み信号発生回路9は書込み命令1OO1無効フラ
グ2の条件により書込み信号105として論理1を出力
する。At the next clock, write flag 8 becomes logic 1, and the RAM
Moving on to the rewriting operation to the circuit 6. Invalid flag 2 is logic 1
Therefore, the first selection circuit 4 outputs the rewrite data Ill of the read register 12 as the write data 112. The write signal generation circuit 9 outputs logic 1 as the write signal 105 according to the conditions of the write command 1OO1 invalid flag 2.
このとき、無効フラグ2が論理1のため、第2選択回路
5はカウンタ1の再書込みアドレスデータ!08(この
場合00)をアドレスデータ109として選択するので
、このアドレスに書込みデータ112が格納される。カ
ウンタ1のデータはこのクロックで更新され、データは
0O−FFまで1づつ変化して全ワードに対する再書込
み動作が行われる。アドレスFFまで再書込みした後は
、カウンタ1は再び00にリセットされて再書込み動作
を続ける。At this time, since the invalid flag 2 is logic 1, the second selection circuit 5 selects the rewrite address data of the counter 1! Since 08 (00 in this case) is selected as address data 109, write data 112 is stored at this address. The data of counter 1 is updated with this clock, and the data changes by 1 from 00 to FF, and a rewrite operation is performed for all words. After rewriting to address FF, counter 1 is reset to 00 again and the rewriting operation continues.
発明の詳細
な説明したように本発明は、マイクロ命令で読出しをし
ていない時には、RAM回路の読出しと再書込みとを全
アドレスについて順番に行っていくことにより、マイク
ロ命令による読出しが長時間貸われないようなアドレス
のデータに関してのデータの自然破壊を防ぎ、信頼性を
向上させるという効果を有する。As described in detail, the present invention reads and rewrites the RAM circuit sequentially for all addresses when no reading is being performed by microinstructions, so that reading by microinstructions can be carried out for a long time. This has the effect of preventing data from being spontaneously destroyed and improving reliability of data at addresses that may not be transmitted.
図は本発明の実施例のプロ・ツク図である。 主要部分の符号の説明 1・・・・・・カウンタ 2・・・・・・無効フラグ 6・・・・・・RAM 7・・・・・・否定回路 8・・・・・・ライトフラグ 9・・・・・・書込信号発生回路 10・・・・・・ECCチエツク回路 12・・・・・・読出しレジスタ The figure is a block diagram of an embodiment of the present invention. Explanation of symbols of main parts 1...Counter 2...Invalid flag 6...RAM 7...Negation circuit 8...Light flag 9...Write signal generation circuit 10...ECC check circuit 12...Read register
Claims (1)
路であって、前記命令による読出し処理が実行されてい
ないときに、2クロック毎に1回内容が更新されてRA
Mのアドレスを生成するカウンタと、前記2クロックの
前半で前記RAMからデータを読出すとともに誤り訂正
をなす読出し制御手段と、前記2クロックの後半で前記
読出し制御手段により読出されたデータを再度前記RA
Mへ書込む書込み制御手段とを含むことを特徴とするR
AM回路。(1) A RAM circuit in which data is read by an instruction, and when the read processing by the instruction is not executed, the contents are updated once every two clocks and the RA
a counter that generates an address of M; read control means that reads data from the RAM and performs error correction in the first half of the two clocks; R.A.
R characterized in that it includes a write control means for writing to M.
AM circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2127546A JPH0423056A (en) | 1990-05-17 | 1990-05-17 | Ram circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2127546A JPH0423056A (en) | 1990-05-17 | 1990-05-17 | Ram circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0423056A true JPH0423056A (en) | 1992-01-27 |
Family
ID=14962684
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2127546A Pending JPH0423056A (en) | 1990-05-17 | 1990-05-17 | Ram circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0423056A (en) |
-
1990
- 1990-05-17 JP JP2127546A patent/JPH0423056A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0764957A (en) | Timer device | |
| JPS62242258A (en) | Storage device | |
| JPS61500992A (en) | Improvements in or relating to computer systems | |
| JP3123855B2 (en) | Patrol control circuit of memory device | |
| JPS59104800A (en) | Parity check system of picture memory | |
| JPS6022774B2 (en) | Input/output terminal control method | |
| JPH0332823B2 (en) | ||
| JPS60214043A (en) | Pipeline control circuit | |
| JPS61110247A (en) | Storage device | |
| JPH0250500B2 (en) | ||
| JPS59160896A (en) | Memory error detection/correction method | |
| JPS60205639A (en) | Address stopping circuit | |
| JPS61169952A (en) | Automatic checking method of one-bit error correcting function of memory | |
| JPH05181758A (en) | Storage device | |
| JPS59109950A (en) | Error processing system of control storage device | |
| JPS59129995A (en) | Storage device | |
| JPS62134738A (en) | Storage control system | |
| KR900006703Y1 (en) | Circuit for the delay of m1 signal in z-80 | |
| JPH11161559A (en) | Storage device with parity check function | |
| JPH10289127A (en) | Tracing circuit for development emulator | |
| JPH04310136A (en) | Control storage correcting circuit | |
| JPS61211741A (en) | Microcomputer | |
| JPS63195756A (en) | Memory system | |
| JPS6379140A (en) | Digital integrated circuit | |
| JPH0683987A (en) | Microcomputer |