JPS59188753A - Parity generating method - Google Patents

Parity generating method

Info

Publication number
JPS59188753A
JPS59188753A JP58061788A JP6178883A JPS59188753A JP S59188753 A JPS59188753 A JP S59188753A JP 58061788 A JP58061788 A JP 58061788A JP 6178883 A JP6178883 A JP 6178883A JP S59188753 A JPS59188753 A JP S59188753A
Authority
JP
Japan
Prior art keywords
parity
data
register
signal
time
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
JP58061788A
Other languages
Japanese (ja)
Inventor
Miyoshi Kikuchi
菊地 身好
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 JP58061788A priority Critical patent/JPS59188753A/en
Publication of JPS59188753A publication Critical patent/JPS59188753A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Detection And Correction Of Errors (AREA)

Abstract

PURPOSE:To generate the integrated parity bit of a group of data by generating corresponding parity bits for every data received following to a clock by taking their previous record into consideration storing the generated parity bits in a register and collating the previous parity bit at every time. CONSTITUTION:This device is composed of a data outputting section 1 and parity generating section 2 and a data controlling circuit 12 sends a data sending start signal ST by one clock. A data outputting circuit 11 sends four-bit data. Therefore, the exclusive OR signal of the four-bit data inputted into a parity generating circuit 21 is obtained and a data parity signal DPG is outputted at each time. Since the output OGC of a register 22 is ''0'' at the 1st time, the signal DPG is stored in the register 22 as an output integrated parity signal PG as it is. On and after the 2nd time, a new parity signal PG is generated by taking the exclusive OR of the previous parity signal PGC and the parity signal DPG of that time.

Description

【発明の詳細な説明】 (a)  発明の技術分野 本発明はデータ処理システムにおけるパリティの生成方
法に関する。
DETAILED DESCRIPTION OF THE INVENTION (a) Technical Field of the Invention The present invention relates to a method for generating parity in a data processing system.

(b)  技術の背景 通常データ処理システムは半導体素子の論理回路による
2進法を用いた演算を基本として構成される。
(b) Background of the Technology A data processing system is usually constructed based on operations using a binary system using logic circuits of semiconductor devices.

従来より論理回路はナンドおよびノア回路のような組合
せ回路素子とレジスタ、フリップフロップ回路(FF)
のような順序回路を多数具備し、相互に接続して機能的
にはデータを格納するための各種レジスタ、FF等とこ
れ等相互間を結ぶデータ送送路よりなるデータブロック
と、データブロック内の転送シーケンス、各演算ステッ
プにおける演算の種類および演算実行シーケンス等を制
御する各種レジスタ、FF群よりなる制御ブロワるビッ
トの内高レベル例えば1”ビット数を奇数または偶数パ
リティに管理するパリティビットを2進数の最終ビット
に付加してチェックし論理回路の信頼性を向上させるパ
リティチェックが用いられている0 (c)  従来技術と問題点 従来よりデータを受信して全データ1群にパリティチェ
ックを行うため゛1″ビット数を判定してパリティビッ
トを生成付加するには、データの最終バイトの受信を確
認してパリティ生成を行うので処理が短時間に集中する
上、全データを一旦保持蓄積するレジスタを必要とする
ため回路規模がデータ量に比例して大形化する欠点があ
った0(d)  発明の目的 本発明の目的は上記の欠点を除去するための全データ1
群のパリティビットを生成するに多量のレジスタを備え
ることなく入力するデータを遂−処理して全データ1群
の受信が終了した時点では常に必要とするパリティビッ
トを生成確保する手段を提供しようとするものである0 (e)  発明の構成 この目的は、複数ビットよりなるデータの処理システム
において、クロックに伴って受信するデータ毎に前歴を
加味しつ\対応するパリティビットを生成する手段およ
び該パリテイビ・ントをレジスタに格納する手段を備え
てなり、第1回目のデータ受信に伴いパリティ生成手段
により得られた生成パリティビットをレジスタに格納し
、第2回目以降は第n回目のデータを受信して得られた
第n回目の生成パリティピントとレジスタに格納した第
n −1回迄の格納パリティビットを照合して第n回目
迄の集積パリティビットを生成し、該格納パリティビッ
トに代えて集積パリティビットを前記レジスタに更新格
納動作を行い、常に第n回目迄の受信データによる集積
パリティビットをレジスタに保持することを特徴とする
パリティ生成方法を提供することによって達成すること
が出来る。
Conventionally, logic circuits include combinational circuit elements such as NAND and NOR circuits, registers, and flip-flop circuits (FF).
It is equipped with a large number of sequential circuits, and is connected to each other to function as a data block consisting of various registers, FFs, etc. for storing data, and data transmission paths connecting these, and a data block within the data block. various registers that control the transfer sequence, the type of operation in each operation step, the operation execution sequence, etc., and the parity bit that manages the high level of the control blower bits, such as 1'', to odd or even parity. A parity check is used to check the final bit of a binary number and improve the reliability of the logic circuit. To do this, determine the number of "1" bits and generate a parity bit.To add it, confirm reception of the last byte of data and generate parity, so processing is concentrated in a short time, and all data must be held and stored once. 0(d) Purpose of the Invention The object of the present invention is to eliminate the above-mentioned drawbacks by increasing the circuit size in proportion to the amount of data.
To generate a group of parity bits, the present invention aims to provide a means for finally processing input data without providing a large number of registers, and ensuring that necessary parity bits are always generated when the reception of all data for one group is completed. (e) Structure of the Invention The object of the present invention is to provide a means for generating a parity bit corresponding to each data received in accordance with a clock while taking into account the previous history in a data processing system consisting of a plurality of bits. The device is equipped with a means for storing a parity bit in a register, and stores the generated parity bit obtained by the parity generating means in the register upon the first data reception, and receives the nth data from the second time onwards. The n-th generated parity pin obtained by comparing the n-th stored parity bit stored in the register to generate the n-th accumulated parity bit, and replace it with the stored parity bit. This can be achieved by providing a parity generation method characterized in that the accumulated parity bits are updated and stored in the register, and the accumulated parity bits according to the n-th received data are always held in the register.

(f)  発明の実施例 以下図面を参照しつ一本発明の一実施例について説明す
る。
(f) Embodiment of the Invention An embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明の一実施例におけるパリティ生成方法の
ブロック図および第2図はそのタイムチャートを示す0
図において1はデータ出力部、2はパリティ生成部、1
1はデータ出力回路、12はデータ制御回路、21はパ
リティ生成回路、22はレジスタ、更にE−OR1〜、
は排他的論理和回路およびANDは論理和回路である0
各機能回路はクロックCLKに従って作動するが、デー
タ制御回路12はデータ送出開始信号STを1クロツク
だけ送出してデータ出力回路11より複数ビットよりな
るデータこ\では4ビツトよりなるデータ#0Dino
〜#3Din3をクロックのタイミング毎に送出する、
従ってパリティ生成回路21に入力されたD i n 
o〜3はE−OR,〜、により排他的論理和信号が得ら
れてその都度データパリティ信号DPGを出力する。一
方第1回目のテ′−タ入力ではレジスタ22は5TO)
0レベルによりデータビットだけでパリティビットが生
成され、その出力信号PGOとSTが入力されるAND
の出力バリティ制御信号PGCはOが送出されE−OR
,に入力されるのでこ−ではDPGおよびPGCが共に
OでE−OR,の出力集積パリティ信号PGに■に示す
θレベルとなる0このOレベルは次のクロックでレジス
タに■ としてセットされる。尚第2図のタイムチャー
トに示す斜線部分は”0”1”の不確定部分である。次
に第2回目の入力ではデータ入力によるDPGにこ5で
は1が出力される。一方STは1.PGOは先の■によ
る0が出力されPGCは01従ってPCは■の1となり
、こ\では■の1がレジスタ22に格納される0このよ
うにデータ入力が行われて、そのDPGとレジスタに格
納されている前回のPGおよびST(第2回目以降は1
)から得られるPGCをE−OR,により排反的論理和
をとり前回のPGに代えて格納しておく。このようにす
れば最終データの入力に伴うPGこ\では第4回目の■
はその次のクロックにより■ として格納される。以上
のようにデータ入力の都度PGを格納してレジスタ22
よりデータ送出開始から最終データ迄のデータ1群に対
するパリティを容易にPGOとして得られる。以上の説
明はデータ構成を4ビット且つ偶パリティとしたが1ワ
ードを任意のビット数として構成すると共に必要により
奇パリティも容易に笑顔出来ることはいう迄もない○ (g)  発明の詳細 な説明したように本発明によれば、従来のように1一群
のデータにおけるビット数に対応して大容量のレジスタ
を必要とすることなく、簡易な回路構成で且つ最終デー
タを受信した1クロツク後にはデータ1群のパリティビ
ットを生成する手段が得られるので有用である。
FIG. 1 is a block diagram of a parity generation method in an embodiment of the present invention, and FIG. 2 is a time chart thereof.
In the figure, 1 is a data output section, 2 is a parity generation section, 1
1 is a data output circuit, 12 is a data control circuit, 21 is a parity generation circuit, 22 is a register, and E-OR1~,
is an exclusive OR circuit and AND is an OR circuit 0
Each functional circuit operates according to the clock CLK, but the data control circuit 12 sends out the data transmission start signal ST for one clock, and the data output circuit 11 outputs data consisting of multiple bits, data #0 Dino consisting of 4 bits.
~#3 Send Din3 at every clock timing,
Therefore, D in input to the parity generation circuit 21
o to 3 obtain an exclusive OR signal by E-OR, and output a data parity signal DPG each time. On the other hand, at the first data input, register 22 is 5TO)
A parity bit is generated from only data bits due to the 0 level, and the output signals PGO and ST are input.
The output parity control signal PGC is O and E-OR.
, so that both DPG and PGC are O, and the output integrated parity signal PG of E-OR has the θ level shown in ■.0 This O level is set as ■ in the register at the next clock. . Note that the shaded area shown in the time chart in Figure 2 is an uncertain area of "0" and 1.Next, in the second input, 1 is output from the DPG 5 by data input.On the other hand, ST is 1 .PGO outputs 0 according to the previous ■, and PGC becomes 01. Therefore, PC becomes 1 of ■, and in this case, 1 of ■ is stored in the register 22. 0 Data is input in this way, and the DPG and register are The previous PG and ST stored in
) is exclusive-ORed using E-OR and stored in place of the previous PG. In this way, the fourth ■
is stored as ■ by the next clock. As described above, each time data is input, PG is stored in the register 22.
Therefore, parity for one group of data from the start of data transmission to the final data can be easily obtained as PGO. In the above explanation, the data structure is 4 bits and has even parity, but it goes without saying that one word can be structured as any number of bits, and odd parity can also be easily created if necessary. (g) Detailed Description of the Invention As described above, according to the present invention, there is no need for large-capacity registers corresponding to the number of bits in one group of data as in the conventional case, and the circuit structure is simple and one clock after receiving the final data. This is useful because it provides a means for generating parity bits for a group of data.

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

第1図は本発明の一実施例におけるパリティ生成方法の
ブロック図および第2図はそのタイムチャートである。 図において1はデータ出力部、2はパリティ生成部、2
1はパリティ生成回路および22はレジスタである。
FIG. 1 is a block diagram of a parity generation method according to an embodiment of the present invention, and FIG. 2 is a time chart thereof. In the figure, 1 is a data output section, 2 is a parity generation section, 2
1 is a parity generation circuit and 22 is a register.

Claims (1)

【特許請求の範囲】[Claims] 複数ビットよりなるデータの処理システムにおいて、ク
ロックに伴って受信するデータ毎に前歴を加味しつ\対
応するパリティビットを生成する手段および該パリティ
ビットをレジスタに格納する手段を備えてなり、第1回
目のデータ受信に伴いパリティ生成手段により得られた
生成パリティビットをレジスタに格納し、第2回目以降
は第n回目のデータを受信して得られた第n回目の生成
パリティビットとレジスタに格納したIE n −1回
迄の格納パリティビットを照合してIEn回目迄の集積
パリティビットを生成し、該格納パリティビットに代え
て集積パリティビットを前記レジスタに更新格納動作を
行い、常に第n回目迄の受信データによる集積パリティ
ビットをレジスタに保持することを特徴とするパリティ
生成方法0
A system for processing data consisting of a plurality of bits, comprising means for generating a parity bit corresponding to each data received in accordance with a clock while taking into account previous history, and means for storing the parity bit in a register; The generated parity bit obtained by the parity generation means upon the first data reception is stored in the register, and from the second time onward, the nth generated parity bit obtained by receiving the nth data is stored in the register. The stored parity bits up to the IEn time are collated to generate the accumulated parity bits up to the IEn time, and the accumulated parity bits are updated and stored in the register in place of the stored parity bits. Parity generation method 0 characterized by holding accumulated parity bits from received data up to now in a register
JP58061788A 1983-04-08 1983-04-08 Parity generating method Pending JPS59188753A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58061788A JPS59188753A (en) 1983-04-08 1983-04-08 Parity generating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58061788A JPS59188753A (en) 1983-04-08 1983-04-08 Parity generating method

Publications (1)

Publication Number Publication Date
JPS59188753A true JPS59188753A (en) 1984-10-26

Family

ID=13181181

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58061788A Pending JPS59188753A (en) 1983-04-08 1983-04-08 Parity generating method

Country Status (1)

Country Link
JP (1) JPS59188753A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01232441A (en) * 1988-03-11 1989-09-18 Fujitsu Ltd Parity counting circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01232441A (en) * 1988-03-11 1989-09-18 Fujitsu Ltd Parity counting circuit

Similar Documents

Publication Publication Date Title
US5079693A (en) Bidirectional FIFO buffer having reread and rewrite means
JPH0833842B2 (en) Logical operation device
JPS59188753A (en) Parity generating method
US4171765A (en) Error detection system
JP2580558B2 (en) Interface device
JP3013800B2 (en) Asynchronous FIFO circuit
JPH0721103A (en) Data transfer device
JP2595707B2 (en) Memory device
JP3254781B2 (en) Semiconductor device
JP2834948B2 (en) Data transfer method
JPS5922582Y2 (en) Transmission control circuit
JPS6080193A (en) Memory system
JP2591304B2 (en) Memory monitoring circuit
JPS6349816B2 (en)
JPS6324503Y2 (en)
JPS635778B2 (en)
JPS62226252A (en) Serial input and output circuit
JPH04248609A (en) Information processor, attachment connected to information processor and information processing system including information processor and attachment
JPS61240337A (en) Simulation method of logic circuit
JPH0638239B2 (en) Error correction mechanism
JPH0637627A (en) Counter reading system
JPS6353576B2 (en)
JPS6355653A (en) Data transfer device
JPS5557962A (en) Error detection system
JPS63220496A (en) Semiconductor memory device