JPH08288820A - Logic circuit - Google Patents

Logic circuit

Info

Publication number
JPH08288820A
JPH08288820A JP7108998A JP10899895A JPH08288820A JP H08288820 A JPH08288820 A JP H08288820A JP 7108998 A JP7108998 A JP 7108998A JP 10899895 A JP10899895 A JP 10899895A JP H08288820 A JPH08288820 A JP H08288820A
Authority
JP
Japan
Prior art keywords
register
data
logic circuit
setting
circuit
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
JP7108998A
Other languages
Japanese (ja)
Inventor
Akira Kuribayashi
明 栗林
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP7108998A priority Critical patent/JPH08288820A/en
Publication of JPH08288820A publication Critical patent/JPH08288820A/en
Pending legal-status Critical Current

Links

Landscapes

  • Logic Circuits (AREA)

Abstract

PURPOSE: To provide a logic circuit which can prevent such a malfunction that is caused when the data are erroneously set in an internal register. CONSTITUTION: A logic circuit 1 includes h 1st register 1, a 2nd register 2, an AND gate circuit 3 which outputs a write signal to the register 2 when the 8th bit data of the register 1 are set at '1' and outputs no write signal to the register 2 when the 8th bit data of the register 1 are set at '0', and an AND gate circuit 4 which uses the 7th bit data of the register 1 and a reset signal as the input signals. When both registers 1 and 2 are reset by application of a power supply, the circuit 3 outputs no write signal to the register 2 since the 8th bit data of the register 1 are set at '0'. Therefore, it is impossible to set the register 2 before the register 1 is set. When the 7th and 8th bit data of the register 1 are set at '1', the circuit 3 can output a write signal to the register 2 and also can set the data in the register 2 since the reset state of the register 2 is canceled.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は論理回路に関する。The present invention relates to logic circuits.

【0002】[0002]

【従来の技術】従来、ゲートアレーなどのロジックIC
を構成する論理回路は、複数の内部レジスタを有する。
各内部レジスタにはデータバスとデータ書き込み信号線
が接続されている。
2. Description of the Related Art Conventionally, logic ICs such as gate arrays
The logic circuit constituting the above has a plurality of internal registers.
A data bus and a data write signal line are connected to each internal register.

【0003】CPU等の制御装置によりデータバスを通
じて入力されるデータはデータ書き込み信号にしたがっ
て内部レジスタに設定される。電源オン時または動作モ
ード変更時に、内部レジスタのデータ設定が行われる
と、論理回路の動作モードが選択され、ロジックICは
種々の動作を行うことができる。
Data input through a data bus by a control device such as a CPU is set in an internal register according to a data write signal. When data is set in the internal register when the power is turned on or when the operation mode is changed, the operation mode of the logic circuit is selected, and the logic IC can perform various operations.

【0004】従来の論理回路の各内部レジスタはそれぞ
れ独立しているので、各内部レジスタは任意のタイミン
グでデータ設定を行うことができる。
Since each internal register of the conventional logic circuit is independent, each internal register can set data at an arbitrary timing.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、最近の
ロジックICの集積度の向上により1つのロジックIC
に多くの機能、モードを実現することが可能になり、以
下に掲げる問題を招致した。
However, due to the recent increase in the integration degree of logic ICs, one logic IC has been integrated.
It became possible to realize many functions and modes, and caused the following problems.

【0006】即ち、ロジックICの集積度が向上した論
理回路では、レジスタに設定するデータが相互に関係し
影響し合う回路構成となっているので、特定の機能やモ
ードではレジスタへのデータ設定の順番が予め決まって
いたり、一方のレジスタの設定データが他方のレジスタ
へのデータ設定に影響を与えたり、あるいは一方のレジ
スタの設定データによってデータ設定を行うことができ
ない他方のレジスタが発生することがある。
That is, in a logic circuit having a higher degree of integration of logic ICs, the data set in the registers have a circuit configuration in which they are related to each other and influence each other. The order may be predetermined, the setting data of one register may affect the data setting to the other register, or the setting data of one register may cause the other register to be unable to set data. is there.

【0007】かかる場合であっても、従来の論理回路で
は各内部レジスタのデータ設定動作が独立しており、任
意のタイミングで設定することが可能であるので、正し
くない順番でデータ設定が行われたり、一方のレジスタ
の設定データによりデータ設定ができない他方のレジス
タに対してもデータ設定が可能である。このため、誤っ
てデータが設定された場合、誤って設定されたことを知
る手段がないまま論理回路が誤動作してしまうという問
題があった。
Even in such a case, in the conventional logic circuit, the data setting operation of each internal register is independent and can be set at any timing, so that the data setting is performed in an incorrect order. Alternatively, data can be set in the other register that cannot be set by the setting data in one register. Therefore, when data is set by mistake, there is a problem that the logic circuit malfunctions without a means for knowing that the data has been set incorrectly.

【0008】そこで、本発明は内部レジスタに誤ってデ
ータ設定が行われることによる誤動作を防止できる論理
回路を提供することを目的とする。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a logic circuit capable of preventing malfunction due to erroneous data setting in an internal register.

【0009】[0009]

【課題を解決するための手段】上記目的を達成するため
に、本発明の請求項1に係る論理回路は、複数のレジス
タを有し、該レジスタに設定されたデータに応じて内部
動作が選択される論理回路において、前記複数のレジス
タのうち、第1のレジスタに設定されたデータによって
第2のレジスタへのデータ設定を許可するデータ設定許
可手段を備える。
In order to achieve the above object, a logic circuit according to claim 1 of the present invention has a plurality of registers, and an internal operation is selected according to data set in the registers. The logic circuit includes a data setting permission unit that permits data setting in the second register by the data set in the first register among the plurality of registers.

【0010】請求項2に係る論理回路は、請求項1に係
る論理回路において前記第1のレジスタに設定されたデ
ータが前記第2のレジスタのデータ設定を許可するデー
タでないとき、前記第2のレジスタをリセットするリセ
ット手段を備えたことを特徴とする。
According to a second aspect of the present invention, in the logic circuit according to the first aspect, when the data set in the first register is not data permitting data setting in the second register, the second circuit is set. It is characterized in that a reset means for resetting the register is provided.

【0011】請求項3に係る論理回路は、複数のレジス
タを有し、該レジスタに設定されたデータに応じて内部
動作が選択される論理回路において、前記複数のレジス
タのうち、第1のレジスタにデータ設定が行われた後
に、第2のレジスタへのデータ設定を許可するデータ設
定許可手段を備える。
According to a third aspect of the present invention, there is provided a logic circuit having a plurality of registers, the internal operation of which is selected according to data set in the registers. Data setting permission means for permitting data setting to the second register after data setting has been performed.

【0012】請求項4に係る論理回路では、請求項1ま
たは請求項3に係る論理回路において前記データ設定は
複数ビットのデータを1回の書き込み動作で行うことを
特徴とする。
According to a fourth aspect of the logic circuit, in the logic circuit according to the first or third aspect, the data setting is performed by writing a plurality of bits of data in one write operation.

【0013】請求項5に係る論理回路では、請求項1に
係る論理回路において前記データ設定許可手段は、前記
第1のレジスタに設定されたデータのうち、所定の1ビ
ットあるいは複数ビットのデータによって前記第2のレ
ジスタへのデータ設定を許可することを特徴とする。
In the logic circuit according to a fifth aspect, in the logic circuit according to the first aspect, the data setting permission means uses a predetermined one bit or a plurality of bits of the data set in the first register. It is characterized in that data setting to the second register is permitted.

【0014】[0014]

【作用】本発明の請求項1に係る論理回路では、レジス
タに設定されたデータに応じて内部動作が選択される際
に、データ設定許可手段により第1のレジスタに設定さ
れたデータによって第2のレジスタへのデータ設定を許
可する。
In the logic circuit according to the first aspect of the present invention, when the internal operation is selected in accordance with the data set in the register, the second data is set in the first register by the data setting permission means. Allows data setting to the register of.

【0015】請求項3に係る論理回路では、レジスタに
設定されたデータに応じて内部動作が選択される際に、
データ設定許可手段により第1のレジスタにデータ設定
が行われた後に第2のレジスタへのデータ設定を許可す
る。
In the logic circuit according to the third aspect, when the internal operation is selected according to the data set in the register,
After the data setting is performed in the first register by the data setting permission means, the data setting in the second register is permitted.

【0016】[0016]

【実施例】本発明の論理回路の実施例について説明す
る。
Embodiments of the logic circuit of the present invention will be described.

【0017】[第1実施例]図1は第1実施例の論理回
路の構成を示す回路図である。図において、1は8ビッ
トのデータが設定される第1のレジスタ、2は8ビット
のデータが設定される第2のレジスタである。
[First Embodiment] FIG. 1 is a circuit diagram showing the structure of a logic circuit according to the first embodiment. In the figure, 1 is a first register in which 8-bit data is set, and 2 is a second register in which 8-bit data is set.

【0018】3は第1のレジスタ1の8ビット目のデー
タが「1」であるときに第2のレジスタ書き込み信号を
第2のレジスタ2に出力し、第1のレジスタ1の8ビッ
ト目のデータが「0」であるときに第2のレジスタ書き
込み信号を第2のレジスタ2に出力しないように第2の
レジスタ2の書き込み制御を行うANDゲート回路であ
る。4は第1のレジスタ1の7ビット目のデータとリセ
ット信号とを入力信号とするANDゲート回路である。
The third register 3 outputs the second register write signal to the second register 2 when the 8th bit data of the first register 1 is "1", and the 8th bit of the first register 1 is output. It is an AND gate circuit that controls the write of the second register 2 so that the second register write signal is not output to the second register 2 when the data is “0”. An AND gate circuit 4 receives the 7th bit data of the first register 1 and the reset signal as input signals.

【0019】このように、第1のレジスタ1の7ビット
目と8ビット目のデータは第2のレジスタ2のデータを
設定する回路と関係があり、第1のレジスタ1の7ビッ
ト目と8ビット目のデータが「0」であるときに第2の
レジスタ2にデータ設定を行うことはできない。
As described above, the data of the 7th bit and the 8th bit of the first register 1 is related to the circuit for setting the data of the second register 2, and the 7th bit and the 8th bit of the first register 1 are related. When the bit data is "0", data cannot be set in the second register 2.

【0020】上記構成を有する論理回路の動作について
説明する。ロジックICを使用するシステムの電源が投
入されると、リセット信号が入力されて第1のレジスタ
1および第2のレジスタ2はリセットされ、全て「0」
を出力する。第1のレジスタ1の8ビット目のデータが
「0」であるので、ANDゲート回路3は第2のレジス
タ書き込み信号を出力しない。したがって、第2のレジ
スタ2を第1のレジスタ1に先駆けて設定することはで
きない。
The operation of the logic circuit having the above configuration will be described. When the power of the system using the logic IC is turned on, the reset signal is input and the first register 1 and the second register 2 are reset, and all are "0".
Is output. Since the 8th bit data of the first register 1 is “0”, the AND gate circuit 3 does not output the second register write signal. Therefore, the second register 2 cannot be set prior to the first register 1.

【0021】第1のレジスタ1のデータ設定を行い、7
ビット目と8ビット目を「1」に設定すると、ANDゲ
ート回路3は第2のレジスタ書き込み信号を第2のレジ
スタ2に出力することが可能になると共に、第2のレジ
スタ2のリセットも解除されるので、第2のレジスタ2
にデータを設定することが可能になる。
The data of the first register 1 is set and
When the 1st and 8th bits are set to "1", the AND gate circuit 3 can output the second register write signal to the second register 2 and also release the reset of the second register 2. The second register 2
It becomes possible to set data to.

【0022】第2のレジスタ2にデータを設定した後、
第1のレジスタ1の7ビット目にデータ「0」が設定さ
れると、第2のレジスタ2にはANDゲート回路4を介
してリセット信号が入力されるので、第2のレジスタ2
はリセットされる。これにより、第1のレジスタ1の7
ビット目のデータの「0」と、 第2のレジスタ2の設定
データとが同一のタイミングで存在することを防止でき
る。
After setting the data in the second register 2,
When the data “0” is set in the 7th bit of the first register 1, a reset signal is input to the second register 2 via the AND gate circuit 4, so that the second register 2
Is reset. As a result, 7 of the first register 1
It is possible to prevent "0" of the bit data and the setting data of the second register 2 from existing at the same timing.

【0023】[第2実施例]つぎに、第2実施例の論理
回路について説明する。図2は第2実施例の論理回路の
構成を示す回路図である。図において、1は8ビットデ
ータが設定される第1のレジスタ、2は8ビットのデー
タが設定される第2のレジスタである。5は第1のレジ
スタ書き込み信号を検出すると、第2のレジスタ書き込
み信号を第2のレジスタ2に出力する書き込み制御回路
である。
[Second Embodiment] The logic circuit according to the second embodiment will be described below. FIG. 2 is a circuit diagram showing the configuration of the logic circuit of the second embodiment. In the figure, 1 is a first register in which 8-bit data is set, and 2 is a second register in which 8-bit data is set. A write control circuit 5 outputs the second register write signal to the second register 2 when the first register write signal is detected.

【0024】図3は書き込み制御回路5の構成を示す回
路図である。図において、51はDタイプフリップフロ
ップ回路(DF/F)、52はANDゲート回路であ
る。
FIG. 3 is a circuit diagram showing the configuration of the write control circuit 5. In the figure, 51 is a D type flip-flop circuit (DF / F), and 52 is an AND gate circuit.

【0025】上記構成を有する第2実施例の論理回路の
動作について説明する。ロジックICを使用するシステ
ムの電源が投入されると、リセット信号が入力されて第
1のレジスタ1および第2のレジスタ2はリセットされ
る。また、書き込み制御回路5を構成するDF/F51
もリセットされ、DF/F51の出力Qは「L」とな
る。これにより、ANDゲート回路52の出力は常に
「L」となり、第2のレジスタ書き込み信号を出力しな
い。
The operation of the logic circuit of the second embodiment having the above configuration will be described. When the system using the logic IC is powered on, a reset signal is input and the first register 1 and the second register 2 are reset. In addition, the DF / F 51 that constitutes the write control circuit 5
Is also reset, and the output Q of the DF / F 51 becomes "L". As a result, the output of the AND gate circuit 52 is always "L", and the second register write signal is not output.

【0026】第1のレジスタ1のデータ設定動作が行わ
れると、DF/F51は第1のレジスタ書き込み信号を
クロック信号として入力するので、出力Qは「H」にな
る。これにより、ANDゲート52は第2のレジスタ書
き込み信号を第2のレジスタ2に出力することが可能に
なる。従って、第2のレジスタ2は第1のレジスタ1の
データ設定前にはデータ設定を行うことができず、必ず
第1のレジスタ1のデータ設定後にデータを設定するこ
とになる。
When the data setting operation of the first register 1 is performed, the DF / F 51 inputs the first register write signal as a clock signal, so that the output Q becomes "H". This enables the AND gate 52 to output the second register write signal to the second register 2. Therefore, the second register 2 cannot set data before setting the data in the first register 1, and always sets the data after setting the data in the first register 1.

【0027】[0027]

【発明の効果】本発明の請求項1に係る論理回路によれ
ば、レジスタに設定されたデータに応じて内部動作が選
択される際に、データ設定許可手段により第1のレジス
タに設定されたデータによって第2のレジスタへのデー
タ設定を許可するので、第1のレジスタの特定ビットと
第2のレジスタの設定が同時に設定された場合や、正し
い順序で設定されなかった場合に発生する回路動作上の
問題を容易に回避できる。したがって、内部レジスタに
誤ってデータ設定が行われることによる誤動作を防止で
きる。
According to the logic circuit of the first aspect of the present invention, when the internal operation is selected according to the data set in the register, it is set in the first register by the data setting permission means. Since the data setting to the second register is permitted by the data, the circuit operation that occurs when the specific bit of the first register and the setting of the second register are set at the same time or when they are not set in the correct order The above problems can be easily avoided. Therefore, it is possible to prevent malfunction due to erroneous data setting in the internal register.

【0028】請求項2に係る論理回路によれば、前記第
1のレジスタに設定されたデータが前記第2のレジスタ
のデータ設定を許可するデータでないとき、前記第2の
レジスタをリセットするリセット手段を備えたので、第
2のレジスタに誤ったデータ設定が行われることを確実
に防止できる。
According to the logic circuit of the second aspect, the reset means for resetting the second register when the data set in the first register is not the data permitting the data setting of the second register. Since it is provided, it is possible to reliably prevent erroneous data setting in the second register.

【0029】請求項3に係る論理回路によれば、レジス
タに設定されたデータに応じて内部動作が選択される際
に、データ設定許可手段により第1のレジスタにデータ
設定が行われた後に第2のレジスタへのデータ設定を許
可するので、正しい順序で設定されなかった場合に発生
する回路動作上の問題を容易に回避できる。したがっ
て、内部レジスタに誤ってデータ設定が行われることに
よる誤動作を防止できる。
According to the logic circuit of the third aspect, when the internal operation is selected in accordance with the data set in the register, the first setting is performed after the data setting is performed by the data setting permission means. Since the data setting to the second register is permitted, it is possible to easily avoid the problem in the circuit operation that occurs when the data is not set in the correct order. Therefore, it is possible to prevent malfunction due to erroneous data setting in the internal register.

【0030】請求項4に係る論理回路によれば、前記デ
ータ設定は複数ビットのデータを1回の書き込み動作で
行うので、データ設定時間を短時間に抑えることができ
る。
According to the logic circuit of the fourth aspect, since the data setting is performed by writing the data of a plurality of bits by one time, the data setting time can be suppressed to a short time.

【0031】請求項5に係る論理回路によれば、前記デ
ータ設定許可手段は、前記第1のレジスタに設定された
データのうち、所定の1ビットあるいは複数ビットのデ
ータによって前記第2のレジスタへのデータ設定を許可
するので、種々の機能やモードに応じた許可を与えるこ
とができる。
According to the logic circuit of the fifth aspect, the data setting permission means sends the data set in the first register to the second register according to predetermined 1-bit or plural-bit data. Since the data setting of is permitted, it is possible to give permission according to various functions and modes.

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

【図1】第1実施例の論理回路の構成を示す回路図であ
る。
FIG. 1 is a circuit diagram showing a configuration of a logic circuit according to a first embodiment.

【図2】第2実施例の論理回路の構成を示す回路図であ
る。
FIG. 2 is a circuit diagram showing a configuration of a logic circuit according to a second embodiment.

【図3】書き込み制御回路5の構成を示す回路図であ
る。
FIG. 3 is a circuit diagram showing a configuration of a write control circuit 5.

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

1 第1のレジスタ 2 第2のレジスタ 3、4 ANDゲート回路 5 書き込み制御回路 1 1st register 2 2nd register 3 and 4 AND gate circuit 5 Write control circuit

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 複数のレジスタを有し、 該レジスタに設定されたデータに応じて内部動作が選択
される論理回路において、 前記複数のレジスタのうち、第1のレジスタに設定され
たデータによって第2のレジスタへのデータ設定を許可
するデータ設定許可手段を備えたことを特徴とする論理
回路。
1. A logic circuit having a plurality of registers, the internal operation of which is selected according to the data set in the registers, wherein the first register of the plurality of registers is set by the data set in the first register. 2. A logic circuit characterized by comprising data setting permission means for permitting data setting to the second register.
【請求項2】 前記第1のレジスタに設定されたデータ
が前記第2のレジスタのデータ設定を許可するデータで
ないとき、前記第2のレジスタをリセットするリセット
手段を備えたことを特徴とする請求項1記載の論理回
路。
2. A reset means for resetting the second register when the data set in the first register is not data permitting data setting in the second register. The logic circuit according to item 1.
【請求項3】 複数のレジスタを有し、 該レジスタに設定されたデータに応じて内部動作が選択
される論理回路において、 前記複数のレジスタのうち、第1のレジスタにデータ設
定が行われた後に、第2のレジスタへのデータ設定を許
可するデータ設定許可手段を備えたことを特徴とする論
理回路。
3. A logic circuit having a plurality of registers, the internal operation of which is selected according to the data set in the registers, wherein data setting is performed in a first register of the plurality of registers. A logic circuit characterized by further comprising data setting permission means for permitting data setting to the second register later.
【請求項4】 前記データ設定は複数ビットのデータを
1回の書き込み動作で行うことを特徴とする請求項1ま
たは請求項3記載の論理回路。
4. The logic circuit according to claim 1, wherein the data setting is performed by writing a plurality of bits of data in one write operation.
【請求項5】 前記データ設定許可手段は、 前記第1のレジスタに設定されたデータのうち、所定の
1ビットあるいは複数ビットのデータによって前記第2
のレジスタへのデータ設定を許可することを特徴とする
請求項1記載の論理回路。
5. The data setting permission means sets the second data according to a predetermined 1-bit or a plurality of bits of data set in the first register.
2. The logic circuit according to claim 1, wherein the setting of data in the register is permitted.
JP7108998A 1995-04-10 1995-04-10 Logic circuit Pending JPH08288820A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7108998A JPH08288820A (en) 1995-04-10 1995-04-10 Logic circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7108998A JPH08288820A (en) 1995-04-10 1995-04-10 Logic circuit

Publications (1)

Publication Number Publication Date
JPH08288820A true JPH08288820A (en) 1996-11-01

Family

ID=14498991

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7108998A Pending JPH08288820A (en) 1995-04-10 1995-04-10 Logic circuit

Country Status (1)

Country Link
JP (1) JPH08288820A (en)

Similar Documents

Publication Publication Date Title
KR101496072B1 (en) Integrated circuit with programmable circuitry and an embedded processor system
US6675305B1 (en) Power saving in a USB peripheral by providing gated clock signal to CSR block in response to a local interrupt generated when an operation is to be performed
IL134870A (en) Data transfer system for accomplishing data transfers in an information processing system
JPH0142013B2 (en)
US4694393A (en) Peripheral unit for a microprocessor system
US5983339A (en) Power down system and method for pipelined logic functions
JPH11509950A (en) Microcontroller having an N-bit data bus width with less than N I / O pins and method therefor
US9952913B2 (en) Centralized peripheral access protection
US5428765A (en) Method and apparatus for disabling and restarting clocks
JPH0764957A (en) Timer device
JPWO2009037770A1 (en) MEMORY CIRCUIT AND MEMORY CIRCUIT DATA WRITE / READ METHOD
US4398247A (en) Control device for directing execution of forced operations in a data processing system
JPH08288820A (en) Logic circuit
TWI237764B (en) Control chip with function for inhibiting bus cycle, circuit and method thereof
JPH11259195A (en) Bus noise prevention circuit
JP2007184959A (en) Programmable logical device
US7058842B2 (en) Microcontroller with multiple function blocks and clock signal control
JP3310482B2 (en) Microcomputer
JP3615189B2 (en) I / O buffer circuit
JP3737567B2 (en) Computer system
JPS6022774B2 (en) Input/output terminal control method
JP2692469B2 (en) Data controller
JPH06282359A (en) Configuration control circuit
JPH0644209B2 (en) Bus converter
JPH0567733A (en) Semiconductor device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Effective date: 20040127

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040206

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 5

Free format text: PAYMENT UNTIL: 20090220

LAPS Cancellation because of no payment of annual fees