JPH0233172B2 - - Google Patents

Info

Publication number
JPH0233172B2
JPH0233172B2 JP57179546A JP17954682A JPH0233172B2 JP H0233172 B2 JPH0233172 B2 JP H0233172B2 JP 57179546 A JP57179546 A JP 57179546A JP 17954682 A JP17954682 A JP 17954682A JP H0233172 B2 JPH0233172 B2 JP H0233172B2
Authority
JP
Japan
Prior art keywords
shift
bits
bytes
output
exclusive
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.)
Expired - Lifetime
Application number
JP57179546A
Other languages
Japanese (ja)
Other versions
JPS5968057A (en
Inventor
Wataru Shimoda
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.)
NEC Corp
Original Assignee
Nippon Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP57179546A priority Critical patent/JPS5968057A/en
Publication of JPS5968057A publication Critical patent/JPS5968057A/en
Publication of JPH0233172B2 publication Critical patent/JPH0233172B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy

Landscapes

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

Description

【発明の詳細な説明】 (1) 発明の属する技術分野の説明 本発明はチエツク機能を有するシフト回路に関
するものである。
DETAILED DESCRIPTION OF THE INVENTION (1) Description of the technical field to which the invention pertains The present invention relates to a shift circuit having a check function.

(2) 従来技術の説明 従来、この種のシフト回路は、入力データのビ
ツト配列と、入力データの任意のビツト位置から
取り出した出力データのビツト配列との間に規則
的な関係がなく、一般に回路のチエツク手段とし
て使われるパリテイチエツクの手法が取れないた
めに、回路を二重化してチエツクするかまたはチ
エツク手段をまつたく取らないかしている。
(2) Description of Prior Art Conventionally, in this type of shift circuit, there is no regular relationship between the bit array of input data and the bit array of output data extracted from an arbitrary bit position of the input data, and generally Since the parity check method used as a circuit check method cannot be used, the circuits are either duplicated and checked, or no check means are used at all.

従つて、チエツク手段を取らないシフト回路は
信頼性に欠け、また回路を二重化したシフト回路
はチエツク用の金物量が大きすぎる欠点があつ
た。
Therefore, shift circuits without checking means lack reliability, and shift circuits with duplicated circuits have the drawback of requiring too much metal for checking.

(3) 発明の目的の説明 本発明は従来の技術に内在する上記欠点を解消
する為になされたものであり、従つて本発明の目
的は、小量の金物量でチエツク機能を実現できる
新規なシフト回路を提供することにある。
(3) Description of the purpose of the invention The present invention has been made in order to eliminate the above-mentioned drawbacks inherent in the conventional technology. Therefore, the purpose of the present invention is to provide a new method that can realize a check function with a small amount of metal material. The purpose of the present invention is to provide a shift circuit that provides a shift circuit.

(4) 発明の構成 上記目的を達成する為に、本発明に係るシフト
回路は、入力される全パリテイビツトの排他的論
理和をとる第1の論理手段と、シフトビツト数の
下位3ビツトで示される数rとシフトビツト数か
らこの下位3ビツトを除いた上位のビツトで示さ
れる数qを出力するシフトビツト数出力手段と、
入力データをqバイトシフトして(m+1)バイ
トのデータを取り出す第1のシフト手段と、この
第1のシフト手段の(m+1)バイトの出力デー
タをrビツトだけ回転シフトしてシフト結果のm
バイトと残りの1バイトに分離して出力する第2
のシフト手段と、この結果のmバイトの排他的論
理和をとる第2の論理手段と、この残りの1バイ
トの排他的論理和をとる第3の論理手段と、nバ
イトの入力データに対応するnビツトのパリテイ
ビツトを入力としてqビツトのシフトを行い前記
第1のシフト手段から出力される(m+1)バイ
トのデータに対応する(m+1)ビツトのパリテ
イビツトを除いた(n−m−1)ビツトのパリテ
イビツトを出力する第3のシフト手段と、この第
3のシフト手段の出力の排他的論理和をとる第4
の論理手段と、前記第1、第2、第3及び第4の
論理手段の出力の排他的論理和の結果から動作の
正常性を判断するチエツク手段とを備えて構成さ
れるものである。
(4) Structure of the Invention In order to achieve the above object, the shift circuit according to the present invention includes a first logical means that takes the exclusive OR of all input parity bits, and a first logical means that calculates the exclusive OR of all input parity bits, and Shift bit number output means for outputting a number q indicated by the upper bits obtained by removing the lower 3 bits from the number r and the shift bit number;
A first shift means for shifting input data by q bytes to take out (m+1) bytes of data, and rotatingly shifting the (m+1) bytes of output data of the first shifting means by r bits to obtain the shift result m.
The second part that separates and outputs the byte and the remaining 1 byte
, a second logical means that takes the exclusive OR of m bytes of this result, and a third logical means that takes the exclusive OR of this remaining 1 byte, corresponding to n bytes of input data. (n-m-1) bits excluding the (m+1) parity bits corresponding to the (m+1) byte data outputted from the first shifting means by shifting q bits using the n-bit parity bits as input. a third shift means for outputting the parity bit of
and a check means for determining the normality of the operation based on the result of the exclusive OR of the outputs of the first, second, third, and fourth logic means.

(5) 発明の実施例の説明 次に本発明をその好ましい一実施例について図
面を参照して詳細に説明する。
(5) Description of Embodiments of the Invention Next, a preferred embodiment of the present invention will be described in detail with reference to the drawings.

第1図は本発明に係るシフト回路の一実施例を
示すブロツク構成図である。図において、本発明
の一実施例は、シフトビツト数格納レジスタ1
と、シフト部2と、A検出部3と、B検出部4
と、C検出部5と、判断部6とから構成される。
FIG. 1 is a block diagram showing an embodiment of a shift circuit according to the present invention. In the figure, one embodiment of the present invention has a shift bit number storage register 1.
, shift section 2, A detection section 3, and B detection section 4
, a C detection section 5 , and a judgment section 6 .

シフトビツト数格納レジスタ1は6ビツトのレ
ジスタであり、シフト部2でシフト可能な0〜63
ビツトの値を示す。
The shift bit number storage register 1 is a 6-bit register, which can be shifted by the shift unit 2 from 0 to 63.
Indicates the bit value.

シフト部2は、入力が16バイト128ビツト、出
力が8バイト64ビツトの左シフト部専門のシフタ
である。シフトビツト数が0の場合、入力データ
のビツト0からビツト63を出力し、シフトビツト
数が最大63の場合、入力データのビツト63からビ
ツト126を出力する。
The shift section 2 is a shifter specialized for the left shift section with an input of 16 bytes, 128 bits, and an output of 8 bytes, 64 bits. When the number of shift bits is 0, bits 0 to 63 of the input data are output, and when the number of shift bits is maximum 63, bits 63 to 126 of the input data are output.

A検出部3は、シフト部2へ入力する128ビツ
トのデータの排他的論理和を取り、その結果を判
断部6へ送る。
The A detection section 3 performs an exclusive OR on the 128-bit data input to the shift section 2 and sends the result to the judgment section 6.

B検出部4は、シフト部2から出力する64ビツ
トのデータの排他的論理和を取り、その結果を判
断部6へ送る。
The B detection section 4 takes the exclusive OR of the 64-bit data output from the shift section 2 and sends the result to the judgment section 6.

C検出部5は、シフト部2へ入力する128ビツ
トのデータの内の出力される64ビツトを除いた部
分の排他的論理和を取り、その結果を判断部6へ
送る。
The C detection section 5 performs an exclusive OR operation on the 128-bit data input to the shift section 2 excluding the output 64 bits, and sends the result to the judgment section 6.

判断部6は、シフト部2での動作が正常である
ならばシフト部2へ入力する128ビツトのデータ
は必ずB検出部4あるいはC検出部5のどちらか
一方で検出されると仮定して、A検出部3、B検
出部4、C検出部5からの出力から動作の正常性
を判定する。
The judgment section 6 assumes that if the operation of the shift section 2 is normal, the 128-bit data input to the shift section 2 will always be detected by either the B detection section 4 or the C detection section 5. , the normality of the operation is determined from the outputs from the A detection section 3, the B detection section 4, and the C detection section 5.

第2図はシフト部2の具体的な回路構成図であ
る。
FIG. 2 is a specific circuit configuration diagram of the shift section 2. As shown in FIG.

シフト部2は16個のシフト回路素子7で構成さ
れる。このシフト回路素子7は16ビツト入力9ビ
ツト出力であり、3ビツトのシフトビツト数指示
によつて0ビツトから7ビツトの左シフトが可能
である。この素子を使つて二段構成で0から63ビ
ツトのシフトを行う。一段目では8のn倍(n=
0〜7)ビツトのシフト即ちバイト単位のシフト
を行い、二段目では0から7ビツトのシフトを行
う。
The shift section 2 is composed of 16 shift circuit elements 7. This shift circuit element 7 has a 16-bit input and a 9-bit output, and can perform a left shift from 0 bits to 7 bits in response to a 3-bit shift bit number instruction. This element is used to shift from 0 to 63 bits in a two-stage configuration. In the first stage, n times 8 (n=
0 to 7) A bit shift, that is, a shift in units of bytes, is performed, and in the second stage, a 0 to 7 bit shift is performed.

バイト単位のシフトを行うために、一段目では
素子上の1ビツトシフトが入力データの8ビツト
シフトになる様、入力データをビツト0、8、16
…の順でシフト回路素子に入力される。このバイ
ト単位のシフトにより、入力データの16バイト中
の、シフトビツト数格納レジスタ1の上位3ビツ
トで示されるバイト位置からの9バイトを出力デ
ータとなるビツトを含むバイトとして選択する。
このことは、これ以外の7バイトは、入力データ
の内の出力されない部分であることを示す。二段
目では入力する9バイト72ビツトの中から、シフ
トビツト数格納レジスタ1の下位3ビツトで示さ
れるビツト位置からの64ビツトを出力データとし
て選択する。この時、二段目に入力する72ビツト
のMSBとLSBを連結することにより、二段目の
出力のビツト64〜71に、出力入力データとならな
い入力データビツトを8ビツト出力させることが
できる。
To perform a byte-by-byte shift, in the first stage, the input data is divided into bits 0, 8, and 16 so that a 1-bit shift on the element becomes an 8-bit shift of the input data.
... are input to the shift circuit element in this order. By this byte-by-byte shift, 9 bytes from the byte position indicated by the upper 3 bits of shift bit number storage register 1 out of 16 bytes of input data are selected as bytes containing bits that will become output data.
This indicates that the other 7 bytes are part of the input data that is not output. In the second stage, 64 bits from the bit position indicated by the lower 3 bits of shift bit number storage register 1 are selected as output data from among the input 9 bytes and 72 bits. At this time, by concatenating the 72-bit MSB and LSB input to the second stage, it is possible to output 8 bits of input data that do not become output input data to bits 64 to 71 of the second stage output.

第3図はA検出部3とB検出部4とC検出部5
と判断部6の具体的な回路である。
Figure 3 shows an A detection section 3, a B detection section 4, and a C detection section 5.
This is a specific circuit of the determination unit 6.

A検出部3は、入力データの奇数パリテイビツ
トを反転する16個のインバータ9と、反転した16
ビツトの奇数パリテイビツトの排他的論理和を取
る3個の8入力排他的論理和回路素子8とから構
成される。反転した奇数パリテイビツトは8ビツ
トのデータの排他的論理和を取るのに等しく、反
転した16ビツトの奇数パリテイビツトの排他的論
理和を取つた出力は、入力データ128ビツトの排
他的論理和を取つた出力となる。
The A detection unit 3 includes 16 inverters 9 that invert odd parity bits of input data, and 16 inverters 9 that invert odd parity bits of input data.
It is composed of three 8-input exclusive OR circuit elements 8 that take the exclusive OR of odd parity bits. The inverted odd parity bits are equivalent to the exclusive OR of 8-bit data, and the output obtained by exclusive ORing the inverted 16-bit odd parity bits is the same as the exclusive OR of the 128-bit input data. This becomes the output.

B検出部4は、64ビツトの出力データの排他的
論理和を取る9個の8入力排他的論理和回路素子
8から構成される。この内の8個の排他的論理和
回路素子8は、各バイト毎の排他的論理和を取
り、その出力をパリテイビツトとして使うこと
で、シフト回路チエツク手段の金物量から除外で
きる。
The B detection section 4 is composed of nine 8-input exclusive OR circuit elements 8 that take the exclusive OR of 64-bit output data. Of these, eight exclusive OR circuit elements 8 can be excluded from the metal quantity of the shift circuit check means by performing an exclusive OR on each byte and using the output as a parity bit.

C検出部5は、検出部3で作つた16ビツトの反
転した奇数パリテイビツトを入力し7ビツトを出
力するシフト回路素子7と、その出力の7ビツト
と第2図で示したシフト回路の二段目出力のビツ
ト64〜71の8ビツトとの排他的論理和を取る3個
の8入力排他的論理和回路素子8とから構成され
る。シフト回路素子7は、第4図で示す通り、入
力データのビツト9〜15、0、1〜8の順で反転
した奇数パリテイビツトを入力し、シフトビツト
数格納レジスタ1の上位3ビツトで示すビツト数
だけシフトして出力ビツト0〜6の7ビツトに入
力ビツトを出力する。この出力はシフトビツト数
が0の時にはバイト9〜15の反転した奇数パリテ
イビツト、シフトビツト数が最大の7の時にはバ
イト0〜6の反転した奇数パリテイビツトとな
る。これは、第2図で示したシフト回路の一段目
出力で出力されないバイト、即ち、入力データの
内の出力されない8バイト中の7バイトである。
シフト回路の二段目出力のバイト64〜71は一段目
出力の9バイト中の出力されない8ビツトであ
り、このビツトと前記シフト回路素子7の出力の
7ビツトと排他的論理和を取ることは、シフト部
2へ入力する128ビツトのデータの内の出力され
ない64ビツトのデータの排他的論理和を取ること
である。
The C detection section 5 includes a shift circuit element 7 which inputs the 16-bit inverted odd parity bit produced by the detection section 3 and outputs 7 bits, and a shift circuit element 7 which outputs 7 bits and the two stages of the shift circuit shown in FIG. It is composed of three 8-input exclusive OR circuit elements 8 which take the exclusive OR with the 8 bits 64 to 71 of the second output. As shown in FIG. 4, the shift circuit element 7 inputs the odd parity bits inverted in the order of bits 9 to 15, 0, and 1 to 8 of the input data, and inputs the bit number indicated by the upper three bits of the shift bit number storage register 1. and outputs the input bits to 7 bits of output bits 0 to 6. This output becomes the inverted odd parity bits of bytes 9 to 15 when the number of shift bits is 0, and the inverted odd parity bits of bytes 0 to 6 when the shift bit number is the maximum 7. These are the bytes that are not output by the first stage output of the shift circuit shown in FIG. 2, ie, 7 bytes out of 8 bytes of input data that are not output.
Bytes 64 to 71 of the second stage output of the shift circuit are 8 bits that are not output out of the 9 bytes of the first stage output, and exclusive ORing of these bits with the 7 bits of the output of the shift circuit element 7 is as follows. , to take the exclusive OR of 64 bits of data that are not output out of the 128 bits of data input to the shift unit 2.

判断部6は、A検出部3の出力と、B検出部4
の出力と、C検出部5の出力との排他的論理和を
取る8入力排他的論理和回路素子8で構成され
る。
The judgment unit 6 receives the output of the A detection unit 3 and the B detection unit 4.
It is composed of an 8-input exclusive OR circuit element 8 that takes the exclusive OR of the output of the C detector 5 and the output of the C detection section 5.

シフト部2での動作が正常であるか否かの判定
の基準として、正常であるならば入力する128ビ
ツトのデータは必ずB検出部4あるいはC検出部
5のどちらか一方で検出されると仮定しているの
で、この3入力の排他的論理和を取る判断部6の
出力は、動作が正常であれば論理“0”となる。
As a criterion for determining whether or not the operation of the shift section 2 is normal, it is assumed that if the operation is normal, the input 128-bit data will always be detected by either the B detection section 4 or the C detection section 5. Since this assumption is made, the output of the judgment unit 6 which takes the exclusive OR of these three inputs will be logic "0" if the operation is normal.

(6) 発明の効果の説明 本発明には、以上説明したように、シフト回路
の入力データの排他的論理和の結果と、シフト回
路の出力データの排他的論理和の結果と、シフト
回路への入力データの内の出力データとならない
部分の排他的論理和の結果からシフト回路のチエ
ツクを行うことにより、シフト回路のチエツクを
少ない金物量でできるという効果がある。
(6) Description of Effects of the Invention As explained above, the present invention includes the following: the result of the exclusive OR of the input data of the shift circuit, the result of the exclusive OR of the output data of the shift circuit, and the input data to the shift circuit. By checking the shift circuit based on the result of the exclusive OR of the portion of the input data that does not become the output data, there is an effect that the shift circuit can be checked with a small amount of hardware.

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

第1図は本発明の一実施例を示すブロツク構成
図、第2図は第1図に示したシフト部の回路図、
第3図は第1図に示したA検出部とB検出部とC
検出部と判断部の回路図、第4図は第3図に示し
たシフト回路素子の入力データと出力データのビ
ツト配列図である。 1……シフトビツト数格納レジスタ、2……シ
フト部、3……A検出部、4……B検出部、5…
…C検出部、6……判断部、7……シフト回路素
子、8……排他的論理和回路素子、9……インバ
ータ。
FIG. 1 is a block configuration diagram showing an embodiment of the present invention, FIG. 2 is a circuit diagram of the shift section shown in FIG. 1,
Figure 3 shows the A detection section, B detection section and C
FIG. 4 is a circuit diagram of the detection section and judgment section, and is a bit arrangement diagram of input data and output data of the shift circuit element shown in FIG. 3. 1...Shift bit number storage register, 2...Shift section, 3...A detection section, 4...B detection section, 5...
. . . C detection section, 6 . . . judgment section, 7 . . . shift circuit element, 8 . . . exclusive OR circuit element, 9 .

Claims (1)

【特許請求の範囲】[Claims] 1 n(n≧3)バイトからなる入力データと
各々のバイトに対して付加されたnビツトのパリ
テイビツトを入力とし任意のビツト位置から始ま
るm(m≦n−2)バイトのデータを取り出すこ
とを目的とするシフト回路であつて、入力される
全パリテイビツトの排他的論理和をとる第1の論
理手段と、シフトビツト数の下位3ビツトで示さ
れる数rとシフトビツト数からこの下位3ビツト
を除いた上位のビツトで示される数qを出力する
シフトビツト数出力手段と、入力データをqバイ
トシフトして(m+1)バイトのデータを取り出
す第1のシフト手段と、この第1のシフト手段の
(m+1)バイトの出力データをrビツトだけ回
転シフトしてシフト結果のmバイトと残りの1バ
イトに分離して出力する第2のシフト手段と、こ
の結果のmバイトの排他的論理和をとる第2の論
理手段と、この残りの1バイトの排他的論理和を
とる第3の論理手段と、nバイトの入力データに
対応するnビツトのパリテイビツトを入力として
qビツトのシフトを行い前記第1のシフト手段か
ら出力される(m+1)バイトのデータに対応す
る(m+1)ビツトのパリテイビツトを除いた
(n−m−1)ビツトのパリテイビツトを出力す
る第3のシフト手段と、この第3のシフト手段の
出力の排他的論理和をとる第4の論理手段と、前
記第1、第2、第3及び第4の論理手段の出力の
排他的論理和の結果から動作の正常性を判断する
チエツク手段とを有することを特徴とするシフト
回路。
1 Input data consisting of n (n≧3) bytes and n parity bits added to each byte, and extract m (m≦n-2) bytes of data starting from an arbitrary bit position. The target shift circuit includes a first logical means that takes the exclusive OR of all input parity bits, a number r indicated by the lower three bits of the number of shift bits, and a number r that removes these lower three bits from the number of shift bits. A shift bit number output means for outputting a number q indicated by the upper bits, a first shift means for shifting input data by q bytes to extract (m+1) bytes of data, and a (m+1) number of the first shift means. a second shift means that rotationally shifts byte output data by r bits and separates and outputs the shift result m bytes and the remaining 1 byte; and a second shift means that takes an exclusive OR of the resultant m bytes. a logic means, a third logic means that performs an exclusive OR of the remaining 1 byte, and the first shift means that shifts q bits using n parity bits corresponding to n bytes of input data as input. a third shift means for outputting (n-m-1) parity bits excluding (m+1) parity bits corresponding to (m+1) bytes of data output from the third shift means; and an output of the third shift means. and a check means for determining the normality of the operation from the result of the exclusive OR of the outputs of the first, second, third and fourth logic means. A shift circuit comprising:
JP57179546A 1982-10-12 1982-10-12 Shift circuit Granted JPS5968057A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57179546A JPS5968057A (en) 1982-10-12 1982-10-12 Shift circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57179546A JPS5968057A (en) 1982-10-12 1982-10-12 Shift circuit

Publications (2)

Publication Number Publication Date
JPS5968057A JPS5968057A (en) 1984-04-17
JPH0233172B2 true JPH0233172B2 (en) 1990-07-25

Family

ID=16067634

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57179546A Granted JPS5968057A (en) 1982-10-12 1982-10-12 Shift circuit

Country Status (1)

Country Link
JP (1) JPS5968057A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63259732A (en) * 1987-04-16 1988-10-26 Nec Corp Shift arithmetic circuit

Also Published As

Publication number Publication date
JPS5968057A (en) 1984-04-17

Similar Documents

Publication Publication Date Title
JPS62133825A (en) Crc bit calculator
EP0265639A2 (en) ECC circuit failure verifier
US5535402A (en) System for (N•M)-bit correlation using N M-bit correlators
EP0101218A2 (en) Methods of correcting errors in binary data
JPH0728227B2 (en) Decoding device for BCH code
JPS5864844A (en) Synchronism detecting system
US3571795A (en) Random and burst error-correcting systems utilizing self-orthogonal convolution codes
US5003541A (en) Method and circuit for semiconductor memory processing of video signals with Reed-Solomon error detection
US4498178A (en) Data error correction circuit
US5068856A (en) Method and circuit for detecting data error
GB2042228A (en) Data correcting system
JPH0233172B2 (en)
JPH0413735B2 (en)
US5671238A (en) Method and circuitry for generating r-bit parallel CRC code for an l-bit data source
US4519079A (en) Error correction method and apparatus
JP2565730B2 (en) Overflow detection circuit
EP0146632B1 (en) Majority circuit
JPS607315B2 (en) digital correlation detector
JP3521558B2 (en) Transmission equipment
KR19980032107A (en) Adder to generate sum and sum + 1 in parallel
JP2619412B2 (en) Encoding device and decoding device
SU1660054A1 (en) Storage with module error correction
JPH05135482A (en) Parallel storage controller
JPH0779247B2 (en) Decode circuit
JPS6029414B2 (en) error correction circuit