JPS5856043A - Parity check system of byte mark - Google Patents

Parity check system of byte mark

Info

Publication number
JPS5856043A
JPS5856043A JP56155012A JP15501281A JPS5856043A JP S5856043 A JPS5856043 A JP S5856043A JP 56155012 A JP56155012 A JP 56155012A JP 15501281 A JP15501281 A JP 15501281A JP S5856043 A JPS5856043 A JP S5856043A
Authority
JP
Japan
Prior art keywords
parity
byte
inverted
mark
error
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.)
Granted
Application number
JP56155012A
Other languages
Japanese (ja)
Other versions
JPS6034135B2 (en
Inventor
Shinichi Kubo
慎一 久保
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 JP56155012A priority Critical patent/JPS6034135B2/en
Publication of JPS5856043A publication Critical patent/JPS5856043A/en
Publication of JPS6034135B2 publication Critical patent/JPS6034135B2/en
Expired 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

Abstract

PURPOSE:To reduce hardware by making a parity check only by the parity of all transmitted byte marks without providing parity bits per minute for every transferring. CONSTITUTION:A parity check circuit has a flip-flop FF, which is inverted on arrival of every write signal DBRWT from input and output equipment. Namely, this FF calculates the odd parity of all byte marks written in all byte mark registers. After tansfer from the input an output equipment ends or after all data buffer registers are full, transfer to a CPU starts. In this case, the FF is inverted by the output BMP of a parity generator when a readout signal EXTRD arrives from the CPU. Namely, the FF is inverted when the BMP is 1, and is not inverted when 0. When there is no parity error, the value of the FF after final transmission is 1 if the register is divided into even-numbered parts. For this purpose, the value of the FF is sent out as a byte mark error signal BME to judge an error.

Description

【発明の詳細な説明】 本発明は入出力装置からバイト単位で送られてくるデー
タを、入出力制御装置でバッファし、さらにnバイトバ
ウンダリにアラインして上位装置(チャネル又は処理装
置)に送出する場合に、有効バイト位置を示すためにデ
ータに付加されるバイトマークについてのパリティチェ
ックの方式に関する。
[Detailed Description of the Invention] The present invention buffers data sent in bytes from an input/output device in an input/output control device, aligns it to an n-byte boundary, and sends it to a higher-level device (channel or processing device). This invention relates to a parity check method for byte marks added to data to indicate valid byte positions when

一般にこのようなデータ転送に際、してはデータ及びバ
イトマーク′tnバイト分づつに分けて複数回転送する
が、従来はバイトマークの作成時に各回分のバイトマー
ク毎にパリティをジェネレートしてバッファしておき、
上位装置への送出に際してパリティチェックを行ない、
正常であればそのパリティをそのまま付加して送出−し
、エラーがあればその旨上位装置に報告している。従っ
てバイトマークレジスタにパリティビットの分が必要で
ありハード菫が増す欠点があった。
Generally, when transferring such data, data and byte marks are divided into ``tn bytes'' and transferred multiple times, but conventionally, when creating byte marks, parity is generated for each byte mark. Buffer it and
A parity check is performed when sending to the upper device,
If it is normal, the parity is added as is and sent out, and if there is an error, that fact is reported to the host device. Therefore, the byte mark register requires a parity bit, which has the disadvantage of increasing hard violet.

本発明はこのような従来の欠点を解消することt目的と
しており、各転送分銀のパリティピットは持たず、全送
出分についてのパリティのみでパリティチェックを行な
うものである。以下図面により説明する。
The purpose of the present invention is to eliminate such conventional drawbacks, and does not have parity pits for each transfer portion, but performs a parity check using only the parity for all sent portions. This will be explained below with reference to the drawings.

第1図は本発明の一実施例ブロック図でTo9、DBR
O〜3は夫々4バイトのデータ・バッファ・レジスタで
To5.入出力装置からは1ノくイト単位で書込まれる
。BMKO−3は4ビツトのノ(イト。
Figure 1 is a block diagram of an embodiment of the present invention.
O~3 are 4-byte data buffer registers each, and To5. Data is written from the input/output device in 1-note units. BMKO-3 is a 4-bit no(ite).

マーク・レジスタであり、各ビットは対応するDBR中
のバイトの有効性を示すもので、データバイトのDBR
への書込みの度に@1”が対応ビ、ト位置に立てられる
。DABは番ビットのアドレス・レジスタで入出力装置
からのデータ’i DBRのどの位置へ入れるかを指示
し、1バイト書込まれる毎にプラス1される。PC)は
パリティ発生器で、4ビツトのバイトマークに対するノ
々リテイを発生するもの、pcはハリティチェック回路
でその詳1111Fi後述する。
A mark register in which each bit indicates the validity of the byte in the corresponding DBR.
Every time data is written to, @1" is set at the corresponding bit position. DAB uses the number bit address register to instruct which position in DBR the data 'i' from the input/output device is to be stored, and writes 1 byte. It is incremented by 1 each time it is entered.PC) is a parity generator that generates a parity for a 4-bit byte mark, and pc is a harness check circuit which will be described in detail later.

上位装置(例えば0PU)との間は4パイトノ(り/ダ
リで転送が行なわれ、最大16/(イトが4回に分けて
転送される。DBRO−3及びBMKO〜3は夫々シフ
ト・レジスタ機能を有し、CPUへの転送時は各レジス
タ間で7フトしてDBR3及びBMK3より送出する。
Transfer between the host device (for example, 0PU) is performed in 4 bits, and a maximum of 16 bits is transferred in 4 times. DBRO-3 and BMKO~3 each have a shift register function. When transferring to the CPU, the data is transferred from the DBR3 and BMK3 after 7 steps between each register.

〕(イトマークBMKに対するパリティは発生器PGで
発生し、七〇A9ティビットBMP’j−付してOPH
に送出するO(淘初期値は@11である)。即ちこのI
FIFは。
] (The parity for the mark BMK is generated by the generator PG, and the parity for the mark BMK is
O (default value is @11). That is, this I
FIF is.

BMKO〜3に書込まれるバイトマーク全体の奇数パリ
ティを算出していることになる0ここで入出力装置から
の転送が終るか、DBRO〜3が一杯になると、CPU
への転送に移る。この場合opσからの読出し信号KX
TRDがあった時のパリティ発生器POの出力BMFI
Cより、yyYt反転する。
This means that the odd parity of the entire byte mark written to BMKO~3 is calculated.0 At this point, when the transfer from the input/output device ends or DBRO~3 becomes full, the CPU
Move on to transfer. In this case, the read signal KX from opσ
Output BMFI of parity generator PO when TRD is present
From C, yyYt is inverted.

即ちもしBMPが@II′ならFPを反転し、BMPが
@ □ ITなら反転しない。これを最大4回行なう訳
であるが、このこと繻上記バイトマーク全体のパリティ
に対して、各BMKO〜3の夫々のパリティを加えたも
のに相当する。よってもしパリティエラーが無い場合は
、最終回の送出後のFFの値は′″l”である筈である
(レジスタが4段で偶数分割のため)。よってOPUか
らの転送終了信号TRNDに同期してFFの値をバイト
マークエラー信号BMIIIとして送出すれば、cpt
r側でエラーの有無が判断できる。
That is, if BMP is @II', FP is inverted, and if BMP is @□IT, it is not inverted. This is performed a maximum of four times, which corresponds to the parity of the entire bite mark plus the parity of each of BMKO to 3. Therefore, if there is no parity error, the value of the FF after the final transmission should be ``1'' (because the register has 4 stages and is divided into even numbers). Therefore, if the value of FF is sent as the byte mark error signal BMIIII in synchronization with the transfer end signal TRND from the OPU, cpt
The presence or absence of an error can be determined on the r side.

以上の如く本発明ではBMKO〜3への書込み時にはバ
イトマーク全体のパリティ′t11に計数し、CPUへ
の送出に際して各番ビット毎のノ5リテイを発生し、そ
れ’QFFの値に加算することによってバイトマーク全
体に対すノくリテイチェックが行なえるため、バッファ
レジスタにノ(リテイ用のビ、トが不要であり、ハード
ウェアの削減が可能である。またcptrとの転送は1
6バイトが1つの単位になっているため、その中の4)
くイト単位にパリティを付してエラーチェックをしても
、データの再送等の処置は16ノ(イト単位で行なうの
が一般であり、エラーの検出も16)(イトの単位でで
きれば充分でj>夛、むしろその方が制御も簡単である
という効果もおるO
As described above, in the present invention, when writing to BMKO~3, the parity of the entire byte mark is counted as 't11, and when sending to the CPU, the parity of each bit is generated and added to the value of 'QFF. Since the integrity check can be performed on the entire byte mark, there is no need for bits for retention in the buffer register, and hardware can be reduced.Also, transfer with cptr requires only 1 bit.
Since 6 bytes is one unit, 4)
Even if error checking is performed by attaching parity to each byte, processing such as data retransmission is generally performed in bytes, and error detection is also 16 bytes (it is sufficient if it can be done in bytes). j>夛、In fact, it also has the effect of being easier to control.

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

第1図は本発明の一実施例ブロック図であり、第2図は
第1図における)くリテイ・チェック回路の詳細図であ
る0 図中、 DBRO−5#′iデータ1バツフア・レジス
/、BM![)〜3はバイトマーク・レジスタ、DAB
はアドレスレジスタ、PGはノ(リテイ発生器、PCは
パリティチェック回路であるO
FIG. 1 is a block diagram of one embodiment of the present invention, and FIG. 2 is a detailed diagram of the integrity check circuit shown in FIG. , BM! [) to 3 are byte mark registers, DAB
is the address register, PG is the parity generator, and PC is the parity check circuit.

Claims (1)

【特許請求の範囲】[Claims] 入出力装置からのデータを格納するバッファレジスタと
、そのバッファレジスタ中の有効バイト位置を示すバイ
トマークを格納するバイトマークレジスタとを有し、デ
ータ及びバイトマークtl[数回に分けて上位装置へ転
送する入出力制御装置において、送出すべきバイトマー
ク全体のパリティを算出する手段と、各回の送出分銀に
パリティを算出する手段とを設け、最終回の送出後に各
回の送出分銀のパリティと上記全体のパリティとからパ
リティ・エラーのチェックを行なうこと七特徴とするバ
イトマークのパリティチェック方式。
It has a buffer register that stores data from an input/output device and a byte mark register that stores a byte mark indicating the effective byte position in the buffer register. The input/output control device for transfer is provided with a means for calculating the parity of the entire byte mark to be sent and a means for calculating parity for each byte mark to be sent. A byte mark parity check method characterized by checking for parity errors based on the above-mentioned overall parity.
JP56155012A 1981-09-30 1981-09-30 Bite mark parity check method Expired JPS6034135B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56155012A JPS6034135B2 (en) 1981-09-30 1981-09-30 Bite mark parity check method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56155012A JPS6034135B2 (en) 1981-09-30 1981-09-30 Bite mark parity check method

Publications (2)

Publication Number Publication Date
JPS5856043A true JPS5856043A (en) 1983-04-02
JPS6034135B2 JPS6034135B2 (en) 1985-08-07

Family

ID=15596748

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56155012A Expired JPS6034135B2 (en) 1981-09-30 1981-09-30 Bite mark parity check method

Country Status (1)

Country Link
JP (1) JPS6034135B2 (en)

Also Published As

Publication number Publication date
JPS6034135B2 (en) 1985-08-07

Similar Documents

Publication Publication Date Title
JPS62233870A (en) Sequential communication controller
US7412546B2 (en) System method structure in network processor that indicates last data buffer of frame packet by last flag bit that is either in first or second position
US4761783A (en) Apparatus and method for reporting occurrences of errors in signals stored in a data processor
CA2014240C (en) Error correction control apparatus
JPS5856043A (en) Parity check system of byte mark
US5590279A (en) Memory data copying apparatus
JP2000155737A (en) Data packet receiving device
JPS55162162A (en) Diagnostic system for error detecting-correcting circuit
JPS5736355A (en) Disk controlling equipment
EP0482828A3 (en) Message-oriented bank controller interface
JP2885538B2 (en) Malfunction detection method and recovery method for fixed-length data transfer buffer
JP2644112B2 (en) FIFO test diagnostic circuit
JPH0348543B2 (en)
SU1026138A1 (en) Device for interfacing magnetic tape store to digital computer
KR840000977B1 (en) Floppy disc input-output arrangement
JPH0638239B2 (en) Error correction mechanism
JPS6220024A (en) Request signal generator for buffer register
JP2728410B2 (en) Frame synchronizer
JPS6323445A (en) Communication control equipment
JPH083078Y2 (en) AIS transmission circuit in digital multiplexer
JPS5936359B2 (en) data buffer device
GB1018762A (en) Data transfer system
JPS5452950A (en) Error detecting/correcting system
JPS62223861A (en) Inspection circuit for code conversion
JPS6148054A (en) Information processing device