JPH01263855A - Parity bit application system - Google Patents
Parity bit application systemInfo
- Publication number
- JPH01263855A JPH01263855A JP63093022A JP9302288A JPH01263855A JP H01263855 A JPH01263855 A JP H01263855A JP 63093022 A JP63093022 A JP 63093022A JP 9302288 A JP9302288 A JP 9302288A JP H01263855 A JPH01263855 A JP H01263855A
- Authority
- JP
- Japan
- Prior art keywords
- parity
- data
- memory
- address
- parity bit
- 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
- 230000015654 memory Effects 0.000 claims abstract description 69
- 238000000034 method Methods 0.000 claims description 9
- 238000001514 detection method Methods 0.000 claims description 2
- 239000006144 Dulbecco’s modified Eagle's medium Substances 0.000 abstract description 26
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000010200 validation analysis Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はメモリのパリテイビット付与方式に関し、特に
障害検出用パリテイビットの付与方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for assigning a parity bit to a memory, and particularly to a method for assigning a parity bit for failure detection.
〔従来の技術]
従来からメモリ障害の検出方法として、パリテイビット
方式は最も一般的に使用されており、その方法としては
メモリの全アドレスに対してそれぞれパリテイビットを
1ビツトずつ割当て、あるアドレスのデータ(”1゛あ
るいは0゛の2値から成る複数のビット列)の1′の数
が奇数個の場合あるいは偶数個の場合に応じて、そのデ
ータに対するパリティビットを°1′あるいは°0′と
して付与している。[Prior Art] The parity bit method is the most commonly used method for detecting memory failures. Depending on whether the number of 1's in the address data (multiple bit strings consisting of binary values of "1" or "0") is odd or even, the parity bit for that data is set to °1' or °0. ’.
上述した従来のパリテイビット付与方法では、全アドレ
スにパリティビットが必要になり、メモリ容量が増大す
るばかりでなく、パリティビット用メモリ素子としてビ
ット幅が1ビツトで、がっ、アドレス空間が大きなもの
がない場合、パリテイビット用メモリの数量が増大し、
ハードウェア量が増加し、経済的にも不利になる欠点を
有する。In the conventional parity bit assignment method described above, a parity bit is required for every address, which not only increases the memory capacity, but also requires a large address space since the memory element for the parity bit has a bit width of 1 bit. If there is no parity bit, the amount of memory for parity bits increases,
This method has the disadvantage that the amount of hardware increases and is economically disadvantageous.
本発明のパリティビ・ソト付与方式は、シーケンシャル
に書込みおよびランダムに請出し動作するメモリ、ある
いはランダムに請出し動作のみするメモリにおいて、そ
れらの読出し動作時にランダム読出しサイクルの他に新
たにシーケンシャル読出しサイクルを付加し、メモリ障
害検出用パリティビットを前記メモリの複数アドレスに
対して共通に1つだけ与えることを特徴としている、〔
実施例)
次に、本発明について図面を参照して説明する。The parity/soto assignment method of the present invention adds a new sequential read cycle in addition to a random read cycle during a read operation in a memory that performs sequential writing and random allocation operations, or a memory that performs only random allocation operations. [
Examples) Next, the present invention will be described with reference to the drawings.
第1図は本発明の一実施例を示すブロック図である。第
1図において、DMEMはデータを格納するデータメモ
リ、PMEMはパリティビットを格納するパリティメモ
リ、CNTはカウンタであり、クロックパルスを受けて
カウントアツプ動作し、データメモリDMEMおよびパ
リティメモリPMEMに対してアドレスを供給するため
のらのである。PGはパリティビット作成回路、F 、
/ Fはフリップフロップ、Gはl・ライステートゲー
トである。ADはアドレス線で16ビツ1−より成り、
QDはカウンタCNTのカラン1−データであり16ビ
ツトより成る。SELはセレクタであり、アドレス線A
DとカウントデータQDのどちらか一方を選択し、その
選択した情報をデータメモリDMEMとパリティメモリ
PMEMに対してアドレス情報として供給する。DBは
データバスであり58ビツトのデータ線より成る。FIG. 1 is a block diagram showing one embodiment of the present invention. In FIG. 1, DMEM is a data memory that stores data, PMEM is a parity memory that stores parity bits, and CNT is a counter that performs a count-up operation in response to clock pulses, and operates to count up data memory DMEM and parity memory PMEM. This is for supplying addresses. PG is a parity bit generation circuit, F,
/F is a flip-flop, and G is an l-restate gate. AD is an address line consisting of 16 bits 1-,
QD is the run 1 data of counter CNT and consists of 16 bits. SEL is a selector, and address line A
Either D or count data QD is selected, and the selected information is supplied as address information to data memory DMEM and parity memory PMEM. DB is a data bus consisting of 58-bit data lines.
データメモリDMEMの容量は64にワード×8ビット
であり、このメモリはアドレス情報をセレクタ5EI−
より16ビツトのデータどして受けている。一方、パリ
ティメモリP M E Mの容量は1にワード×1ビッ
トであり、このメモリはアドレス情報としてセレクタS
ELの出力の16ビツl−のデータのうち上位10ビツ
トのデータを受けている。The capacity of the data memory DMEM is 64 words x 8 bits, and this memory transfers address information to the selector 5EI-
It receives 16-bit data. On the other hand, the capacity of parity memory P M E M is 1 word x 1 bit, and this memory is used as address information by selector S.
It receives the upper 10 bits of the 16 bits of data output from the EL.
今、データメモリDMEMが全アドレスにシーケンシャ
ルにデータが書込まれる場合のパリティビットの作成方
法及びパリティメモリI) M E Mへの書込動作に
つき説明する。Now, a method for creating parity bits and a write operation to the parity memory I) MEM will be explained when data is sequentially written to all addresses in the data memory DMEM.
初期状態においては、カウンタCNTの出力は全て“0
′、フリップフロップF、/Fの出力も0′であり、ゲ
ー1− Gはイネーブル状態て゛ある。また、セレクタ
S E LはカウントデータQDを選択し出力している
。データメモリDMEMに対する書込データをデータバ
スI) Bに送り出し、その書込データがデータメモリ
DMEMに入力され書込み動作が行われるが、この書込
動作中にパリティ作成回路PGにおいて、データバスD
B、JlのデータとゲートGの出力データ(初期状態で
は0°)の合わせて9ビツト・のデータに対するパリテ
ィビットの作成を行い、その結果をフリップフロップF
、/’Fにう・ソチする。次にカウンタCNTを歩進さ
ぜ、データメモリD M E Mに対するアドレスを1
番地とし、データバスDBに次の書込データを送り出し
て、データメモリDMEMに4込みを行う。この書込動
作においても、パリティ作成回路において、データバス
DBJIのデータとゲートGの出力データの合わせて9
ビットのデータに対するパリティビットの作成を行い、
その結果を新たに再びフリップフロップF/Fにラッチ
する。これらの動作を順次くり返して、データメモリD
MEMのアドレスが63番地(16進表示で3F番地)
の時のパリティビット作成が終了した時点で、フリップ
フロップF/Fの出力データをゲートGを介してパリテ
ィメモリPMEMに送り出し、そのデータをパリティメ
モリPMEMに書込む、この時点のパリティメモリPM
EMのアドレスは、0番地である。つまり、この時点で
データメモリDMEMの0番地から63番地の全データ
512ビ・ント(64X8ピツ)・)に吋して1ビット
のパリティビットを作成し、そのビットをパリティメモ
リPMEMの0番地に書込んだことになる。なお、フリ
ップフロップF/Fは、パリティメモリPMEMの書込
動作終了時にリセットする。データメモリDMEMのア
ドレスが64番地から127番地まで64アドレス分に
ついても、前述の0番地から63番地までと同じ動作を
くり返し、パリティメモリPMEMの1番地にデータメ
モリDMEMの64番地から127番地までの512ピ
ントのデータに対するパリティビットを書込む。最終的
にはデータメモリDMEMのアドレスが16進表示でF
FF F番地(R終番地)の時のメモリ書込みが終了
した時にバリデイメモリP M E Mのアドレスが1
6進表示で3FF番地〈最終番地)の時のパリティメモ
リPMEMへの書込みも同時に終了し、全ての書込動作
が終了づる。In the initial state, all outputs of the counter CNT are “0”.
', the outputs of flip-flops F and /F are also 0', and gates 1-G are enabled. Further, the selector SEL selects and outputs the count data QD. Write data to the data memory DMEM is sent to the data bus I)B, and the write data is input to the data memory DMEM to perform a write operation. During this write operation, the parity generation circuit PG
A parity bit is created for a total of 9 bits of data of B and Jl and the output data of gate G (0° in the initial state), and the result is sent to flip-flop F.
,/'F Niu Sochi. Next, increment the counter CNT and set the address for the data memory D M E M to 1.
address, sends the next write data to the data bus DB, and performs 4 writes to the data memory DMEM. In this write operation as well, in the parity creation circuit, the data on the data bus DBJI and the output data of the gate G are 9 in total.
Create a parity bit for the bit data,
The result is newly latched into the flip-flop F/F. By repeating these operations sequentially, the data memory D
The MEM address is address 63 (address 3F in hexadecimal)
When the parity bit creation is completed, the output data of the flip-flop F/F is sent to the parity memory PMEM via the gate G, and the data is written to the parity memory PMEM.
The address of EM is address 0. In other words, at this point, all data 512 bits (64 x 8 bits) from addresses 0 to 63 of the data memory DMEM are created to create a 1-bit parity bit, and that bit is stored at address 0 of the parity memory PMEM. It means you have written it down. Note that the flip-flop F/F is reset at the end of the write operation of the parity memory PMEM. For 64 addresses from 64 to 127 in the data memory DMEM, repeat the same operation described above for addresses 0 to 63, and place the 64 to 127 addresses in the data memory DMEM at address 1 in the parity memory PMEM. Writes the parity bit for 512 pin data. Finally, the address of the data memory DMEM is F in hexadecimal notation.
FF When memory writing at address F (end address R) is completed, address of valid day memory P M E M becomes 1.
Writing to the parity memory PMEM at address 3FF (last address) in hexadecimal representation is also completed at the same time, and all write operations are completed.
次に、メモリの読出しとバリデイチエツクの動作につき
説明する。Next, the memory reading and validation checking operations will be explained.
メモリの読出しサイクルはランダム読出しサイクルとシ
ーケンシャル読出しサイクルの2つが交互に発生ずる。Two memory read cycles, a random read cycle and a sequential read cycle, occur alternately.
ランダム読出しサイクルの時は、セレクタSELがアド
レス線ADを選択し、シーケンシャル読出しサイクルの
時は、セレクタSELがカウントデータQDを選択し、
データメモリDMEMおよびパリティメモリPMEMに
対してアドレス情報を供給する。ランダム読出しサイク
ル時は、データメモリIIMEMのみの読出しを行い、
パリティメモリPMEMの読出しは行わない。During a random read cycle, the selector SEL selects the address line AD, and during a sequential read cycle, the selector SEL selects the count data QD.
Address information is supplied to data memory DMEM and parity memory PMEM. During a random read cycle, only the data memory IIMEM is read,
The parity memory PMEM is not read.
また、パリティ作成回路PG、フリップフロッ1F/
F 、ゲートGは一切動作させない。Also, parity generation circuit PG, flip-flop 1F/
F, gate G is not operated at all.
以下ではシーケンシャル読出しサイクルにのみ着目し、
メモリの読出しとパリティチエツクの動作につき説明す
る。従って、本来はランダム読出しサイクルとシーケン
シャル読出しサイクルが1サイクルずつ交互に発生ずる
が、ここではランダム読出しサイクルを無視し、シーケ
ンシャル読出しサイクルのみが連続して発生することと
する。In the following, we will focus only on sequential read cycles,
The memory read and parity check operations will be explained. Therefore, originally, a random read cycle and a sequential read cycle occur alternately one cycle at a time, but here, the random read cycle is ignored and only the sequential read cycle is assumed to occur continuously.
初期状態として、カウンタCNTの出力は全ビット°O
゛であり、ゲートGはハイインピーダンス状態である。As an initial state, the output of counter CNT is all bits °O.
, and the gate G is in a high impedance state.
カウンタCNTの出力が全ピッド0′の状態で、データ
メモリDMEMとパリティメモリPMEMの読出しを行
う。この時は、両メモリ共にアドレスは0′である。デ
ータメモリDMEMとパリティメモリPMEMの読出し
データはパリティ作成回路PGに入力され、作成された
パリティビットをフリップフロップF/Fにてラッチす
る。この後、ゲートGはイネーブル状態にする。The data memory DMEM and the parity memory PMEM are read in a state where the output of the counter CNT is all 0'. At this time, the address of both memories is 0'. Read data from the data memory DMEM and parity memory PMEM is input to a parity generation circuit PG, and the generated parity bit is latched by a flip-flop F/F. After this, gate G is enabled.
次に、カウンタCNTを歩進し、データメモリDMEM
の1番地の請出しを行い、データメモリDMEMから読
出されたデータとすでにフリップフロラ1F/Fにラッ
チしであるパリティビットとの合計9ピッ1−のデータ
に対するパリティビットをパリティ作成回路PGにて新
たに作成し、再びフリップフロップF 、/ Fにラッ
チする。順にデータメモリDMEMの2番地についても
同様に、データメモリDMEMの読出しとパリティビ・
ソトの作成を行い、63番地までくり返す。63番地の
時に作成されたパリティビット、つまりフリップ70ツ
1F/Fの出力データがパリティチエツクの結果を示し
、データメモリDMEMのO番地から63番地までの請
出しデータが正常か否かが判定できるのである。Next, the counter CNT is incremented and the data memory DMEM is
The parity generation circuit PG requests the 1st address of the data memory DMEM and the parity bit for the data of a total of 9 bits 1-, which is the data read from the data memory DMEM and the parity bit already latched in the flip-flop 1F/F. Create a new one and latch it into flip-flops F,/F again. Similarly, for address 2 of the data memory DMEM, reading and parity reading of the data memory DMEM is performed.
Create Soto and repeat up to address 63. The parity bit created at address 63, that is, the output data of flip 70 1F/F, indicates the result of the parity check, and it can be determined whether the solicited data from address O to address 63 of the data memory DMEM is normal. It is.
たとえば、パリティ作成回路PGのパリティ作成側と(
−で奇数パリティ則(9ビツトのデータの1゛の個数が
偶数個/奇数個であればl ’ 、/′0゛をパリティ
ビットとじて作成)とすれば、データメモリDMEMの
63′4地の読出しの時に作成されたパリティビット、
つまりフリップフロップF/Fの出力データが0゛て′
あれば正常であり、1゛であれば異常であると判断でき
るのである。データメモリDMEMの64番地から12
7番地までについても全く同様であり、64アドレス分
のデータ512ビツトの読惰しデータの正常性が1ビツ
トのパリティビットによってチエツクできるのである。For example, the parity generation side of the parity generation circuit PG and (
-, if the odd parity rule (if the number of 1's in 9-bit data is an even/odd number, l', /'0' is created as a parity bit), then the 63'4 location of the data memory DMEM. The parity bit created when reading the
In other words, the output data of the flip-flop F/F is 0'
If it is 1, it is normal, and if it is 1, it is abnormal. 12 from address 64 of data memory DMEM
The same is true for addresses up to address 7, and the normality of 512 bits of data for 64 addresses can be checked using 1 parity bit.
以上説明したように本発明は、パリティピッl−を複数
アドレスに対して1ビツトのみ割当てる方式であるため
、パリティ用メモリを大幅に削減できる効果がある。さ
らに、パリティビットを全アドレスに対して1ビットの
み設置すればバリデイ用メモリが不要になり、パリティ
用メモリの代わりにフリップフロラ11回路設置するだ
けで、メモリの正常性をチエツクすることも可能となる
利点がある。As explained above, the present invention is a system in which only one bit of the parity bit is allocated to a plurality of addresses, and therefore has the effect of significantly reducing the parity memory. Furthermore, by setting only one parity bit for every address, validation memory becomes unnecessary, and by simply installing 11 flip-flop circuits in place of parity memory, it is possible to check the normality of the memory. There are some advantages.
第1図は本発明の一実施例のプロ・ツク図である。
AD・・・アドレス線、CNT・・・カウンタ、DB・
・・データバス、DMEM・・・データメモリ、F/F
・・フリップフロップ、G・・・ゲーI・、PG・・パ
リティ作成回路、PMEM・・・パリティメモリ、QD
・・・力、fit 回FIG. 1 is a block diagram of one embodiment of the present invention. AD...address line, CNT...counter, DB...
...Data bus, DMEM...Data memory, F/F
...Flip-flop, G...Game I, PG...Parity creation circuit, PMEM...Parity memory, QD
...power, fit times
Claims (1)
るメモリ、あるいはランダムに読出し動作のみするメモ
リにおいて、それらの読出し動作時にランダム読出しサ
イクルの他に新たにシーケンシャル読出しサイクルを付
加し、メモリ障害検出用パリテイビットを前記メモリの
複数アドレスに対して共通に1つだけ与えることを特徴
とするパリテイビット付与方式。In a memory that performs sequential write and random read operations or a memory that performs only random read operations, a new sequential read cycle is added in addition to the random read cycle during these read operations, and the parity bit for memory failure detection is set as described above. A parity bit assignment method characterized in that only one parity bit is assigned in common to multiple addresses in memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63093022A JPH01263855A (en) | 1988-04-15 | 1988-04-15 | Parity bit application system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63093022A JPH01263855A (en) | 1988-04-15 | 1988-04-15 | Parity bit application system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH01263855A true JPH01263855A (en) | 1989-10-20 |
Family
ID=14070861
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP63093022A Pending JPH01263855A (en) | 1988-04-15 | 1988-04-15 | Parity bit application system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH01263855A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS56145600A (en) * | 1980-04-15 | 1981-11-12 | Toshiba Corp | Detection system for memory destruction |
JPS598200A (en) * | 1982-07-02 | 1984-01-17 | Mitsubishi Electric Corp | Memory bit error monitor device |
-
1988
- 1988-04-15 JP JP63093022A patent/JPH01263855A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS56145600A (en) * | 1980-04-15 | 1981-11-12 | Toshiba Corp | Detection system for memory destruction |
JPS598200A (en) * | 1982-07-02 | 1984-01-17 | Mitsubishi Electric Corp | Memory bit error monitor device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4016409A (en) | Longitudinal parity generator for use with a memory | |
TW202101466A (en) | E-fuse circuit | |
JPH0457295A (en) | Electrically writable/erasable memory circuit | |
US7287204B2 (en) | Memory unit test | |
JPH01263855A (en) | Parity bit application system | |
JPS6094525A (en) | Time division pulse pattern generator | |
JP3177975B2 (en) | One-chip microcomputer | |
KR100902124B1 (en) | Test circuit for memory apparatus | |
JP3126430B2 (en) | Pattern generation circuit | |
JP3777047B2 (en) | Erasing method of flash memory device | |
JP3655658B2 (en) | Numerical controller | |
JPS6140627A (en) | Memory clear control system | |
JPS59104800A (en) | Parity check system of picture memory | |
JP3931751B2 (en) | Register write control | |
JPS63311182A (en) | Test pattern memory circuit | |
JPH04149896A (en) | Method for controlling data writing in ram | |
JPH01119843A (en) | Address converter | |
JP2002042493A (en) | Memory test circuit | |
JPH11120778A (en) | Nonvolatile memory built-in microcomputer | |
JP3071717B2 (en) | Parity bit writing method | |
SU840896A1 (en) | Random process generator | |
JP2969645B2 (en) | Time slot replacement circuit | |
JPH056698A (en) | Random access memory test circuit | |
JPH01297745A (en) | Parity bit attaching system | |
CN112289366A (en) | Memory storage device and data access method |