JPS5827247A - Logical device - Google Patents

Logical device

Info

Publication number
JPS5827247A
JPS5827247A JP56126175A JP12617581A JPS5827247A JP S5827247 A JPS5827247 A JP S5827247A JP 56126175 A JP56126175 A JP 56126175A JP 12617581 A JP12617581 A JP 12617581A JP S5827247 A JPS5827247 A JP S5827247A
Authority
JP
Japan
Prior art keywords
register
output
flip
signal
flop
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
JP56126175A
Other languages
Japanese (ja)
Inventor
Shuichi Takanashi
高梨 秀一
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 JP56126175A priority Critical patent/JPS5827247A/en
Publication of JPS5827247A publication Critical patent/JPS5827247A/en
Pending 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
    • G06F11/0763Error or fault detection not based on redundancy by bit configuration check, e.g. of formats or tags

Abstract

PURPOSE:To check whether data is transferred normally or not by logically processing the output of a J-K flip-flop to be controlled by a register controlling signal. CONSTITUTION:Input data 11 is held in a register 1 and an output of the register 1 is processed by a logical circuit 3 and inputted to a register 2. An output signal 18 of a J-K flip-flop 5 is changed at its value in every setting of the register 1. An output signal 19 of a J-K flip-flop 6 is inverted in every setting of the register 2. The outputs of the J-K flip-flops 5, 6 are inputted to a comparator 7, which finds an exclusive OR between these inputs. If control signals 16, 17 are not outputted by any fault, an output signal of a comparator 7 is kept at logic ''1''.

Description

【発明の詳細な説明】 本発明は論理装置に関し、特にレジスタ間のデータ等の
転送における制御信号の誤動作全検出することができる
同期式論理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a logic device, and more particularly to a synchronous logic device capable of detecting all malfunctions of control signals during transfer of data, etc. between registers.

従来の同期式論理回路は第1図にその一例を示すように
、論理+1111またはO“を入力して保持する第1の
レジスタ1と、この第1のレジスタ1の出力を受けて演
算する論理回路3と、この論理回路3の出力結果を保持
する第2のレジスタ2と、第1のレジスタ1及び第2の
レジスタ2のセッIf制御する制御回路4とで構成され
る。
As an example of a conventional synchronous logic circuit is shown in FIG. It is composed of a circuit 3, a second register 2 that holds the output result of the logic circuit 3, and a control circuit 4 that controls the settings of the first register 1 and the second register 2.

第2図は第1図に示す論理装置の各部における信号の波
形図である。
FIG. 2 is a waveform diagram of signals in each part of the logic device shown in FIG. 1.

第2図を用いて第1図に示す論理装置の動作について説
明する。
The operation of the logic device shown in FIG. 1 will be explained using FIG. 2.

第2図はクロック信号14の立ち下りに動作する事を示
し、第1のレジスタl、および第2のレジスタ2は制御
信号16および17がハイレベルの値(論理1111+
)にある時のみデータを取り込みロウレベルの値(論理
″01)では情報を保持し続けることを示す。
FIG. 2 shows that the operation is performed at the falling edge of the clock signal 14, and the first register l and the second register 2 have control signals 16 and 17 at a high level value (logic 1111+
), and a low level value (logic ``01'') indicates that information is to be retained.

入力信号11による入力情報は第1のレジスタ1に格納
される。第1のレジスタlの出力12は論理回路3に入
力され、その処理結果12“は第2のレジスタ2に格納
され出力データ13として次段に転送される。このとき
第1のレジメタ1゜第2のレジスタ2には毎クロックご
とに格納せず、第2図に示すようにトリカ゛信号15に
より制御回路4においてレジスタ全イネーブルに制御す
る信号(ホールド解除信号)16.17を発生させ、必
要とするときのみデータ11 、12’  を喉シ込与
、それ以外の時にはそのデータを第1のレジスタ1およ
び第2のレジスタ2に保持し続ける様に制御する方法が
しばしば使用される。これは万一故障した場合、レジス
タ内に情報が残りているため解析が容易である事の理由
で、あるいはMOS−ICを用いた記憶素子などに書込
むデータの様にクロック周期よp長時間データを必要と
する場合などに用いられるが、もしも制御信号16ある
いは制御信号17が故障により出力されなかったならば
第1のレジスタ1あるいは第2のレジスタ2には前回に
保持された情報が出力され次段に送られる。この場合パ
リティ等の符号によるエラー検出ではエラーを検出する
事ができず故障が起こった事がわからないまま誤って処
理されてしまう欠点がある。
Input information from the input signal 11 is stored in the first register 1. The output 12 of the first register 1 is input to the logic circuit 3, and the processing result 12'' is stored in the second register 2 and transferred to the next stage as output data 13.At this time, the first register 1 Instead of storing data in the register 2 of No. 2 every clock, as shown in FIG. A control method is often used in which the data 11 and 12' are input only when the data is stored, and the data is held in the first register 1 and the second register 2 at other times. This is because in the event of a failure, the information remains in the register, making it easy to analyze, or because long-term data longer than the clock cycle is required, such as data written to a memory element using a MOS-IC. However, if the control signal 16 or 17 is not output due to a failure, the previously held information is output to the first register 1 or second register 2 and the information is transferred to the next stage. In this case, error detection using codes such as parity has the disadvantage that errors cannot be detected and are erroneously processed without knowing that a failure has occurred.

本発明の目的は、各段のレジスタ制御信号により反転す
るJ−にフリップフロップを持つことにより、制御信号
の人力状態を検出し誤動作を防ぐ論理装置を提供するこ
とにある。
An object of the present invention is to provide a logic device that detects the manual state of a control signal and prevents malfunction by having a flip-flop in J- that is inverted by the register control signal of each stage.

本発明の論理装置は、論理1°l″または“0”の情報
を保持する第1のレジスタと、前記第1のレジスタの出
力を演算する論理回路と、前記論理回路の出力信号を人
力信号として、その信号情報酸る論理装置において、前
記第1のレジスタ制御信号により出力情報が反転する第
1のJ−にフリップフロップと、前記第2のレジスタ制
御信号により出力情報が反転する第2のJ−にフリップ
フロップと、前記第1及び第2のプリップフロップが正
しく反転しているかどうかを判定する比較回路と全備え
て構成される。
The logic device of the present invention includes a first register that holds information of logic 1°l'' or "0", a logic circuit that calculates the output of the first register, and an output signal of the logic circuit that is converted into a human input signal. In the logic device in which the signal information is changed, a first J- flip-flop whose output information is inverted by the first register control signal, and a second flip-flop whose output information is inverted by the second register control signal are provided. J- includes a flip-flop and a comparison circuit for determining whether the first and second flip-flops are correctly inverted.

次に、本発明の実施例について図面を用いて説明する。Next, embodiments of the present invention will be described using the drawings.

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

この実施例の論理装置は入力信号11を保持する第1の
レジスタ1と、第1のレジスタlの出カケ演算する論理
回路3と、論理回路3の演算結果ヶ保持スるレジスタ2
と、第1のレジスタ1と第2のレジスタ2の保持と制御
する制御回路4と、第・1−のレジスタ1の保持を制御
する信号16全入力とする第1のJ−にフリップフロッ
プ5と、第2のレジスタ2の保持を制御する信号17を
入力とする第2のJ−にフリップフロップ6と、第1及
び第2のJ−にフリップフロップの出力を比較する比較
回路7で構成される。
The logic device of this embodiment includes a first register 1 that holds an input signal 11, a logic circuit 3 that calculates the output of the first register l, and a register 2 that holds the calculation result of the logic circuit 3.
, a control circuit 4 that holds and controls the first register 1 and the second register 2, and a flip-flop 5 connected to the first J-, which receives all inputs of a signal 16 that controls the holding of the first register 1. , a flip-flop 6 for the second J- which inputs the signal 17 that controls the holding of the second register 2, and a comparison circuit 7 for comparing the outputs of the flip-flops for the first and second J-. be done.

第1図と第3図と?比較すれば明らかなように本発明の
論理装置は従来の論F!J、装置に2つのJ−にフリッ
プフロップと比較回路とを付加し、5− 各レジスタの制御信号16および17が正しく出力され
ている事ケチェソクする機能をもたせたことに従来と差
異がある。
Figure 1 and Figure 3? As is clear from the comparison, the logic device of the present invention is different from the conventional logic F! The difference from the conventional device is that two flip-flops and a comparison circuit are added to the device, and a function is provided to check that the control signals 16 and 17 of each register are correctly output.

第4図は第3図に示す一実施例の各部における信号の波
形図である。
FIG. 4 is a waveform diagram of signals at various parts of the embodiment shown in FIG. 3.

第4図音用いて第3図に示す一実施例の動作について説
明する。
The operation of the embodiment shown in FIG. 3 will be explained using the fourth figure.

入カデータ11はトリガ信号15により制御回路4で発
生した制御信号16により第1のレジスタ1に保持され
る。その保持された第1のレジスタlの出力12は論理
回路3で処理され信号12’として次段のレジスタ2V
c、入力される。ここで制御回路4で発生した制御信号
17が入力され、第2のレジスタ2に情報12’がセッ
トされ、出力信号13として次段に送る。ここで、第1
のJ−にフリップフロップ5のJ端子とに端子とには第
1のレジスタ1のセラトラ制御する制御信号16が入力
される。したがって第1のレジスタ1のセットが行われ
るときには、J端子とに端子とが共に論理11″となり
出力信号18は反転するが、七6− れ以外のときには出力18の値が変化しない。よって、
出力信号18は制御信号16が出力されるたびに、すな
わち第1のレジスタ1にセットが行J端子とに端子とに
接続され第2のレジスタ2がセットされるたびに出力信
号19は反転する。出力信号18と19とは比較回路7
で排他的論理和がとられ信号2Of6:出力する。ここ
で初期設定で2つのJ−にフリップフロップ5と6との
出力信号18および19を同じ値に揃えておく。そこで
制御信号16および17がj圓に出力された後は出力信
号18と19の値は共に反転をし同じ値となる。したが
って、制御信号17が出力された後は比較回路7の出力
20は常に論理“0″となる。
Input data 11 is held in first register 1 by control signal 16 generated by control circuit 4 in response to trigger signal 15 . The held output 12 of the first register l is processed by the logic circuit 3 and sent as a signal 12' to the register 2V of the next stage.
c. Input. Here, a control signal 17 generated by the control circuit 4 is input, information 12' is set in the second register 2, and is sent as an output signal 13 to the next stage. Here, the first
A control signal 16 for controlling the seratra of the first register 1 is input to the J- terminal of the flip-flop 5 and the terminal J- of the flip-flop 5. Therefore, when the first register 1 is set, both the J terminal and the terminal become logic 11'', and the output signal 18 is inverted, but the value of the output 18 does not change at any other time.
The output signal 18 is inverted every time the control signal 16 is output, that is, the first register 1 is connected to the row J terminal and the second register 2 is set. . The output signals 18 and 19 are the comparator circuit 7.
The exclusive OR is performed and the signal 2Of6 is output. Here, in the initial setting, the output signals 18 and 19 of the two J- flip-flops 5 and 6 are set to the same value. Therefore, after the control signals 16 and 17 are output to the j-circle, the values of the output signals 18 and 19 are both inverted and become the same value. Therefore, after the control signal 17 is output, the output 20 of the comparator circuit 7 always becomes logic "0".

今、制御信号16がなんらかの原因により故障して出力
されなかったならば、第1のJ−にフリップフロップ5
の出力18は反転されず、−力制御信号17により第2
のJ−にフリップフロップ6の出力19が反転するので
、その後の比較回路7の出力信号20は論理+1111
となり故障が発生した事がある。また、制御信号17が
故障で出力されなかった場合には第1のJ−にフリップ
フロップ5の出力信号18は反転するが、第2のJ −
にフリップフロップ6の出力信号19が反転しないため
に、その後の比較回路7の出力信号20はやはジ論哩″
1″となり故障が発生したことがわかる。
Now, if the control signal 16 fails for some reason and is not output, the first J- is connected to the flip-flop 5.
The output 18 of the second
Since the output 19 of the flip-flop 6 is inverted at J-, the subsequent output signal 20 of the comparator circuit 7 is logic +1111
A malfunction has occurred. Further, when the control signal 17 is not output due to a failure, the output signal 18 of the flip-flop 5 is inverted to the first J-, but the output signal 18 of the flip-flop 5 is inverted to the first J-.
Since the output signal 19 of the flip-flop 6 is not inverted, the subsequent output signal 20 of the comparator circuit 7 is no longer the same.
1'', indicating that a failure has occurred.

また、制御信号16が故障したのか、制御信号17が故
障したのかを区別するのは制御信号16と17とが出力
される間の時間に出力信号20の(iiIヲ見る事で可
能である。この様にして、各段の制御信号が正常に出力
されデータ情報が正しく転送されているか否かを検出す
ることができる。
Further, it is possible to distinguish whether the control signal 16 or the control signal 17 has failed by looking at (iii) of the output signal 20 during the time between the output of the control signals 16 and 17. In this way, it is possible to detect whether the control signals of each stage are normally output and the data information is transferred correctly.

本発明には以上説明したように、前段のレジス°り制御
信号に制御されたJ−にフリップフロップと次段のレジ
スタ制御信号に制御されたJ−にフリップフロップと、
それらの出力を比較する比較回路を付加して構成するこ
とによシ情報の転送が正常に行なわれているか否かをチ
ェックできる効果がある。
As explained above, the present invention includes a flip-flop in J- controlled by a register control signal in the previous stage and a flip-flop in J- controlled by a register control signal in the next stage.
By adding a comparison circuit for comparing these outputs, it is possible to check whether the information is being transferred normally.

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

第1図は従来の論理回路の一例のブロック図、第2図は
第1図に示す論理回路の各部における信号の波形図、第
3図は本発明の一実施例のブロック図でちゃ、第4図は
第3図に示す一実施例の各部における信号の波形図であ
る。 1・・−・・第1のレジスタ、2・・・・・−第2のレ
ジスタ、3・・・・・・論理回路、4・・・・−・制御
装置、5・・・・・・第1のJ−にフリップフロップ、
6・・・・・・第2のJ−にフリップフロップ、7・・
・・・・比較回路、11・−・・−・入力データ、12
.12’、13・・・・・・出力データ、14・・・・
・・クロック信号、15・・・・・・トリガ信号、16
゜17・・・・・・制御信号、18,19.20・・・
・・・出力信号。 9− ) 芥 1 慟 黛2図
FIG. 1 is a block diagram of an example of a conventional logic circuit, FIG. 2 is a waveform diagram of signals in each part of the logic circuit shown in FIG. 1, and FIG. 3 is a block diagram of an embodiment of the present invention. FIG. 4 is a waveform diagram of signals at each part of the embodiment shown in FIG. 3. 1...--First register, 2...--Second register, 3...-Logic circuit, 4...--Control device, 5...- Flip-flop on the first J-,
6... Flip-flop to the second J-, 7...
... Comparison circuit, 11... Input data, 12
.. 12', 13... Output data, 14...
...Clock signal, 15...Trigger signal, 16
゜17... Control signal, 18, 19.20...
...Output signal. 9-) Mustard 1 Sodium 2 fig.

Claims (1)

【特許請求の範囲】[Claims] 論理1111またはl1OLの情報を保持する第1のレ
ジスタと、前記第1のレジスタの出力を演算する論理回
路と、前記論理回路の出力信号を入力信号として、その
信号情報保持する第2のレジスて、前記第1のレジスタ
の制御信号によシ出力情報が反転する第1のJ−にフリ
ップフロップト前記第2のレジスタの制御信号により出
力情報が反いるかどうかを判定する比較回路とを備えた
ことを特徴とする論理装置。
A first register that holds information of logic 1111 or l1OL, a logic circuit that operates on the output of the first register, and a second register that uses the output signal of the logic circuit as an input signal and holds the signal information. and a comparison circuit for determining whether or not the output information is inverted in accordance with the control signal of the second register; A logical device characterized by.
JP56126175A 1981-08-12 1981-08-12 Logical device Pending JPS5827247A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56126175A JPS5827247A (en) 1981-08-12 1981-08-12 Logical device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56126175A JPS5827247A (en) 1981-08-12 1981-08-12 Logical device

Publications (1)

Publication Number Publication Date
JPS5827247A true JPS5827247A (en) 1983-02-17

Family

ID=14928531

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56126175A Pending JPS5827247A (en) 1981-08-12 1981-08-12 Logical device

Country Status (1)

Country Link
JP (1) JPS5827247A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4868922A (en) * 1986-01-31 1989-09-19 Sharp Kabushiki Kaisha Data modulation/demodulation system utilizing demodulation clocks that differ in phase
JPH0590904A (en) * 1991-09-27 1993-04-09 Nec Corp Control signal generating circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4868922A (en) * 1986-01-31 1989-09-19 Sharp Kabushiki Kaisha Data modulation/demodulation system utilizing demodulation clocks that differ in phase
JPH0590904A (en) * 1991-09-27 1993-04-09 Nec Corp Control signal generating circuit

Similar Documents

Publication Publication Date Title
JPS59114652A (en) Watchdog timer circuit
JPH0481932A (en) Interruption controller
JPS5827247A (en) Logical device
JPS5827246A (en) Logical device
US11307767B1 (en) System for controlling memory operations in system-on-chips
JPS5816487B2 (en) Multiple selection detection device in computer system
JPS6121695Y2 (en)
JP2536907B2 (en) Diagnostic circuit having operation guarantee circuit
JP2531615B2 (en) Integrated circuit
JPS6111771Y2 (en)
JP2001339291A (en) Data count processing apparatus
JPH06175888A (en) Abnormal access detection circuit
JPS6329850A (en) Preventing device for microcomputer from generation of malfunction
JPH02178862A (en) Information processor
JPS6222080A (en) Integrated circuit
JPS6327940A (en) Storage controller
JPS6167119A (en) Microcomputer
JPS62113241A (en) Fault recovery device
JPH04112225A (en) Integrated circuit device
JPS61250757A (en) Fault detection circuit
JPS6141407B2 (en)
JPS5917465B2 (en) Check device
JPH056897B2 (en)
JPH01137474A (en) Data storage controller
JPH02190938A (en) Parity check device