JPS60232796A - Logic circuit - Google Patents

Logic circuit

Info

Publication number
JPS60232796A
JPS60232796A JP8894284A JP8894284A JPS60232796A JP S60232796 A JPS60232796 A JP S60232796A JP 8894284 A JP8894284 A JP 8894284A JP 8894284 A JP8894284 A JP 8894284A JP S60232796 A JPS60232796 A JP S60232796A
Authority
JP
Japan
Prior art keywords
circuit
register
inversion
transmission
outputs
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
JP8894284A
Other languages
Japanese (ja)
Inventor
Tokihiko Tomota
友田 時彦
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
NEC Corp
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 NEC Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP8894284A priority Critical patent/JPS60232796A/en
Publication of JPS60232796A publication Critical patent/JPS60232796A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q3/00Selecting arrangements
    • H04Q3/42Circuit arrangements for indirect selecting controlled by common circuits, e.g. register controller, marker

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

PURPOSE:To detect an error also in incorrect transfer data by conneting plural inversion circuits for inverting parity bits outputted from plural transmission registers, decoding a selecting singnal and inhibiting the operation of the inversion circuit corresponding to the transmission register to be selected. CONSTITUTION:The transmission registers 11-14 store 8-bit data and 1-bit parity bits. The 8-bit data outputs from the registers 11-14 are inputted to a selecting circuit 2 and parity bit outputs are inputted to the circuit 2 through the inversion circuits 71-74. The circuit 2 inputs selecting signals 41, 42, selects the outputs of an optional transmission register and its corresponding inversion circuit in accordance with the selecting signals and supplies the selected outputs to a receiving register 3. On the other hand, a decoder 5 inputs selecting signals 41', 42', decodes these signals and turns signal lines 61-64 corresponding to the transmission register to be selected to the high level. Consequently, the inversion circuit connected to the transmission register to be selected is inhibited at its inverting operation. Thus, an error can be detected even if the inversion circuit executes malfunction.

Description

【発明の詳細な説明】 発明の属する技術分野 本発明は、データ処理装置において複数のレジスタの1
つを選択して受信レジスタにデータ転送する論理回路に
関し、特に転送データのチェックを正確に行なうための
改良に関する。
DETAILED DESCRIPTION OF THE INVENTION Technical field to which the invention pertains The present invention relates to a data processing device that uses one of a plurality of registers in a data processing device.
The present invention relates to a logic circuit that selects one and transfers data to a receiving register, and particularly relates to an improvement for accurately checking transferred data.

従来技術 従来、この種論理回路は、第1図に示すように、複数の
送信レジスタ11〜inの出力を選択回路2に入力させ
、選択回路2は選択信号4に従って、任意のレジスタ出
力を選択して受信レジスタ3に入力させるように構成さ
れている。転送データが正しく転送されたか否かをチェ
ックするために、各送信レジスタは、データビットにパ
リティビットを付加して転送し、受信レジスタ3に格納
されたデータは、図示されないチェック回路によってパ
リティチェックされる。
Prior Art Conventionally, as shown in FIG. 1, this type of logic circuit inputs the outputs of a plurality of transmit registers 11 to in to a selection circuit 2, and the selection circuit 2 selects an arbitrary register output according to a selection signal 4. The configuration is such that the received signal is inputted to the reception register 3. In order to check whether the transfer data has been transferred correctly, each transmit register adds a parity bit to the data bit and transfers the data, and the data stored in the receive register 3 is parity-checked by a check circuit (not shown). Ru.

上述した従来の論理回路は、データ転送路上で発生した
データ誤りは、パリティチェックによって即座に検出す
ることが可能である。しかし1選択回路2の故障等によ
って、間違った送信レジスタのデータが受信レジスタ3
に格納された場合は、パリティチェックによって誤りを
発見することができないため1間違ったデータがそのま
ま転送されてしまい、データ処理装置が誤動作すること
になるという欠点がある。この誤りは、ソフトウェア的
に検出された場合は勿論の事、ハードウェアまたはファ
ームウェア的に不正データが検出されたとしても、その
原因を見つけることは極めて困難である。
In the conventional logic circuit described above, a data error occurring on a data transfer path can be immediately detected by a parity check. However, due to a failure in the 1 selection circuit 2, the wrong data in the transmit register is transferred to the receive register 3.
If the data is stored in the same format, the error cannot be detected by a parity check, so one erroneous data will be transferred as is, which will cause the data processing device to malfunction. It is extremely difficult to find the cause of this error, not only when it is detected by software, but even if invalid data is detected by hardware or firmware.

発明の目的 本発明の目的は、上述の従来の欠点を解決し、選択回路
等の故障によって間違ったデータが転送された場合にも
誤りを検出することが可能な論理回路を提供することに
ある。
OBJECTS OF THE INVENTION An object of the present invention is to solve the above-mentioned conventional drawbacks and to provide a logic circuit that can detect errors even when incorrect data is transferred due to a failure in a selection circuit or the like. .

発明の構成 本発明の論理回路は、データビットとパリティビットを
蓄積する複数の送信レジスタと、該複数の送信レジスタ
の出力を選択信号によって択一的に選択して受信レジス
タに供給する選択回路と、該選択回路の出力を格納する
受信レジスタと、該受信レジスタのデータビットとパリ
ティビットをチェックするパリティチェック回路とを備
えた論理回路において、前記複数の送信レジスタの出力
するパリティビットをそれぞれ反転させる複数の反転回
路と、前記選択信号をデコードして選択すべき送信レジ
スタに対応する前記反転回路の反転動作を禁止するデコ
ーダとを備えたことを特徴とする。
Structure of the Invention The logic circuit of the present invention includes a plurality of transmitting registers that accumulate data bits and parity bits, and a selection circuit that selectively selects the outputs of the plurality of transmitting registers using a selection signal and supplies the selected outputs to a receiving register. , in a logic circuit comprising a reception register that stores an output of the selection circuit and a parity check circuit that checks data bits and parity bits of the reception register, each of the parity bits output from the plurality of transmission registers is inverted. The present invention is characterized by comprising a plurality of inversion circuits and a decoder that decodes the selection signal and inhibits the inversion operation of the inversion circuit corresponding to the transmission register to be selected.

発明の実施例 次に、本発明について、図面を参照して詳細に説明する
Embodiments of the Invention Next, the present invention will be described in detail with reference to the drawings.

第2図は、本発明の一実施例を示すブロック図である。FIG. 2 is a block diagram showing one embodiment of the present invention.

今、複数の送信レジスタ11−14には、それぞれ8ビ
ツトのデータと1ビツトのパリティビットが格納されて
いるものとする。各送信レジスタの8ビツトのデータ出
力は、それぞれ選択回路2に入力させ、各送信レジスタ
のパリティビット出力は、それぞれ反転回路71〜74
を介して選択回路2に入力させる0選択回路2は、選択
信号41と42を入力し、該選択信号に応じて任意の送
信レジスタおよびそれに対応する反転回路の出力を選択
して受信レジスタ3に供給する。一方、デコード回路5
は、選択信号41′と42′とを入力してこれをデコー
ドし、選択すべき送信レジスタに対応する信号線(61
〜64)をハイレベルとする。これにより、選択すべき
送信レジスタに接続された反転回路は反転動作が禁止さ
れ、他の反転回路はそれぞれのパリティビットを反転さ
せて選択回路2に供給する。例えば、選択信号41 、
42か’oo”で送信レジスタ11を選択する場合には
、信号線61が“1″で他の信号線はすべて“°0″と
なる。従って、反転回路71は送信レジスタ11のパリ
ティビットをそのまま通過させて選択回路2に供給し、
反転回路72〜74はそれぞれのパリビットを反転させ
て選択回路2に供給する。同様に、選択信号が°“O1
″゛の場合は、信号線62がl ”となり、′J!釈信
号が’10”の場合は信号!163が1″となり、選択
信号が°“11”のときは信号線64が“°l″となる
It is now assumed that each of the plurality of transmission registers 11-14 stores 8 bits of data and 1 bit of parity bit. The 8-bit data output of each transmitting register is input to the selection circuit 2, and the parity bit output of each transmitting register is input to the inverting circuits 71 to 74, respectively.
The 0 selection circuit 2 inputs the selection signals 41 and 42 to the selection circuit 2, selects the output of an arbitrary transmission register and its corresponding inverting circuit according to the selection signal, and sends the selected output to the reception register 3. supply On the other hand, the decoding circuit 5
inputs the selection signals 41' and 42', decodes them, and connects the signal line (61) corresponding to the transmission register to be selected.
~64) is set to high level. As a result, the inverting circuit connected to the transmission register to be selected is prohibited from inverting, and the other inverting circuits invert their respective parity bits and supply them to the selection circuit 2. For example, the selection signal 41,
42 or 'oo', the signal line 61 becomes "1" and all other signal lines become "°0". Therefore, the inverting circuit 71 changes the parity bit of the transmitting register 11. It is passed through as is and supplied to the selection circuit 2,
The inversion circuits 72 to 74 invert their respective pari bits and supply them to the selection circuit 2. Similarly, the selection signal is
In the case of ``'', the signal line 62 becomes ``L'', and ``J! When the interpretation signal is ``10'', the signal !163 becomes 1'', and when the selection signal is ``11'', the signal line 64 becomes ``l''.

今、送信レジスタ11〜14のデータビットがすべて°
’oooo oooo″であり、パリティビットがすべ
て°“1″であり、選択信号が00”であると仮定する
と、送信レジスタ11のデータ例えば°“0000oo
oo”とパリティビット” 1 ”が出力され、反転回
路71はパリティビット”1″を選択回路2に供給する
。従って1選択回路2が正しく送信レジスタ11を選択
したときは、送信レジスタ11の出力するデータ゛’o
ooo oooo”と反転回路71の出力“l”とが受
信レジスタ3に転送されて格納される。受信レジスタ3
に格納されたデータ”oooo oooo″とパリティ
°°l″とがパリティチェック回路8によってチェック
される。しかし、選択回路2の入力回路の故障等によっ
て、例えば選択信号41が” 1 ”に誤ったときは、
選択回路2は送信レジスタ13を選択するから、デーダ
“oooo oooo″と、反転回路73の出力する反
転されたパリティビット” o ”とが受信レジスタ3
に転送され、パリティチェック回路8によって誤りが検
出される0選択信号41’、42′側が誤った場合にも
勿論誤りが発見される。
Now, all data bits in transmit registers 11 to 14 are
'oooo oooo'', the parity bits are all ``1'', and the selection signal is 00'', the data in the transmitting register 11 is ``0000oo'', for example.
oo” and the parity bit “1” are output, and the inversion circuit 71 supplies the parity bit “1” to the selection circuit 2. Therefore, when the 1 selection circuit 2 correctly selects the transmission register 11, the output of the transmission register 11 data to be
ooo oooo” and the output “l” of the inversion circuit 71 are transferred to and stored in the reception register 3.Reception register 3
The data "oooo oooo" and the parity °°l" stored in the . when,
Since the selection circuit 2 selects the transmission register 13, the data “oooo oooo” and the inverted parity bit “o” output from the inversion circuit 73 are transferred to the reception register 3.
Of course, even if the 0 selection signals 41' and 42', which are transferred to the 0 and detected by the parity check circuit 8, are erroneous, an error will also be found.

発明の効果 以上のように、本発明においては、複数の送信レジスタ
の出力するパリティビットをそれぞれ反転せる反転回路
を設けて、選択回路には各送信レジスタの出力するデー
タおよび前記反転回路の出力を入力させ、他方において
、選択信号をデコードして選択すべき送信レジスタに対
応する前記反転回路の反転動作を禁止するように構成し
たから、前記選択回路が誤動作して間違った送信レジス
タの出力データが受信レジスタに転送されたときは、パ
リティチェックによって誤りを検出できるという効果か
ある。
Effects of the Invention As described above, in the present invention, inverting circuits are provided to invert the parity bits output from a plurality of transmitting registers, and the selection circuit receives data output from each transmitting register and the output of the inverting circuit. On the other hand, the selection signal is decoded to inhibit the inverting operation of the inverting circuit corresponding to the transmitting register to be selected. When transferred to the receiving register, it has the effect of detecting errors by parity checking.

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

第1図は従来の論理回路の一例を示すブロック図、第2
図は本発明の一実施例を示すブロック図である。 図において、2:選択回路、3:受信レジスタ、4.4
]、42.41’ 、42’ :選択信号、5:デコー
ド回路、8:パリティチェック回路、11゜12、+3
.+4:送信レジスタ、61,62,83,84:信号
線、?+、 72,73.74:反転回路。 出願人 日本電気株式会社 代理人 弁理士 住田俊宗 )・11¥l 牙2図
Figure 1 is a block diagram showing an example of a conventional logic circuit, Figure 2 is a block diagram showing an example of a conventional logic circuit.
The figure is a block diagram showing one embodiment of the present invention. In the figure, 2: selection circuit, 3: reception register, 4.4
], 42.41', 42': Selection signal, 5: Decode circuit, 8: Parity check circuit, 11°12, +3
.. +4: Transmission register, 61, 62, 83, 84: Signal line, ? +, 72, 73.74: Inversion circuit. Applicant: NEC Corporation Agent, Patent Attorney: Toshimune Sumita), 11 yen, Fang 2 Diagram

Claims (1)

【特許請求の範囲】[Claims] データビットとパリティビットを蓄積する複数の送信レ
ジスタと、該複数の送信レジスタの出力を選択信号によ
って択一的に選択して受信レジスタに供給する選択回路
と、該選択回路の出力を格納する受信レジスタと、該受
信レジスタのデータビットとパリティビットをチェック
するパリティチェック回路とを備えた論理回路において
、前記複数の送信レジスタの出力するパリティビットを
それぞれ反転させる複数の反転回路と、前記選択信号を
デコードして選択すべき送信レジスタに対応する前記反
転回路の反転動作を禁■卜するデコーダとを備えたこと
を特徴とする論理回路。
a plurality of transmission registers that accumulate data bits and parity bits; a selection circuit that selectively selects the outputs of the plurality of transmission registers using a selection signal and supplies the selected signals to the reception register; and a reception circuit that stores the outputs of the selection circuits. A logic circuit comprising a register and a parity check circuit for checking data bits and parity bits of the reception register, the logic circuit comprising a plurality of inversion circuits for respectively inverting parity bits output from the plurality of transmission registers, and a plurality of inversion circuits for inverting the parity bits output from the plurality of transmission registers, and A logic circuit comprising: a decoder that inhibits an inversion operation of the inversion circuit corresponding to a transmission register to be decoded and selected.
JP8894284A 1984-05-02 1984-05-02 Logic circuit Pending JPS60232796A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8894284A JPS60232796A (en) 1984-05-02 1984-05-02 Logic circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8894284A JPS60232796A (en) 1984-05-02 1984-05-02 Logic circuit

Publications (1)

Publication Number Publication Date
JPS60232796A true JPS60232796A (en) 1985-11-19

Family

ID=13956931

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8894284A Pending JPS60232796A (en) 1984-05-02 1984-05-02 Logic circuit

Country Status (1)

Country Link
JP (1) JPS60232796A (en)

Similar Documents

Publication Publication Date Title
KR900006920B1 (en) Method for error detection and correction by majority
EP1160987B1 (en) Method and apparatus for verifying error correcting codes
KR102399843B1 (en) Error correction hardware with fault detection
US5477551A (en) Apparatus and method for optimal error correcting code to parity conversion
JPH06324951A (en) Computer system with error inspection / correction function
US4716566A (en) Error correcting system
US4455655A (en) Real time fault tolerant error correction mechanism
US5331645A (en) Expandable digital error detection and correction device
US3688265A (en) Error-free decoding for failure-tolerant memories
US4236247A (en) Apparatus for correcting multiple errors in data words read from a memory
US4580265A (en) Failure detection method and apparatus
JPS60232796A (en) Logic circuit
US5835511A (en) Method and mechanism for checking integrity of byte enable signals
JPS6232814B2 (en)
JPS6386620A (en) Detector for erroneous operation of decoder
JPH0638239B2 (en) Error correction mechanism
US5267250A (en) Circuit arrangement for detection of an erroneous selection signal supplied to selection means
JP2864611B2 (en) Semiconductor memory
JPS6227814A (en) Fault detection circuit
KR950004241B1 (en) Data error detecting apparatus by parity check
SU840912A1 (en) Device for detecting and correcting errors in computer units
JPS6093844A (en) Data transmission method
JPH0760391B2 (en) Error correction mechanism
JPH0652002A (en) Method and circuit for checking data
JPS6373437A (en) Checking system for parity circuit