JP2000020332A - Parity generation method - Google Patents
Parity generation methodInfo
- Publication number
- JP2000020332A JP2000020332A JP10190082A JP19008298A JP2000020332A JP 2000020332 A JP2000020332 A JP 2000020332A JP 10190082 A JP10190082 A JP 10190082A JP 19008298 A JP19008298 A JP 19008298A JP 2000020332 A JP2000020332 A JP 2000020332A
- Authority
- JP
- Japan
- Prior art keywords
- parity
- data
- bit
- xor
- bits
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Detection And Correction Of Errors (AREA)
Abstract
(57)【要約】
【課題】複数個のパリティに分割後、再度もとの1個の
パリティに変換する段階でビットエラーが消滅しないよ
うにする。
【解決手段】あるデータ長に対し1ビットのパリティを
有しているデータを、複数個のデータに分割しそれぞれ
のデータに対し1ビットのパリティを生成する時、1番
目のパリティから最終の1つ前のパリティまでは、当該
データ部の奇数パリティを生成し、最終のパリティは、
最終部を除いたデータ部分と分割前の1個のパリティの
排他的論理和で生成することで達成される。
(57) [Summary] [Problem] To prevent a bit error from disappearing at a stage of dividing into a plurality of parities and converting to a single original parity again. Kind Code: A1 When data having a 1-bit parity with respect to a certain data length is divided into a plurality of data and a 1-bit parity is generated for each data, the first parity is converted to the last one. Until the previous parity, odd parity of the data part is generated, and the final parity is
This is achieved by generating an exclusive OR of the data portion excluding the last part and one parity before division.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、複数個のデータに
分割したときの各データのパリティの生成方法に関す
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for generating a parity of each data when the data is divided into a plurality of data.
【0002】[0002]
【従来の技術】科学技術計算の分野では、一般にデータ
長8ビットと、そのデータのパリティ1ビットを付加し
て計9ビットからなるビット列を1単位で扱っている。
この1単位のビット列が演算処理により、左右どちらか
にシフトしたり、データの長さが変化したりする時に、
パリティもこれを考慮して補正を行わなければならな
い。ここで、パリティの補正を簡略化するために、デー
タをある長さに分割しその分割した各データに対するパ
リティビットを付加する方法がある。2. Description of the Related Art In the field of scientific and technical calculations, generally, a data string of 8 bits and a parity of the data is added, and a bit string composed of a total of 9 bits is handled in one unit.
When the bit string of one unit shifts to the left or right or the length of data changes due to arithmetic processing,
Parity must be corrected taking this into account. Here, in order to simplify parity correction, there is a method of dividing data into a certain length and adding a parity bit to each of the divided data.
【0003】あるデータ長に対し1ビットのパリティを
有しているデータを、複数個のデータに分割しそれぞれ
のデータに対し1ビットのパリティを生成する過程で、
ビットエラーが正確に伝搬することが必要である。In the process of dividing data having a 1-bit parity for a certain data length into a plurality of data and generating a 1-bit parity for each data,
It is necessary that bit errors propagate correctly.
【0004】図3を用いて、従来技術による2個のデー
タ分割による2個のパリティの生成方法を次に示す。Referring to FIG. 3, a method of generating two parities by dividing two data according to the prior art will be described below.
【0005】以下のようなデータ列とそのデータ列に対
するパリティビットがあり、 データ列:a(0),a(1),a(2),...,a(k),a(k+1),a(k+
2),...,a(n-1),a(n) パリティ:P ただし、パリティは奇数パリティを前提としている。There are the following data strings and parity bits for the data strings. Data strings: a (0), a (1), a (2),..., A (k), a (k + 1), a (k +
2),..., A (n-1), a (n) Parity: P However, parity is assumed to be odd parity.
【0006】前半のデータをa(0),a(1),a
(2),...,a(k)、後半のデータをa(k+1),a(k+
2),...,a(n)の2個に分割した時、各データのパリテ
ィビットの生成方法は以下になる。The first half of the data is a (0), a (1), a
(2),..., A (k)
When the data is divided into 2),..., A (n), the method of generating the parity bit of each data is as follows.
【0007】 前半データのパリティ:Ph=a(k+1) xor a(k+2) xor...
xor a(n-1) xor a(n)xor P 後半データのパリティ:Pl=a(0)xor a(1)xor a(2)x
or ... xor a(k)xorP ここで、xorは、排他的論理和を示す。そして、分割さ
れた各データのパリティビット(PhとPl)を再度分割前
のパリティビット(P)への変換は、以下の様にPhとPl
の排他的論理和の反転で実現される。Parity of first half data: Ph = a (k + 1) xor a (k + 2) xor ...
xor a (n-1) xor a (n) xor P Parity of second half data: Pl = a (0) xor a (1) xor a (2) x
or ... xor a (k) xorP Here, xor indicates exclusive OR. The conversion of the parity bits (Ph and Pl) of each of the divided data into the parity bits (P) before the division is performed as follows.
Is realized by inverting the exclusive OR of
【0008】分割前のパリティ:P=not(Ph xor Pl) ここで、notは、ビット反転を示す。Parity before division: P = not (Ph xor Pl) Here, not indicates bit inversion.
【0009】[0009]
【発明が解決しようとする課題】上記従来技術によるこ
のパリティ生成方法では、分割前のデータにビットエラ
ーが発生していた場合、分割された各データのパリティ
ビット両方(PhとPl)にエラーが伝搬し、再度1個のパ
リティビットへ変換されるとビットエラーが打ち消し合
い消滅してしまう。In the parity generation method according to the above prior art, when a bit error occurs in the data before division, an error occurs in both parity bits (Ph and Pl) of each divided data. When the signal propagates and is converted again into one parity bit, bit errors cancel each other out and disappear.
【0010】本発明の目的は、複数個のパリティに分割
後、再度1個のパリティに変換してもビットエラーが消
滅しないパリティ生成方法を提供することにある。An object of the present invention is to provide a parity generation method in which a bit error does not disappear even if the parity is divided into a plurality of parities and converted into one parity again.
【0011】[0011]
【課題を解決するための手段】あるデータ長に対し1ビ
ットのパリティを有しているデータを、複数個のデータ
に分割しそれぞれのデータに対し1ビットのパリティを
生成する時、1番目のパリティから最終の1つ前のパリ
ティまでは、当該データ部の奇数パリティを生成し、最
終のパリティは、最終部を除いたデータ部分と分割前の
1個のパリティの排他的論理和で生成することで達成さ
れる。When data having a 1-bit parity for a certain data length is divided into a plurality of data and a 1-bit parity is generated for each data, a first bit is generated. From the parity to the last previous parity, odd parity of the data part is generated, and the final parity is generated by exclusive OR of the data part excluding the last part and one parity before division. Is achieved by
【0012】[0012]
【発明の実施の形態】図1を用いて、上記と同様にデー
タ分割が行われた場合の各データのパリティビットの生
成方法を以下に示す。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Referring to FIG. 1, a method of generating parity bits of each data when data division is performed in the same manner as described above will be described below.
【0013】 前半データのパリティ:Ph=not(a(0) xor a(1) xor a
(2) xor...xor a(k)) 後半データのパリティ:Pl=a(0) xor a(1) xor a(2) x
or...xor a(k) xor P つまり、前半データのパリティは、単にそのまま前半デ
ータを用いて奇数パリティを生成し、後半データのパリ
ティは、前半データと分割前の1個のパリティの排他的
論理和で生成する。Parity of first half data: Ph = not (a (0) xor a (1) xor a
(2) xor ... xor a (k)) Parity of second half data: Pl = a (0) xor a (1) xor a (2) x
or ... xor a (k) xor P In other words, the parity of the first half data simply generates an odd parity using the first half data as it is, and the parity of the second half data is exclusive of the first half data and one parity before division. Is generated by logical disjunction.
【0014】この方法により、ビットエラーが伝搬する
パリティビットは、後半データのパリティのみになり、
再度1個のパリティビットへ変換されてもビットエラー
が消滅してしまう恐れはなくなる。According to this method, the parity bit in which the bit error propagates is only the parity of the second half data,
Even if it is converted into one parity bit again, there is no possibility that the bit error disappears.
【0015】以下にパリティ生成の具体例を説明する。A specific example of parity generation will be described below.
【0016】 データ :10100111 パリティ:1 1ビットエラーがある8ビット幅のデータ部とそのデー
タ部のパリティ1ビットからなるビット列がある。この
データ幅を4ビット幅で2分割して、それぞれのパリテ
ィを生成すると、始めに従来技術では、 前半4ビットのパリティ:Ph = (0 xor 1 xor 1 xor 1)
xor 1 = 0 後半4ビットのパリティ:Pl = (1 xor 0 xor 1 xor 0)
xor 1 = 1 となり、再度もとに戻したバイトパリティは not(0 xor
1) = 0 となり、ビットエラーが消滅してしまう。Data: 10100111 Parity: 1 There is an 8-bit data portion having a 1-bit error and a bit string composed of 1 bit parity of the data portion. When this data width is divided into two by a 4-bit width to generate respective parities, first, in the prior art, the parity of the first four bits: Ph = (0 xor 1 xor 1 xor 1)
xor 1 = 0 Parity of the latter 4 bits: Pl = (1 xor 0 xor 1 xor 0)
xor 1 = 1 and the byte parity restored again is not (0 xor
1) = 0, and the bit error disappears.
【0017】次に、本発明の生成方法では、 前半4ビットのパリティ:Ph = not(1 xor 0 xor 1 xor
0) = 1 後半4ビットのパリティ:Pl = (1 xor 0 xor 1 xor 0)
xor 1 = 1 となり、再度もとに戻したバイトパリティは not(1 xor
1) = 1 となり、ビットエラーが消滅することはない。Next, in the generation method of the present invention, the parity of the first four bits: Ph = not (1 xor 0 xor 1 xor
0) = 1 Parity of the last 4 bits: Pl = (1 xor 0 xor 1 xor 0)
xor 1 = 1 and the byte parity restored again is not (1 xor
1) = 1 and the bit error does not disappear.
【0018】上記の再度もとに戻したバイトパリティの
例は、ビット位置が変化していないか、8ビット単位に
シフトを行った場合で、4ビット単位にシフトを行った
場合については、再度もとに戻すバイトパリティが変わ
ってくる。The above-mentioned example of the byte parity returned to the original state is as follows. When the bit position has not changed or the shift is performed in units of 8 bits, the shift is performed in units of 4 bits. The original byte parity changes.
【0019】従来技術の方法においては、シフトする方
向のデータ部に1個のパリティエラーが移動することに
なるので、ビットエラーは打ち消し合って消滅すること
はなくなる。In the prior art method, since one parity error moves to the data portion in the shifting direction, the bit errors do not cancel each other out.
【0020】本発明の方法においては、右シフト時は、
右シフトした方向のデータ部に1個のパリティエラーが
移動し、左シフト時は、そのまま当該データ部に残るた
めビットエラーの消滅はない。よって、4ビット単位に
シフトを行った場合においては、従来技術、本発明の生
成方法共に問題はない。In the method of the present invention, when shifting right,
One parity error moves to the data portion in the right-shifted direction, and at the time of left shift, remains in the data portion as it is, so that the bit error does not disappear. Therefore, when shifting is performed in units of 4 bits, there is no problem in both the prior art and the generation method of the present invention.
【0021】以上のケースは2個のデータ分割による2
個のパリティの生成方法であったが、次に複数個のパリ
ティに分割後、再度1個のパリティに変換するケースに
ついて図2を用いて示す。1番目のパリティP(1)から
最終の1つ前のパリティP(m-1)までは、単にそのまま
奇数パリティを生成し、最終のパリティP(m)だけ、最
終部を除いたデータ部分と分割前の1個のパリティの排
他的論理和で生成する。これは、2個のデータ分割と同
様に最終部のみにビットエラーが伝搬することになり、
ビットエラーが消滅する恐れはない。The above case is based on two data divisions.
FIG. 2 shows a case where the number of parities is generated. Next, a case where the data is divided into a plurality of parities and then converted into one parity again is shown. From the first parity P (1) to the last previous parity P (m-1), an odd parity is simply generated as it is, and only the final parity P (m) is added to the data portion excluding the last part. It is generated by exclusive OR of one parity before division. This means that a bit error propagates only to the last part as in the case of two data divisions,
There is no danger that the bit error will disappear.
【0022】科学技術計算の分野では、データの表現方
法として浮動小数点データの形式が用いられる。商用大
型計算機で用いられる浮動小数点データの形式は、一般
に1ビットの符号部、7ビットの指数部、表現精度によ
りそれぞれ3/7/14バイトの仮数部からなってい
る。また指数部は16のべき乗で表現される。In the field of scientific computing, a floating-point data format is used as a data representation method. The format of floating-point data used in commercial large-scale computers generally includes a 1-bit sign part, a 7-bit exponent part, and a 3/7 / 14-byte mantissa part depending on expression precision. The exponent is represented by a power of 16.
【0023】浮動小数点加減算命令は、その演算の過程
においてプリスケールおよびポストノーマライズを実行
する。プリスケールは、指数の小なるオペランドの仮数
を、指数の差分の桁数だけ右にディジット(4ビット)
シフトし、ポストノーマライズは、中間和の上位より連
続するディジットゼロの桁数だけ左にディジットシフト
を行う。このシフト動作の量が偶数ディジットである場
合はバイト(8ビット)パリティでも特に不都合はない
が、奇数ディジットの場合はシフト動作の前後で1ディ
ジットづれることとなる。このづれを考慮するために、
パリティビット単位から、ディジット単位に付け替えを
行っている。ここで、本発明の方法でディジットパリテ
ィを生成すれば、正確なバイトパリティに戻すことが可
能となる。The floating-point addition / subtraction instruction executes pre-scale and post-normalization in the course of the operation. Prescale is to digitize the mantissa of the operand with the lower exponent to the right by the number of digits of the exponent difference (4 bits)
In the shift and post-normalization, digit shift is performed to the left by the number of digits of consecutive digit zeros from the upper part of the intermediate sum. When the amount of the shift operation is an even digit, there is no particular problem even with byte (8-bit) parity, but in the case of an odd digit, one digit is shifted before and after the shift operation. To take this into account,
The replacement is performed from the parity bit unit to the digit unit. Here, if the digit parity is generated by the method of the present invention, it is possible to return to the correct byte parity.
【0024】[0024]
【発明の効果】本発明の方法で複数個のパリティビット
分割を行えば、もとの1個のパリティビットに戻す過程
でビットエラーが消滅することはなくなる。When a plurality of parity bits are divided by the method of the present invention, bit errors do not disappear in the process of returning to the original one parity bit.
【図1】本発明の2個のパリティ生成変換回路を示す
図。FIG. 1 is a diagram showing two parity generation / conversion circuits of the present invention.
【図2】本発明の複数個のパリティ生成変換回路を示す
図。FIG. 2 is a diagram showing a plurality of parity generation / conversion circuits of the present invention.
【図3】従来の2個のパリティ生成変換回路を示す図。FIG. 3 is a diagram showing a conventional two parity generation / conversion circuits.
1…排他的論理和回路、 2…排他的論理和回
路、3…NOTゲート。1. Exclusive OR circuit, 2. Exclusive OR circuit, 3. NOT gate.
───────────────────────────────────────────────────── フロントページの続き (72)発明者 瀧口 誠 神奈川県秦野市堀山下1番地 株式会社日 立インフォメーションテクノロジー内 (72)発明者 柏原 義昌 神奈川県秦野市堀山下1番地 株式会社日 立インフォメーションテクノロジー内 (72)発明者 高橋 千秋 神奈川県秦野市堀山下1番地 株式会社日 立インフォメーションテクノロジー内 Fターム(参考) 5B001 AA01 AB03 AC01 ──────────────────────────────────────────────────続 き Continuing from the front page (72) Inventor Makoto Takiguchi 1 Horiyamashita, Hadano-shi, Kanagawa Prefecture Inside Nichi Information Technology Co., Ltd. (72) Inventor Yoshimasa Kashihara 1-ori Horiyamashita, Hadano-shi, Kanagawa Prefecture Nichi Information Technology Co., Ltd. (72) Inventor Chiaki Takahashi 1 Horiyamashita, Hadano-shi, Kanagawa F-term in Hitachi Information Technology Co., Ltd. 5B001 AA01 AB03 AC01
Claims (1)
有しているデータを、複数個のデータに分割し、それぞ
れのデータに対し1ビットのパリティを生成する時、ビ
ットエラーが正確に伝搬されていくことを特徴としたパ
リティ生成方法。1. When data having a 1-bit parity for a certain data length is divided into a plurality of data and a 1-bit parity is generated for each data, a bit error is accurately propagated. A parity generation method characterized by being performed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10190082A JP2000020332A (en) | 1998-07-06 | 1998-07-06 | Parity generation method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP10190082A JP2000020332A (en) | 1998-07-06 | 1998-07-06 | Parity generation method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2000020332A true JP2000020332A (en) | 2000-01-21 |
Family
ID=16252076
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP10190082A Pending JP2000020332A (en) | 1998-07-06 | 1998-07-06 | Parity generation method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2000020332A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6982942B2 (en) | 2001-10-15 | 2006-01-03 | Fujitsu Limited | Data recording and/or reproducing apparatus for demodulating data from a reproduction signal |
| WO2007088611A1 (en) | 2006-02-01 | 2007-08-09 | Fujitsu Limited | Parity generating circuit, arrangement circuit for parity generating circuit, information processing apparatus, and encoder |
| JP2008140462A (en) * | 2006-11-30 | 2008-06-19 | Toshiba Corp | Error correction processing apparatus and error correction processing method |
-
1998
- 1998-07-06 JP JP10190082A patent/JP2000020332A/en active Pending
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6982942B2 (en) | 2001-10-15 | 2006-01-03 | Fujitsu Limited | Data recording and/or reproducing apparatus for demodulating data from a reproduction signal |
| US7193952B2 (en) | 2001-10-15 | 2007-03-20 | Fujitsu Limited | Data reproducing apparatus for demodulating data from a reproduction signal |
| WO2007088611A1 (en) | 2006-02-01 | 2007-08-09 | Fujitsu Limited | Parity generating circuit, arrangement circuit for parity generating circuit, information processing apparatus, and encoder |
| US8291307B2 (en) | 2006-02-01 | 2012-10-16 | Fujitsu Limited | Parity generator, priority encoder, and information processor |
| JP2008140462A (en) * | 2006-11-30 | 2008-06-19 | Toshiba Corp | Error correction processing apparatus and error correction processing method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8601047B2 (en) | Decimal floating-point adder with leading zero anticipation | |
| US8694572B2 (en) | Decimal floating-point fused multiply-add unit | |
| CN101226492B (en) | Raid system and galois field product computation method | |
| EP0366331B1 (en) | System and method for error detection in the result of an arithmetic operation | |
| JPH0728227B2 (en) | Decoding device for BCH code | |
| JP3544846B2 (en) | Logic circuit and floating point arithmetic unit | |
| CN100440136C (en) | arithmetic unit | |
| US8166085B2 (en) | Reducing the latency of sum-addressed shifters | |
| RU2069009C1 (en) | Adding device | |
| JP2000020332A (en) | Parity generation method | |
| US6546411B1 (en) | High-speed radix 100 parallel adder | |
| JPH09244874A (en) | Method for predicting position of most significant digit bit | |
| JP7044528B2 (en) | Leading Zero Forecast | |
| Ndjountche | Digital electronics 1: Combinational logic circuits | |
| CN120631304B (en) | Floating point arithmetic device and method of operating the same | |
| Peon et al. | A VLSI implementation of an arithmetic coder for image compression | |
| JP2004173199A (en) | Error correction circuit using cyclic code | |
| CN121071278A (en) | Dot product circuit elements | |
| RU204275U1 (en) | FAIL-SAFE PROCESSOR WITH ERROR CORRECTION IN THE DATA BYTE | |
| JP3239866B2 (en) | Data inspection method and apparatus based on CRC and recording medium | |
| JP2752564B2 (en) | Leading one prediction device and floating point addition / subtraction device | |
| US5689721A (en) | Detecting overflow conditions for negative quotients in nonrestoring two's complement division | |
| SU926650A1 (en) | Device for simultaneous computation of two polynomials | |
| JP3539077B2 (en) | Division method by parallel operation method | |
| CN114327359A (en) | Three-input leading zero prediction algorithm |