JPS62107521A - Conditional branching circuit - Google Patents

Conditional branching circuit

Info

Publication number
JPS62107521A
JPS62107521A JP60246639A JP24663985A JPS62107521A JP S62107521 A JPS62107521 A JP S62107521A JP 60246639 A JP60246639 A JP 60246639A JP 24663985 A JP24663985 A JP 24663985A JP S62107521 A JPS62107521 A JP S62107521A
Authority
JP
Japan
Prior art keywords
signal
register
input
conditional
level
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
JP60246639A
Other languages
Japanese (ja)
Inventor
Shinichi Suzuki
真一 鈴木
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP60246639A priority Critical patent/JPS62107521A/en
Publication of JPS62107521A publication Critical patent/JPS62107521A/en
Pending legal-status Critical Current

Links

Landscapes

  • Logic Circuits (AREA)

Abstract

PURPOSE:To attain plural conditional branchings in response to a potential of an input signal by providing a means setting a potential range corresponding to plural branching destination stored by a register with respect to an input signal thereby deciding the potential range of the input signal and a conditional branching logic circuit controlling the branching. CONSTITUTION:An output signal of comparators 17-20 is converted into a signal as shown in the truth table by a logic circuit 11 and the result is inputted to a conditional branching logic circuit 12 as a selection signal for a register 13 storing the branch destination address. The conditional branching logic circuit 12 uses a signal through selection signal lines 31, 32, 33, 34 to select one register among 4 registers 13 and to output a branch destination address stored in the selected register 13 and to output a branch destination address stored in the selected register 13 to a control signal line 15 together with other control signals. If the level of an input signal is a level or below bringing an output of even a comparator 20 to a high level, the level of the signal through the selection signal lines 31-34 goes all to a low level, any of the 4 registers 13 is not selected and no conditional branching executed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、半導体集積回路に設けられ、1個の入力端
子を経て入力する信号に応じて条件分岐を制御する条件
分岐回路に関するものである。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a conditional branching circuit that is provided in a semiconductor integrated circuit and controls conditional branching in response to a signal input through one input terminal. .

〔従来の技術〕[Conventional technology]

第5図fal 、 fblはそれぞれ従来のこの棟の条
件分岐回路の例を示すブロック図であり、図において1
1)は入力端子、12)はDフリップ・フロップ、(3
)は条件分岐論理回路、14)はタイミング入力信号線
、(5)はインバータである。
Figure 5 fal and fbl are block diagrams showing examples of conventional conditional branch circuits in this building, respectively.
1) is an input terminal, 12) is a D flip-flop, (3
) is a conditional branch logic circuit, 14) is a timing input signal line, and (5) is an inverter.

次に動作について説明する。第5図falに示す回路の
場合、入力端子(1)からの入力信号は、タイミング入
力信号線(4)を経て入力されるタイミング信号の時点
でDフリップフロップ(2)にセットされ条件分岐論理
回路(3)へ伝わる。すなわち、入力信号は、Dフリッ
プ・70ツブにより、条件分岐論理回w!131に入力
する適当なタイミングと適切な電圧レベルに変換される
Next, the operation will be explained. In the case of the circuit shown in FIG. 5fal, the input signal from the input terminal (1) is set to the D flip-flop (2) at the time of the timing signal input via the timing input signal line (4), and the conditional branch logic It is transmitted to the circuit (3). That is, the input signal is sent to the conditional branch logic circuit w! by the D flip/70 knob. 131 and is converted into an appropriate timing and an appropriate voltage level.

第5図fblに示す回路の場合は、2段のインバータ(
5)により、入力信号は適切な電圧レベルに変換されて
、条件分岐論理回M 131に入力される。
In the case of the circuit shown in Fig. 5 fbl, a two-stage inverter (
5), the input signal is converted to an appropriate voltage level and input to the conditional branch logic circuit M131.

条件分岐論理回路(3)では入力された電圧レベルが高
電位(Highレベル)が低電位(Lowレベル)かを
判定し、条件分岐の制御を行う。
The conditional branch logic circuit (3) determines whether the input voltage level is high potential (High level) or low potential (Low level), and controls conditional branching.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来の条件分岐回路は以上のように構成されているので
、入力信号の電位のHigh  レベルがLowレベル
かの判定レベルは、Dフリップ・フロップ(2)やイン
バータ(5)によってきまる素子固有の値となる。この
ため、もし、入力端子(1)に入力される信号のレベル
がDフリップ・フロラ7”+2)やインバータ]5)の
判定レベルに合わない場合は、入力前に信号の電圧全変
換して上記判定レベルに合わせる必要が生ずる。
Since the conventional conditional branch circuit is configured as described above, the level for determining whether the high level of the potential of the input signal is the low level is a value specific to the element determined by the D flip-flop (2) and the inverter (5). becomes. Therefore, if the level of the signal input to the input terminal (1) does not match the judgment level of the D-flip Flora 7"+2) or the inverter]5), convert the voltage of the signal completely before inputting it. It becomes necessary to match the above judgment level.

また、従来のような構成では、条件分岐において山gh
レベルかLowレベルかの二者択一の選択による制御し
かできず、入力信号の電位レベルによる多者択一の制御
が不可能であり、多者択一による制御を実現させようと
する場合、入力端子(1)の前に複雑な回路全付加しな
ければならない。
In addition, in the conventional configuration, the conditional branch
When control is possible only by selecting one of high level and low level, and multiple choice control based on the potential level of the input signal is impossible, and when attempting to realize multiple choice control, A complete complex circuit must be added before the input terminal (1).

この発明は上記のような問題点に鑑みてなされたもので
、条件分岐の際のHighレベル、Low レベルの判
定レベルを変えることができるとともに1Highレベ
ルかLOWレベルかという二者択一の条件分岐でなく、
入力信号の電位に応じて複数の条件分岐が可能な条件分
岐回路を提供することを目的とする。
This invention was made in view of the above-mentioned problems, and it is possible to change the judgment level of High level and Low level at the time of conditional branching, and it is also possible to make conditional branching with a binary choice of 1 High level or LOW level. Not, but
It is an object of the present invention to provide a conditional branching circuit capable of performing a plurality of conditional branches depending on the potential of an input signal.

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係る条件分岐回路は、あらかじめ複数の分岐
先の主記憶装置(ROMとRAMを含むメモリ)のアド
レスを記憶させておくレジスタと、入力信号に対し上記
レジスタがアドレスを記憶する・ 複数の分岐先のそれ
ぞれに対応する電位範囲を設定しておき、入力信号がど
の電位範囲に属するかを判定する手段と、上記の判定結
果に基づき入力信号に対応する分岐先を指示して分岐を
制御する条件分岐論理回路を備えたものである。
The conditional branch circuit according to the present invention includes a register that stores in advance addresses of main storage devices (memories including ROM and RAM) of a plurality of branch destinations, and a plurality of registers that store addresses in response to input signals. A potential range corresponding to each branch destination is set, a means for determining which potential range the input signal belongs to, and a branch control by instructing the branch destination corresponding to the input signal based on the above determination result. It is equipped with a conditional branch logic circuit.

〔作用〕[Effect]

この発明に係る条件分岐回路においては、入力信号の電
位に対応して複数の信号線のうち一本が選択され、この
選択された信号線に従って複数の分岐先への条件分岐が
行われる。
In the conditional branching circuit according to the present invention, one of the plurality of signal lines is selected in accordance with the potential of the input signal, and conditional branching to a plurality of branching destinations is performed according to the selected signal line.

〔発明の実施例〕[Embodiments of the invention]

第1図はこの発明の〜実施例を示すブロック図であり、
図において(1)は入力端子、(6)は入力端子(1)
からの入力信号をあるタイミングでとらえ、一定時間そ
の入力信号を保持しておくサンプルアンドホールド回路
、+71 、 +81 、191 、 (10)は抵抗
、(11)は第2図に示す真理値表の動作を行う論理回
路、(12)は条件分岐論理回路、(13)は複数個の
レジスタ(この図に示す例では4個)、(14)はレジ
スタ(13)に記憶されているアドレスを条件分岐論理
回路(12)に伝える複数の信号線、(15)は条件分
岐論理のための他の回路を制御する信号用の複数の制御
信号線% (16)はサンプルアンドホールド回路の出
力信号線、(17) 、 (18) 、 (19) 、
 (20)は電位比較器(以下コンパレータという)、
(21)は電源電圧、(22)は接地電位、(23) 
、 (24) 、 (25) 、 (26)はイ源成圧
(21)を抵抗分割したコンパレータ(17) 、 (
18) 、 (19) 、 (20) +7)基準電位
の信号線、(27) 、 (28) 、 (29) 、
 (30)はコンパレータ(17) 、 (Is) 、
 (19) 、 (20)の出力信号線、(31) 、
 (32) 、 (33) 。
FIG. 1 is a block diagram showing an embodiment of the present invention,
In the figure, (1) is the input terminal, (6) is the input terminal (1)
A sample-and-hold circuit that captures the input signal from the input signal at a certain timing and holds the input signal for a certain period of time. The logic circuit that performs the operation, (12) is a conditional branch logic circuit, (13) is a plurality of registers (four in the example shown in this figure), and (14) is a condition for the address stored in register (13). (15) is a plurality of control signal lines for signals that control other circuits for the conditional branch logic (16) is an output signal line of the sample-and-hold circuit , (17), (18), (19),
(20) is a potential comparator (hereinafter referred to as a comparator),
(21) is the power supply voltage, (22) is the ground potential, (23)
, (24), (25), (26) are comparators (17), (
18) , (19) , (20) +7) Reference potential signal line, (27) , (28) , (29) ,
(30) is the comparator (17), (Is),
(19), (20) output signal line, (31),
(32), (33).

(34)はレジスタ(13)の選択信号線である。(34) is a selection signal line for register (13).

次に動作について説明する。Next, the operation will be explained.

まず、レジスタ(13)にそれぞれ分岐先のメモリのア
ドレスを記憶させておく。動作状態に入った場合、サン
プルアンドホールド回路(6)はある周期でたえず入力
電位を監視していて、その入力電位を一定期間信号線(
16)に出力してコンパレータ(17)。
First, the address of each branch destination memory is stored in the register (13). When in the operating state, the sample-and-hold circuit (6) constantly monitors the input potential at a certain period, and connects the input potential to the signal line (
16) and a comparator (17).

(18) 、 (19) 、 (20)に並列入力する
。一方、コンパレータ(17) 、 (1B) 、 (
19) 、 (20)の基準電位として、電源電圧(2
1) t−抵抗171 、181 、 +91 、 (
10)で抵抗分割した値がそれぞれ入力されている。例
えば、抵抗+71 、 +8) 。
Input in parallel to (18), (19), and (20). On the other hand, comparators (17), (1B), (
19) and (20), the power supply voltage (2
1) t-resistance 171, 181, +91, (
The values obtained by dividing the resistance in step 10) are each input. For example, resistance +71, +8).

+91 、 (10)が全て同じ抵抗値のものとすると
、信号線(23)には峨源゛鑞圧が、信号線(24)に
は区源亀圧の牙が、信号線(25)には電源電圧の棒が
、信号線(26)には電源電圧の%が、それぞれ基準電
位として印加される。
If +91 and (10) are all of the same resistance value, the signal line (23) has a source of pressure, the signal line (24) has a fang of the source, and the signal line (25) has a % of the power supply voltage is applied to the signal line (26) as a reference potential.

コンパレータ(17) 、 (18) 、 (19) 
、 (2(1)は、それぞれ人カイ位と基準電位を比較
して、人力電位の方が高い場合、出力信号線(27) 
# (28) 、 (29) # (30)にHigh
レベルの信号を出力するものであるから、コンパレータ
(17)、 (1B) 、 (19) 、 (20)の
出力信号線(27) I C28) 、(29) 。
Comparators (17), (18), (19)
, (2(1) compares the human potential and the reference potential, and if the human potential is higher, the output signal line (27)
# (28), (29) # (30) High
Since it outputs a level signal, the output signal lines (27) IC28) and (29) of the comparators (17), (1B), (19), and (20).

(30)には、入力信号の電位に対応しHighレベル
かLowレベルのいずれかの信号が出力される。ただし
、コンパレータ(19)の出力がHigh  レベルで
、コンパレータ(20)の出力がLowレベルというよ
うなことはありえず、出力信号線(27) 、 (28
) 、 (29) 、 C(0)のレベルは第2図の真
理値表の左側入力欄に示す場合に限定される。
At (30), a signal of either High level or Low level is output, corresponding to the potential of the input signal. However, it is impossible for the output of the comparator (19) to be High level and the output of the comparator (20) to be Low level, and the output signal lines (27), (28)
), (29), and C(0) are limited to the cases shown in the left input column of the truth table in FIG.

次に、コンパレータ(17) 、 (18) 、 (1
9) 、 (20)の出力信号は、論理回路(11)に
よシ、第2図の真理値表に示すとおりの信号に変換され
、分岐先アドレスが記憶されているレジスタ(13)の
選択信号として条件分岐論理回路(I2)に人力される
Next, comparators (17), (18), (1
9) The output signals of (20) are converted by the logic circuit (11) into signals as shown in the truth table in Figure 2, and the register (13) in which the branch destination address is stored is selected. The signal is input manually to the conditional branch logic circuit (I2).

条件分岐論理回路(12)は、選択信号線(31) 、
 (32) 。
The conditional branch logic circuit (12) includes a selection signal line (31),
(32).

(33) 、 (34)の信号により、4個のレジスタ
(13)から1個のレジスタを選択し、他の制御信号と
ともに、選択したレジスタ(13)に記憶されている分
岐先アドレスを、制御信号線(15)に出力する。
The signals (33) and (34) select one register from the four registers (13), and control the branch destination address stored in the selected register (13) along with other control signals. Output to signal line (15).

もし、入力信号がコンパレータ(20)の出力をもHi
gh  レベルとする電位以下の場合は、選択信号線(
31) 、 (32) 、 (33) 、 (34)の
信号は全てLOWレベルとなり、4個のレジスタ(13
)のいずれもが選択されず、条件分岐は行われない。
If the input signal also makes the output of the comparator (20) Hi
If the potential is below the gh level, select signal line (
31), (32), (33), and (34) all go to LOW level, and the four registers (13
) are not selected, and no conditional branching is performed.

上記実施例は、入力信号に対する複数の分岐先のそれぞ
れに対応するcd位範囲を設定し、入力信号がどの螺位
範囲に属するか全判定する手段として、電源電圧を抵抗
で分割した分割電圧を基準電位とするコンパレータによ
る構成としたものであるが、アナログ−ディジタルfm
器(以下A−Dコンバータという)による構成としても
よい。
The above embodiment sets a CD range corresponding to each of a plurality of branch destinations for an input signal, and uses a divided voltage obtained by dividing the power supply voltage by a resistor as a means for fully determining which spiral range the input signal belongs to. Although the configuration is based on a comparator used as a reference potential, analog-digital fm
It may also be configured using a converter (hereinafter referred to as an A-D converter).

第3図はこの発明の他の実施例を示すブロック図であり
、図においてfil 、 +61 、 (12)、(1
3)、(14)、(15)。
FIG. 3 is a block diagram showing another embodiment of the present invention, in which fil, +61, (12), (1
3), (14), (15).

(16) 、 (31) 、 (32) 、 (33)
 、 (34)は第1図の同一符号と同一または相当す
る部分全示し、(35)はA−1)コンバータ、(36
)はA−Dコンバータ(35)からのディジタル出力信
号線、(37)は複数の分岐先のそれぞれに対応する電
位範囲全設定するディジタル値(この実施例では4個の
ディジタル値)を入力しておくレジスタ、  (38)
はレジスタ(37)からの出力信号線、(39)は第4
図に示す真理値表の動作をする論理回路である。
(16), (31), (32), (33)
, (34) indicates all parts that are the same as or correspond to the same reference numerals in FIG. 1, and (35) indicates A-1) converter, (36)
) is the digital output signal line from the A-D converter (35), and (37) is the input of digital values (four digital values in this example) for setting the entire potential range corresponding to each of the plurality of branch destinations. register, (38)
is the output signal line from register (37), and (39) is the fourth
This is a logic circuit that operates according to the truth table shown in the figure.

あらかじめ、レジスタ(37)に分岐先のそれぞれに対
応する電位範囲全設定する4個のディジタル値を入力し
ておく。
In advance, four digital values for setting the entire potential range corresponding to each branch destination are input into the register (37).

動作状神に入った場合、入力信号が一定期間信号線(1
6)に出力され、A−Dコンバータ(35)に入力され
る。A−Dコンバータ(35)で入力信号がディジタル
信号に変換され、ディジタル出力信号線(36)に出力
される。論理回路(39)では、ディジタル出力信号線
(36)の出力信号と、レジスタ(37)からの出力信
号線(38)の出力信号とのディジタル的比較が、第4
図の真理値表に従って行なわれ、分岐先アドレスの入力
されているレジスタ(13)から1個を選択する信号が
選択信号線(31) 、 (32) 、 (33) 、
 (34)に出力きれる。以後の動作は第1図に示すも
のと同じである。
When the input signal enters the operating state, the input signal is connected to the signal line (1) for a certain period of time.
6) and input to the A-D converter (35). The input signal is converted into a digital signal by the AD converter (35) and output to the digital output signal line (36). In the logic circuit (39), the digital comparison between the output signal of the digital output signal line (36) and the output signal of the output signal line (38) from the register (37)
This is done according to the truth table in the figure, and the signals for selecting one of the registers (13) into which the branch destination address is input are the selection signal lines (31), (32), (33),
(34) can be output. The subsequent operations are the same as those shown in FIG.

なお、A−Dコンバータ(35)の分解能は、条件分岐
数をnとするとlog2(n−1)ビット以上必要であ
る。
Note that the resolution of the AD converter (35) needs to be log2 (n-1) bits or more, where n is the number of conditional branches.

上記実施例では分岐先が4箇所の場合を示したが、分岐
先が4箇所の場合のみに限定されるものでないことは勿
論でおる。
Although the above embodiment shows the case where there are four branch destinations, it is of course not limited to the case where there are four branch destinations.

〔発明の効果〕〔Effect of the invention〕

以上のように、この発明によれば、人力信号の判定レベ
ルを任意に変えることができるので、入力信号のレベル
が判定レベルに合わないということがなくなり、また、
1個の入力端子から人力される信号によって複数の条件
分岐をすることができ、被制御装置の複雑な制御が簡単
に行えるという効果がある。
As described above, according to the present invention, the judgment level of the human input signal can be changed arbitrarily, so there is no possibility that the level of the input signal does not match the judgment level, and
A plurality of conditional branches can be performed using a signal manually input from one input terminal, and the effect is that complex control of a controlled device can be performed easily.

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

第1図はこの発明の一実施例を示すブロック図、第2図
は第1図の実施例における分岐先アドレス全記憶してい
るレジスタの選択信号を演算する論理回路の真理値表を
示す説明図、第3図はこの発明の他の実施例を示すブロ
ック図、第4図は第2図の実施例における分岐先のアド
レスを記憶1〜ているレジスタの選択信号全演算する餉
埋回路の真理値表を示す説明図、第5図fal 、 f
b)はそれぞれ従来のこの値の条件分岐回路の例を示す
ブロック図である。 図において(1)は入力端子、(61はサンプルアンド
ホールド回路、+71 、 +81 、191 、 (
10)は抵抗、(11)は論理回路、(12)は条件分
岐論理回路、(13)はレジスタ、(17) 、 (1
8) 、 (19) 、 (2(1)はコンパレータ、
(35)はA−Dコンバータ、(37)はレジスト% 
 (39)は論理回路である。 なお各図中同一符号は同一または相当する部分を示す。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is an explanation showing a truth table of a logic circuit that operates the selection signal of a register that stores all branch destination addresses in the embodiment of FIG. 1. 3 is a block diagram showing another embodiment of the present invention, and FIG. 4 is a block diagram showing a block diagram of another embodiment of the present invention. FIG. Explanatory diagram showing the truth table, Figure 5 fal, f
b) is a block diagram showing an example of a conventional conditional branching circuit of this value. In the figure, (1) is an input terminal, (61 is a sample and hold circuit, +71, +81, 191, (
10) is a resistor, (11) is a logic circuit, (12) is a conditional branch logic circuit, (13) is a register, (17), (1
8), (19), (2(1) is a comparator,
(35) is A-D converter, (37) is resist%
(39) is a logic circuit. Note that the same reference numerals in each figure indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 半導体集積回路上に設けられ、1個の入力端子を経て入
力する信号に応じて条件分岐を制御する条件分岐回路に
おいて、あらかじめ複数の分岐先のメモリのアドレスを
記憶させておくレジスタと、入力端子を経て入力する信
号に対し上記レジスタがアドレスを記憶する複数の分岐
先のそれぞれに対応する電位範囲を設定し、入力信号が
どの電位範囲に属するかを判定する手段と、上記の判定
結果に基づき入力信号の電位に対応するレジスタを選択
し、このレジスタの内容に従い分岐先を指示して分岐を
制御する条件分岐論理回路を備えたことを特徴とする条
件分岐回路。
In a conditional branching circuit that is provided on a semiconductor integrated circuit and controls conditional branching in response to a signal input through one input terminal, there is a register that stores memory addresses of multiple branch destinations in advance, and an input terminal. means for determining which potential range the input signal belongs to by setting a potential range corresponding to each of a plurality of branch destinations whose addresses are stored in the register for a signal inputted through the register, and based on the above determination result. A conditional branching circuit comprising a conditional branching logic circuit that selects a register corresponding to the potential of an input signal and controls branching by instructing a branching destination according to the contents of this register.
JP60246639A 1985-11-01 1985-11-01 Conditional branching circuit Pending JPS62107521A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60246639A JPS62107521A (en) 1985-11-01 1985-11-01 Conditional branching circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60246639A JPS62107521A (en) 1985-11-01 1985-11-01 Conditional branching circuit

Publications (1)

Publication Number Publication Date
JPS62107521A true JPS62107521A (en) 1987-05-18

Family

ID=17151398

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60246639A Pending JPS62107521A (en) 1985-11-01 1985-11-01 Conditional branching circuit

Country Status (1)

Country Link
JP (1) JPS62107521A (en)

Similar Documents

Publication Publication Date Title
US5287525A (en) Software controlled power shutdown in an integrated circuit
JPH04152716A (en) A/d converter
JPS6245729B2 (en)
US5675337A (en) Analog-to-digital converting device
US6999016B2 (en) D/A converter and semiconductor device
JPH07106969A (en) A/d converter
US5784020A (en) Analog-to-digital converting device for increasing the number of analog input channels
JPS62107521A (en) Conditional branching circuit
JPH1032491A (en) Flash a/d converter
JPH0338925A (en) Digital/analog converter
JPS58103226A (en) Resistance string type load circuit
US20010012290A1 (en) Data input circuit and semiconductor device utilizing data input circuit
JPH01101736A (en) Input circuit
JP4571297B2 (en) D / A converter
KR100186339B1 (en) Minimum/maximum selecting circuit
JPH04290012A (en) Data converter
JPS58218230A (en) Selecting circuit of delay time
JPH05315957A (en) Analog/digital conversion device
JPH05252039A (en) Multi-channel d/a converter of 3-line serial data transfer system
JP2000299639A (en) D/a converter
JPH0338924A (en) Analog/digital converter
JPH05235772A (en) Resistance type potential dividing system d/a converter circuit
JPH0567955A (en) Input circuit
JPH03282602A (en) Sequencer circuit
JPS60223228A (en) Binary conversion circuit