JPH07141214A - Data transfer error detecting device - Google Patents

Data transfer error detecting device

Info

Publication number
JPH07141214A
JPH07141214A JP5290387A JP29038793A JPH07141214A JP H07141214 A JPH07141214 A JP H07141214A JP 5290387 A JP5290387 A JP 5290387A JP 29038793 A JP29038793 A JP 29038793A JP H07141214 A JPH07141214 A JP H07141214A
Authority
JP
Japan
Prior art keywords
data
parity
word
bit
error detection
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
JP5290387A
Other languages
Japanese (ja)
Inventor
Susumu Hirofuji
進 廣藤
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP5290387A priority Critical patent/JPH07141214A/en
Publication of JPH07141214A publication Critical patent/JPH07141214A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)

Abstract

PURPOSE:To detect even an error due to word missing without increasing the quantity of data transfer, etc., as to a data transfer error detecting device which detects transfer errors of data in a computer system. CONSTITUTION:For respective 1-word data which are sequentially latched at a sent data latch part 13 of a transmission part 1 and transferred to a reception part 12 through a data transfer bus 16a, even parity bits and odd parity bits are generated alternately by a parity generation circuit 14 and added through the inverting operation of a 1-bit counter 15 synchronized with a sent data latch signal (a), and for respective 1-word data which are sequentially transferred to and latched at a received data latch part 17 of the reception part 12, errors in even parity and odd parity are detected alternately and repeated through the inverting operation of a 1-bit counter 19 synchronized with a received data latch signal (b).

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、計算機システムにおい
て、データの転送誤りを検出するデータ転送誤り検出装
置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transfer error detecting device for detecting a data transfer error in a computer system.

【0002】[0002]

【従来の技術】従来の計算機システムにおいて、複数並
列ビットからなるデータの転送を行なうのに、その転送
誤りを検出する一つの手段として、パリティチェックが
実施されている。
2. Description of the Related Art In a conventional computer system, a parity check is carried out as one means for detecting a transfer error when transferring data consisting of a plurality of parallel bits.

【0003】すなわち、例えば“0101”なる4ビッ
トデータを1ワードとして転送するのに、“1”の総数
を偶数個として規定する偶数パリティとするか、奇数個
として規定する奇数パリティとするかに応じて、その5
ビット目に“0”又は“1”をパリティビットとして付
加し、データ転送を行なうもので、前者、偶数パリティ
として規定された場合には、データ送信側において、そ
の個々のワードに偶数パリティが付加されるので、受信
側において、各ワードに含まれる“1”の総数が偶数個
か否かを判断することで、データの転送エラーを検出す
ることができる。
That is, for example, to transfer 4-bit data "0101" as one word, whether the total number of "1" s is even parity which is defined as an even number or odd parity which is defined as an odd number. Depending on that 5
"0" or "1" is added as a parity bit at the bit position to perform data transfer. When the former, even parity is specified, even parity is added to each word on the data transmission side. Therefore, the receiving side can detect a data transfer error by determining whether or not the total number of “1” s included in each word is an even number.

【0004】また、後者、奇数パリティとして規定され
た場合には、データ送信側において、その個々のワード
に奇数パリティが付加されるので、受信側において、各
ワードに含まれる“1”の総数が奇数個か否かを判断す
ることで、上記偶数パリティの場合同様にしてデータの
転送エラーを検出することができる。
When the latter is defined as odd parity, odd parity is added to each individual word on the data transmitting side, so that the total number of "1" contained in each word is on the receiving side. By determining whether the number is an odd number, the data transfer error can be detected in the same manner as in the case of the even parity.

【0005】つまり、例えば偶数パリティとして規定さ
れ、“0101”なるワードにパリティビット“0”が
付加されて“01010”として転送された場合に、転
送途中の障害によりその転送データのあるビットに誤り
が生じ、“01000”なるワードが受信されると、こ
の受信ワードに含まれる“1”の総数が偶数でなく奇数
に変化してることで、転送エラーとして検出されること
になる。
That is, for example, when the parity bit "0" is added to the word "0101" defined as even parity and transferred as "01010", an error occurs in a bit in the transfer data due to a failure during the transfer. When a word "01000" is received, the total number of "1" s included in the received word changes to an odd number instead of an even number, which is detected as a transfer error.

【0006】しかしながら、上記従来のパリティチェッ
クによるデータ転送の誤り検出手段では、各転送ワード
のそれぞれにおける1ビット誤りに対してのみエラー検
出を行なうものであるため、例えば順次転送されてくる
複数ワードのうちの1ワードがそっくり抜けてしまうワ
ード抜けが生じた場合には、転送エラーとして検出する
ことができない不具合がある。
However, since the above-mentioned conventional error detection means for data transfer by parity check detects an error only for a 1-bit error in each transfer word, for example, a plurality of sequentially transferred words are detected. If one word out of all is missing, there is a problem that it cannot be detected as a transfer error.

【0007】そこで、従来、転送データのワード抜けを
エラーとして検出することのできる誤り検出手段とし
て、チェックサムあるいはCR集合,EC集合による符
号理論等に基づき上記パリティ以外のチェックデータを
付加することが実施されている。
Therefore, conventionally, as error detecting means capable of detecting missing words in transfer data as an error, check data other than the above parity may be added based on a code theory based on a checksum or a CR set or an EC set. It has been implemented.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、上記転
送データの各ワードにおける1ビット誤りによるエラー
検出に加え、ワード抜けによるエラー検出をも行なうの
に、上記パリティビット以外のチェックデータをさらに
付加したのでは、データ転送量の増加を招くと共に、ソ
フトウエアによる処理機能も大幅に増加し、データ転送
の高速化を妨げる問題がある。
However, in addition to error detection due to a 1-bit error in each word of the transfer data, error detection due to word loss is also performed, and check data other than the parity bit is added. However, there is a problem that the data transfer amount is increased and the processing function by the software is significantly increased, which hinders the speeding up of the data transfer.

【0009】本発明は上記課題に鑑みなされたもので、
データ転送量の増加等を招くことなく、ワード抜けによ
るエラー検出をも行なうことが可能になるデータ転送誤
り検出装置を提供することを目的とする。
The present invention has been made in view of the above problems,
It is an object of the present invention to provide a data transfer error detection device that can also detect an error due to a missing word without causing an increase in the amount of data transfer.

【0010】[0010]

【課題を解決するための手段】すなわち、本発明に係わ
る第1のデータ転送誤り検出装置は、複数並列ビットか
らなる1ワードデータを順次転送するデータ転送システ
ムで、被転送1ワードデータ毎に偶数又は奇数パリティ
ビットを付加してデータ転送の1単位とするもので、デ
ータ送信側において、順次送出される1ワードデータ毎
に偶数パリティビットと奇数パリティビットとを交互に
繰返し生成付加するパリティ生成手段と、データ受信側
において、順次転送されてくる1ワードデータ毎に偶数
パリティのエラー検出と奇数パリティのエラー検出とを
交互に繰返し実施するパリティ検出手段と、上記パリテ
ィ生成手段による初期の生成パリティと上記パリティ検
出手段による初期の検出パリティとを偶数パリティ又は
奇数パリティの何れか一方に統一させる初期パリティ設
定手段とを備えて構成したものである。
That is, a first data transfer error detecting apparatus according to the present invention is a data transfer system for sequentially transferring 1-word data consisting of a plurality of parallel bits, and an even number for each transferred 1-word data. Alternatively, an odd number parity bit is added to form one unit of data transfer, and a parity generating unit for repeatedly generating and adding an even number parity bit and an odd number parity bit alternately for each sequentially transmitted one word data at the data transmission side. On the data receiving side, parity detection means for alternately and repeatedly performing error detection of even parity and error detection of odd parity for each word data sequentially transferred, and an initial generated parity by the parity generation means. The parity detected by the above-mentioned parity detection means is defined as the even parity or the odd parity. It is constructed by a initial parity setting means for unified or one.

【0011】また、本発明に係わる第2のデータ転送誤
り検出装置は、複数並列ビットからなる1ワードデータ
を偶数の複数ワードに変換して並列転送するデータ転送
システムで、1ワードデータ毎に偶数又は奇数パリティ
ビットを付加して複数ワードの1単位とするもので、デ
ータ供給元において、順次供給される1ワードデータ毎
に偶数パリティビットと奇数パリティビットとを交互に
繰返し生成付加するパリティ生成手段と、このパリティ
生成手段により偶数パリティビット及び奇数パリティビ
ットの順次付加された各1ワードデータを、偶数の複数
ワード分順次ラッチして並列変換するデータ変換手段
と、このデータ変換手段において上記データ供給元から
の各1ワードデータがラッチされる毎に、偶数パリティ
のエラー検出と奇数パリティのエラー検出とを交互に切
換え実施するパリティ切換え検出手段と、上記パリティ
生成手段による初期の生成パリティと上記パリティ切換
え検出手段による切換え初期の検出パリティとを偶数パ
リティ又は奇数パリティの何れか一方に統一させる初期
パリティ設定手段とを備えて構成したものである。
The second data transfer error detecting apparatus according to the present invention is a data transfer system for converting one word data consisting of a plurality of parallel bits into an even number of words and transferring them in parallel, and an even number for each word data. Alternatively, an odd parity bit is added to form one unit of a plurality of words, and a parity generating means for alternately generating and adding an even parity bit and an odd parity bit for each sequentially supplied word data at a data supply source. And data conversion means for sequentially latching each one-word data to which the even parity bit and the odd parity bit are sequentially added by the parity generation means for a plurality of even-numbered words and performing parallel conversion, and the data supply means in the data conversion means. Every time 1 word data from the original is latched, even parity error detection and odd parity The parity switching detecting means for alternately switching the error detection of the priority and the parity generated by the parity generating means and the parity detected at the initial switching by the parity switching detecting means are set to either even parity or odd parity. It is configured by including an initial parity setting unit for unifying.

【0012】また、本発明に係わる第3のデータ転送誤
り検出装置は、複数並列ビットからなる1ワードデータ
の複数ワードを1単位として転送するデータ転送システ
ムにあって、データ送信側に備えられ、1単位として転
送するワード数nに対応したカウントビット数nを有し
上記複数ワードの送出転送毎にカウント値の更新される
nビットカウンタと、データ送信側において、順次送出
される複数ワード中の各1ワードデータに対し上記nビ
ットカウンタの各ビットカウント値に応じて偶数パリテ
ィビットあるいは奇数パリティビットを生成付加するパ
リティ生成手段と、データ受信側において、順次転送さ
れてくる複数ワード中の各1ワードデータに対し、上記
nビットカウンタにおけるデータ送出時と同様の各ビッ
トカウント値に応じて偶数パリティのエラー検出あるい
は奇数パリティのエラー検出を実施するパリティ検出手
段とを備えて構成したものである。
A third data transfer error detecting device according to the present invention is a data transfer system for transferring a plurality of words of one word data consisting of a plurality of parallel bits as one unit, and is provided on a data transmitting side, An n-bit counter having a count bit number n corresponding to the number n of words to be transferred as one unit and having a count value updated each time a plurality of words are transmitted and transferred. Parity generating means for generating and adding an even parity bit or an odd parity bit according to each bit count value of the n-bit counter for each 1-word data, and 1 for each of a plurality of words sequentially transferred at the data receiving side. Corresponding to the word data, each bit count value similar to that at the time of data transmission in the n-bit counter Te is constructed by a parity check means for performing error detection or error detection odd parity even parity.

【0013】また、本発明に係わる第4のデータ転送誤
り検出装置は、複数並列ビットからなる1ワードデータ
を順次転送するデータ転送システムで、被転送1ワード
データ毎に偶数又は奇数パリティビットを付加してデー
タ転送の1単位とするもので、データ送信側において、
順次送出される1ワードデータ毎に偶数パリティビット
と奇数パリティビットとを予め設定された順序に従って
切換え生成付加するパリティ生成手段と、データ受信側
において、順次転送されてくる1ワードデータ毎に偶数
パリティのエラー検出と奇数パリティのエラー検出とを
上記パリティ生成手段の場合同様に予め設定された順序
に従って切換え実施するパリティ検出手段とを備えて構
成したものである。
A fourth data transfer error detecting apparatus according to the present invention is a data transfer system for sequentially transferring 1-word data consisting of a plurality of parallel bits, and an even or odd parity bit is added to each transferred 1-word data. Then, it is used as one unit of data transfer.
Parity generating means for switching and adding even parity bits and odd parity bits in accordance with a preset order for each sequentially transmitted word data, and even parity for each sequentially transmitted word data at the data receiving side. In the same manner as in the case of the above-mentioned parity generation means, the parity detection means for switching the error detection and the odd-numbered parity error detection are executed in accordance with a preset order.

【0014】[0014]

【作用】つまり、上記第1のデータ転送誤り検出装置で
は、パリティビットの付加のみで各1ワードデータに対
する1ビット誤りが生じた場合のエラー検出及びワード
抜けが生じた場合のエラー検出が行なえることになる。
In other words, the first data transfer error detection device can detect an error when a 1-bit error occurs in each 1-word data and an error detection when a word omission occurs only by adding a parity bit. It will be.

【0015】また、上記第2のデータ転送誤り検出装置
では、1ワードデータを偶数の複数ワードデータに並列
変換して転送する際に、パリティビットの付加のみで各
1ワードデータに対する1ビット誤りが生じた場合のエ
ラー検出及びワード抜けが生じた場合のエラー検出が行
なえることになる。
Further, in the second data transfer error detecting apparatus, when one word data is converted in parallel into a plurality of even-numbered word data and transferred, a 1-bit error for each 1-word data is generated only by adding a parity bit. It is possible to detect an error when it occurs and an error when a word omission occurs.

【0016】また、上記第3のデータ転送誤り検出装置
では、パリティビットの付加のみで同時転送複数ワード
中の各1ワードデータに対する1ビット誤りが生じた場
合のエラー検出及び(n−1)ワードまでのワード抜け
が生じた場合のエラー検出が行なえることになる。
Further, in the third data transfer error detecting apparatus, error detection and (n-1) word when a 1-bit error occurs for each 1-word data in a plurality of words simultaneously transferred by only adding a parity bit It is possible to detect an error when a word loss up to 1 occurs.

【0017】また、上記第4のデータ転送誤り検出装置
では、非定期的に切換えられる偶数あるいは奇数パリテ
ィビットの付加のみで各1ワードデータに対する1ビッ
ト誤りが生じた場合のエラー検出及びワード抜けが生じ
た場合のエラー検出が行なえ、また、データの送信側と
受信側以外では、データの正しい内容を得ることができ
ないという秘匿性を備えた転送を行なうことができるこ
とになる。
Further, in the fourth data transfer error detecting device, error detection and word omission are generated when a 1-bit error occurs for each 1-word data only by adding an even or odd parity bit which is switched aperiodically. When the error occurs, the error can be detected, and it is possible to perform the transfer with the confidentiality that the correct contents of the data cannot be obtained except the data transmitting side and the data receiving side.

【0018】[0018]

【実施例】以下図面により本発明の一実施例について説
明する。図1は第1のデータ転送誤り検出装置の構成を
示すブロック図である。この第1のデータ転送誤り検出
装置は、例えば4ビットデータを1ワードとして送信部
11から受信部12へ順次データ転送する計算機システ
ムに搭載されたもので、送信部11には、送信データラ
ッチ部13,パリティ生成回路14,1ビットカウンタ
15が備えられる。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of the first data transfer error detection device. The first data transfer error detection device is installed in a computer system that sequentially transfers 4-bit data as one word from the transmission unit 11 to the reception unit 12, and the transmission unit 11 includes a transmission data latch unit. 13, a parity generation circuit 14, and a 1-bit counter 15 are provided.

【0019】上記送信データラッチ部13は、データバ
ス16を介して与えられる4ビットデータを、所定周期
の送信データラッチ信号aに同期して1ワードの被送信
データとしてラッチするもので、この送信データラッチ
部13にてラッチされる1ワードデータは、上記データ
バス16を介して上記パリティ生成回路14に対しても
並列に与えられる。
The transmission data latch unit 13 latches 4-bit data supplied via the data bus 16 as 1-word transmitted data in synchronization with the transmission data latch signal a having a predetermined cycle. The 1-word data latched by the data latch unit 13 is also given in parallel to the parity generation circuit 14 via the data bus 16.

【0020】上記パリティ生成回路14は、データバス
16を介して与えられる1ワードデータに対するパリテ
ィビットを生成するもので、このパリティ生成回路14
では、上記送信データラッチ信号aに同期して1ビット
カウンタ15から繰返し出力される“1”“0”信号に
応じて、偶数パリティの生成と奇数パリティの生成とが
交互に切換えられる。
The parity generation circuit 14 generates a parity bit for 1-word data supplied via the data bus 16. This parity generation circuit 14
Then, in accordance with the "1" or "0" signal repeatedly output from the 1-bit counter 15 in synchronization with the transmission data latch signal a, the even parity generation and the odd parity generation are alternately switched.

【0021】そして、上記送信データラッチ部13にラ
ッチされた1ワードデータは、次の送信データラッチ信
号aに応じて新たな1ワードデータがラッチされるのと
共にデータ転送バス16aに送出され、上記パリティ生
成回路14により生成された偶数又は奇数パリティビッ
トが付加されて受信部12へ転送される。
The 1-word data latched by the transmission data latch unit 13 is sent to the data transfer bus 16a while new 1-word data is latched according to the next transmission data latch signal a, and The even or odd parity bit generated by the parity generation circuit 14 is added and transferred to the reception unit 12.

【0022】つまり、上記送信部11においては、デー
タバス16を介して送信データラッチ部13にラッチさ
れる各1ワードデータに対して、偶数パリティと奇数パ
リティとがパリティ生成回路14にて順次交互に生成さ
れて付加転送されるもので、上記データ転送バス16a
に送出された1ワードデータは受信部12に転送され
る。
That is, in the transmission section 11, for each 1-word data latched in the transmission data latch section 13 via the data bus 16, even parity and odd parity are sequentially alternated in the parity generation circuit 14. The data transfer bus 16a
The 1-word data sent to the receiver is transferred to the receiver 12.

【0023】ここで、上記パリティ生成回路14におけ
る初期のパリティビット生成処理は、例えば偶数パリテ
ィとして予め設定される。上記受信部12には、受信デ
ータラッチ部17,パリティチェック回路18,1ビッ
トカウンタ19が備えられる。
Here, the initial parity bit generation processing in the parity generation circuit 14 is preset as, for example, even parity. The reception unit 12 includes a reception data latch unit 17, a parity check circuit 18, and a 1-bit counter 19.

【0024】上記受信データラッチ部17は、上記送信
部11から上記データ転送バス16aを介して転送され
てくるパリティビットの付加された1ワードデータのう
ちの4ビットデータ(データ部分)のみを所定周期の受
信データラッチ信号bに同期してラッチするもので、上
記データ転送バス16aを介して転送されてくる1ワー
ドデータは、そのパリティビットと共に上記パリティチ
ェック回路18に対しても並列に与えられる。
The received data latch unit 17 determines only 4-bit data (data portion) of 1-word data to which a parity bit is added, which is transferred from the transmission unit 11 via the data transfer bus 16a. The data is latched in synchronization with the received data latch signal b of the cycle, and one word data transferred via the data transfer bus 16a is also provided in parallel to the parity check circuit 18 together with its parity bit. .

【0025】上記パリティチェック回路18は、データ
転送バス16aを介して与えられた1ワードデータに対
するパリティエラーの検出を行なうもので、このパリテ
ィチェック回路18では、上記受信データラッチ信号b
に同期して1ビットカウンタ19から繰返し出力される
“1”“0”信号に応じて、偶数パリティのエラー検出
と奇数パリティのエラー検出とが交互に切換えられる。
The parity check circuit 18 detects a parity error with respect to 1-word data given via the data transfer bus 16a. In the parity check circuit 18, the received data latch signal b is received.
The error detection of even parity and the error detection of odd parity are alternately switched in response to the "1" and "0" signals repeatedly output from the 1-bit counter 19 in synchronization with.

【0026】そして、上記受信データラッチ部17にラ
ッチされた1ワードデータは、次の受信データラッチ信
号bに応じて送信部11からの新たな1ワードデータが
ラッチされるのと共にデータバス16bに送出される。
The 1-word data latched in the reception data latch unit 17 is latched with new 1-word data from the transmission unit 11 in response to the next reception data latch signal b, and also the data bus 16b. Sent out.

【0027】一方、上記受信データラッチ部17からデ
ータバス16bに送出された1ワードデータに対し、上
記パリティチェック回路18にて、パリティエラーが検
出されていた場合には、そのエラー検出信号も共にデー
タバス16bに送出される。
On the other hand, when a parity error is detected in the parity check circuit 18 with respect to 1-word data sent from the reception data latch section 17 to the data bus 16b, the error detection signal is also sent. It is sent to the data bus 16b.

【0028】つまり、上記受信部12においては、デー
タ転送バス16aを介して転送受信される各1ワードデ
ータに対して、偶数パリティと奇数パリティとのエラー
検出をパリティチェック回路18にて順次交互に実施す
るもので、このパリティチェック回路18からのエラー
検出信号は、受信データラッチ部17にラッチされたパ
リティエラーの生じた1ワードデータと共にデータ転送
バス16bに送出される。
That is, in the receiving section 12, the parity check circuit 18 sequentially and alternately detects the error detection of the even parity and the odd parity for each 1-word data transferred and received via the data transfer bus 16a. The error detection signal from the parity check circuit 18 is sent to the data transfer bus 16b together with the 1-word data in which the parity error latched in the reception data latch unit 17 has occurred.

【0029】ここで、上記パリティチェック回路18に
おける初期のパリティエラー検出処理は、上記送信部1
1におけるパリティ生成回路14での初期のパリティビ
ット生成処理と対応させて、例えば偶数パリティのエラ
ー検出として予め設定される。
The initial parity error detection processing in the parity check circuit 18 is performed by the transmitter 1
Corresponding to the initial parity bit generation processing in the parity generation circuit 14 in No. 1, it is preset as error detection of even parity, for example.

【0030】すなわち、上記構成による第1のデータ転
送誤り検出装置において、送信部11のデータバス16
を介して与えられた、初期の1ワードデータ“010
1”が、送信データラッチ信号aに同期して送信データ
ラッチ部13にラッチされると共に、パリティ生成回路
14に与えられると、該パリティ生成回路14では、ま
ず、上記被送信1ワードデータ“0101”に対応する
偶数パリティビット“0”が生成される。
That is, in the first data transfer error detecting device having the above structure, the data bus 16 of the transmitting unit 11 is used.
1 word data “010
1 ”is latched by the transmission data latch unit 13 in synchronization with the transmission data latch signal a and is given to the parity generation circuit 14, the parity generation circuit 14 firstly transmits the transmitted 1-word data“ 0101 ”. An even parity bit "0" corresponding to "" is generated.

【0031】すると、上記送信データラッチ部13にラ
ッチされた1ワードデータ“0101”に対し、上記パ
リティ生成回路14により生成された偶数パリティビッ
ト“0”が付加され、データ転送バス16aを介して受
信部12へ転送される。
Then, the even parity bit "0" generated by the parity generation circuit 14 is added to the 1-word data "0101" latched by the transmission data latch unit 13, and the data is transferred via the data transfer bus 16a. It is transferred to the receiving unit 12.

【0032】また、上記初期の被送信1ワードデータに
続いて、例えば2個目の被送信1ワードデータ“111
1”が、2つ目の送信データラッチ信号aに同期して送
信データラッチ部13にラッチされると共に、パリティ
生成回路14に与えられると、該パリティ生成回路14
では、1ビットカウンタ15の反転に応じて上記被送信
1ワードデータ“1111”に対応する奇数パリティビ
ット“1”が生成される。
After the initial transmitted 1-word data, for example, the second transmitted 1-word data "111" is transmitted.
When 1 ″ is latched by the transmission data latch unit 13 in synchronization with the second transmission data latch signal a and is given to the parity generation circuit 14, the parity generation circuit 14
Then, according to the inversion of the 1-bit counter 15, the odd parity bit "1" corresponding to the transmitted 1-word data "1111" is generated.

【0033】すると、上記送信データラッチ部13にラ
ッチされた1ワードデータ“1111”に対し、上記パ
リティ生成回路14により生成された奇数パリティビッ
ト“1”が付加され、データ転送バス16aを介して受
信部12へ転送される。
Then, the odd-numbered parity bit "1" generated by the parity generation circuit 14 is added to the 1-word data "1111" latched by the transmission data latch unit 13, and the data is transferred via the data transfer bus 16a. It is transferred to the receiving unit 12.

【0034】この後、さらに、上記送信部11におい
て、3個目の被送信1ワードデータ“1100”、4個
目の被送信1ワードデータ“0011”と、順次送信デ
ータラッチ部13にラッチされると、その都度、1ビッ
トカウンタ15の反転に応じて、3個目の被送信1ワー
ドデータ“1100”に対しては偶数パリティビット
“0”、4個目の被送信1ワードデータ“0011”に
対しては奇数パリティビット“1”と、パリティ生成回
路14にて偶/奇交互に生成されて付加され、順次受信
部12へ転送される。
Thereafter, in the transmitting section 11, the third transmitted 1-word data “1100” and the fourth transmitted 1-word data “0011” are sequentially latched by the transmission data latch section 13. Then, each time, in response to the inversion of the 1-bit counter 15, for the third transmitted 1-word data “1100”, the even parity bit “0” and the fourth transmitted 1-word data “0011”. The odd-numbered parity bit “1” and the odd-numbered parity bit “1” are generated in the parity generation circuit 14 alternately and oddly and added, and are sequentially transferred to the reception unit 12.

【0035】こうして、上記送信部11から偶数パリテ
ィビット,奇数パリティビットの交互に付加された1ワ
ードデータ“0101(0)”“1111(1)”“1
100(0)”“0011(1)”…が、データ転送バ
ス16aを介して転送され、受信部12における受信デ
ータラッチ部17に対しその受信データラッチ信号bに
同期して順次ラッチされると、その都度、パリティチェ
ック回路18では、1ビットカウンタ19の反転に応じ
て、偶数パリティのエラー検出処理と奇数パリティのエ
ラー検出処理とが交互に繰返される。
In this way, 1-word data "0101 (0)""1111(1)""1" in which even parity bits and odd parity bits are alternately added from the transmitting unit 11 is obtained.
When 100 (0) ”,“ 0011 (1) ”... Are transferred via the data transfer bus 16a and sequentially latched by the reception data latch unit 17 in the reception unit 12 in synchronization with the reception data latch signal b. In each case, the parity check circuit 18 alternately repeats the even-parity error detection process and the odd-parity error detection process in response to the inversion of the 1-bit counter 19.

【0036】ここで、上記送信部11において奇数パリ
ティビットが付加されて送出された2個目の1ワードデ
ータ“1111(1)”に、例えばデータ転送バス16
a上での障害により“1011(1)”と変化する誤り
が生じ、受信部12に転送された場合には、パリティチ
ェック回路18における奇数パリティのエラー検出処理
によりパリティエラーが検出される。
Here, for example, the data transfer bus 16 is added to the second 1-word data “1111 (1)” sent with the odd parity bit added in the transmitting section 11.
When an error that changes to “1011 (1)” occurs due to a failure on a and is transferred to the receiving unit 12, a parity error is detected by the odd parity error detection processing in the parity check circuit 18.

【0037】すると、受信データラッチ部17からデー
タバス16bに送出される誤りの生じた1ワードデータ
“1011”には、上記パリティチェック回路18から
エラー検出信号が付加されてエラー通知される。
Then, an error detection signal is added from the parity check circuit 18 to the 1-word data "1011" in which an error has occurred, which is sent from the reception data latch unit 17 to the data bus 16b, and an error is notified.

【0038】つまり、被送信1ワードデータに対する1
ビット誤りによるエラー検出が成されるようになる。一
方、上記送信部11において奇数パリティビットが付加
されて送出された2個目の1ワードデータ“1111
(1)”が、例えばデータ転送バス16a上での障害に
より抜けてしまい、受信部12には、該奇数パリティビ
ットの付加された2個目の1ワードデータを抜かして偶
数パリティビットの付加された3個目の1ワードデータ
“1100(0)”が転送された場合には、パリティチ
ェック回路18における奇数パリティのエラー検出処理
によりパリティエラーが検出される。
That is, 1 for 1 word data to be transmitted.
The error detection by the bit error comes to be performed. On the other hand, the second 1-word data “1111” added with the odd parity bit and transmitted by the transmitting unit 11 is transmitted.
(1) ”is omitted due to, for example, a failure on the data transfer bus 16a, and the receiving unit 12 omits the second 1-word data to which the odd parity bit is added and adds the even parity bit. When the third 1-word data “1100 (0)” is transferred, a parity error is detected by the odd parity error detection process in the parity check circuit 18.

【0039】すると、受信データラッチ部17からデー
タバス16bに対し、2個目に転送された1ワードデー
タとして送出される実際には3個目の1ワードデータ
“1100”には、上記パリティチェック回路18から
エラー検出信号が付加されてエラー通知される。
Then, the parity check is performed on the third 1-word data "1100" actually sent out from the reception data latch unit 17 to the data bus 16b as the 1-word data transferred second. An error detection signal is added from the circuit 18 to notify the error.

【0040】つまり、複数ワードのデータ転送を行なう
場合の1ワード抜けによるエラー検出が成されるように
なる。したがって、上記構成の第1のデータ転送誤り検
出装置によれば、送信部11の送信データラッチ部13
にて順次ラッチされてデータ転送バス16aを介し受信
部12へ転送される各1ワードデータのそれぞれに対
し、送信データラッチ信号aに同期した1ビットカウン
タ15の反転動作に応じて、偶数パリティビットと奇数
パリティビットとをパリティ生成回路14にて交互に生
成して付加し、受信部12の受信データラッチ部17に
順次転送ラッチされる各1ワードデータに対しては、受
信データラッチ信号bに同期した1ビットカウンタ19
の反転動作に応じて、偶数パリティのエラー検出と奇数
パリティのエラー検出とを交互に繰返し実行するので、
データ量としては単にパリティビットが付加されるのみ
で、各1ワードデータに対する1ビット誤りが生じた場
合のエラー検出が行なえるだけでなく、ワード抜けが生
じた場合のエラー検出をも行なうことができる。
In other words, when data transfer of a plurality of words is performed, an error is detected by missing one word. Therefore, according to the first data transfer error detection device having the above configuration, the transmission data latch unit 13 of the transmission unit 11 is
In accordance with the inversion operation of the 1-bit counter 15 synchronized with the transmission data latch signal a, each of the 1-word data sequentially latched by the And odd parity bits are alternately generated by the parity generation circuit 14 and added, and for each 1-word data sequentially transferred and latched by the reception data latch unit 17 of the reception unit 12, the reception data latch signal b is added. Synchronized 1-bit counter 19
Depending on the inversion operation of, the even parity error detection and the odd parity error detection are repeatedly executed alternately.
As a data amount, a parity bit is simply added, so that not only can an error be detected when a 1-bit error occurs in each 1-word data, but also an error can be detected when a missing word occurs. it can.

【0041】この場合、データ転送量の増加が抑制され
るだけでなく、簡単なハードウエアにより構成できるの
で、データ転送処理の高速化を妨げずに、データ転送誤
り検出の機能向上を図ることができる。
In this case, not only the increase in the data transfer amount is suppressed, but also the hardware can be configured, so that the function of the data transfer error detection can be improved without impeding the speeding up of the data transfer process. it can.

【0042】図2は第2のデータ転送誤り検出装置の構
成を示すブロック図である。この第2のデータ転送誤り
検出装置は、例えば4ビットの1ワードデータを4倍の
データ幅(16ビット)に変換してデータ転送する計算
機システムに搭載されたもので、データ供給部21に
は、前記第1のデータ転送誤り検出装置における送信部
11と同様にして送信データラッチ部13,パリティ生
成回路14,1ビットカウンタ15が備えられる。
FIG. 2 is a block diagram showing the configuration of the second data transfer error detection device. The second data transfer error detection device is installed in a computer system that converts, for example, 4-bit 1-word data into a data width of 4 times (16 bits) and transfers the data. A transmission data latch unit 13, a parity generation circuit 14, and a 1-bit counter 15 are provided in the same manner as the transmission unit 11 in the first data transfer error detection device.

【0043】つまり、上記データ供給部21において
は、データバス16を介して送信データラッチ部13に
ラッチされる各1ワードデータに対して、偶数パリティ
と奇数パリティとがパリティ生成回路14にて順次交互
に生成されて付加送出されるもので、このパリティビッ
トが付加された1ワードデータはデータ幅変換部22に
送られる。
That is, in the data supply section 21, for each 1-word data latched by the transmission data latch section 13 via the data bus 16, even parity and odd parity are sequentially generated in the parity generation circuit 14. The 1-word data to which the parity bits are added is sent to the data width conversion unit 22.

【0044】ここで、上記パリティ生成回路14におけ
る初期のパリティビット生成処理は、例えば偶数パリテ
ィとして予め設定される。上記データ幅変換部22に
は、2台のデータラッチ/偶数パリティチェック回路2
3a,23bと、2台のデータラッチ/奇数パリティチ
ェック回路24a,24bとが、偶数/奇数/偶数/奇
数の順で交互に並列配置される。
Here, the initial parity bit generation processing in the parity generation circuit 14 is preset as, for example, even parity. The data width converter 22 includes two data latch / even parity check circuits 2
3a and 23b and two data latch / odd parity check circuits 24a and 24b are alternately arranged in parallel in the order of even / odd / even / odd.

【0045】上記各データラッチ/パリティチェック回
路23a,24a,23b,24bは、データ供給部2
1から送られてくる各1ワードデータを順次ラッチする
と共に、ラッチした1ワードデータに対し偶数又は奇数
の各対応するパリティエラー検出処理を行なうもので、
これら4台のデータラッチ/パリティチェック回路23
a,24a,23b,24bは、上記データ供給部21
における送信データラッチ信号aに同期したラッチ切換
え回路25からの切換え信号cに応じて順次選択的に切
換えられる。
The data latch / parity check circuits 23a, 24a, 23b and 24b are provided in the data supply unit 2.
Each 1-word data sent from 1 is sequentially latched, and even-numbered or odd-numbered corresponding parity error detection processing is performed on the latched 1-word data.
These four data latch / parity check circuits 23
a, 24a, 23b, 24b are the data supply unit 21
In response to the switching signal c from the latch switching circuit 25 in synchronization with the transmission data latch signal a, the switching signal is sequentially and selectively switched.

【0046】つまり、データ供給部21から偶数パリテ
ィビット及び奇数パリティビットが順次交互に付加され
て送出された1ワードデータは、データラッチ/偶数パ
リティチェック回路23a→データラッチ/奇数パリテ
ィチェック回路24a→データラッチ/偶数パリティチ
ェック回路23b→データラッチ/奇数パリティチェッ
ク回路24bの順で順次ラッチされ、そのそれぞれにお
いてパリティエラーの検出処理がなされた後、16ビッ
トの4ワードデータとしてデータ転送バス16aに送出
される。
That is, the 1-word data sent from the data supply unit 21 with the even parity bits and the odd parity bits sequentially added alternately are data latch / even parity check circuit 23a → data latch / odd parity check circuit 24a → The data latch / even parity check circuit 23b is sequentially latched in the order of the data latch / odd parity check circuit 24b, and after a parity error detection process is performed in each of them, it is sent to the data transfer bus 16a as 16-bit 4-word data. To be done.

【0047】すなわち、上記構成による第2のデータ転
送誤り検出装置において、データ供給部21から、ま
ず、偶数パリティビットの付加された1個目の1ワード
データ“1010(0)”が送出されると、この1個目
の1ワードデータ“1010(0)”はデータ幅変換部
22のデータラッチ/偶数パリティチェック回路23a
にラッチされ、偶数パリティエラーの有無が検出され
る。
That is, in the second data transfer error detecting device having the above-mentioned structure, first, the data supply unit 21 sends the first 1-word data "1010 (0)" to which the even parity bit is added. The first 1-word data “1010 (0)” is the data latch / even parity check circuit 23a of the data width converter 22.
The even parity error is detected.

【0048】また、データ供給部21から、奇数パリテ
ィビットの付加された2個目の1ワードデータ“111
1(1)”が送出されると、この2個目の1ワードデー
タ“1111(1)”はデータ幅変換部22のデータラ
ッチ/奇数パリティチェック回路24aにラッチされ、
奇数パリティエラーの有無が検出される。
Further, the second 1-word data "111" to which the odd parity bit is added is supplied from the data supply unit 21.
When 1 (1) "is transmitted, the second 1-word data" 1111 (1) "is latched by the data latch / odd parity check circuit 24a of the data width conversion unit 22,
Presence or absence of odd parity errors is detected.

【0049】また、データ供給部21から、偶数パリテ
ィビットの付加された3個目の1ワードデータ“110
0(0)”が送出されると、この3個目の1ワードデー
タ“1100(0)”はデータ幅変換部22のデータラ
ッチ/偶数パリティチェック回路23bにラッチされ、
偶数パリティエラーの有無が検出される。
Further, the third 1-word data "110" to which the even parity bit is added is supplied from the data supply unit 21.
When "0 (0)" is transmitted, the third 1-word data "1100 (0)" is latched by the data latch / even parity check circuit 23b of the data width conversion unit 22,
Presence or absence of an even parity error is detected.

【0050】また、データ供給部21から、奇数パリテ
ィビットの付加された4個目の1ワードデータ“001
1(1)”が送出されると、この4個目の1ワードデー
タ“0011(1)”はデータ幅変換部22のデータラ
ッチ/奇数パリティチェック回路24bにラッチされ、
奇数パリティエラーの有無が検出される。
Further, the fourth 1-word data "001" to which the odd parity bit is added is supplied from the data supply unit 21.
When 1 (1) ”is transmitted, the fourth 1-word data“ 0011 (1) ”is latched by the data latch / odd parity check circuit 24b of the data width conversion unit 22,
Presence or absence of odd parity errors is detected.

【0051】そして、上記各データラッチ/パリティチ
ェック回路23a,24a,23b,24bにてパリテ
ィエラーが検出されない場合には、各1ワードデータは
並列にした16ビットの4ワードデータに変換されてデ
ータ転送バス16aに送出される。
When no parity error is detected in the data latch / parity check circuits 23a, 24a, 23b, 24b, each 1-word data is converted into parallel 16-bit 4-word data. It is sent to the transfer bus 16a.

【0052】一方、上記データ供給部21から奇数パリ
ティビットが付加されて送出された2個目の1ワードデ
ータ“1111(1)”に、例えば“1011(1)”
と変化する誤りが生じ、データ変換部22のデータラッ
チ/奇数パリティチェック回路24aにラッチされた場
合には、そこにおける奇数パリティのエラー検出処理に
よりパリティエラーが検出される。
On the other hand, for example, "1011 (1)" is added to the second 1-word data "1111 (1)" sent with the odd parity bit added from the data supply section 21.
When an error that changes from 0 to 1 occurs and the data is latched by the data latch / odd parity check circuit 24a of the data conversion unit 22, the parity error is detected by the odd parity error detection process there.

【0053】つまり、被送信1ワードデータに対する1
ビット誤りによるエラー検出が成されるようになる。一
方、上記データ供給部21から奇数パリティビットが付
加されて送出された2個目の1ワードデータ“1111
(1)”が、バス上での障害により抜けてしまい、デー
タ変換部22におけるデータラッチ/奇数パリティチェ
ック回路24aには、該奇数パリティビットの付加され
た2個目の1ワードデータを抜かして偶数パリティビッ
トの付加された3個目の1ワードデータ“1100
(0)”がラッチされた場合には、そこにおける奇数パ
リティのエラー検出処理によりパリティエラーが検出さ
れる。
That is, 1 for 1 word data to be transmitted.
The error detection by the bit error comes to be performed. On the other hand, the second 1-word data “1111” added with an odd parity bit from the data supply unit 21 and transmitted.
(1) ”is omitted due to a failure on the bus, and the data latch / odd parity check circuit 24a in the data conversion unit 22 omits the second 1-word data to which the odd parity bit is added. Third 1-word data "1100" with an even parity bit added
When (0) ”is latched, a parity error is detected by the odd parity error detection process there.

【0054】つまり、複数ワードのデータ転送を行なう
場合の1ワード抜けによるエラー検出が成されるように
なる。したがって、上記構成の第2のデータ転送誤り検
出装置によれば、1ワードデータを4ワードデータに並
列変換して転送する際に、各ワードデータ量としては単
にパリティビットが付加されるのみで、それぞれの1ワ
ードデータに対する1ビット誤りが生じた場合のエラー
検出が行なえるだけでなく、ワード抜けが生じた場合の
エラー検出をも行なうことができる。
In other words, when data transfer of a plurality of words is performed, an error is detected due to one word missing. Therefore, according to the second data transfer error detection device having the above-mentioned configuration, when the 1-word data is converted into 4-word data in parallel and transferred, a parity bit is simply added as each word data amount, Not only can an error be detected when a 1-bit error occurs in each 1-word data, but an error can be detected when a word omission occurs.

【0055】図3は第3のデータ転送誤り検出装置の構
成を示すブロック図である。この第3のデータ転送誤り
検出装置は、例えば4ビットの1ワードデータを2ワー
ド並列にして送信部11から受信部12へ順次データ転
送する計算機システムに搭載されたもので、送信部11
には、2つの送信データラッチ部13a,13b、2つ
のパリティ生成回路14a,14b、2ビットカウンタ
31が備えられる。
FIG. 3 is a block diagram showing the configuration of the third data transfer error detecting apparatus. The third data transfer error detection device is installed in a computer system that sequentially transfers, for example, 2-word 4-bit 1-word data in parallel to two words from the transmission unit 11 to the reception unit 12.
Is provided with two transmission data latch units 13a and 13b, two parity generation circuits 14a and 14b, and a two-bit counter 31.

【0056】上記各送信データラッチ部13a,13b
は、データバス16を介して並列に与えられる2つの4
ビットデータを、所定周期の送信データラッチ信号aに
同期してそれぞれ1ワードの被送信データとしてラッチ
するもので、この送信データラッチ部13a,13bに
てそれぞれラッチされる1ワードデータは、上記データ
バス16を介して各対応するパリティ生成回路14a,
14bに対しても並列に与えられる。
Each of the transmission data latch units 13a and 13b described above
Are two 4's provided in parallel via the data bus 16.
Bit data is latched as 1-word transmitted data in synchronization with a transmission data latch signal a of a predetermined cycle. The 1-word data latched by the transmission data latch sections 13a and 13b is the above-mentioned data. Each corresponding parity generation circuit 14a via the bus 16,
14b is also given in parallel.

【0057】上記各パリティ生成回路14a,14b
は、データバス16を介して並列に与えられるそれぞれ
の1ワードデータに対するパリティビットを生成するも
ので、このパリティ生成回路14a,14bでは、それ
ぞれ上記送信データラッチ信号aに同期して2ビットカ
ウンタ31から順次出力される2ビット信号の上位桁及
び下位桁に応じて、偶数パリティ及び奇数パリティの生
成が切換えられる。
Each parity generation circuit 14a, 14b
Generates a parity bit for each 1-word data supplied in parallel via the data bus 16. In the parity generation circuits 14a and 14b, the 2-bit counter 31 is synchronized with the transmission data latch signal a. The generation of the even parity and the odd parity is switched according to the upper digit and the lower digit of the 2-bit signal sequentially output from.

【0058】ここで、各パリティ生成回路14a,14
bに与えられるカウンタ値が“0”の場合には偶数パリ
ティビットが生成され、また、“1”の場合には奇数パ
リティビットが生成される。
Here, each parity generation circuit 14a, 14
If the counter value given to b is "0", an even parity bit is generated, and if it is "1", an odd parity bit is generated.

【0059】そして、上記各送信データラッチ部13
a,13bにそれぞれラッチされた1ワードデータは、
次の送信データラッチ信号aに応じて各対応する新たな
1ワードデータがラッチされるのと共にデータ転送バス
16aに並列して送出され、上記各パリティ生成回路1
4a,14bにより生成された偶数又は奇数パリティビ
ットが付加されて受信部12へ転送される。
Then, each of the above-mentioned transmission data latch units 13
The 1-word data latched in a and 13b are
Each corresponding new 1-word data is latched in accordance with the next transmission data latch signal a, and is sent out in parallel to the data transfer bus 16a, so that each parity generation circuit 1
The even or odd parity bits generated by 4a and 14b are added and transferred to the receiving unit 12.

【0060】つまり、上記送信部11においては、デー
タバス16を介して各送信データラッチ部13a,13
bにラッチされる各1ワードデータに対して、2ビット
カウンタ値に応じた偶数パリティあるいは奇数パリティ
が各パリティ生成回路14a,14bにて生成されて並
列付加転送されるもので、上記データ転送バス16aに
並列に送出された各1ワードデータは受信部12に転送
される。
That is, in the transmitting section 11, the transmission data latch sections 13a, 13a and 13b are connected via the data bus 16.
For each 1-word data latched in b, even parity or odd parity according to the 2-bit counter value is generated by each parity generation circuit 14a, 14b and added in parallel and transferred. Each 1-word data sent in parallel to 16 a is transferred to the receiving unit 12.

【0061】ここで、上記2ビットカウンタ31におけ
る初期のカウンタ値は“00”から開始され、“01”
“10”“11”と変化するものとして予め設定され
る。上記受信部12には、2つの受信データラッチ部1
7a,17b、2つのパリティチェック回路18a,1
8b、2ビットカウンタ32が備えられる。
Here, the initial counter value of the 2-bit counter 31 starts from "00" and becomes "01".
It is set in advance as changing to "10" and "11". The reception unit 12 includes two reception data latch units 1
7a, 17b, two parity check circuits 18a, 1
An 8b, 2-bit counter 32 is provided.

【0062】上記各受信データラッチ部17a,17b
は、上記送信部11から上記データ転送バス16aを介
して並列転送されてくるそれぞれパリティビットの付加
された各1ワードデータのうちの4ビットデータ(デー
タ部分)のみを所定周期の受信データラッチ信号bに同
期してラッチするもので、上記データ転送バス16aを
介して並列転送されてくる各1ワードデータは、そのパ
リティビットと共に各対応するパリティチェック回路1
8a,18bに対しても与えられる。
Each of the reception data latch units 17a and 17b described above.
Is a reception data latch signal of a predetermined cycle for only 4-bit data (data portion) of each 1-word data to which each parity bit is added, which is transferred in parallel from the transmission unit 11 via the data transfer bus 16a. The data is latched in synchronism with b, and each 1-word data transferred in parallel via the data transfer bus 16a has its corresponding parity bit and its corresponding parity check circuit 1.
It is also given to 8a and 18b.

【0063】上記パリティチェック回路18a,18b
は、それぞれデータ転送バス16aを介して与えられた
各1ワードデータに対するパリティエラーの検出を行な
うもので、このパリティチェック回路18a,18bで
は、上記受信データラッチ信号bに同期して2ビットカ
ウンタ32から順次出力される2ビット信号の上位桁及
び下位桁に応じて、偶数パリティ及び奇数パリティのエ
ラー検出が切換えられる。
Parity check circuits 18a and 18b
Detects the parity error for each 1-word data supplied via the data transfer bus 16a. In the parity check circuits 18a and 18b, the 2-bit counter 32 is synchronized with the received data latch signal b. The error detection of even parity and odd parity is switched according to the upper digit and the lower digit of the 2-bit signal sequentially output from.

【0064】ここで、各パリティチェック回路18a,
18bに与えられるカウンタ値が“0”の場合には偶数
パリティのエラー検出がなされ、また、“1”の場合に
は奇数パリティのエラー検出がなされる。
Here, each parity check circuit 18a,
If the counter value given to 18b is "0", even parity error detection is performed, and if it is "1", odd parity error detection is performed.

【0065】そして、上記各受信データラッチ部17
a,17bにそれぞれラッチされた1ワードデータは、
次の受信データラッチ信号bに応じて送信部11からの
各対応する新たな1ワードデータがラッチされるのと共
にデータバス16bに並列して送出される。
Then, each received data latch section 17
The 1-word data latched in a and 17b are
In response to the next received data latch signal b, each corresponding new 1-word data from the transmitter 11 is latched and sent in parallel to the data bus 16b.

【0066】一方、上記受信データラッチ部17a,1
7bからデータバス16bに送出された各1ワードデー
タに対し、上記各対応するパリティチェック回路18
a,18bにて、パリティエラーが検出されていた場合
には、そのエラー検出信号も共にデータバス16bに送
出される。
On the other hand, the received data latch sections 17a, 17a
For each 1-word data sent from 7b to the data bus 16b, the corresponding parity check circuit 18 is provided.
If a parity error is detected at a and 18b, the error detection signal is also sent to the data bus 16b.

【0067】つまり、上記受信部12においては、デー
タ転送バス16aを介して並列転送受信される各1ワー
ドデータに対して、2ビットカウンタ値に応じた偶数パ
リティあるいは奇数パリティのエラー検出が各パリティ
チェック回路18a,18bにて実施されるもので、こ
のパリティチェック回路18a,18bからのエラー検
出信号は、各対応する受信データラッチ部17a,17
bにラッチされたパリティエラーの生じた1ワードデー
タと共にデータ転送バス16bに送出される。
In other words, in the receiving unit 12, error detection of even parity or odd parity according to the 2-bit counter value is performed for each parity with respect to each 1-word data transferred in parallel via the data transfer bus 16a. The error detection signals from the parity check circuits 18a and 18b are implemented by the check circuits 18a and 18b.
The data is sent to the data transfer bus 16b together with the 1-word data in which the parity error is latched in b.

【0068】ここで、上記2ビットカウンタ32におけ
る初期のカウンタ値は、上記送信部11における2ビッ
トカウンタ31での初期のカウンタ値と対応させて“0
0”から開始され、“01”“10”“11”と変化す
るものとして予め設定される。
Here, the initial counter value in the 2-bit counter 32 corresponds to the initial counter value in the 2-bit counter 31 in the transmitter 11 and is "0".
It is preset to start from 0 "and change to" 01 "," 10 ", and" 11 ".

【0069】すなわち、上記構成による第3のデータ転
送誤り検出装置において、送信部11のデータバス16
を介して並列に与えられた、初期の各1ワードデータ
“0101”“1111”が、送信データラッチ信号a
に同期してそれぞれ対応する送信データラッチ部13
a,13bにラッチされると共に、それぞれ対応するパ
リティ生成回路14a,14bに与えられると、この
際、2ビットカウンタ31のカウンタ値は“00”なの
で、パリティ生成回路14aでは、上記被送信1ワード
データ“0101”に対応する偶数パリティビット
“0”が生成され、パリティ生成回路14bでは、上記
被送信1ワードデータ“1111”に対応する偶数パリ
ティビット“0”が生成される。
That is, in the third data transfer error detecting device having the above configuration, the data bus 16 of the transmitting unit 11 is
Initial 1-word data “0101” “1111” given in parallel via the transmission data latch signal a
Corresponding to the transmission data latch unit 13 in synchronization with the
When it is latched by a and 13b and is given to the corresponding parity generation circuits 14a and 14b, respectively, the counter value of the 2-bit counter 31 is "00" at this time. The even parity bit "0" corresponding to the data "0101" is generated, and the parity generation circuit 14b generates the even parity bit "0" corresponding to the transmitted 1-word data "1111".

【0070】すると、上記送信データラッチ部13aに
ラッチされた1ワードデータ“0101”に対しては、
上記パリティ生成回路14aにより生成された偶数パリ
ティビット“0”が付加されると共に、上記送信データ
ラッチ部13bにラッチされた1ワードデータ“111
1”に対しては、上記パリティ生成回路14bにより生
成された偶数パリティビット“0”が付加され、データ
転送バス16aを介して受信部12へ並列転送される。
Then, with respect to the 1-word data "0101" latched by the transmission data latch section 13a,
The even parity bit "0" generated by the parity generation circuit 14a is added, and the 1-word data "111" latched by the transmission data latch unit 13b is added.
The even parity bit "0" generated by the parity generation circuit 14b is added to 1 "and transferred in parallel to the reception unit 12 via the data transfer bus 16a.

【0071】また、上記初期の2つの被送信1ワードデ
ータに続いて、例えば2組目の各被送信1ワードデータ
“0011”“1100”が、それぞれ2つ目の送信デ
ータラッチ信号aに同期して各対応する送信データラッ
チ部13a,13bにラッチされると共に、パリティ生
成回路14a,14bに与えられると、この際、2ビッ
トカウンタ31のカウンタ値は“01”なので、パリテ
ィ生成回路14aでは、上記被送信1ワードデータ“0
011”に対応する偶数パリティビット“0”が生成さ
れ、パリティ生成回路14bでは、上記被送信1ワード
データ“1100”に対応する奇数パリティビット
“1”が生成される。
Following the initial two transmitted 1-word data, for example, the second set of transmitted 1-word data "0011" and "1100" are respectively synchronized with the second transmission data latch signal a. Then, when they are latched by the corresponding transmission data latch units 13a and 13b and are given to the parity generation circuits 14a and 14b, at this time, the counter value of the 2-bit counter 31 is "01", so that the parity generation circuit 14a , The transmitted 1-word data “0”
The even parity bit “0” corresponding to 011 ”is generated, and the parity generation circuit 14b generates the odd parity bit“ 1 ”corresponding to the transmitted 1-word data“ 1100 ”.

【0072】すると、上記送信データラッチ部13aに
ラッチされた1ワードデータ“0011”に対しては、
上記パリティ生成回路14aにより生成された偶数パリ
ティビット“0”が付加されると共に、上記送信データ
ラッチ部13bにラッチされた1ワードデータ“110
0”に対しては、上記パリティ生成回路14bにより生
成された奇数パリティビット“1”が付加され、データ
転送バス16aを介して受信部12へ並列転送される。
Then, with respect to the 1-word data "0011" latched by the transmission data latch section 13a,
The even parity bit "0" generated by the parity generation circuit 14a is added, and the 1-word data "110" latched by the transmission data latch unit 13b is added.
An odd parity bit "1" generated by the parity generation circuit 14b is added to 0 "and transferred in parallel to the reception unit 12 via the data transfer bus 16a.

【0073】この後、さらに、上記送信部11におい
て、3組目の各被送信1ワードデータ“0000”“0
110”、4組目の被送信1ワードデータ“1001”
“1010”と、順次各対応する送信データラッチ部1
3a,13bにラッチされると、その都度更新される2
ビットカウンタ値“10”“11”に応じて、3組目の
各被送信1ワードデータ“0000”“0110”に対
してはそれぞれ奇数パリティビット“1”及び偶数パリ
ティビット“0”、4組目の各被送信1ワードデータ
“1001”“1010”に対しては何れも奇数パリテ
ィビット“1”と、各対応するパリティ生成回路14
a,14bにて生成されて付加され、順次受信部12へ
並列転送される。
Thereafter, in the transmitter 11, the third set of transmitted 1-word data "0000""0" is further transmitted.
110 ", 4th set of transmitted 1-word data" 1001 "
"1010" and the corresponding transmission data latch units 1 in sequence
2 is updated each time it is latched by 3a and 13b
Odd parity bit “1” and even parity bit “0”, 4 sets for each 1-word transmitted data “0000” “0110” of the 3rd set according to the bit counter value “10” “11” For each of the transmitted 1-word data “1001” and “1010” of the eye, the odd parity bit “1” and the corresponding parity generation circuit 14 are used.
It is generated and added in a and 14b, and is sequentially transferred in parallel to the receiving unit 12.

【0074】こうして、上記送信部11から2ビットカ
ウンタ値の組合せに応じて偶数又は奇数パリティビット
の付加された1組目データ“0101(0)”“111
1(0)”,2組目データ“0011(0)”“110
0(1)”,3組目データ“0000(1)”“011
0(0)”,4組目データ“1001(1)”“101
0(1)”が、それぞれ順次データ転送バス16aを介
して並列転送され、受信部12における各対応する受信
データラッチ部17a,17bに対しその受信データラ
ッチ信号bに同期して順次ラッチされると、各対応する
パリティチェック回路18a,18bでは、その都度更
新される2ビットカウンタ32のカウンタ値“00”→
“01”→“10”→“11”に応じて、1組目データ
に対しては何れも偶数パリティのエラー検出処理が、2
組目データに対してはそれぞれ偶数パリティと奇数パリ
ティのエラー検出処理が、3組目データに対してはそれ
ぞれ奇数パリティと偶数パリティのエラー検出処理が、
4組目データに対しては何れも奇数パリティのエラー検
出処理が実施される。
In this way, the first set data "0101 (0)""111 to which the even or odd parity bits are added according to the combination of the 2-bit counter values from the transmitting unit 11 is obtained.
1 (0) ", 2nd set data" 0011 (0) "" 110 "
0 (1) ", 3rd set data" 0000 (1) "" 011 "
0 (0) ”, 4th set data“ 1001 (1) ”“ 101
0 (1) "are sequentially transferred in parallel via the data transfer bus 16a and sequentially latched by the corresponding reception data latch units 17a and 17b in the reception unit 12 in synchronization with the reception data latch signal b. In each of the corresponding parity check circuits 18a and 18b, the counter value "00" of the 2-bit counter 32 updated each time
In response to “01” → “10” → “11”, even parity error detection processing is 2 for the first set of data.
Even-parity and odd-parity error detection processing is performed for the third group of data, and odd-parity and even-parity error detection processing is performed for the third-group data.
Odd parity error detection processing is performed on the fourth set of data.

【0075】ここで、上記送信部11から送出された2
組目データのうち、奇数パリティビットが付加されて送
出された下位の1ワードデータ“1100(1)”に、
例えばデータ転送バス16a上での障害により“110
1(1)”と変化する誤りが生じ、受信部12に転送さ
れた場合には、対応するパリティチェック回路18bに
おける奇数パリティのエラー検出処理によりパリティエ
ラーが検出される。
Here, the 2
Of the group data, the lower 1-word data “1100 (1)” added with an odd parity bit is
For example, due to a failure on the data transfer bus 16a, "110
When an error that changes to 1 (1) ″ occurs and is transferred to the receiving unit 12, the parity error is detected by the odd parity error detection process in the corresponding parity check circuit 18b.

【0076】すると、受信データラッチ部17bからデ
ータバス16bに送出される誤りの生じた1ワードデー
タ“1101”には、上記パリティチェック回路18b
からエラー検出信号が付加されてエラー通知される。
Then, the parity check circuit 18b is added to the 1-word data "1101" in which an error has occurred, which is sent from the reception data latch section 17b to the data bus 16b.
The error detection signal is added from the device to notify the error.

【0077】つまり、4ビットの1ワードデータを2ワ
ード並列にして順次データ転送する計算機システムにお
いて、それぞれの被送信1ワードデータに対する1ビッ
ト誤りによるエラー検出が成されるようになる。
That is, in a computer system in which 4-word 1-word data is transferred in parallel with 2 words in parallel, error detection is performed by a 1-bit error for each transmitted 1-word data.

【0078】一方、上記送信部11において2ビットカ
ウンタ値“01”に応じて偶数パリティビット及び奇数
パリティビットがそれぞれ付加されて送出された2組目
データ“0011(0)”“1100(1)”が、例え
ばデータ転送バス16a上での障害により抜けてしま
い、受信部12には、次の2ビットカウンタ値“10”
に応じて奇数パリティビット及び偶数パリティビットの
付加された3組目データ“0000(1)”“0110
(0)”が転送された場合には、2回目のデータラッチ
動作に伴なう2ビットカウンタ値“01”に応じたパリ
ティチェック回路18aにおける偶数パリティのエラー
検出処理及びパリティチェック回路18bにおける奇数
パリティのエラー検出処理によりそれぞれパリティエラ
ーが検出される。
On the other hand, in the transmitter 11, the even-numbered parity bit and the odd-numbered parity bit are added according to the 2-bit counter value "01" and transmitted, and the second set of data "0011 (0)""1100(1)" is sent. "Is lost due to, for example, a failure on the data transfer bus 16a, and the receiving unit 12 displays the next 2-bit counter value" 10 ".
The third set of data “0000 (1)” and “0110” to which an odd parity bit and an even parity bit are added according to
When (0) ”is transferred, even parity error detection processing in the parity check circuit 18a and odd number in the parity check circuit 18b according to the 2-bit counter value“ 01 ”accompanying the second data latch operation are performed. A parity error is detected by the parity error detection process.

【0079】すると、受信データラッチ部17a,17
bからデータバス16bに対し、2組目データとして送
出される実際には3組目データ“0000”“011
0”には、上記パリティチェック回路18a,18bか
らそれぞれエラー検出信号が付加されてエラー通知され
る。
Then, the reception data latch units 17a, 17
b is actually sent to the data bus 16b as the second set of data, the third set of data "0000""011.
An error detection signal is added to 0 "from each of the parity check circuits 18a and 18b to notify the error.

【0080】つまり、複数ワードの並列データ転送を行
なう場合のワード抜けによるエラー検出が成されるよう
になる。したがって、上記構成の第3のデータ転送誤り
検出装置によれば、複数ワードの並列データ転送を行な
う際に、各ワードデータ量としては単にパリティビット
が付加されるのみで、それぞれの1ワードデータに対す
る1ビット誤りが生じた場合のエラー検出が行なえるだ
けでなく、ワード抜けが生じた場合のエラー検出をも行
なうことができる。
That is, when parallel data transfer of a plurality of words is performed, error detection due to missing words can be performed. Therefore, according to the third data transfer error detecting device having the above-mentioned configuration, when the parallel data transfer of a plurality of words is performed, the parity bit is simply added as the amount of each word data, and each word data is added. Not only can error detection be performed when a 1-bit error occurs, but error detection can also be performed when a word omission occurs.

【0081】また、上記第3のデータ転送誤り検出装置
では、送信部11の2ビットカウンタ31による2ビッ
トカウント値の4つの組合せに従って、各1ワードデー
タに対するパリティビットを順次付加し、また、受信部
12の2ビットカウンタ32による同一の2ビットカウ
ント値の組合せに従って転送された各1ワードデータに
対するパリティエラーの検出を行なっているので、この
場合、同時に3つまでの並列転送ワード抜けによるエラ
ー検出を行なうことができる。
In the third data transfer error detecting apparatus, the parity bit for each 1-word data is sequentially added and received in accordance with the four combinations of the 2-bit count values by the 2-bit counter 31 of the transmitter 11. Since the parity error is detected for each 1-word data transferred according to the same combination of 2-bit count values by the 2-bit counter 32 of the unit 12, in this case, error detection due to up to three parallel transfer word omissions is performed at the same time. Can be done.

【0082】図4は第4のデータ転送誤り検出装置の構
成を示すブロック図である。この第4のデータ転送誤り
検出装置は、例えば4ビットデータを1ワードとして送
信部11から受信部12へ順次データ転送する計算機シ
ステムに搭載されたもので、送信部11には、送信デー
タラッチ部13,パリティ生成回路14,ROM41,
アドレスカウンタ42が備えられる。
FIG. 4 is a block diagram showing the configuration of the fourth data transfer error detection device. The fourth data transfer error detection device is installed in a computer system that sequentially transfers 4-bit data as one word from the transmission unit 11 to the reception unit 12, and the transmission unit 11 includes a transmission data latch unit. 13, a parity generation circuit 14, a ROM 41,
An address counter 42 is provided.

【0083】上記送信データラッチ部13は、データバ
ス16を介して与えられる4ビットデータを、所定周期
の送信データラッチ信号aに同期して1ワードの被送信
データとしてラッチするもので、この送信データラッチ
部13にてラッチされる1ワードデータは、上記データ
バス16を介して上記パリティ生成回路14に対しても
並列に与えられる。
The transmission data latch unit 13 latches 4-bit data supplied via the data bus 16 as 1-word transmitted data in synchronization with the transmission data latch signal a having a predetermined cycle. The 1-word data latched by the data latch unit 13 is also given in parallel to the parity generation circuit 14 via the data bus 16.

【0084】上記パリティ生成回路14は、データバス
16を介して与えられる1ワードデータに対するパリテ
ィビットを生成するもので、このパリティ生成回路14
では、上記送信データラッチ信号aに同期してROM4
1から順次読出されるパリティ切換え情報dに応じて、
偶数パリティの生成と奇数パリティの生成とが切換えら
れる。
The parity generation circuit 14 generates a parity bit for 1-word data supplied via the data bus 16. The parity generation circuit 14
Then, the ROM 4 is synchronized with the transmission data latch signal a.
According to the parity switching information d sequentially read from 1,
Generation of even parity and generation of odd parity are switched.

【0085】上記ROM41は上記送信データラッチ信
号aに同期してアドレスカウンタ42によりアドレスさ
れるもので、このROM41には、偶数パリティの指定
情報“0”と奇数パリティの指定情報“1”とが、予め
設定された任意の順番で変化されて記憶される。
The ROM 41 is addressed by the address counter 42 in synchronism with the transmission data latch signal a. The ROM 41 stores even parity designation information "0" and odd parity designation information "1". , Are changed and stored in an arbitrary order set in advance.

【0086】そして、上記送信データラッチ部13にラ
ッチされた1ワードデータは、次の送信データラッチ信
号aに応じて新たな1ワードデータがラッチされるのと
共にデータ転送バス16aに送出され、上記パリティ生
成回路14により生成された偶数又は奇数パリティビッ
トが付加されて受信部12へ転送される。
The 1-word data latched by the transmission data latch unit 13 is sent to the data transfer bus 16a while new 1-word data is latched according to the next transmission data latch signal a, and The even or odd parity bit generated by the parity generation circuit 14 is added and transferred to the reception unit 12.

【0087】つまり、上記送信部11においては、デー
タバス16を介して送信データラッチ部13にラッチさ
れる各1ワードデータに対して、偶数パリティと奇数パ
リティとがパリティ生成回路14にて予め設定された順
番で順次生成されて付加転送されるもので、上記データ
転送バス16aに送出された1ワードデータは受信部1
2に転送される。
That is, in the transmitter 11, the parity generation circuit 14 presets even parity and odd parity for each 1-word data latched by the transmission data latch 13 via the data bus 16. The one-word data sent to the data transfer bus 16a is sequentially generated in the order in which they are added and transferred.
2 is transferred.

【0088】上記受信部12には、受信データラッチ部
17,パリティチェック回路18,ROM43,アドレ
スカウンタ44が備えられる。上記受信データラッチ部
17は、上記送信部11から上記データ転送バス16a
を介して転送されてくるパリティビットの付加された1
ワードデータのうちの4ビットデータ(データ部分)の
みを所定周期の受信データラッチ信号bに同期してラッ
チするもので、上記データ転送バス16aを介して転送
されてくる1ワードデータは、そのパリティビットと共
に上記パリティチェック回路18に対しても並列に与え
られる。
The reception section 12 is provided with a reception data latch section 17, a parity check circuit 18, a ROM 43, and an address counter 44. The reception data latch unit 17 includes the data transfer bus 16a from the transmission unit 11.
1 with a parity bit transferred via
Only 4-bit data (data portion) of the word data is latched in synchronization with the reception data latch signal b having a predetermined cycle, and one word data transferred via the data transfer bus 16a has its parity. It is also provided in parallel to the parity check circuit 18 together with the bits.

【0089】上記パリティチェック回路18は、データ
転送バス16aを介して与えられた1ワードデータに対
するパリティエラーの検出を行なうもので、このパリテ
ィチェック回路18では、上記受信データラッチ信号b
に同期してROM43から順次読出されるパリティ切換
え情報dに応じて、偶数パリティのエラー検出と奇数パ
リティのエラー検出とが切換えられる。
The parity check circuit 18 detects a parity error with respect to 1-word data supplied via the data transfer bus 16a. In the parity check circuit 18, the received data latch signal b is received.
The error detection of even parity and the error detection of odd parity are switched according to the parity switching information d sequentially read from the ROM 43 in synchronization with the above.

【0090】上記ROM43は上記受信データラッチ信
号bに同期してアドレスカウンタ44によりアドレスさ
れるもので、このROM43には、偶数パリティの指定
情報“0”と奇数パリティの指定情報“1”とが、上記
送信部11におけるROM41と同様にして設定された
順番で変化されて記憶される。
The ROM 43 is addressed by the address counter 44 in synchronism with the received data latch signal b, and the ROM 43 stores the designation information "0" for even parity and the designation information "1" for odd parity. , Are changed and stored in the set order in the same manner as the ROM 41 in the transmitting unit 11.

【0091】そして、上記受信データラッチ部17にラ
ッチされた1ワードデータは、次の受信データラッチ信
号bに応じて送信部11からの新たな1ワードデータが
ラッチされるのと共にデータバス16bに送出される。
The 1-word data latched by the reception data latch section 17 is latched with new 1-word data from the transmission section 11 in response to the next reception data latch signal b, and at the same time, is transferred to the data bus 16b. Sent out.

【0092】一方、上記受信データラッチ部17からデ
ータバス16bに送出された1ワードデータに対し、上
記パリティチェック回路18にて、パリティエラーが検
出されていた場合には、そのエラー検出信号も共にデー
タバス16bに送出される。
On the other hand, if a parity error is detected in the parity check circuit 18 with respect to the 1-word data sent from the reception data latch section 17 to the data bus 16b, the error detection signal is also sent. It is sent to the data bus 16b.

【0093】つまり、上記受信部12においては、デー
タ転送バス16aを介して転送受信される各1ワードデ
ータに対して、偶数パリティと奇数パリティとのエラー
検出をパリティチェック回路18にて予め設定された順
番で順次実施するもので、このパリティチェック回路1
8からのエラー検出信号は、受信データラッチ部17に
ラッチされたパリティエラーの生じた1ワードデータと
共にデータ転送バス16bに送出される。
That is, in the receiving section 12, the parity check circuit 18 presets error detection of even parity and odd parity for each 1-word data transferred and received via the data transfer bus 16a. This parity check circuit 1
The error detection signal from 8 is sent to the data transfer bus 16b together with the 1-word data in which the parity error is latched in the reception data latch unit 17.

【0094】すなわち、上記構成による第4のデータ転
送誤り検出装置において、送信部11のデータバス16
を介して与えられた、初期の1ワードデータ“010
1”が、送信データラッチ信号aに同期して送信データ
ラッチ部13にラッチされると共に、パリティ生成回路
14に与えられると、該パリティ生成回路14では、ま
ず1回目のアドレスによりROM41から読出された、
例えば奇数パリティ指定情報dに応じて上記被送信1ワ
ードデータ“0101”に対応する奇数パリティビット
“1”が生成される。
That is, in the fourth data transfer error detecting device having the above structure, the data bus 16 of the transmitting unit 11 is
1 word data “010
When 1 ″ is latched by the transmission data latch unit 13 in synchronization with the transmission data latch signal a and is given to the parity generation circuit 14, the parity generation circuit 14 first reads from the ROM 41 by the first address. Was
For example, an odd parity bit "1" corresponding to the transmitted 1-word data "0101" is generated according to the odd parity designation information d.

【0095】すると、上記送信データラッチ部13にラ
ッチされた1ワードデータ“0101”に対し、上記パ
リティ生成回路14により生成された奇数パリティビッ
ト“1”が付加され、データ転送バス16aを介して受
信部12へ転送される。
Then, the odd-numbered parity bit "1" generated by the parity generation circuit 14 is added to the 1-word data "0101" latched by the transmission data latch section 13, and the data is transferred via the data transfer bus 16a. It is transferred to the receiving unit 12.

【0096】また、上記初期の被送信1ワードデータに
続いて、例えば2個目の被送信1ワードデータ“111
1”が、2つ目の送信データラッチ信号aに同期して送
信データラッチ部13にラッチされると共に、パリティ
生成回路14に与えられると、該パリティ生成回路14
では、2回目のアドレスによりROM41から読出され
た、例えば偶数パリティ指定情報dに応じて上記被送信
1ワードデータ“1111”に対応する偶数パリティビ
ット“0”が生成される。
Following the initial transmitted 1-word data, for example, the second transmitted 1-word data "111"
When 1 ″ is latched by the transmission data latch unit 13 in synchronization with the second transmission data latch signal a and is given to the parity generation circuit 14, the parity generation circuit 14
In this case, the even parity bit "0" corresponding to the transmitted 1-word data "1111" is generated according to the even parity designation information d read from the ROM 41 at the second address.

【0097】すると、上記送信データラッチ部13にラ
ッチされた1ワードデータ“1111”に対し、上記パ
リティ生成回路14により生成された偶数パリティビッ
ト“0”が付加され、データ転送バス16aを介して受
信部12へ転送される。
Then, the even parity bit "0" generated by the parity generation circuit 14 is added to the 1-word data "1111" latched by the transmission data latch unit 13, and the data is transferred via the data transfer bus 16a. It is transferred to the receiving unit 12.

【0098】この後、さらに、上記送信部11におい
て、3個目の被送信1ワードデータ“1100”、4個
目の被送信1ワードデータ“0011”と、順次送信デ
ータラッチ部13にラッチされると、その都度、ROM
41から読出される例えば奇数パリティ指定情報d及び
偶数パリティ指定情報dに応じて、3個目の被送信1ワ
ードデータ“1100”に対しては奇数パリティビット
“1”、4個目の被送信1ワードデータ“0011”に
対しては偶数パリティビット“0”と、パリティ生成回
路14にて生成されて付加され、順次受信部12へ転送
される。
Thereafter, in the transmitting section 11, the third transmitted 1-word data “1100”, the fourth transmitted 1-word data “0011”, and the transmission data latch section 13 are sequentially latched. Then, each time, ROM
For example, according to the odd parity designation information d and the even parity designation information d read from 41, an odd parity bit “1” and a fourth transmission are performed for the third transmitted 1-word data “1100”. An even parity bit “0” is generated for 1-word data “0011”, added by the parity generation circuit 14, and sequentially transferred to the reception unit 12.

【0099】こうして、上記送信部11から予め設定さ
れた順番で偶数パリティビット及び奇数パリティビット
の付加された1ワードデータ“0101(1)”“11
11(0)”“1100(1)”“0011(0)”…
が、データ転送バス16aを介して転送され、受信部1
2における受信データラッチ部17に対しその受信デー
タラッチ信号bに同期して順次ラッチされると、その都
度、パリティチェック回路18では、ROM43から読
出される予め設定された順番のパリティ指定情報dに応
じて、偶数パリティのエラー検出処理又は奇数パリティ
のエラー検出処理が実施される。
In this way, 1-word data “0101 (1)” “11” to which the even parity bit and the odd parity bit are added in the preset order from the transmitting unit 11 is obtained.
11 (0) "" 1100 (1) "" 0011 (0) "...
Are transferred via the data transfer bus 16a, and the receiving unit 1
When the reception data latch unit 17 in 2 is sequentially latched in synchronization with the reception data latch signal b, the parity check circuit 18 outputs the parity designation information d read from the ROM 43 in the preset order each time. Accordingly, even parity error detection processing or odd parity error detection processing is performed.

【0100】ここで、上記送信部11において偶数パリ
ティビットが付加されて送出された2個目の1ワードデ
ータ“1111(0)”に、例えばデータ転送バス16
a上での障害により“1011(0)”と変化する誤り
が生じ、受信部12に転送された場合には、ROM43
からの2回目のパリティ指定情報dに応じたパリティチ
ェック回路18における偶数パリティのエラー検出処理
によりパリティエラーが検出される。
Here, for example, the data transfer bus 16 is added to the second 1-word data “1111 (0)” sent with the even parity bit added in the transmitting section 11.
If an error that changes to “1011 (0)” occurs due to a failure on a and is transferred to the receiving unit 12, the ROM 43
A parity error is detected by the even parity error detection processing in the parity check circuit 18 according to the second parity designation information d from.

【0101】すると、受信データラッチ部17からデー
タバス16bに送出される誤りの生じた1ワードデータ
“1011”には、上記パリティチェック回路18から
エラー検出信号が付加されてエラー通知される。
Then, an error detection signal is added from the parity check circuit 18 to the 1-word data "1011" in which an error has occurred, which is sent from the reception data latch section 17 to the data bus 16b, and an error is notified.

【0102】つまり、被送信1ワードデータに対する1
ビット誤りによるエラー検出が成されるようになる。一
方、上記送信部11において偶数パリティビットが付加
されて送出された2個目の1ワードデータ“1111
(0)”が、例えばデータ転送バス16a上での障害に
より抜けてしまい、受信部12には、該偶数パリティビ
ットの付加された2個目の1ワードデータを抜かして奇
数パリティビットの付加された3個目の1ワードデータ
“1100(1)”が転送された場合には、ROM43
からの2回目のパリティ指定情報dに応じたパリティチ
ェック回路18における偶数パリティのエラー検出処理
によりパリティエラーが検出される。
That is, 1 for 1 word data to be transmitted.
The error detection by the bit error comes to be performed. On the other hand, the second 1-word data “1111” added with an even parity bit and transmitted by the transmitting unit 11
(0) ”is omitted due to, for example, a failure on the data transfer bus 16a, and the odd number parity bit is added to the receiving unit 12 by removing the second 1-word data to which the even parity bit is added. When the third 1-word data “1100 (1)” is transferred, the ROM 43
A parity error is detected by the even parity error detection processing in the parity check circuit 18 according to the second parity designation information d from.

【0103】すると、受信データラッチ部17からデー
タバス16bに対し、2個目に転送された1ワードデー
タとして送出される実際には3個目の1ワードデータ
“1100”には、上記パリティチェック回路18から
エラー検出信号が付加されてエラー通知される。
Then, the parity check is performed on the third 1-word data "1100" actually sent from the reception data latch unit 17 to the data bus 16b as the 1-word data transferred second. An error detection signal is added from the circuit 18 to notify the error.

【0104】つまり、複数ワードのデータ転送を行なう
場合のワード抜けによるエラー検出が成されるようにな
る。したがって、上記構成の第4のデータ転送誤り検出
装置によれば、送信部11の送信データラッチ部13に
て順次ラッチされてデータ転送バス16aを介し受信部
12へ転送される各1ワードデータのそれぞれに対し、
ROM41から予め設定された順番で読み出される偶数
パリティ指定情報あるいは奇数パリティ指定情報に基づ
き、偶数パリティビットと奇数パリティビットとをパリ
ティ生成回路14にて切換え生成して付加し、受信部1
2の受信データラッチ部17に順次転送ラッチされる各
1ワードデータに対しては、ROM43から上記送信部
ROM41と同仕様に予め設定された順番で読み出され
る偶数パリティ指定情報あるいは奇数パリティ指定情報
に基づき、偶数パリティのエラー検出と奇数パリティの
エラー検出とを切換え実行するので、データ量としては
単にパリティビットが付加されるのみで、各1ワードデ
ータに対する1ビット誤りが生じた場合のエラー検出が
行なえるだけでなく、ワード抜けが生じた場合のエラー
検出をも行なうことができる。
That is, when data transfer of a plurality of words is performed, error detection due to missing words is performed. Therefore, according to the fourth data transfer error detecting device having the above-mentioned configuration, the 1-word data of each word which is sequentially latched by the transmission data latching section 13 of the transmitting section 11 and transferred to the receiving section 12 via the data transfer bus 16a. For each
Based on the even parity designation information or the odd parity designation information read from the ROM 41 in a preset order, an even parity bit and an odd parity bit are switched and generated by the parity generation circuit 14 and added.
For each 1-word data sequentially transferred and latched to the reception data latch unit 17 of No. 2, the even parity designation information or the odd parity designation information read out from the ROM 43 in the order preset to the same specifications as the transmission ROM 41 is used. On the basis of this, since the even parity error detection and the odd parity error detection are switched and executed, the parity bit is simply added as the data amount, and the error detection is performed when a 1-bit error occurs for each 1-word data. Not only can it be performed, but error detection can be performed when a word omission occurs.

【0105】この場合、ROM41及び43における偶
数パリティ指定情報と奇数パリティ指定情報との順番の
組合せ方によって、複数ワードの同時抜けに起因するエ
ラー検出をも行なうことができる。
In this case, it is possible to detect an error caused by the simultaneous omission of a plurality of words depending on the combination of the order of the even parity designation information and the odd parity designation information in the ROMs 41 and 43.

【0106】また、上記第4のデータ転送誤り検出装置
では、偶数及び奇数パリティビットを付加する順番やそ
のパリティエラーの検出順が、何れもROM41,43
にて予め設定されるので、転送データの秘匿性を確保す
ることができる。
In the fourth data transfer error detecting device, the order of adding the even and odd parity bits and the order of detecting the parity error are both ROMs 41 and 43.
Since it is set in advance, confidentiality of transfer data can be secured.

【0107】[0107]

【発明の効果】以上のように本発明によれば、第1乃至
第4のデータ転送誤り検出装置の何れにあっても、パリ
ティビットの付加のみで各1ワードデータに対する1ビ
ット誤りが生じた場合のエラー検出及びワード抜けが生
じた場合のエラー検出が行なえるので、データ転送量の
増加等を招くことなく、ワード抜けによるエラー検出を
も行なうことが可能になる。
As described above, according to the present invention, in any of the first to fourth data transfer error detection devices, a 1-bit error occurs for each 1-word data only by adding a parity bit. In this case, the error detection in the case and the error detection in the case where the word omission occurs can be performed. Therefore, it is possible to detect the error due to the word omission without causing an increase in the data transfer amount.

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

【図1】本発明の第1実施例に係わる第1のデータ転送
誤り検出装置の構成を示すブロック図。
FIG. 1 is a block diagram showing the configuration of a first data transfer error detection apparatus according to a first embodiment of the present invention.

【図2】本発明の第2実施例に係わる第2のデータ転送
誤り検出装置の構成を示すブロック図。
FIG. 2 is a block diagram showing the configuration of a second data transfer error detection apparatus according to the second embodiment of the present invention.

【図3】本発明の第3実施例に係わる第3のデータ転送
誤り検出装置の構成を示すブロック図。
FIG. 3 is a block diagram showing the configuration of a third data transfer error detection apparatus according to the third embodiment of the present invention.

【図4】本発明の第4実施例に係わる第4のデータ転送
誤り検出装置の構成を示すブロック図。
FIG. 4 is a block diagram showing the configuration of a fourth data transfer error detection apparatus according to the fourth embodiment of the present invention.

【符号の説明】[Explanation of symbols]

11…送信部、12…受信部、13,13a,13b…
送信データラッチ部、14,14a,14b…パリティ
生成回路、15…送信側1ビットカウンタ、16,16
b…データバス、16a…データ転送バス、17,17
a,17b…受信データラッチ部、18,18a,18
b…パリティチェック回路、19…受信側1ビットカウ
ンタ、21…データ供給部、22…データ幅変換部、2
3a,23b…データラッチ/偶数パリティチェック回
路、24a,24b…データラッチ/奇数パリティチェ
ック回路、25…ラッチ切換え回路、31…送信側2ビ
ットカウンタ、32…受信側2ビットカウンタ、41…
送信側ROM、42…送信側アドレスカウンタ、43…
受信側ROM、44…受信側アドレスカウンタ、a…送
信データラッチ信号、b…受信データラッチ信号、c…
ラッチ切換え信号、d…パリティ指定情報。
11 ... Transmission unit, 12 ... Reception unit, 13, 13a, 13b ...
Transmission data latch unit, 14, 14a, 14b ... Parity generation circuit, 15 ... Transmission side 1-bit counter, 16, 16
b ... data bus, 16a ... data transfer bus, 17, 17
a, 17b ... Received data latch section, 18, 18a, 18
b ... Parity check circuit, 19 ... Reception side 1-bit counter, 21 ... Data supply section, 22 ... Data width conversion section, 2
3a, 23b ... Data latch / even parity check circuit, 24a, 24b ... Data latch / odd parity check circuit, 25 ... Latch switching circuit, 31 ... Transmission side 2-bit counter, 32 ... Reception side 2-bit counter, 41 ...
Sending side ROM, 42 ... Sending side address counter, 43 ...
Receiving side ROM, 44 ... Receiving side address counter, a ... Transmission data latch signal, b ... Reception data latch signal, c ...
Latch switching signal, d ... Parity designation information.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 複数並列ビットからなる1ワードデータ
を順次転送するデータ転送システムで、被転送1ワード
データ毎に偶数又は奇数パリティビットを付加してデー
タ転送の1単位とするデータ転送装置に付加する誤り検
出装置において、 データ送信側において、順次送出される1ワードデータ
毎に偶数パリティビットと奇数パリティビットとを交互
に繰返し生成付加するパリティ生成手段と、 データ受信側において、順次転送されてくる1ワードデ
ータ毎に偶数パリティのエラー検出と奇数パリティのエ
ラー検出とを交互に繰返し実施するパリティ検出手段
と、 上記パリティ生成手段による初期の生成パリティと上記
パリティ検出手段による初期の検出パリティとを偶数パ
リティ又は奇数パリティの何れか一方に統一させる初期
パリティ設定手段とを具備し、 パリティビットの付加のみで各1ワードデータに対する
1ビット誤りが生じた場合のエラー検出及びワード抜け
が生じた場合のエラー検出を行なうことを特徴とするデ
ータ転送誤り検出装置。
1. A data transfer system for sequentially transferring 1-word data composed of a plurality of parallel bits, wherein an even or odd parity bit is added to each transferred 1-word data and added to a data transfer device as one unit of data transfer. In the error detecting device, the data transmitting side sequentially transfers the parity generating means for repeatedly generating and adding the even parity bit and the odd parity bit for each word data sequentially transmitted, and the data receiving side sequentially transfers the parity generating means. Parity detecting means for alternately repeating even parity error detection and odd parity error detection for each 1-word data, and an even generated parity by the parity generation means and an initial detected parity by the parity detection means are even numbers. Initial parity to unify to either parity or odd parity A data transfer error detecting device comprising a setting means and performing error detection when a 1-bit error occurs in each 1-word data and error detection when a word omission occurs only by adding a parity bit. .
【請求項2】 複数並列ビットからなる1ワードデータ
を偶数の複数ワードに変換して並列転送するデータ転送
システムで、1ワードデータ毎に偶数又は奇数パリティ
ビットを付加して複数ワードの1単位とするデータ転送
装置に付加する誤り検出装置において、 データ供給元において、順次供給される1ワードデータ
毎に偶数パリティビットと奇数パリティビットとを交互
に繰返し生成付加するパリティ生成手段と、 このパリティ生成手段により偶数パリティビット及び奇
数パリティビットの順次付加された各1ワードデータ
を、偶数の複数ワード分順次ラッチして並列変換するデ
ータ変換手段と、 このデータ変換手段において上記データ供給元からの各
1ワードデータがラッチされる毎に、偶数パリティのエ
ラー検出と奇数パリティのエラー検出とを交互に切換え
実施するパリティ切換え検出手段と、 上記パリティ生成手段による初期の生成パリティと上記
パリティ切換え検出手段による切換え初期の検出パリテ
ィとを偶数パリティ又は奇数パリティの何れか一方に統
一させる初期パリティ設定手段とを具備し、 1ワードデータを偶数の複数ワードデータに並列変換し
て転送する際に、パリティビットの付加のみで各1ワー
ドデータに対する1ビット誤りが生じた場合のエラー検
出及びワード抜けが生じた場合のエラー検出を行なうこ
とを特徴とするデータ転送誤り検出装置。
2. A data transfer system for converting 1-word data composed of a plurality of parallel bits into an even-numbered plurality of words and transferring them in parallel and adding an even or odd parity bit to each word data to form a unit of a plurality of words. In the error detection device to be added to the data transfer device, a parity generation means for alternately and repeatedly generating and adding an even parity bit and an odd parity bit for each sequentially supplied word data at the data supply source, and the parity generation means. Data conversion means for sequentially latching each one-word data to which an even parity bit and an odd parity bit are sequentially added by a plurality of even-numbered words and performing parallel conversion, and each word from the data supply source in this data conversion means. Each time data is latched, even parity error detection and odd parity error detection The parity switching detection means for alternately switching the error detection and the parity generation detection means, and the parity generated initially by the parity generation means and the detection parity initially detected by the parity switching detection means are unified to either even parity or odd parity. An initial parity setting means is provided to detect an error when a 1-bit error occurs in each 1-word data only by adding a parity bit when parallel-converting 1-word data into an even number of plural-word data and transferring the data. A data transfer error detection device characterized by performing an error detection when a word omission occurs.
【請求項3】 複数並列ビットからなる1ワードデータ
の複数ワードを1単位として転送するデータ転送システ
ムのデータ転送装置に付加する誤り検出装置において、 データ送信側に備えられ、1単位として転送するワード
数nに対応したカウントビット数nを有し上記複数ワー
ドの送出転送毎にカウント値の更新されるnビットカウ
ンタと、 データ送信側において、順次送出される複数ワード中の
各1ワードデータに対し上記nビットカウンタの各ビッ
トカウント値に応じて偶数パリティビットあるいは奇数
パリティビットを生成付加するパリティ生成手段と、 データ受信側において、順次転送されてくる複数ワード
中の各1ワードデータに対し、上記nビットカウンタに
おけるデータ送出時と同様の各ビットカウント値に応じ
て偶数パリティのエラー検出あるいは奇数パリティのエ
ラー検出を実施するパリティ検出手段とを具備し、 パリティビットの付加のみで同時転送複数ワード中の各
1ワードデータに対する1ビット誤りが生じた場合のエ
ラー検出及び(n−1)ワードまでのワード抜けが生じ
た場合のエラー検出を行なうことを特徴とするデータ転
送誤り検出装置。
3. An error detecting device to be added to a data transfer device of a data transfer system for transferring a plurality of words of one word data composed of a plurality of parallel bits as one unit, the word being provided on the data transmitting side and transferred as one unit. An n-bit counter having a count bit number n corresponding to the number n and having a count value updated every transmission of the plurality of words, and for each 1-word data in the plurality of words sequentially transmitted on the data transmission side Parity generating means for generating and adding an even parity bit or an odd parity bit according to each bit count value of the n-bit counter, and for each 1-word data in a plurality of words sequentially transferred at the data receiving side, Depending on each bit count value, which is the same as when sending data from the n-bit counter, Parity detection means for performing error detection of parity or odd parity, and error detection when a 1-bit error occurs for each 1-word data in a plurality of words simultaneously transferred only by adding a parity bit. n-1) A data transfer error detection device characterized by performing an error detection when a word omission up to a word occurs.
【請求項4】 複数並列ビットからなる1ワードデータ
を順次転送するデータ転送システムで、被転送1ワード
データ毎に偶数又は奇数パリティビットを付加してデー
タ転送の1単位とするデータ転送装置に付加する誤り検
出装置において、 データ送信側において、順次送出される1ワードデータ
毎に偶数パリティビットと奇数パリティビットとを予め
設定された順序に従って切換え生成付加するパリティ生
成手段と、 データ受信側において、順次転送されてくる1ワードデ
ータ毎に偶数パリティのエラー検出と奇数パリティのエ
ラー検出とを上記パリティ生成手段の場合同様に予め設
定された順序に従って切換え実施するパリティ検出手段
とを具備し、 非定期的に切換えられる偶数あるいは奇数パリティビッ
トの付加のみで各1ワードデータに対する1ビット誤り
が生じた場合のエラー検出及びワード抜けが生じた場合
のエラー検出を行なうこと及びデータ内容を秘匿するこ
とを特徴とするデータ転送誤り検出装置。
4. A data transfer system for sequentially transferring 1-word data composed of a plurality of parallel bits, which is added to a data transfer device in which an even or odd parity bit is added to each transferred 1-word data as one unit of data transfer. In the error detection device, the data transmission side sequentially generates and adds the even parity bit and the odd parity bit for each word data sequentially transmitted in accordance with the preset order, and the data reception side sequentially. The parity detection means is provided for switching the even parity error detection and the odd parity error detection for each transferred one word data in the same order as in the case of the parity generation means, and aperiodically. 1 word data only by adding an even or odd parity bit that can be switched to A data transfer error detection device characterized by performing error detection when a 1-bit error occurs in a data, error detection when a word omission occurs, and concealing data contents.
JP5290387A 1993-11-19 1993-11-19 Data transfer error detecting device Pending JPH07141214A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5290387A JPH07141214A (en) 1993-11-19 1993-11-19 Data transfer error detecting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5290387A JPH07141214A (en) 1993-11-19 1993-11-19 Data transfer error detecting device

Publications (1)

Publication Number Publication Date
JPH07141214A true JPH07141214A (en) 1995-06-02

Family

ID=17755361

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5290387A Pending JPH07141214A (en) 1993-11-19 1993-11-19 Data transfer error detecting device

Country Status (1)

Country Link
JP (1) JPH07141214A (en)

Similar Documents

Publication Publication Date Title
JP5624781B2 (en) COMMUNICATION SYSTEM, DATA TRANSMITTING DEVICE, AND DATA RECEIVING DEVICE
US6393082B1 (en) Signal synchronism detecting circuit
JPS62122432A (en) Error check system in serial data transfer
JP2005354310A (en) Device and method for data transmission and device and method for data reception
JPH07141214A (en) Data transfer error detecting device
JP3569718B2 (en) Output data processing device of base station modem for IS-2000 mobile communication system
JPH0738626B2 (en) Word sync detection circuit
JPH1198160A (en) Transmitting/receiving circuit
JPH10111842A (en) Device for receiving synchronization serial transmission data
JPH1131084A (en) Parity check circuit
JPH10222386A (en) Parity error detection system
JP2677274B2 (en) Variable length serial data communication system
JP2021141489A (en) Transmitting device, receiving device, transmitting method, and receiving method
JPH065831B2 (en) Signal frame transmission method
JPH01205628A (en) Code converting circuit for digital transmission equipment
JP2001168730A (en) Data transmitter-receiver
JPH0439928B2 (en)
JPH034623A (en) Serial data transmission system
JPH0865277A (en) Serial data transmitting method
JPH0653938A (en) Serial data transmission system
JPS63100524A (en) Information processing system
JPS59135561A (en) Detecting and transmitting circuit of circuit control signal
JPH01252036A (en) Data transmission system
JPH0214648A (en) Data transmission circuit
JPH09179818A (en) Asynchronous serial data transmission equipment