[go: up one dir, main page]

CN1188947C - Logic circuit and carry lookahead circuit - Google Patents

Logic circuit and carry lookahead circuit Download PDF

Info

Publication number
CN1188947C
CN1188947C CNB001070320A CN00107032A CN1188947C CN 1188947 C CN1188947 C CN 1188947C CN B001070320 A CNB001070320 A CN B001070320A CN 00107032 A CN00107032 A CN 00107032A CN 1188947 C CN1188947 C CN 1188947C
Authority
CN
China
Prior art keywords
circuit
signal
output
bit
input
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 - Fee Related
Application number
CNB001070320A
Other languages
Chinese (zh)
Other versions
CN1267136A (en
Inventor
早川诚幸
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Publication of CN1267136A publication Critical patent/CN1267136A/en
Application granted granted Critical
Publication of CN1188947C publication Critical patent/CN1188947C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Electronic Switches (AREA)
  • Logic Circuits (AREA)

Abstract

检查2进制数据串中最初出现的1的逻辑电路包括:输入最上位比特的“非”逻辑电路;分别与最上位比特以外的比特一一对应,输入对应于该比特位置的所述2进制数据串的比特和处于比该比特位置更上位的比特的或非电路;分别对应于所述2进制数的数据串的比特设置的、输入上述“非”逻辑电路和上述或非电路的输出的倒相器;分别对应于所述2进制数的数据串的比特设置的2输入电路;所述2输入电路的一个输入是对应于该比特位置的所述倒相器的输出,而另一个输入,在与最上位比特以外的比特对应设置的所述2输入电路时,是位于比该比特位置更上一位的所述或非电路的输出,在与最上位比特对应设置的所述2输入电路时,是固定于0或1的值。该逻辑电路和先行进位电路构成简单而且能够进行高速处理。

The logic circuit for checking the initial 1 in the binary data string includes: inputting the "not" logic circuit of the highest bit; The bits of the system data string and the NOR circuit of the higher bit than the bit position; the bit setting corresponding to the data string of the binary number respectively, inputting the above-mentioned "not" logic circuit and the above-mentioned NOR circuit an output inverter; respectively corresponding to the 2-input circuit of the bit setting of the data string of the binary number; one input of the 2-input circuit is the output of the inverter corresponding to the bit position, and The other input, when the 2-input circuit is set corresponding to a bit other than the highest bit, is the output of the NOR circuit located one bit higher than the bit position, and the output of the NOR circuit set corresponding to the highest bit is In the above 2-input circuit, the value is fixed at 0 or 1. The logic circuit and lookahead carry circuit are simple in configuration and can perform high-speed processing.

Description

逻辑电路及先行进位电路Logic circuit and look-ahead carry circuit

本申请是基于1999年3月9日在日本提出的申请号为62346的专利申请中记载的内容的专利申请,依据巴黎公约提出优先权请求,同时将其内容作为本申请的一部分。This application is based on the contents described in the patent application No. 62346 filed in Japan on March 9, 1999, and the priority is claimed under the Paris Convention, and the contents thereof are made a part of the present application.

本申请又是基于1999年6月30日在日本提出的申请号为186956的专利申请中记载的内容的专利申请,依据巴黎公约提出优先权请求,同时将其内容作为本申请的一部分。This application is also a patent application based on the contents described in Patent Application No. 186956 filed in Japan on June 30, 1999, and claims priority under the Paris Convention, and makes the contents thereof a part of the present application.

本发明涉及逻辑电路,特别是涉及在多比特的数据串中检索最初出现的0或1的逻辑电路。The present invention relates to logic circuits, and more particularly to logic circuits for retrieving the first occurrence of a 0 or 1 in a multi-bit data string.

另外,本发明涉及构成多比特长的运算器所必要的先行进位(CLA)电路。In addition, the present invention relates to a carry-lookahead (CLA) circuit necessary for constituting a multi-bit arithmetic unit.

在构成计算机的硬件的一种逻辑电路中有称之为0检索电路或1检索电路的电路。这种电路是从上位比特开始按顺序检查2进制数的数据串的比特时检索最初出现的0或1的电路,并被用来作为例如比较数据串大小的比较电路或把0或1输入到两行以上输入行时生成表示最优先排位的高输入行的输出代码的优先权编码器之类的基本电路。One of the logical circuits constituting the hardware of a computer is a circuit called a 0 search circuit or a 1 search circuit. This circuit is a circuit that retrieves the first 0 or 1 that appears when checking the bits of a binary number data string sequentially from the upper bit, and is used as a comparison circuit that compares the size of the data string or inputs 0 or 1, for example. A basic circuit such as a priority encoder that generates an output code representing the highest priority input line when two or more input lines are reached.

可是,因为在原来的0或1检索电路中多个逻辑门连接为矩阵状或树枝状结构,所以电路构成复杂。而且,从输入到输出之间要通过多个路由,所以处理要花很多时间。However, in the conventional 0 or 1 search circuit, a plurality of logic gates are connected in a matrix or dendritic structure, so the circuit configuration is complicated. Also, there are multiple routes to go from input to output, so processing takes a lot of time.

另外,在输入N比特长的输入信号A(a<N-1>、a<N-2>)、…、a<0>,以下表示为a<N-1:0>)和输入信号B(b<N-1>、b<N-2>)、…、b<0>,以下表示为b<N-1:0>)并进行加法运算的加法器中使用CLA电路。在原来的CLA电路中有日本公开专利JP-3-150630所披露的电路。该CLA电路并列进行进位信号输入为「0」的情况和输入为「1」的情况的运算,并根据下位的进位信号值选择输出任一方运算结果,通常把这种电路称之为先行进位电路。In addition, input signal A (a<N-1>, a<N-2>), ..., a<0>, hereinafter expressed as a<N-1:0>) and input signal B of N-bit length (b<N-1>, b<N-2>), . Among the original CLA circuits is the circuit disclosed in Japanese Laid-Open Patent JP-3-150630. The CLA circuit performs operations in parallel when the carry signal input is "0" and when the input is "1", and selects and outputs either operation result according to the lower carry signal value. This circuit is usually called an advanced carry circuit. .

在该文献中,展示出图2所示的电路作为原来的4比特CLA电路。在对输入信号A(a<3:0>=和输入信号B(b<3:0>=的每比特进行加法运算时,分别求出传送信号P<3:0>(a<3:0>与b<3:0>的每比特的异-或运算=、生成信号G<3:0>(a<3:0>与b<3:0>的每比特的与运算=。并且把信号P<3:0>、信号G<3:0>和来自前级的进位Cin输入到CLA电路,然后输出进位信号C<3:0>。In this document, the circuit shown in FIG. 2 is shown as an original 4-bit CLA circuit. When adding each bit of the input signal A(a<3:0>= and input signal B(b<3:0>=, the transmitted signal P<3:0>(a<3:0 >Exclusive-OR operation=per bit with b<3:0>, and AND operation=per bit of generated signal G<3:0>(a<3:0> and b<3:0>. And put The signal P<3:0>, the signal G<3:0> and the carry Cin from the previous stage are input to the CLA circuit, and then the carry signal C<3:0> is output.

图3中表示具有根据一方的运算结果选择输出的构成的CLA电路的构成,该构成设置有运算来自前级的进位Cin为1的情况的进位信号C<3:0>的CLA1和运算进位Cin为0的情况的进位信号C<3:0>的CLA2,根据进位Cin的值选择输出任意一方作为进位信号C<3:0>。FIG. 3 shows the configuration of a CLA circuit having a configuration to select an output according to one operation result, and this configuration is provided with CLA1 and the operation carry Cin of the carry signal C<3:0> when the carry Cin from the previous stage is 1. When CLA2 of the carry signal C<3:0> is 0, one of them is selected and output as the carry signal C<3:0> according to the value of the carry Cin.

把图2所示的4比特构成的CLA电路配置成为第1~4比特的组0,把图3所示的CLA电路配置成为第5~32比特的组1~7,由此构成32比特的CLA电路就如图1所示的那样。从组0开始到组1、2、…按顺序生成进位信号C<0>~C<3>、C<4>~C<7>、C<8>~C<11>、...,并向后级传送下去,最后输出进位信号C<28>~C<31>。The 4-bit CLA circuit shown in FIG. 2 is configured as group 0 of the 1st to 4th bits, and the CLA circuit shown in FIG. The CLA circuit is shown in Figure 1. From group 0 to group 1, 2, ... generate carry signals C<0>~C<3>, C<4>~C<7>, C<8>~C<11>, ... in sequence, And transmit it to the subsequent stage, and finally output the carry signal C<28>~C<31>.

但是,在上述的现有的CLA电路中,存在如下的问题。从生成第1比特的进位信号C<0>到生成第32比特的进位信号C<31>所要的计算延迟时间是如图4所示的那样。CLA电路中分别设于从组0到组7的电路CLA1和电路CLA2的运算所要的时间T1是一样的。但是,从组0输出的进位信号C<3>被送入到组1的CLA电路,然后在根据进位信号C<3>选择输出的多路转换器MUX中产生延迟时间T2。因为该延迟时间T2是随着从组1到组7累积而产生出来的,所以,最后产生延迟时间T1+T2*7。因此,原来所存在的问题是随比特数增加,进位运算所要的时间就增大。However, the above-mentioned conventional CLA circuit has the following problems. The calculation delay time required from the generation of the carry signal C<0> of the 1st bit to the generation of the carry signal C<31> of the 32nd bit is as shown in FIG. 4 . The time T1 required for the operation of the circuit CLA1 and the circuit CLA2 respectively provided in groups 0 to 7 among the CLA circuits is the same. However, the carry signal C<3> output from group 0 is sent to the CLA circuit of group 1, and then a delay time T2 is generated in the multiplexer MUX that selects the output according to the carry signal C<3>. Since the delay time T2 is accumulated from group 1 to group 7, the delay time T1+T2*7 is finally generated. Therefore, the original problem is that as the number of bits increases, the time required for the carry operation increases.

为解决上述原来的问题,本发明的目的是提供一种电路构成简单且能够进行高速处理的逻辑电路。In order to solve the above-mentioned original problems, an object of the present invention is to provide a logic circuit having a simple circuit configuration and capable of high-speed processing.

本发明的其他目的是提供一种逻辑电路,这种逻辑电路能够缩短把每m比特的信号P、G、K送到由m比特构成的组内并求出以组为单位的信号PG、GG、KG的计算延迟时间。Another object of the present invention is to provide a logic circuit that can shorten the time period for sending signals P, G, and K of every m bits to a group consisting of m bits and obtain the signals PG, GG in units of groups. , KG calculation delay time.

为实现上述的目的,按照本发明的逻辑电路是一种从最上位比特开始按顺序检查2进制数的数据串的比特时检索最初出现的1的逻辑电路,包括:输入所述2进制数的数据串的最上位比特的“非”逻辑电路;分别与所述2进制数的数据串的最上位比特以外的比特一一对应,输入对应于该比特位置的所述2进制数的数据串的比特和处于比该比特位置更上位的比特的或非电路;分别对应于所述2进制数的数据串的比特设置的、输入上述“非”逻辑电路和上述或非电路的输出的倒相器;分别对应于所述2进制数的数据串的比特设置的2输入电路;所述2输入电路的一个输入是对应于该比特位置的所述倒相器的输出,而另一个输入,在与最上位比特以外的比特对应设置的所述2输入电路时,是位于比该比特位置更上一位的所述或非电路的输出,在与最上位比特对应设置的所述2输入电路时,是固定于0或1的值。In order to achieve the above-mentioned purpose, the logic circuit according to the present invention is a logic circuit for retrieving the initial 1 when checking the bits of the data string of the binary number in order from the most significant bit, comprising: inputting the binary system The "NON" logic circuit of the uppermost bit of the data string of the number; one-to-one correspondence with the bits other than the uppermost bit of the data string of the binary number respectively, input the said binary number corresponding to the bit position The bits of the data string and the NOR circuit of the higher bit than the bit position; respectively corresponding to the bit setting of the data string of the binary number, inputting the above-mentioned "NO" logic circuit and the above-mentioned NOR circuit an output inverter; respectively corresponding to the 2-input circuit of the bit setting of the data string of the binary number; one input of the 2-input circuit is the output of the inverter corresponding to the bit position, and The other input, when the 2-input circuit is set corresponding to a bit other than the highest bit, is the output of the NOR circuit located one bit higher than the bit position, and the output of the NOR circuit set corresponding to the highest bit is In the above 2-input circuit, the value is fixed at 0 or 1.

按照优选实施例,所述“非”逻辑电路和或非电路由并联在接地电位与所述“非”逻辑电路和或非电路的输出线之间的N沟道金属氧化物半导体场效应晶体管构成。According to a preferred embodiment, said "NOT" logic circuit and NOR circuit is formed by an N-channel metal-oxide-semiconductor field-effect transistor connected in parallel between the ground potential and the output line of said "NOT" logic circuit and NOR circuit .

另外,按照优选实施例,在所述2输入或非电路的前级中插入有倒相器。In addition, according to a preferred embodiment, an inverter is inserted in a preceding stage of the 2-input NOR circuit.

按照本发明的其他实施例的逻辑电路由定时电路、准-NMOS电路和逻辑门电路构成;定时电路由连接在输出线和接地电位之间的第一组合电路构成,在预充电期间,控制所述第一组合电路,把所述接地电位切离所述输出线的同时,把电源供给所述输出线,使所述输出线提高到“H”电平,在输出确定期间,把应评价的输入信号送到所述第一组合电路的同时,停止对所述输出线的电源供给,根据该逻辑运算值有选择地把所述接地电位与所述输出线连接起来,经所述输出线输出所确定的逻辑值;准-NMOS电路由连接在输出线和接地电位之间的第二组合电路构成,在所述预充电期间,控制所述第二组合电路,把所述接地电位连接到所述输出线,使所述输出线降低到“L”电平,在所述输出确定期间,把应评价的输入信号送到所述第一组合电路的同时,把电源供给所述输出线,根据该逻辑运算值有选择地把所述接地电位切离所述输出线,经所述输出线输出所确定的逻辑值;逻辑门电路连接到所述定时电路,根据所述定时电路的所述输出线的信号,控制对所述准-NMOS电路的所述输出线的电源供给。所述定时电路和所述准-NMOS电路确定的逻辑值是一样的或互补的,在所述输出确定期间,所述准-NMOS电路的所述输出线被连接到接地电位,在降低到“L”电平的情况下,应答于准-NMOS电路对应的所述输出线的变化,所述逻辑门电路停止对所述定时电路的所述输出线的电源供给。According to other embodiments of the present invention, the logic circuit is composed of a timing circuit, a quasi-NMOS circuit and a logic gate circuit; The first combined circuit cuts off the ground potential from the output line, supplies power to the output line, and raises the output line to "H" level. During the output determination period, the When the input signal is sent to the first combination circuit, the power supply to the output line is stopped, and the ground potential is selectively connected to the output line according to the logic operation value, and output through the output line determined logical value; the quasi-NMOS circuit is formed by a second combination circuit connected between the output line and ground potential, during said precharging period, said second combination circuit is controlled to connect said ground potential to said ground potential The output line is lowered to "L" level, and the input signal to be evaluated is sent to the first combination circuit while the power is supplied to the output line during the output determination period, according to The logic operation value selectively cuts the ground potential away from the output line, and outputs the determined logic value through the output line; the logic gate circuit is connected to the timing circuit, and according to the output of the timing circuit The signal of the line controls the power supply to the output line of the quasi-NMOS circuit. The logic values determined by the timing circuit and the quasi-NMOS circuit are the same or complementary, and during the output determination period, the output line of the quasi-NMOS circuit is connected to the ground potential, and is lowered to " In the case of L" level, in response to the change of the output line corresponding to the quasi-NMOS circuit, the logic gate circuit stops the power supply to the output line of the timing circuit.

另外,按照优选实施例,所述第一组合电路和所述第二组合电路由用同样逻辑构成的NMOS FET构成。In addition, according to a preferred embodiment, the first combined circuit and the second combined circuit are composed of NMOS FETs constructed with the same logic.

按照本发明的其他实施例的准-NMOS逻辑电路由第二准-NMOS电路、第一准-NMOS电路、第一逻辑门电路、第二逻辑门电路构成;第二准-NMOS电路由连接在输出线和接地电位之间的第二组合电路构成,在所述预充电期间,控制所述第二组合电路,把所述接地电位连接到所述输出线,使所述输出线降低到“L”电平,在所述输出确定期间,把应评价的输入信号送到所述第一组合电路的同时,把电源供给所述输出线,根据该逻辑运算值有选择地把所述接地电位切离所述输出线,经所述输出线输出所确定的逻辑值;第一准-NMOS电路由连接在输出线和接地电位之间的第一组合电路构成,在预充电期间,控制所述第一组合电路,把所述接地电位连接到所述输出线,使所述输出线降低到“L”电平,在输出确定期间,把应评价的输入信号送到所述第一组合电路的同时,把电源供给所述输出线,根据该逻辑运算值有选择地把所述接地电位切离所述输出线,经所述输出线输出所确定的逻辑值;第一逻辑门电路根据来自所述第二准-NMOS电路的所述输出线的信号控制对所述第一准-NMOS电路的所述输出线的电源供给;第二逻辑门电路根据来自所述第一准-NMOS电路的所述输出线的信号控制对所述第二准-NMOS电路的所述输出线的电源供给。所述第一准-NMOS电路和所述第二准-NMOS电路是互补的,在所述输出确定期间,所述接地电位被连接到所述第一准-NMOS电路和所述第二准-NMOS电路的一方的所述输出线并下拉到“L”电平的情况下,根据另一方的所述输出线的“H”电平的变化,第一或第二逻辑门电路停止对所述准-NMOS电路的另一方的所述输出线的电源供给。According to other embodiments of the present invention, the quasi-NMOS logic circuit is composed of a second quasi-NMOS circuit, a first quasi-NMOS circuit, a first logic gate circuit, and a second logic gate circuit; the second quasi-NMOS circuit is composed of A second combination circuit between the output line and ground potential is formed, during said pre-charging, said second combination circuit is controlled to connect said ground potential to said output line, causing said output line to drop to "L "level, during the output determination period, while the input signal to be evaluated is sent to the first combination circuit, power is supplied to the output line, and the ground potential is selectively cut according to the logic operation value. From the output line, the determined logic value is output through the output line; the first quasi-NMOS circuit is composed of a first combination circuit connected between the output line and the ground potential, during the pre-charging period, the control of the first a combination circuit that connects said ground potential to said output line, lowers said output line to "L" level, and simultaneously supplies an input signal to be evaluated to said first combination circuit during output determination , supply power to the output line, selectively cut the ground potential away from the output line according to the logic operation value, and output the determined logic value through the output line; the first logic gate circuit is based on the The signal of the output line of the second quasi-NMOS circuit controls the power supply to the output line of the first quasi-NMOS circuit; the second logic gate circuit is based on the signal from the first quasi-NMOS circuit The signal of the output line controls the power supply to the output line of the second quasi-NMOS circuit. The first quasi-NMOS circuit and the second quasi-NMOS circuit are complementary, and the ground potential is connected to the first quasi-NMOS circuit and the second quasi-NMOS circuit during the output determination. When one of the output lines of the NMOS circuit is pulled down to "L" level, according to the change of the "H" level of the other output line, the first or second logic gate circuit stops The power supply of the output line of the other side of the quasi-NMOS circuit.

按照本发明的另外的实施例的先行进位电路输入每隔m(m为1以上的整数)比特的传播信号P、产生信号G和消除信号K中的至少一方,来生成由m比特构成的作为相应的组的组传播信号PG、组产生信号GG和组消除信号KG中的至少一方;所述先行进位电路由逻辑电路、优先编码器和选择电路构成,在所述传播信号P全都有一个逻辑值的情况下或在反转组传播信号PB全都有一个逻辑值的反转值的情况下,逻辑电路输出具有所述一个逻辑值的所述组传播信号PG和/或具有所述一个逻辑值的反转值的所述反转组传播信号PGB;在按照从最上位比特向下位顺序检索所述传播信号P和/或所述反转组传播信号PB,并且对应于所述传播信号P之中的最初出现所述一个逻辑值的反转值或所述反转组传播信号PB之中的最初出现所述一个逻辑值的信号的比特生成有效的m比特的选择信号,而且所述传播信号P的任意比特内都不出现所述一个逻辑值的反转值的情况下,或者所述反转组传播信号PB的任意比特内都不出现所述一个逻辑值的情况下,优先编码器输出任意比特都不成为有效的选择信号;输入所述选择信号,并把有效比特输入到所述选择信号时,选择器选择所述产生信号G和/或所述消除信号K之中对应于所述选择信号的有效比特的产生信号G和/或消除信号K,并分别作为所述组产生信号GG和/或所述组消除信号KG输出去,在所述选择信号的任意比特都不成为有效的情况下,选择器输出具有所述一个逻辑值的反转值的所述所述组产生信号GG和/或所述组消除信号KG。The look-ahead carry circuit according to another embodiment of the present invention inputs at least one of the propagation signal P, the generation signal G, and the cancellation signal K of every m (m is an integer greater than 1) bits, and generates a signal consisting of m bits as At least one of the group propagation signal PG, the group generation signal GG and the group elimination signal KG of the corresponding group; value or in the case of inverted values of the inverted set of propagation signals PB all having one logical value, the logic circuit outputs said set of propagated signals PG having said one logical value and/or having said one logical value The inversion group propagation signal PGB of the inversion value of ; the propagation signal P and/or the inversion group propagation signal PB are retrieved in order from the most significant bit to the bottom bit, and corresponding to the propagation signal P The inverse value of said one logic value in PB or the bit of the signal in which said one logic value first appears in said inversion group propagation signal PB generates an effective m-bit selection signal, and said propagation signal When the inversion value of the one logic value does not appear in any bit of P, or in the case that the one logic value does not appear in any bit of the inversion group propagation signal PB, the priority encoder outputs Any bit does not become an effective selection signal; when the selection signal is input and a valid bit is input to the selection signal, the selector selects the generation signal G and/or the elimination signal K corresponding to the The generation signal G and/or the elimination signal K of the effective bits of the selection signal are output as the group generation signal GG and/or the group elimination signal KG respectively, and any bit of the selection signal does not become effective In this case, the selector outputs the group generating signal GG and/or the group canceling signal KG having an inverted value of the one logic value.

按照本发明的另外的实施例的先行进位电路输入进位信号C、每隔m(m为1以上的整数)比特的传播信号P、产生信号G和消除信号K中的至少一方,来生成由m比特构成的作为相应的组的组传播信号PG、组进位信号CG、组产生信号GG和组消除信号KG中的至少一方;所述先行进位电路由逻辑电路、优先编码器和选择电路构成,在所述传播信号P全都有一个逻辑值的情况下或在反转组传播信号PB全都有一个逻辑值的反转值的情况下,逻辑电路输出具有所述一个逻辑值的所述组传播信号PG和/或具有所述一个逻辑值的反转值的所述反转组传播信号PGB;在按照从最上位向下位顺序检索所述传播信号P和/或所述反转组传播信号PB,并且对应于所述传播信号P之中的最初出现所述一个逻辑值的反转值或所述反转组传播信号PB之中的最初出现所述一个逻辑值的信号的比特生成有效的m比特的选择信号,而且所述传播信号P的任意比特内都不出现所述一个逻辑值的反转值的情况下,或者所述反转组传播信号PB的任意比特内都不出现所述一个逻辑值的情况下,优先编码器输出任意比特都不成为有效的选择信号;输入所述选择信号,并把有效比特输入到所述选择信号时,选择器选择所述产生信号G和所述消除信号K之中对应于所述选择信号的有效比特的产生信号G和消除信号K,并分别作为所述组进位信号CG和反转组进位信号CGB输出去,在所述选择信号的任意比特都不成为有效的情况下,选择器根据所述组传播信号PG或反转组传播信号PGB把所述进位信号C作为所述组进位信号CG输出。According to the advance carry circuit of another embodiment of the present invention, at least one of the carry signal C, the propagation signal P of every m (m is an integer greater than 1), the generation signal G, and the cancellation signal K is input to generate a signal represented by m At least one of the group propagation signal PG, the group carry signal CG, the group generation signal GG and the group elimination signal KG composed of bits as the corresponding group; the advanced carry circuit is composed of a logic circuit, a priority encoder and a selection circuit. In the case where the propagation signals P all have a logical value or in the case where the inverted group propagation signals PB all have an inverted value of a logical value, a logic circuit outputs the group propagation signal PG having the one logical value and/or the inverted group propagation signal PGB having an inverted value of the one logical value; after retrieving the propagation signal P and/or the inverted group propagation signal PB in order from the highest bit to the lower bit, and A bit corresponding to the inverted value of the first occurrence of the one logic value in the propagated signal P or the signal of the first occurrence of the one logic value in the inversion group propagation signal PB generates an effective m-bit selection signal, and the inversion value of the one logic value does not appear in any bit of the propagation signal P, or the one logic value does not appear in any bit of the inversion group propagation signal PB In the case of , the priority encoder outputs a selection signal in which any bit does not become valid; when the selection signal is input and valid bits are input to the selection signal, the selector selects the generation signal G and the elimination signal K Among them, the generation signal G and the elimination signal K corresponding to the effective bits of the selection signal are output as the group carry signal CG and the inverted group carry signal CGB respectively, and any bit of the selection signal does not become When it is valid, the selector outputs the carry signal C as the group carry signal CG according to the group propagation signal PG or the inverted group propagation signal PGB.

按照本发明的另外的实施例的先行进位电路由多个第一先行进位电路组、多个第二先行进位电路组和第三先行进位电路构成;第一先行进位电路组由多个第一先行进位电路构成;第二先行进位电路组由多个第二先行进位电路构成,各个第二先行进位电路连接到属于所述第一先行进位电路组的各个组的所述第一先行进位电路;第三先行进位电路被连接在所述第二先行进位电路组上;所述第一先行进位电路输入每隔m(m为1以上的整数)比特的传播信号、产生信号和消除信号中的至少一方,来生成由m比特构成的作为相应的组的第一组传播信号、第一组产生信号和第一组消除信号中的至少一方;所述第一先行进位电路由逻辑电路、优先编码器和选择电路构成,在所述传播信号全都有一个逻辑值的情况下或在反转组传播信号全都有一个逻辑值的反转值的情况下,逻辑电路输出具有所述一个逻辑值的所述第一组传播信号和/或具有所述一个逻辑值的反转值的所述第一反转组传播信号;在按照从最上位比特向下位顺序检索所述传播信号和/或所述反转组传播信号,并且对应于所述传播信号之中的最初出现所述一个逻辑值的反转值或所述反转组传播信号之中的最初出现所述一个逻辑值的信号的比特生成有效的m比特的选择信号,而且所述传播信号的任意比特内都不出现所述一个逻辑值的反转值的情况下,或者所述反转组传播信号的任意比特内都不出现所述一个逻辑值的情况下,优先编码器输出任意比特都不成为有效的选择信号;输入所述选择信号,并把有效比特输入到所述选择信号时,选择器选择所述产生信号和/或所述消除信号之中对应于所述选择信号的有效比特的产生信号和/或消除信号,并分别作为所述第一组产生信号和所述第一组消除信号输出去,在所述选择信号的任意比特都不成为有效的情况下,选择器输出具有所述一个逻辑值的反转值的所述第一组产生信号和/或所述第一组消除信号。According to another embodiment of the present invention, the carry-ahead circuit is composed of a plurality of first carry-ahead circuit groups, a plurality of second carry-ahead circuit groups and a third carry-ahead circuit; the first carry-ahead circuit group is composed of a plurality of first carry-ahead circuits Carry circuits are formed; the second advanced carry circuit group is composed of a plurality of second advanced carry circuits, and each second advanced carry circuit is connected to the first advanced carry circuit belonging to each group of the first advanced carry circuit group; Three advanced carry circuits are connected to the second advanced carry circuit group; the first advanced carry circuit inputs every m (m is an integer greater than 1) bit propagation signal, at least one of the generation signal and the cancellation signal , to generate at least one of the first group of propagating signals, the first group of generation signals and the first group of cancellation signals consisting of m bits; the first advanced carry circuit is composed of a logic circuit, a priority encoder and The selection circuit is configured such that a logic circuit outputs said first one having said one logic value in a case where said propagating signals all have a logic value or in a case where an inverted group of propagation signals all have an inversion value of a logic value. a group of propagated signals and/or said first inverted group of propagated signals having an inverted value of said one logical value; upon retrieving said propagated signals and/or said inverted group of propagating a signal, and corresponding to the inverse value of the first occurrence of the one logic value in the propagation signal or the bit of the signal in the inversion set of propagation signals in which the one logic value first occurs generates an effective m bit selection signal, and the inversion value of the one logic value does not appear in any bit of the propagation signal, or the one logic value does not appear in any bit of the inversion group propagation signal In the case of , the priority encoder outputs a selection signal in which any bit does not become valid; when the selection signal is input and a valid bit is input to the selection signal, the selector selects the generation signal and/or the cancellation signal Among them, the generation signal and/or elimination signal corresponding to the effective bits of the selection signal are output as the first group generation signal and the first group elimination signal respectively, and any bit in the selection signal is When not valid, the selector outputs the first group generation signal and/or the first group cancellation signal having an inverted value of the one logic value.

所述第二先行进位电路输入所述第一组传播信号、所述第一组产生信号和所述第一组消除信号中的至少一方,来生成对应的第一先行进位电路组的第二组传播信号、第二组产生信号和第二组消除信号中的至少一方;所述第二先行进位电路由逻辑电路、优先编码器和选择电路构成,在所述第一组传播信号全都有一个逻辑值的情况下或在所述第一反转组传播信号全都有一个逻辑值的反转值的情况下,逻辑电路输出具有所述一个逻辑值的所述第二组传播信号和/或具有所述一个逻辑值的反转值的所述第二反转组传播信号;在按照从最上位比特向下位顺序检索所述第一组传播信号和/或所述第一反转组传播信号,并且对应于所述第一组传播信号之中的最初出现所述一个逻辑值的反转值或所述第一反转组传播信号之中的最初出现所述一个逻辑值的信号的比特生成有效的多比特的选择信号,而且所述第一组传播信号的任意比特内都不出现所述一个逻辑值的反转值的情况下,或者所述第一反转组传播信号的任意比特内都不出现所述一个逻辑值的情况下,优先编码器输出任意比特都不成为有效的选择信号;输入所述选择信号,并把有效比特输入到所述选择信号时,选择器选择所述第一组产生信号和/或所述第一组消除信号之中对应于所述选择信号的有效比特的第一组产生信号和/或第一组消除信号,并分别作为所述第二组产生信号和/或所述第二组消除信号输出去,在所述选择信号的任意比特都不成为有效的情况下,选择器输出具有所述一个逻辑值的反转值的所述第二组产生信号和/或所述第二组消除信号。The second carry-ahead circuit inputs at least one of the first group of propagation signals, the first group of generation signals, and the first group of cancellation signals to generate a second group of the corresponding first group of carry-ahead circuits at least one of a propagated signal, a second set of generated signals, and a second set of canceled signals; said second lookahead carry circuit is composed of a logic circuit, a priority encoder, and a selection circuit, all of said first set of propagated signals having a logic value or in the case where the first inverted set of propagated signals all have an inverted value of a logic value, the logic circuit outputs the second set of propagated signals having the one logic value and/or having the said second inverted group propagation signal of the inversion value of said one logic value; said first group propagation signal and/or said first inverted group propagation signal are retrieved in order from the most significant bit to the bottom bit, and generating valid multi-bit selection signal, and the inversion value of the one logic value does not appear in any bit of the first group of propagation signals, or does not appear in any bit of the first inversion group of propagation signals In the case of said one logic value, the priority encoder outputs any bit that does not become an effective selection signal; when the selection signal is input and a valid bit is input to the selection signal, the selector selects the first group The first group of generated signals and/or the first group of eliminated signals corresponding to the effective bits of the selection signal among the generated signals and/or the first group of eliminated signals are used as the second group generated signals and/or Or the second group of elimination signals is output, and when any bit of the selection signal does not become valid, the selector outputs the second group of generation signals having the inversion value of the one logic value and/or or the second set of cancellation signals.

所述第三先行进位电路输入进位信号、所述第二组传播信号、所述第二组产生信号和所述第二组消除信号中的至少一方,来生成对应的第二先行进位电路组的第三组传播信号、组进位信号、第三组产生信号和第三组消除信号中的至少一方;所述第三先行进位电路由逻辑电路、优先编码器和选择电路构成,在所述第二组传播信号全都有一个逻辑值的情况下或在所述第二反转组传播信号全都有一个逻辑值的反转值的情况下,逻辑电路输出具有所述一个逻辑值的所述第三组传播信号和/或具有所述一个逻辑值的反转值的所述第二反转组的第二组传播信号;在按照从最上位比特向下位顺序检索所述第二组传播信号和/或所述第二反转组传播信号,并且对应于所述第二组传播信号之中的最初出现所述一个逻辑值的反转值或所述第二反转组传播信号之中的最初出现所述一个逻辑值的信号的比特生成有效的多比特的选择信号,而且所述第二组传播信号的任意比特内都不出现所述一个逻辑值的反转值的情况下,或者所述第二反转组传播信号的任意比特内都不出现所述一个逻辑值的情况下,优先编码器输出任意比特都不成为有效的选择信号;输入所述选择信号,并把有效比特输入到所述选择信号时,选择器选择所述第二组产生信号和所述第二组消除信号之中对应于所述选择信号的有效比特的第二组产生信号和第二组消除信号,并分别作为所述组进位信号和所述反转组进位信号输出去,在所述选择信号的任意比特都不成为有效的情况下,选择器利用所述第三组产生信号和所述第三组消除信号,把所述进位信号作为所述组进位信号输出去。The third carry-ahead circuit inputs at least one of the carry signal, the second group of propagation signals, the second group of generation signals, and the second group of cancellation signals to generate the corresponding second group of carry-ahead circuits At least one of a third group of propagation signals, a group of carry signals, a third group of generation signals and a third group of cancellation signals; the third advanced carry circuit is composed of a logic circuit, a priority encoder and a selection circuit, and in the second In the case where the group propagated signals all have a logic value or in the case where the second inverted group propagated signals all have an inverse value of a logic value, the logic circuit outputs the third group with the one logic value propagating signals and/or a second group of propagating signals of said second inverted group having an inverted value of said one logic value; upon retrieving said second group of propagating signals and/or The second inverted set of propagated signals corresponds to the first occurrence of the inverted value of the one logic value in the second set of propagated signals or the first occurrence of the first occurrence in the second inverted set of propagated signals A valid multi-bit selection signal is generated from a bit of a signal of a logical value, and the inversion of the one logical value does not appear in any bit of the second set of propagated signals, or the second Under the situation that described a logical value does not appear in any bit of the inverted group propagation signal, any bit output by the priority encoder does not become an effective selection signal; input the selection signal, and input valid bits to the selection signal, the selector selects the second group of generation signals and the second group of elimination signals corresponding to the valid bits of the selection signal among the second group of generation signals and the second group of elimination signals, and serves as the The group carry signal and the inverted group carry signal are output, and when any bit of the selection signal does not become valid, the selector uses the third group generation signal and the third group cancellation signal to convert The carry signal is output as the set of carry signals.

图1是现有32比特CLA电路的构成电路图。FIG. 1 is a circuit diagram of a conventional 32-bit CLA circuit.

图2是该CLA电路中的组0的CLA电路的构成电路图。FIG. 2 is a configuration circuit diagram of a CLA circuit of group 0 among the CLA circuits.

图3是具有根据进位值选择输出一方的运算结果的构成的CLA电路的构成图。FIG. 3 is a configuration diagram of a CLA circuit having a configuration for selecting and outputting one calculation result according to a carry value.

图4是表示该CLA电路中从生成第1比特的进位信号C<0>到生成第32比特的进位信号C<31>所需要的计算延迟时间的说明图。4 is an explanatory diagram showing the calculation delay time required from the generation of the 1st-bit carry signal C<0> to the generation of the 32nd-bit carry signal C<31> in the CLA circuit.

图5是把按照本发明的逻辑电路适用于4比特的优先编码器的情况下的电路构成图。Fig. 5 is a circuit configuration diagram in the case of applying the logic circuit according to the present invention to a 4-bit priority encoder.

图6是由定时电路构成图5所示的1检索电路的非电路、或非电路的情况下的电路构成图。FIG. 6 is a circuit configuration diagram in the case where a timer circuit constitutes a non-circuit or a non-circuit of one search circuit shown in FIG. 5 .

图7是在图6的定时电路中追加了NMOS·FET的情况下的电路构成图。FIG. 7 is a circuit configuration diagram in which an NMOS·FET is added to the timing circuit of FIG. 6 .

图8是在图7的定时电路中追加了静态电路的情况下的电路构成图。FIG. 8 is a circuit configuration diagram in a case where a static circuit is added to the timer circuit in FIG. 7 .

图9是从图7所示的定时电路5中去掉时钟控制功能,而追加了用来使逻辑进行静态动作的电路的情况下的电路构成图。FIG. 9 is a circuit configuration diagram in which a clock control function is removed from the timer circuit 5 shown in FIG. 7 and a circuit for statically operating logic is added.

图10是由与非电路构成图5的1检索电路的情况下的电路构成图。FIG. 10 is a circuit configuration diagram in the case where the single search circuit in FIG. 5 is configured by a NAND circuit.

图11是连接多个图5的1检索电路,进一步构成多比特优先编码器的情况下的电路构成图。FIG. 11 is a circuit configuration diagram in the case where a plurality of one search circuit of FIG. 5 is connected to further configure a multi-bit priority encoder.

图12是使用图5的优先编码器构成加法器中所使用的CLA电路的情况下的电路构成图。FIG. 12 is a circuit configuration diagram in a case where a CLA circuit used in an adder is configured using the priority encoder of FIG. 5 .

图13(a)是表示该第一和第二CLA电路中的与电路AN1的电路构成的一例的电路图。图13(b)是准-NMOS型的说明图。FIG. 13( a ) is a circuit diagram showing an example of the circuit configuration of the AND circuit AN1 in the first and second CLA circuits. Fig. 13(b) is an explanatory diagram of a quasi-NMOS type.

图14是由定时电路构成图12的第一CLA电路CLA(1)和图17的第二CLA电路CLA(2)的优先编码器PE的或非电路NR11、NR21、NR31的情况下的电路构成图。Fig. 14 is the circuit configuration under the situation of the NOR circuit NR11, NR21, NR31 of the priority encoder PE of the first CLA circuit CLA (1) of Fig. 12 and the second CLA circuit CLA (2) of Fig. 17 constituted by the timing circuit picture.

图15是由PMOS·FET、NMOS·FET和非电路构成选择器SEL1的情况下的电路构成图。FIG. 15 is a circuit configuration diagram in the case where a selector SEL1 is constituted by PMOS·FETs, NMOS·FETs, and a neutral circuit.

图16是表示图12所示的CLA电路的输入输出的定时的时序图。FIG. 16 is a timing chart showing the timing of input and output of the CLA circuit shown in FIG. 12 .

图17是把与电路连接到图12的电路上的情况下的电路构成图。FIG. 17 is a circuit configuration diagram in the case where an AND circuit is connected to the circuit in FIG. 12 .

图18是表示图17所示的CLA电路的输入输出的定时的时序图。FIG. 18 is a timing chart showing the timing of input and output of the CLA circuit shown in FIG. 17 .

图19是使用图12的第一CLA电路CLA(1)和图17的第二CLA电路CLA(2)构成32比特的CLA电路的情况下的电路构成图。FIG. 19 is a circuit configuration diagram in a case where a 32-bit CLA circuit is configured using the first CLA circuit CLA(1) of FIG. 12 and the second CLA circuit CLA(2) of FIG. 17 .

图20是表示图19所示的CLA电路中的计算延迟时间的说明图。FIG. 20 is an explanatory diagram showing calculation delay times in the CLA circuit shown in FIG. 19 .

图21(a)表示输入两个信号A和B(/A和/B),并在A和B之间进行逻辑和运算而生成输出信号P的电路。Fig. 21(a) shows a circuit that inputs two signals A and B (/A and /B), performs a logical sum operation between A and B, and generates an output signal P.

图21(b)表示把反转加到逻辑和上的信号PB输出到两个输入信号A和B之间的电路。Fig. 21(b) shows a circuit for outputting a signal PB inverted to a logical sum between two input signals A and B.

图22(a)表示生成与时钟CLK同步的每比特的进位信号Cin的波形CB的电路。FIG. 22( a ) shows a circuit for generating the waveform CB of the carry signal Cin per bit in synchronization with the clock CLK.

图22(b)表示生成与时钟CLK同步的每比特的反转进位信号/Cin的波形CB的电路。FIG. 22(b) shows a circuit for generating a waveform CB of an inverted carry signal /Cin per bit in synchronization with the clock CLK.

图23是把1检索电路2-7连接到图17所示的准-NMOS与非电路42的情况下的电路构成图,与图17相同的部分标注以同一符号。FIG. 23 is a circuit configuration diagram in the case where a search circuit 2-7 is connected to the quasi-NMOS NAND circuit 42 shown in FIG. 17, and the same parts as those in FIG. 17 are denoted by the same symbols.

图24表示准-NMOS与非电路42,连接在由相同的逻辑构成的动态电路46上。Fig. 24 shows a quasi-NMOS NAND circuit 42 connected to a dynamic circuit 46 composed of the same logic.

图26是表示输出同步的动态电路和准-NMOS电路组合的构成例的电路构成图。FIG. 26 is a circuit configuration diagram showing a configuration example of a combination of an output-synchronized dynamic circuit and a quasi-NMOS circuit.

图27是表示图26所示的准-NMOS与非电路61的输入输出的定时的时序图。FIG. 27 is a timing chart showing the timing of input and output of the quasi-NMOS NAND circuit 61 shown in FIG. 26 .

图28是表示按照本发明的互补准-NMOS与非电路构成的逻辑电路的构成例的电路构成图。Fig. 28 is a circuit configuration diagram showing an example of the configuration of a logic circuit configured by a complementary quasi-NMOS NAND circuit according to the present invention.

图29是表示图28所示的互补准-NMOS与非电路的输入输出的定时的时序图。FIG. 29 is a timing chart showing the timing of input and output of the complementary quasi-NMOS NAND circuit shown in FIG. 28 .

图30是作为图28所示的电路的应用例表示使用准-NMOS与非电路的按照本发明的互补逻辑电路的构成例的电路构成图。30 is a circuit configuration diagram showing a configuration example of a complementary logic circuit according to the present invention using a quasi-NMOS NAND circuit as an application example of the circuit shown in FIG. 28 .

图31是表示图30所示的互补准-NMOS与非电路的输入输出的定时的时序图。FIG. 31 is a timing chart showing the timing of input and output of the complementary quasi-NMOS NAND circuit shown in FIG. 30 .

以下根据附图说明本发明的实施例。Embodiments of the present invention will be described below with reference to the drawings.

图5是把按照本发明的逻辑电路适用于4比特优先编码器的情况下的电路构成图。图1是现有32比特的CLA电路的构成电路图。Fig. 5 is a circuit configuration diagram in the case of applying the logic circuit according to the present invention to a 4-bit priority encoder. FIG. 1 is a circuit diagram of a conventional 32-bit CLA circuit.

该优先编码器1是生成4比特输入数据(IN<0>、IN<1>、IN<2>、IN<3>)之中对应于最优先排位的高输入行的2比特输出代码的电路,它由1检索电路2和对该1检索电路2的输出进行编码的编码器3构成。这里,设标引小的输入行的优先排位高。The priority encoder 1 is to generate a 2-bit output code corresponding to the highest input row of the highest priority rank among the 4-bit input data (IN<0>, IN<1>, IN<2>, IN<3>) circuit, which consists of a retrieval circuit 2 and an encoder 3 for encoding the output of the retrieval circuit 2. Here, it is assumed that an input row with a small index has a high priority.

下面来说明1检索电路2的构成。因为编码器3由已有的编码器电路构成,所以省略了说明。Next, the configuration of the search circuit 2 will be described. Since the encoder 3 is constituted by an existing encoder circuit, description thereof is omitted.

1检索电路2按优先排位高的IN<0>、IN<1>…顺序检查输入数据IN<0>、IN<1>、IN<2>、IN<3>的各比特值,IN<i>(0≤i≤3)中最初出现1时,输出数据S<0>、S<1>、S<2>、S<3>中仅把1输出给S<i>(0≤i≤3),把0输出给其他的S<j>(j≠i),把1输出给Y。在IN<i>(0≤i≤3)全都是0时,把1输出给全部的S<i>(0≤i≤3),把0输出给Y。1 The search circuit 2 checks the bit values of the input data IN<0>, IN<1>, IN<2>, IN<3> in the order of IN<0>, IN<1>... with high priority, IN< When 1 appears initially in i>(0≤i≤3), only 1 is output to S<i>(0≤i ≤3), output 0 to other S<j>(j≠i), and output 1 to Y. When all IN<i>(0≤i≤3) are 0, 1 is output to all S<i>(0≤i≤3), and 0 is output to Y.

图5所示的1检索电路2设置有输入输入数据IN<0>的非逻辑电路11、输入IN<1>、IN<0>的2输入或非电路12、输入IN<2>、IN<0>和IN<1>的3输入或非电路13、输入IN<3>、IN<0>、IN<1>和IN<2>的4输入或非电路14。The 1 retrieval circuit 2 shown in FIG. 5 is provided with a non-logic circuit 11 for inputting input data IN<0>, a 2-input NOR circuit 12 for inputting IN<1> and IN<0>, and a non-logic circuit 12 for inputting IN<2> and IN<0>. 3-input NOR circuit 13 for 0> and IN<1>, 4-input NOR circuit 14 for inputs IN<3>, IN<0>, IN<1>, and IN<2>.

非逻辑电路11、或非电路12~14的输出被接下去的非逻辑电路15~18反转,进一步由非逻辑电路19~22反转,然后被输入到2输入或非电路23~26的输入线A0~A3。同时,把比特信号“0”输入到或非电路23的输入线B0,把非逻辑电路15的反转信号输入到或非电路24的输入线B1,把非逻辑电路16的反转信号输入到或非电路25的输入线B2,把非逻辑电路17的反转信号输入到或非电路26的输入线B3。或非电路23~26的运算结果被取出来作为输出数据S<0>、S<1>、S<2>、S<3>;把由非逻辑电路18反转的信号取出来作为输出数据Y。The outputs of the non-logic circuit 11 and the non-logic circuits 12-14 are reversed by the following non-logic circuits 15-18, further inverted by the non-logic circuits 19-22, and then input to the 2-input NOR circuits 23-26. Input lines A0-A3. At the same time, the bit signal "0" is input to the input line B0 of the NOR circuit 23, the inversion signal of the non-logic circuit 15 is input to the input line B1 of the NOR circuit 24, and the inversion signal of the non-logic circuit 16 is input to the input line B1 of the NOR circuit 24. The input line B2 of the NOR circuit 25 inputs the inverted signal of the NOR circuit 17 to the input line B3 of the NOR circuit 26 . The operation results of the NOR circuits 23-26 are taken out as output data S<0>, S<1>, S<2>, S<3>; the signal inverted by the non-logic circuit 18 is taken out as output data Y.

在上述那样构成的1检索电路2中,例如来观察输入比特列“0101”的输入数据IN<3:0>的情况时,在非逻辑电路11、或非电路12~14中,比特列就成为“1000”,接下去的非逻辑电路15~18中的比特列就成为“0111”。至此为止的运算中,从上位开始按顺序对输入数据的比特检查下去,检出比特列成为“0、1”的位置,并把此后的比特值都设为1。因此,在IN<3:0>=“0101”时,IN<2>以后的比特,不管其值大小,全都成为1(“0111”)。然后,经非逻辑电路19~22、或非电路23~26把输出数据S<3:0>的比特列输出为“0100”。In the search circuit 2 configured as described above, for example, when the input data IN<3:0> of the input bit string "0101" is observed, in the non-logic circuit 11 and the NOR circuits 12 to 14, the bit string is When it becomes "1000", the bit string in the following non-logic circuits 15 to 18 becomes "0111". In the operation up to this point, the bits of the input data are checked in order from the upper order, the position where the bit string becomes "0, 1" is detected, and the subsequent bit values are all set to 1. Therefore, when IN<3:0>="0101", all the bits after IN<2> become 1 ("0111") regardless of their value. Then, the bit string of the output data S<3:0> is output as “0100” through the NOR circuits 19-22 and the NOR circuits 23-26.

同样,输入比特列“1XXX”、“001X”、“0001”的输入数据(X可以是0,也可以是1)时,分别输出“1000”、“0010”、“0001”。在输入数据IN<3:0>中包含至少一个“1”的情况下,输出1作为输出数据Y。Similarly, when the input data (X can be 0 or 1) of the bit strings "1XXX", "001X", and "0001" is input, "1000", "0010", and "0001" are respectively output. In the case where at least one "1" is contained in the input data IN<3:0>, 1 is output as the output data Y.

另一方面,在输入比特列“0000”的输入数据IN<3:0>的情况下,在非逻辑电路11、或非电路12~14中,比特列成为“1111”,接下去的非逻辑电路15~18中的比特列成为“0000”。这里,因为没有输入数据的比特列成为“0、1”的组合,所以经非逻辑电路19~22、或非电路23~25的输出数据S<3:0>的比特列成为“0000”。在输入数据IN<3:0>中不包含“1”的情况下,输出0作为输出数据Y。On the other hand, when the input data IN<3:0> of the bit string "0000" is input, the bit string becomes "1111" in the NOR circuit 11 and the NOR circuits 12 to 14, and the next NOR circuit The bit strings in the circuits 15 to 18 are "0000". Here, since the bit string of no input data is a combination of "0, 1", the bit string of the output data S<3:0> via the NOR circuits 19-22 and the NOR circuits 23-25 is "0000". When "1" is not included in the input data IN<3:0>, 0 is output as the output data Y.

接下来把输出数据S<3:0>输入到编码器3,生成表示最优先排位的高输入线的2比特输出代码Q0、Q1。顺便说一下,如果输出数据S<3:0>是“1000”,就输出表示输入线0的“00”;如果是“0100”,就输出表示输入线1的“01”;如果是“0010”,就输出表示输入线2的“10”;如果是“0001”,就输出表示输入线3的“11”。在输出数据Y是0时,把输出数据S<3:0>识别为“0000”。Next, the output data S<3:0> is input to the encoder 3 to generate 2-bit output codes Q0 and Q1 indicating the high input line with the highest priority. By the way, if the output data S<3:0> is "1000", "00" indicating input line 0 is output; if it is "0100", "01" indicating input line 1 is output; if it is "0010 ", output "10" representing input line 2; if it is "0001", output "11" representing input line 3. When the output data Y is 0, the output data S<3:0> is recognized as "0000".

这样,在按本实施例的1检索电路中,与原来那样把逻辑门连接为矩阵状或树枝状构成的电路相比,电路构成简单。而且,因为从输入到输出之间寻找的路由少,所以能够缩短进行处理所需要的时间。因此,能够用简单的电路构成来实现可高速进行处理的逻辑电路。Thus, in the search circuit according to this embodiment, the circuit configuration is simpler than conventional circuits in which logic gates are connected in a matrix or a dendrite. Furthermore, since there are few routes to be searched from input to output, the time required for processing can be shortened. Therefore, a logic circuit capable of high-speed processing can be realized with a simple circuit configuration.

在本实施例中,说明了1检索电路,但是,按照本发明的逻辑电路也能构成为0检索电路。In this embodiment, a 1 search circuit is described, however, the logic circuit according to the present invention can also be configured as a 0 search circuit.

下面,来说明按照本实施例的1检索电路的具体的电路构成。Next, a specific circuit configuration of the search circuit 1 according to this embodiment will be described.

图6是用定时电路构成图5所示的1检索电路2的非逻辑电路11、或非电路12~14的情况下的电路构成图。图6中,PC0~PC3分别表示受时钟信号(CLK)控制的PMOS·FET,N00~N33分别表示NMOS·FET。对应于图5来观察时,N00对应于非逻辑电路11,N10、N11对应于2输入或非电路12,N20~N22对应于3输入或非电路13,N30~N33对应于4输入或非电路14。FIG. 6 is a circuit configuration diagram in the case where the negation circuit 11 and the negation circuits 12 to 14 of the search circuit 2 shown in FIG. 5 are constituted by timer circuits. In FIG. 6, PC0-PC3 respectively represent PMOS·FETs controlled by a clock signal (CLK), and N00-N33 represent NMOS·FETs respectively. When viewed corresponding to FIG. 5 , N00 corresponds to the non-logic circuit 11, N10 and N11 correspond to the 2-input NOR circuit 12, N20-N22 correspond to the 3-input NOR circuit 13, and N30-N33 correspond to the 4-input NOR circuit 13. 14.

图7是在图6的定时电路4中追加了用时钟信号控制定时电路启动的NMOS·FET的情况下的电路构成图。在像图7那样构成定时电路5的情况下,虽然动作速度比图6的例子稍微慢了一点,但是能够防止在时钟信号预充电时流到电路中的贯通电流。FIG. 7 is a circuit configuration diagram in the case where an NMOS·FET for controlling activation of the timer circuit by a clock signal is added to the timer circuit 4 of FIG. 6 . In the case of configuring the timer circuit 5 as shown in FIG. 7 , although the operation speed is slightly slower than that of the example of FIG. 6 , it is possible to prevent the through current flowing into the circuit when the clock signal is precharged.

图8是在图7所示的定时电路5中进一步追加了用来使逻辑进行静态动作的静态电路的情况下的电路构成图。在一般的定时电路中,很难由预充电保持H电平,但是在像图8那样构成定时电路6的情况下,由于逻辑被决定为静态,所以能够使电路的动作稳定。而且,能够使图8电路的处理速度与图6的电路的处理速度大体相同。FIG. 8 is a circuit configuration diagram in a case where a static circuit for statically operating logic is further added to the timer circuit 5 shown in FIG. 7 . In a general timer circuit, it is difficult to maintain the H level by precharging, but when the timer circuit 6 is configured as shown in FIG. 8, since the logic is determined to be static, the operation of the circuit can be stabilized. Furthermore, the processing speed of the circuit of FIG. 8 can be made substantially the same as that of the circuit of FIG. 6 .

图9是从图7所示的定时电路5中去掉时钟控制功能,而追加了用来使逻辑进行静态动作的电路的情况下的电路构成图。在像图9那样构成定时电路7的情况下,由于一旦预充电使电路成为允许状态,逻辑就被决定为静态,所以能够使电路的动作稳定。而且,能够使电路的处理速度与图6的电路的处理速度大体相同。FIG. 9 is a circuit configuration diagram in which a clock control function is removed from the timer circuit 5 shown in FIG. 7 and a circuit for statically operating logic is added. In the case of configuring the timer circuit 7 as shown in FIG. 9 , since the logic is determined to be static once the circuit is enabled by the precharge, the operation of the circuit can be stabilized. Furthermore, the processing speed of the circuit can be made substantially the same as that of the circuit of FIG. 6 .

在图5中,表示了由或非电路和非逻辑电路构成1检索电路2的逻辑电路的例子,也可以例如像图10那样由与非电路来构成。In FIG. 5 , an example is shown in which the logic circuit of the retrieval circuit 2 is constituted by a NOR circuit and a NOR circuit, but it may also be constituted by a NAND circuit as in FIG. 10 , for example.

图11是把多个图5的1检索电路连接起来进一步构成多比特的优先编码器的情况下的电路构成图。该优先编码器31由1检索电路32、对该1检索电路32的输出进行编码的编码器33a和33b构成。FIG. 11 is a circuit configuration diagram in the case where a plurality of 1 search circuits in FIG. 5 are connected to further constitute a multi-bit priority encoder. This priority encoder 31 is composed of one search circuit 32 and encoders 33a and 33b for encoding the output of one search circuit 32 .

下面来说明图11所示的1检索电路32的构成。Next, the configuration of the search circuit 32 shown in FIG. 11 will be described.

1检索电路32由4比特的1检索电路2-1~2-4、同样的4比特的1检索电路2-5、与逻辑电路34~37、多路转换器38构成。The 1 search circuit 32 is composed of 4-bit 1 search circuits 2-1 to 2-4, the same 4-bit 1 search circuit 2-5, AND logic circuits 34 to 37, and a multiplexer 38.

16比特的输入数据IN<15:0>被每4比特输入到并列配置的1检索电路2-1~2-4,这里,从1检索电路2-1~2-4输出Y0<3:0>、S0<15:0>作为中间输出。其中,Y0<3:0>被输入到1检索电路2-5,S0<15:0>被分别输入到与逻辑电路34~37的一方的输入线和多路转换器38的输入线。另一方面,从1检索电路2-5取出输出数据Y、中间输出Y1<3:0>。其中,中间输出Y1<3:0>被输入到与逻辑电路34~37的另一方的输入线和多路转换器38的选择信号线。16-bit input data IN<15:0> is input to 1 search circuit 2-1~2-4 arranged in parallel every 4 bits, here, output Y0<3:0 from 1 search circuit 2-1~2-4 >, S0<15:0> as intermediate output. Among them, Y0<3:0> is input to the 1 search circuit 2-5, and S0<15:0> is input to one input line of the AND logic circuits 34-37 and the input line of the multiplexer 38, respectively. On the other hand, output data Y and intermediate output Y1<3:0> are fetched from 1 search circuit 2-5. Among them, the intermediate output Y1 <3:0> is input to the other input line of the AND logic circuits 34 to 37 and the selection signal line of the multiplexer 38 .

例如,与逻辑电路36在中间输出Y1<2>是“1”时输出信号S0<11:8>,在中间输出Y1<2>是“0”时输出信号“0000”。多路转换器38根据选择信号线的信号把来自1检索电路2-1~2-4的任何一个的输出SO<i+3:i>(i=0,4,8,12)作为中间输出T<3:0>输出去。设与逻辑电路34~37的输出数据S<15:0>为连接到未图示的16比特编码器的数据。For example, the AND logic circuit 36 outputs the signal S0<11:8> when the intermediate output Y1<2> is “1”, and outputs the signal “0000” when the intermediate output Y1 <2> is “0”. The multiplexer 38 uses the output SO<i+3:i> (i=0, 4, 8, 12) from any one of the 1 search circuits 2-1 to 2-4 as an intermediate output according to the signal of the selection signal line. T<3:0> output goes to. Let the output data S<15:0> of the AND logic circuits 34 to 37 be data connected to a 16-bit encoder not shown.

在像上述那样构成的优先编码器31中,对输入数据IN<15:0>的与逻辑电路34~37的输出数据S<15:0>和Y<3:0>成为与把图5的1检索电路2作为16比特输入的情况相同的数据。In the priority encoder 31 configured as above, the output data S<15:0> and Y<3:0> of the AND logic circuits 34 to 37 for the input data IN<15:0> become ANDed with the 1 Search circuit 2 The same data as the case of 16-bit input.

另一方面,把对输出数据S<15:0>进行优先编码时的下位和上位的2比特分别输出到来自多路转换器38的中间输出T<3:0>和来自1检索电路2-5的中间输出Y1<3:0>内。而且,在编码器33a中由Y1<3:0>生成上位的2比特,在编码器33b中由T<3:0>生成下位的2比特。On the other hand, when the output data S<15:0> is preferentially encoded, the lower and upper 2 bits are respectively output to the intermediate output T<3:0> from the multiplexer 38 and from the 1 search circuit 2- 5 in the middle of output Y1<3:0>. Furthermore, the upper 2 bits are generated from Y1<3:0> in the encoder 33a, and the lower 2 bits are generated from T<3:0> in the encoder 33b.

例如:假设输入数据IN<15:0>的比特列是“0000001XXXXXXXXX”,在Y1<3:0>内把上位的2比特“01”作为输出代码Q2,Q3输出去,在T<3:0>内把下位的2比特“10”作为输出代码Q0,Q1输出去,由此来生成表示最优先排位的高输入线(这种情况下是“6”)的4比特输出代码“0110”。在任何情况下输出数据Y都是0时,把S<15:0>识别为“0000000000000000”。For example: Assume that the bit string of the input data IN<15:0> is "0000001XXXXXXXX", in Y1<3:0>, the upper 2 bits "01" are used as the output code Q2, Q3 output, in T<3:0 > The lower 2 bits "10" are output as output codes Q0 and Q1, thereby generating a 4-bit output code "0110" indicating the highest priority input line ("6" in this case) . When the output data Y is 0 in any case, S<15:0> is recognized as "0000000000000000".

在图11所示的电路中,生成输出数据S<15:0>、中间数据T<3:0>、中间数据Y1<3:0>,但是也可以只生成其中的S<15:0>或T<3:0>、Y1<3:0>。In the circuit shown in Figure 11, output data S<15:0>, intermediate data T<3:0>, and intermediate data Y1<3:0> are generated, but only S<15:0> can be generated Or T<3:0>, Y1<3:0>.

这样,由于用图5的1检索电路把优先编码器作成多级结构,即使在多比特输入的情况下,也能够实现电路构成简单且能高速处理的逻辑电路。Thus, since the priority encoder is multi-staged using the single search circuit shown in FIG. 5, even in the case of multi-bit input, a logic circuit with simple circuit configuration and high-speed processing can be realized.

图12是使用图5的优先编码器构成加法器所用的CLA(先行进位)电路的情况下的电路构成图。这里,因为未使用4-1编码器,所以,仅利用1检索电路。CLA电路是从担当的各比特的P(传播)/G(产生)/K(消除)信号生成PG/PGB/GG/KG组的电路,由4比特准-NMOS·与非电路AN1、同样的4比特优先编码器PE和4×1选择器SEL1构成。FIG. 12 is a circuit configuration diagram in a case where a CLA (carry-ahead) circuit for an adder is configured using the priority encoder of FIG. 5 . Here, since a 4-1 encoder is not used, only 1 search circuit is used. The CLA circuit is a circuit that generates PG/PGB/GG/KG groups from the P (propagation)/G (generation)/K (deletion) signal of each bit in charge. It is composed of 4-bit quasi-NMOS NAND circuit AN1, the same A 4-bit priority encoder PE and a 4×1 selector SEL1 are formed.

准-NMOS·与非电路AN1是由各比特的P信号生成组PG信号的电路。The quasi-NMOS NAND circuit AN1 generates a group PG signal from the P signal of each bit.

优先编码器PE是由各比特的PB信号生成输出S<3:0>和PGB信号的电路。The priority encoder PE is a circuit that generates and outputs S<3:0> and PGB signals from the PB signals of each bit.

选择器SEL1是由4×1多路转换器MUX1和多路转换器MUX2构成的双轨定时多路转换器。该选择器SEL1由各比特的G、K信号生成组GG和KG信号。图14是由PMOS·FET、NMOS·FET以及非逻辑电路构成选择器SEL1的电路构成图。The selector SEL1 is a dual-rail timing multiplexer composed of a 4×1 multiplexer MUX1 and a multiplexer MUX2. The selector SEL1 generates group GG and KG signals from the G and K signals of each bit. FIG. 14 is a circuit configuration diagram in which a selector SEL1 is constituted by PMOS·FETs, NMOS·FETs and non-logic circuits.

图16是表示图12所示的CLA电路的输入输出定时的时序图。FIG. 16 is a timing chart showing input and output timings of the CLA circuit shown in FIG. 12 .

输入的P(图中的实线)和PG(图中的虚线)在CLK为“L”电平期间被预充电,在CLK为“H”电平期间,P和PB被推移为不同的状态,即:P为“1”时,PB为“0”;P为“0”时,PB为“1”。在P为“1”的期间,G(图中的实线)、K(图中的虚线)双方都为“0”,只有在PB为“1”的期间,G或K的某一方为“0”。按照与上述P、PB、G、K信号相同的定时输出组PG/PGB/GG/KG信号。The input P (solid line in the figure) and PG (dotted line in the figure) are precharged during CLK is "L" level, and P and PB are shifted to different states when CLK is "H" level , that is: when P is "1", PB is "0"; when P is "0", PB is "1". When P is "1", both G (solid line in the figure) and K (dotted line in the figure) are "0", and only when PB is "1", either G or K is "0". 0". Group PG/PGB/GG/KG signals are output at the same timing as the P, PB, G, and K signals described above.

在图12所示的那种CLA电路中,因为不把逻辑元件构成为树枝状,所以能够构成高速的CLA电路。In the CLA circuit shown in FIG. 12, since logic elements are not formed in a dendritic form, a high-speed CLA circuit can be formed.

图17是把与逻辑电路连接在图12的电路的输出级的情况下的电路构成图,与图12同等的部分用同样的符号来表示。该CLA电路是由各比特的P/G/K信号和组进位输入信号C来生成组PG/PBG/GG/KG信号和组进位输出信号的电路,并且连接着把来自优先编码器PE的PGB和来自选择器SEL1的输出作为输入的2输入的与逻辑电路AN11和AN12。图18是表示图17所示的CLA电路的输入输出定时的时序图。FIG. 17 is a circuit configuration diagram in the case where a logical circuit is connected to the output stage of the circuit in FIG. 12, and the same parts as those in FIG. 12 are denoted by the same symbols. The CLA circuit is a circuit that generates the group PG/PBG/GG/KG signal and the group carry output signal from the P/G/K signal of each bit and the group carry input signal C, and is connected to the PGB from the priority encoder PE and 2-input AND logic circuits AN11 and AN12 with the output from the selector SEL1 as input. FIG. 18 is a timing chart showing input and output timings of the CLA circuit shown in FIG. 17 .

这样,在图17那样构成CLA电路的情况下,也能够使CG(组进位)的计算高速化。In this way, even when the CLA circuit is configured as shown in FIG. 17, the calculation of CG (group carry) can be accelerated.

由于把图12和图17所示的CLA电路连接为多个树枝状,所以能够构成更大的CLA电路,这种情况下,在输出级中采用图17所示的CLA电路。Since the CLA circuits shown in FIGS. 12 and 17 are connected in a plurality of dendrites, a larger CLA circuit can be constructed. In this case, the CLA circuit shown in FIG. 17 is used for the output stage.

以下,作为具体的例子来详细说明在多比特的加法运算中所使用的CLA电路。Hereinafter, a CLA circuit used for multi-bit addition will be described in detail as a specific example.

按照本实施例的CLA电路的特征在于,把整个比特数N(N是大于1的整数)分类为多个比特m(m为小于N的整数)的组,在各组内用每比特的传播信号P<i>、产生信号G<i>、消除信号K<i>来生成以多比特构成的组为单位的组传播信号PG、组产生信号GG、组消除信号KG,并使用这些信号来求出最后必要的最上位比特的进位信号CN-1。The CLA circuit according to the present embodiment is characterized in that the entire number of bits N (N is an integer greater than 1) is classified into groups of a plurality of bits m (m is an integer smaller than N), and the propagation of each bit is used in each group. signal P<i>, generate signal G<i>, and eliminate signal K<i> to generate group propagation signal PG, group generation signal GG, and group elimination signal KG in units of groups composed of multiple bits, and use these signals to The carry signal CN-1 of the last necessary most significant bit is obtained.

例如:设N=16,m=4,那么,把输入信号A和B分类为4组:For example: set N=16, m=4, then, the input signals A and B are classified into 4 groups:

A=(a15~a12,a11~a8,a7~a4,a3~a0)     ……(1)A=(a15~a12, a11~a8, a7~a4, a3~a0)...(1)

B=(b15~b12,b11~b8,b7~b4,b3~b0)     ……(2)B=(b15~b12, b11~b8, b7~b4, b3~b0)...(2)

然后求出每一组的进位信号C3,C7,C11,C15。Then calculate the carry signals C3, C7, C11, C15 of each group.

C3=f(a3~a0,b3~b0)                      ……(3)C3 = f (A3 ~ A0, B3 ~ B0) ... (3)

C7=f(a7~a4,b7~b4)+C3                   ……(4)C7=f(a7~a4, b7~b4)+C3 ……(4)

C11=f(a11~a7,b11~b7)+C7                ……(5)C11=f(a11~a7, b11~b7)+C7 ……(5)

C15=f(a15~a11,b15~b11)+C11             ……(6)C15=f(a15~a11, b15~b11)+C11 ... (6)

为了求出每一个这样的组进位信号,必须从组内的每比特的信号P/G/K生成以组为单位的信号PG/GG/KG,再参照图12,来说明进行这样运算的第一CLA电路CLA(1)的电路构成。In order to obtain each such group carry signal, it is necessary to generate a group-based signal PG/GG/KG from the signal P/G/K of each bit in the group. Referring to FIG. A circuit configuration of a CLA circuit CLA(1).

该第一CLA电路CLA(1)是输出作为由4比特构成的组的信号PG/GG/KG的电路,按照如下的公式由未图示的电路预先生成相应的组内的每比特的信号P<3:0>(=P<3>~P<0>)/G<3:0>(=G<3>~G<0>)/K<3:0>(=K<3>~K<0>)。The first CLA circuit CLA(1) is a circuit that outputs signals PG/GG/KG that are groups of 4 bits, and a signal P for each bit in the corresponding group is generated in advance by a circuit not shown in the following formula. <3:0>(=P<3>~P<0>)/G<3:0>(=G<3>~G<0>)/K<3:0>(=K<3>~ K<0>).

             P<i>=/a<i>*/b<i>P<i>=/a<i>*/b<i>

             G<i>=a<i>ExORb<i>G<i>=a<i>ExORb<i>

             K<i>=a<i>*b<i>K<i>=a<i>*b<i>

第一CLA电路CLA(1)设置有生成信号PG的与逻辑电路AN1、生成选择信号S<3:0>的优先编码器PE、根据选择信号S<3:0>生成信号GG、KG的选择器SEL1。The first CLA circuit CLA(1) is provided with an AND logic circuit AN1 for generating a signal PG, a priority encoder PE for generating a selection signal S<3:0>, a selection signal for generating the signals GG, KG according to the selection signal S<3:0> device SEL1.

与逻辑电路AN1输入全部P<3:0>信号,并进行图7所示那样的与逻辑运算,然后把其结果作为PG信号输出和/或作为使PG反转的PGB信号输出。The AND logic circuit AN1 inputs all P<3:0> signals, performs AND logic operation as shown in FIG. 7 , and then outputs the result as a PG signal and/or as a PGB signal inverting PG.

PG=P<3>*P<2>*P<1>*P<0>              ……(7)PG=P<3>*P<2>*P<1>*P<0> …(7)

PGB=/(P<3>*P<2>*P<1>*P<0>)PGB=/(P<3>*P<2>*P<1>*P<0>)

   =/P<3>+/P<2>+/P<1>+/P<0>=/P<3>+/P<2>+/P<1>+/P<0>

   =PB<3>+/PB<2>+/PB<1>+/PB<0>      ……(8)=PB<3>+/PB<2>+/PB<1>+/PB<0>  …(8)

这对应于在从第0比特到第3比特全都传导的情况下即只有P<3:0>=「1」的情况下把由前级的组撤出来的进位信号Cin作为其原样相应的组内的进位信号CG向后级传送。这时,信号GG和KG同时成为「0」。This corresponds to taking the carry signal Cin withdrawn from the group of the previous stage as its corresponding group when all conduction from the 0th bit to the 3rd bit, that is, only when P<3:0>=“1” The carry signal CG inside is transmitted to the subsequent stage. At this time, the signals GG and KG become "0" at the same time.

全部P<3:0>信号中的至少一个是「0」的情况下,就必须进行优先编码器PE的运算。优先编码器PE设置有输入经反转的传播信号PB<3:0>的或非电路NR11、输入电路NR11的输出的倒相器IN11和IN12、输入倒相器IN11和IN12的输出的或非电路NR12、输入反转组传播信号PB<3:1>的或非电路NR21、输入电路NR21的输出的倒相器IN21和IN22、输入倒相器IN21和IN22的输出的或非电路NR22、输入信号PB<3:2>的或非电路NR31、输入电路NR31的输出的倒相器IN31和IN32、输入倒相器IN31和IN42的输出的或非电路NR32、输入信号PB<3>的或非电路NR41、输入电路NR21的输出的倒相器IN41、IN42和IN43、输入倒相器IN43的输出和接地电位「0」的或非电路NR41。分别从或非电路NR12、NR22、NR32、NR41输出选择信号S<0>~S<3>。When at least one of all P<3:0> signals is “0”, the operation of the priority encoder PE must be performed. The priority encoder PE is provided with a NOR circuit NR11 to which the inverted propagation signal PB<3:0> is input, inverters IN11 and IN12 to which the output of the circuit NR11 is input, a NOR circuit to which the outputs of the inverters IN11 and IN12 are input. Circuit NR12, NOR circuit NR21 for input inversion group propagation signal PB<3:1>, inverters IN21 and IN22 for output of input circuit NR21, NOR circuit NR22 for output of input inverters IN21 and IN22, input The NOR circuit NR31 of the signal PB<3:2>, the inverters IN31 and IN32 of the output of the input circuit NR31, the NOR circuit NR32 of the output of the input inverters IN31 and IN42, the NOR circuit NR32 of the input signal PB<3> Circuit NR41, inverters IN41, IN42 and IN43 inputting the output of circuit NR21, and NOR circuit NR41 inputting the output of inverter IN43 and ground potential "0". Selection signals S<0> to S<3> are output from NOR circuits NR12, NR22, NR32, and NR41, respectively.

至少某一个信号P<3:0>是「0」的情况下(或至少某一个信号PB<3:0>是「1」的情况下),优先编码器PE决定把信号G<3:0>、K<3:0>中的某一个取为作为组的信号GG、KG。这里,从信号PB<3>开始按顺序检索下去,在信号PB<3>是「1」的情况下,信号S<3>=「1」,其他全都为「0」。在信号PB<3>是「0」而信号PB<2>是「1」的情况下,信号S<2>=「1」,其他全都为「0」。这样,某一个信号S<3:0>成为「1」,其他全都为「0」。When at least one signal P<3:0> is "0" (or at least one signal PB<3:0> is "1"), the priority encoder PE decides to turn the signal G<3:0 One of >, K<3:0> is taken as a group signal GG, KG. Here, searching in order from the signal PB<3>, when the signal PB<3> is "1", the signal S<3> = "1", and all others are "0". When the signal PB<3> is “0” and the signal PB<2> is “1”, the signal S<2>=“1”, and all others are “0”. In this way, a certain signal S<3:0> becomes "1", and all others are "0".

把这样的选择信号S<3:0>输入到选择器SEL1。选择器SEL1有多路转换器MUX1和MUX2,并选择信号S<3:0>输入到把各个多路转换器MUX1和MUX2,然后选择比特是「1」的信号G<3:0>、K<3:0>,并分别作为组的信号GG和KG输出去。Such a selection signal S<3:0> is input to the selector SEL1. The selector SEL1 has multiplexers MUX1 and MUX2, and selects the signal S<3:0> to input each multiplexer MUX1 and MUX2, and then selects the signals G<3:0>, K with the bit "1". <3:0>, and output as group signals GG and KG respectively.

这里,信号GG和KG用下式来表示。Here, the signals GG and KG are represented by the following equations.

GG=P<3>*P<2>*P<1>*G<0>+P<3>*P<2>*G<1>GG=P<3>*P<2>*P<1>*G<0>+P<3>*P<2>*G<1>

    +P<3>*G<2>*G<3>                         ……(9)+P<3>*G<2>*G<3> ...(9)

KG=P<3>*P<2>*P<1>*K<0>+P<3>*P<2>*K<1>KG=P<3>*P<2>*P<1>*K<0>+P<3>*P<2>*K<1>

    +P<3>*K<2>*K<3>                         ……(10)+P <3>*K <2>*K <3>… (10)

当用选择信号S<3:0>来表示这样的信号GG和KG时,表示如下。首先,导入下面的逻辑式。When such signals GG and KG are represented by selection signals S<3:0>, they are represented as follows. First, import the following logical formula.

Q<0>=PG=P<3>*P<2>*P<1>*P<0>Q<0>=PG=P<3>*P<2>*P<1>*P<0>

    =/(PB<3>+PB<2>+PB<1>+PB<0>)         ……(11)=/(PB<3>+PB<2>+PB<1>+PB<0>)  …(11)

Q<1>=P<3>*P<2>*P<1>Q<1>=P<3>*P<2>*P<1>

    =/(PB<3>+PB<2>+PB<1>)               ……(12)=/(PB<3>+PB<2>+PB<1>)……(12)

Q<2>=P<3>*P<2>Q<2>=P<3>*P<2>

    =/(PB<3>+PB<2>)                     ……(13)=/(PB<3>+PB<2>)                           ...

Q<3>=P<3>Q<3>=P<3>

    =/PB<3>                             ……(14)=/PB<3> ...(14)

/Q<0>=PGB=/(P<3>*P<2>*P<1>*P<0>)/Q<0>=PGB=/(P<3>*P<2>*P<1>*P<0>)

     =PB<3>+PB<2>+PB<1>+PB<0>           ……(15)=PB<3>+PB<2>+PB<1>+PB<0>  …(15)

/Q<1>=/(P<3>*P<2>*P<1>)/Q<1>=/(P<3>*P<2>*P<1>)

     =PB<3>+PB<2>+PB<1>                 ……(16)=PB<3>+PB<2>+PB<1>                                                                                                                                                   ... (16)

/Q<2>=/(P<3>*P<2>)/Q<2>=/(P<3>*P<2>)

     =PB<3>+PB<2>                       ……(17)=PB<3>+PB<2>                                                                                                                                                                                    ... (17)

/Q<3>=/P<3>/Q<3>=/P<3>

     =PB<3>                             ……(18)=PB<3>                                                                                                                                                                                                                                                   ... (18)

S<0>=Q<1>*/Q<0>                         ……(19)S<0>=Q<1>*/Q<0> ...(19)

S<1>=Q<2>*/Q<1>                         ……(20)S<1>=Q<2>*/Q<1> ...(20)

S<2>=Q<3>*/Q<2>                         ……(21)S<2>=Q<3>*/Q<2> ...(21)

S<3>=1*/Q<3>                            ……(22)S<3>=1*/Q<3> ...(22)

其中in

P<3>*PB<3>=P<2>*PB<2>=P<1>*PB<1>P<3>*PB<3>=P<2>*PB<2>=P<1>*PB<1>

          =P<0>*PB<0>=「0」            ……(23)=P<0>*PB<0>=「0」                                                                                                                                                                                                                                  =

因此,上述的(11)~(18)式成为如下表达式。Therefore, the above expressions (11) to (18) become the following expressions.

S<0>=P<3>*P<2>*P<1>*(PB<3>+PB<2>+PB<1>+PB<0>)=P<3>*P<2>*P<1>*PB<0>                      ……(24)S<0>=P<3>*P<2>*P<1>*(PB<3>+PB<2>+PB<1>+PB<0>)=P<3>*P<2 >*P<1>*PB<0> ...(24)

S<1>=P<3>*P<2>*(PB<3>+PB<2>+PB<1>)S<1>=P<3>*P<2>*(PB<3>+PB<2>+PB<1>)

    =P<3>*P<2>*PB<1>                                               ……(25)= P <3>*P <2>*PB <1>… (25)

S<2>=P<3>*(PB<3>+PB<2>)S<2>=P<3>*(PB<3>+PB<2>)

    =P<3>*PB<2>                            ……(26)= P <3>*PB <2>… (26)

S<3>=1*PB<3>S<3>=1*PB<3>

    =PB<3>                                 ……(27)= Pb <3> ... (27)

由PB<3>*G<3>=G<3>,PB<2>*G<2>=G<2>,By PB<3>*G<3>=G<3>, PB<2>*G<2>=G<2>,

PB<1>*G<1>=G<1>,PB<0>*G<0>=G<0>,得到如下的关系:PB<1>*G<1>=G<1>, PB<0>*G<0>=G<0>, get the following relationship:

S<0>*G<0>+S<1>*G<1>+S<2>*G<2>+S<3>*G<3>S<0>*G<0>+S<1>*G<1>+S<2>*G<2>+S<3>*G<3>

   =P<3>*P<2>*P<1>*PB<0>*G<0>+P<3>*P<2>*=P<3>*P<2>*P<1>*PB<0>*G<0>+P<3>*P<2>*

   PB<1>*G<1>+P<3>*PB<2>*G<2>+PB<3>*G<3>PB<1>*G<1>+P<3>*PB<2>*G<2>+PB<3>*G<3>

   =P<3>*P<2>*P<1>*G<0>+P<3>*P<2>*G<1>+P<3=P<3>*P<2>*P<1>*G<0>+P<3>*P<2>*G<1>+P<3

   >*G<2>+G<3>>*G<2>+G<3>

   =GG                                     ……(28)= GG ... (28)

S<0>*G<0>+S<1>*G<1>+S<2>*G<2>+S<3>*K<3>S<0>*G<0>+S<1>*G<1>+S<2>*G<2>+S<3>*K<3>

   =P<3>*P<2>*P<1>*PB<0>*K<0>+P<3>*P<2>*=P<3>*P<2>*P<1>*PB<0>*K<0>+P<3>*P<2>*

   PB<1>*K<1>+P<3>*PB<2>*K<2>+PB<3>*K<3>PB<1>*K<1>+P<3>*PB<2>*K<2>+PB<3>*K<3>

   =P<3>*P<2>*P<1>*K<0>+P<3>*P<2>*K<1>+P<3=P<3>*P<2>*P<1>*K<0>+P<3>*P<2>*K<1>+P<3

   >*K<2>+K<3>>*K<2>+K<3>

   =KG                                     ……(29)= KG ... (29)

由此得到下式(30)、(31):Thus, the following formulas (30), (31) are obtained:

GG=S<0>*G<0>+S<1>*G<1>+S<2>*G<2>GG=S<0>*G<0>+S<1>*G<1>+S<2>*G<2>

         +S<3>*G<3>                         ……(30)+S <3>*g <3> ... (30)

GG=S<0>*K<0>+S<1>*K<1>+S<2>*K<2>GG=S<0>*K<0>+S<1>*K<1>+S<2>*K<2>

         +S<3>*K<3>                    ……(31)                                                                                                                ... (31)

首先导入如下逻辑方程:First import the following logic equations:

Q<0>=PG=P<3>*P<2>*P<1>*P<0>Q<0>=PG=P<3>*P<2>*P<1>*P<0>

        =/(PB<3>+PB<2>+PB<1>+PB<0>)   ……(11)=/(PB<3>+PB<2>+PB<1>+PB<0>) ... (11)

Q<1>=P<3>*P<2>*P<1>Q<1>=P<3>*P<2>*P<1>

     =/(PB<3>+PB<2>+PB<1>)            ……(12)=/(PB<3>+PB<2>+PB<1>)  …(12)

Q<2>=P<3>*P<2>Q<2>=P<3>*P<2>

    =/(PB<3>+PB<2>)                   ……(13)==/(PB<3>+PB<2>)                                                                                                                                                                        ... (13)

Q<3>=P<3>Q<3>=P<3>

    =/PB<3>                           ……(14)=/PB<3>                                                                                                                                                                                                                            ... (14)

/Q<0>=PGB=/(P<3>*P<2>*P<1>*P<0>)/Q<0>=PGB=/(P<3>*P<2>*P<1>*P<0>)

     =PB<3>+PB<2>+PB<1>+PB<0>         ……(15)=PB<3>+PB<2>+PB<1>+PB<0>...(15)

/Q<1>=/(P<3>*P<2>*P<1>)/Q<1>=/(P<3>*P<2>*P<1>)

     =PB<3>+PB<2>+PB<1>               ……(16)=PB<3>+PB<2>+PB<1>  …(16)

/Q<2>=/(P<3>*P<2>)/Q<2>=/(P<3>*P<2>)

     =PB<3>+PB<2>                     ……(17)=PB<3>+PB<2>                                                                                                                              ... (17)

/Q<3>=/P<3>/Q<3>=/P<3>

     =PB<3>                           ……(18)=PB<3>                                                                                                                                                                                                                                                                     ... (18)

S<0>=Q<1>*/Q<0>                       ……(19)S<0>=Q<1>*/Q<0> ... (19)

S<1>=Q<2>*/Q<1>                       ……(20)S<1>=Q<2>*/Q<1> ...(20)

S<2>=Q<3>*/Q<2>                       ……(21)S <2> = q <3>*/Q <2>… (21)

S<3>=1*/Q<3>                          ……(22)S<3>=1*/Q<3> ...(22)

如上述的(8)、(24)~(27)式以及图12所示,选择信号S<3:0>是把PB<3:0>作为输入的称之为优先编码器的逻辑。As shown in equations (8), (24) to (27) and FIG. 12 above, the selection signal S<3:0> is a logic called a priority encoder that takes PB<3:0> as an input.

即:如上所述,按PB<3>,PB<2>,PB<1>,PB<0>的顺序排列时,PB<i>=「1」(其中i=3~0)时,S<i>=「1」,其他的S<j>为「0」(其中j是i以外的3~0),而且PBG=「1」。That is: as mentioned above, when arranged in the order of PB<3>, PB<2>, PB<1>, PB<0>, when PB<i>="1" (where i=3~0), S <i>=“1”, other S<j> is “0” (where j is 3 to 0 other than i), and PBG=“1”.

在PB<3>,PB<2>,PB<1>,PB<0>全都为「0」时,全部S<i>=PBG=「0」。When all of PB<3>, PB<2>, PB<1>, and PB<0> are "0", all S<i>=PBG="0".

因此,式(30)、(31)就意味着生成信号GG/KG的各个逻辑是根据选择信号S<3:0>从各四个信号G<3:0>、K<3:0>中选择的多路转换器(4-1MUX)。Therefore, formulas (30) and (31) mean that each logic for generating signal GG/KG is selected from each of the four signals G<3:0>, K<3:0> according to the selection signal S<3:0> Selected multiplexer (4-1MUX).

如上所述,第一CLA电路CLA(1)以4比特为单位的组作为单位,具有与逻辑电路AN1、优先编码器PE和选择器SEL1,并生成以组为单位的传播信号PG、产生信号GG和消除信号KG。As described above, the first CLA circuit CLA(1) has an AND logic circuit AN1, a priority encoder PE, and a selector SEL1 in units of groups of 4 bits, and generates propagation signals PG and generation signals in units of groups. GG and cancellation signal KG.

这里,在第一CLA电路CLA(1)中,设置有完全生成信号PG、GG、KG的构成,但是,也可以生成信号PG和GG或信号PG和KG。在生成信号PG和GG的情况下,选择器SEL1只有多路转换器MUX1,在生成信号PG和KG的情况下,选择器SEL1只有多路转换器MUX2。Here, the first CLA circuit CLA(1) is configured to completely generate the signals PG, GG, and KG, but it is also possible to generate the signals PG and GG or the signals PG and KG. In the case of generating the signals PG and GG, the selector SEL1 has only the multiplexer MUX1, and in the case of generating the signals PG and KG, the selector SEL1 has only the multiplexer MUX2.

下面来说明第二CLA电路CLA(2)。Next, the second CLA circuit CLA(2) will be described.

第二CLA电路CLA(2)与上述的第一CLA电路CLA(1)不同,不仅在相应的组内生成组传播信号PG、组产生信号GG和组消除信号KG,而且使用这些信号PG、GG、KG求出并输出组进位信号CG。作为具体的构成,如图17所示,与逻辑电路AN1和优先编码器PE的构成与上述的实施例一样,但是,选择器SEL11却不一样,它进一步附加有与逻辑电路AN11和AN12。The second CLA circuit CLA(2), unlike the first CLA circuit CLA(1) described above, not only generates the group propagation signal PG, the group generation signal GG and the group cancellation signal KG within the corresponding group, but also uses these signals PG, GG , KG to obtain and output the group carry signal CG. As a specific structure, as shown in FIG. 17, the AND logic circuit AN1 and the priority encoder PE are the same as the above-mentioned embodiment, but the selector SEL11 is different, and it further has AND logic circuits AN11 and AN12.

选择器SEL11有多路转换器MUX11和MUX12,多路转换器MUX11输入从优先编码器PE输出的选择信号S<3:0>、每比特的G<3:0>、来自下位组的进位信号C、从与逻辑电路AN1输出的信号PG。多路转换器MUX12输入选择信号S<3:0>、每比特的K<3:0>、来自下位组的反转进位信号CB、信号PG。The selector SEL11 has multiple converters MUX11 and MUX12, and the multiplexer MUX11 inputs the selection signal S<3:0> output from the priority encoder PE, the G<3:0> of each bit, and the carry signal from the lower group C. Signal PG output from AND logic circuit AN1. The multiplexer MUX12 inputs the selection signal S<3:0>, K<3:0> per bit, the reverse carry signal CB from the lower group, and the signal PG.

如上所述,在全部信号P<3:0>都是「1」的情况下,输出「1」的信号PG和「0」的信号PGB。这种情况下,原样输出来自下位组的进位信号C和反转进位信号CB作为相应组的组进位信号CG和反转组进位信号CGB。这时,信号PGB全都是「0」。因此,分别从输入该信号PGB的与逻辑电路AN11和AN12输出「0」的信号GG和KG。As described above, when all the signals P<3:0> are “1”, the signal PG of “1” and the signal PGB of “0” are output. In this case, the carry signal C and inverted carry signal CB from the lower group are output as the group carry signal CG and inverted group carry signal CGB of the corresponding group. At this time, the signal PGB is all "0". Therefore, the signals GG and KG of "0" are respectively output from the AND logic circuits AN11 and AN12 to which the signal PGB is input.

在至少某一个信号P<i>是「0」的情况下,信号PG为「0」,信号PGB为「1」。这种情况下的信号CG和CGB的生成首先分别选择信号G<3:0>、K<3:0>中的对应于具有「1」值的选择信号S<i>的信号G<i>、K<i>,然后把它分别作为以组为单位的信号CG和CGB进行输出。进而把「1」信号的PGB和信号CGB输入到与逻辑电路AN11,并输出信号GG;把「1」信号的PGB和信号CGB输入到与逻辑电路AN12,并输出信号KG。When at least one signal P<i> is "0", the signal PG is "0", and the signal PGB is "1". The generation of the signals CG and CGB in this case first selects the signal G<i> corresponding to the selection signal S<i> having a value of "1" among the signals G<3:0>, K<3:0> respectively , K<i>, and then output them respectively as signals CG and CGB in units of groups. Furthermore, input PGB and signal CGB of "1" signal to AND logic circuit AN11, and output signal GG; input PGB and signal CGB of "1" signal to AND logic circuit AN12, and output signal KG.

可是,把信号CG作为逻辑式表示如下。However, the signal CG is expressed as a logical expression as follows.

            CG=PG*Cin+GG                ……(32)                                                                ...

            CGB=/CG=PG*/Cin+KG         ……(33)CGB=/CG=PG*/Cin+KG  …(33)

用上述的(30)、(31)式,得到:Using the above formulas (30) and (31), we get:

        CG=PG*Cin+S<0>*G<0>+S<1>*G<1>+S<2>*G<2>CG=PG*Cin+S<0>*G<0>+S<1>*G<1>+S<2>*G<2>

            +S<3>*G<3>                   ……(34)+S <3>*g <3> ... (34)

        CGB=PG*/Cin+S<0>*K<0>+S<1>*K<1>+S<2>*K<2>CGB=PG*/Cin+S<0>*K<0>+S<1>*K<1>+S<2>*K<2>

            +S<3>*K<3>                   ……(35)+S <3>*k <3> ... (35)

这里,由上述的公式(7)、(24)~(27),信号PG、S<3:0>中只有一个信号为「1」,其他信号全部为「0」。Here, according to the above formulas (7), (24)˜(27), only one of the signals PG, S<3:0> is “1”, and all other signals are “0”.

因此,由上述的(34)和(35)式生成组进位信号CG、CGB的逻辑就是由5个选择信号PG和S<3:0>选择5个信号Cin和G<3:0>,而且选择5个信号/Cin和K<3:0>的5-1多路转换器。Therefore, the logic of generating group carry signals CG and CGB from the above formulas (34) and (35) is to select 5 signals Cin and G<3:0> from 5 selection signals PG and S<3:0>, and Select 5-1 multiplexer for 5 signals/Cin and K<3:0>.

而且由式(9)、(10)、(32)、(33)得:And by formula (9), (10), (32), (33):

         CG*PGB=GG                 ……(36)Cg*pgb = gg ... (36)

         CGB*PGB=KG                ……(37)                                                                                                                                                                                                                                                             ... (37)

因此,如上所述,PG=「0」(PGB=「1」)时,由(36)式得Therefore, as mentioned above, when PG = "0" (PGB = "1"), from (36) formula

CG=GG,KG=CGB.CG=GG, KG=CGB.

在图18中,表示了第二CLA电路CLA(2)内的输入输出信号的时序。这里,实线表示信号P、G、K的电平,虚线表示各反转信号PB、GB、KB的电平。In FIG. 18 , timings of input and output signals in the second CLA circuit CLA( 2 ) are shown. Here, the solid lines indicate the levels of the signals P, G, and K, and the dotted lines indicate the levels of the inverted signals PB, GB, and KB.

与时钟信号CLK同步地输入信号P<3:0>、G<3:0>、K<3:0>以及来自下位组的组进位信号C,并伴随运算延迟时间按同样的定时输出组传播信号PG、组产生信号GG、组进位信号CG。The signals P<3:0>, G<3:0>, K<3:0> and the group carry signal C from the lower group are input synchronously with the clock signal CLK, and the operation delay time is propagated according to the same timing output group Signal PG, group generation signal GG, group carry signal CG.

这里,在第二CLA电路CLA(2)内具备生成全部信号PG、GG、KG、CG、CGB的构成。但是也可以具备生成信号PG、GG和CG的构成或生成信号PG、KG和CGB的构成。在生成信号PG、GG和CG的情况下,选择器SEL11只有多路转换器MUX1,并用与此伴随的与逻辑电路AN11生成信号CG;在生成信号PG、KG和CGB的情况下,选择器SEL11只有多路转换器MUX2,并用与逻辑电路AN12生成信号KG.Here, the second CLA circuit CLA( 2 ) has a configuration for generating all the signals PG, GG, KG, CG, and CGB. However, a configuration for generating signals PG, GG, and CG or a configuration for generating signals PG, KG, and CGB may also be provided. In the case of generating signals PG, GG and CG, the selector SEL11 has only the multiplexer MUX1, and generates the signal CG with the accompanying AND logic circuit AN11; in the case of generating the signals PG, KG and CGB, the selector SEL11 There is only the multiplexer MUX2, and the signal KG is generated with the AND logic circuit AN12.

然后,在图19中表示用上述的第一CLA电路CLA(1)和第二CLA电路CLA(2)构成32比特的CLA电路的情况下的电路构成。该CLA电路分为3个组阶层「0~2」,组阶层「0~1」使用第一CLA电路CLA(1),组阶层「2」使用第二CLA电路CLA(2)。Next, FIG. 19 shows a circuit configuration in a case where a 32-bit CLA circuit is constituted by the above-mentioned first CLA circuit CLA(1) and second CLA circuit CLA(2). This CLA circuit is divided into three group levels "0-2", the group level "0-1" uses the first CLA circuit CLA(1), and the group level "2" uses the second CLA circuit CLA(2).

在组阶层「0」中,组7~0的每组的CLA电路生成各信号PG(7)、GG(7)、KG(7)、PG(6)、GG(6)、KG(6)、…、PG(0)、GG(0)、KG(0)。In group level "0", each CLA circuit of groups 7 to 0 generates signals PG(7), GG(7), KG(7), PG(6), GG(6), KG(6) ,..., PG(0), GG(0), KG(0).

在组阶层「1」中,把每4个组7~4、组3~0分别汇集为一个组,生成每16比特的信号PGG<1>、GGG<1>、KGG<1>、PGG<0>、GGG<0>、KGG<0>。In the group level "1", each of the four groups 7~4 and groups 3~0 are collected into one group, and each 16-bit signal PGG<1>, GGG<1>, KGG<1>, PGG< 0>, GGG<0>, KGG<0>.

在组阶层「2」中,由第二CLA电路CLA(2)生成把整个32比特汇集为一个组的信号PGGG、GGGG、KGGG,并进一步生成最后的进位信号CGGG。该信号GGGG相当于32比特的进位信号C<31>。In the group level "2", the second CLA circuit CLA(2) generates signals PGGG, GGGG, and KGGG that collect all 32 bits into one group, and further generates the final carry signal CGGG. This signal GGGG corresponds to a 32-bit carry signal C<31>.

在这样构成的CLA电路中运算所要的时间与图20所示的组阶层「0」、「1」和「2」中的各个延迟时间取为同样的T11时,整体延迟时间就为T11*3。该运算延迟时间T11*3意味着仅累积3个阶层的延迟时间,因此,与图4所示的原来的CLA电路那样的把每组的延迟时间累积起来的情况相比,按照本实施例,缩短了计算时间。When the time required for calculation in the CLA circuit configured in this way is the same as T11 for each delay time in the group levels "0", "1" and "2" shown in Fig. 20, the overall delay time is T11*3 . This calculation delay time T11*3 means that only the delay times of three levels are accumulated. Therefore, compared with the case of accumulating the delay times of each group like the original CLA circuit shown in FIG. 4, according to this embodiment, The calculation time is shortened.

图13(b)表示与逻辑电路AN1的例子。像图13(a)中所表示的电路符号那样,该与逻辑电路AN1一般作为准-NMOS型是把倒相器组合导公知的与非电路内构成的。时钟信号CLK为低电平期间,连接在接地端和节点ND1之间的NMOS·FET N1导通,节点ND1放电。当时钟信号CLK成为高电平时,PMOS·FET P1导通,连接在接地端和节点ND1之间的NMOS·FET N1截止。FIG. 13(b) shows an example of the AND logic circuit AN1. Like the circuit symbol shown in FIG. 13(a), this AND logic circuit AN1 is generally a quasi-NMOS type and is formed by combining inverters into a known NAND circuit. When the clock signal CLK is at a low level, the NMOS·FET N1 connected between the ground terminal and the node ND1 is turned on, and the node ND1 is discharged. When the clock signal CLK becomes high level, the PMOS·FET P1 is turned on, and the NMOS·FET N1 connected between the ground terminal and the node ND1 is turned off.

信号P<3:0>分别经倒相器IN104~IN101反转之后,被输入到连接在节点ND1和节点ND2之间的NMOS·FET N14~N11。只有信号P<3:0>中的信号全部为「1」时,NMOS·FET N14~N11才全部导通,节点ND1由PMOS·FET P1放电,并输出「1」的信号PG。信号P<3:0>中至少某一个信号是「0」时,输入该信号的FET导通,节点ND1与连接端子连接,并输出「0」的信号PG。在PMOS·FET P1中采用小尺寸的PMOS·FET,即使在该PMOS·FET P1导通时之中,至少一个NMOS·FET N14~N11导通就出现大约接近于连接在节点ND1的接地端子的电压。Signals P<3:0> are respectively inverted by inverters IN104-IN101, and then input to NMOS·FETs N14-N11 connected between nodes ND1 and ND2. Only when the signals in the signal P<3:0> are all "1", the NMOS·FETs N14~N11 are all turned on, the node ND1 is discharged by the PMOS·FET P1, and the signal PG of "1" is output. When at least one of the signals P<3:0> is “0”, the FET inputting the signal is turned on, the node ND1 is connected to the connection terminal, and the signal PG of “0” is output. When a small-sized PMOS FET is used in the PMOS FET P1, even when the PMOS FET P1 is turned on, at least one of the NMOS FETs N14 to N11 is turned on and approximately close to the ground terminal connected to the node ND1. Voltage.

由于使用同步于时钟信号CLK动作的这样的准-NMOS型与逻辑电路AN1,所以能够使电路动作高速化。By using such a quasi-NMOS type AND logic circuit AN1 which operates in synchronization with the clock signal CLK, it is possible to increase the speed of the circuit operation.

图14表示优先编码器PE的电路构成的一例。图14是由定时电路构成图12的第一CLA电路CLA(1)和图17的第二CLA电路CLA(2)的优先编码器PE的或非电路NR11、NR12、NR13的情况下的电路构成图。该优先编码器PE也与时钟信号CLK同步地进行定时动作,输入信号PB<3:0>的或非电路由PMOS·FET P11~P14、NMOS·FET N21~N32构成,PMOS·FET P11~P14连接在电源端子和节点ND11~ND14之间,并把时钟信号CLK输入到门电路。在时钟信号CLK处于低电平期间,节点ND11~ND14被充电。FIG. 14 shows an example of the circuit configuration of the priority encoder PE. Fig. 14 is the circuit configuration under the situation of the NOR circuit NR11, NR12, NR13 of the priority encoder PE of the first CLA circuit CLA (1) of Fig. 12 and the second CLA circuit CLA (2) of Fig. 17 constituted by the timing circuit picture. The priority encoder PE also performs timing operations synchronously with the clock signal CLK. The NOR circuit of the input signal PB<3:0> is composed of PMOS·FET P11~P14, NMOS·FET N21~N32, and PMOS·FET P11~P14 It is connected between the power supply terminal and the nodes ND11 to ND14, and inputs the clock signal CLK to the gate circuit. While the clock signal CLK is at the low level, the nodes ND11 to ND14 are charged.

NMOS·FET N21~N24并联在节点ND11~ND21之间,NMOS·FET N25连接在节点ND21与接地端子之间。NMOS·FET N26~N28并联在节点ND12~ND22之间,NMOS·FET N29连接在节点ND22与接地端子之间。NMOS·FET N30~N31并联在节点ND13~ND23之间,NMOS·FET N32连接在节点ND23与接地端子之间。NMOS·FET N33连接在节点ND14~ND24之间,NMOS·FET N34连接在节点ND24与接地端子之间。The NMOS·FETs N21 to N24 are connected in parallel between the nodes ND11 to ND21, and the NMOS·FET N25 is connected between the node ND21 and the ground terminal. The NMOS·FETs N26-N28 are connected in parallel between the nodes ND12-ND22, and the NMOS·FET N29 is connected between the node ND22 and the ground terminal. The NMOS·FETs N30 to N31 are connected in parallel between the nodes ND13 to ND23, and the NMOS·FET N32 is connected between the node ND23 and the ground terminal. The NMOS·FET N33 is connected between the nodes ND14 to ND24, and the NMOS·FET N34 is connected between the node ND24 and the ground terminal.

时钟信号CLK输入到NMOS·FET N25、N29、N32、N34的门电路,信号P<0>输入到NMOS·FET N21的门电路,信号P<1>输入到NMOS·FET N22和N26的门电路,信号P<2>输入到NMOS·FET N23、N27、N30的门电路,信号P<3>输入到NMOS·FET N24、N28、N31、N33的门电路。The clock signal CLK is input to the gate circuits of NMOS FET N25, N29, N32, and N34, the signal P<0> is input to the gate circuit of NMOS FET N21, and the signal P<1> is input to the gate circuits of NMOS FET N22 and N26 , the signal P<2> is input to the gate circuits of NMOS·FET N23, N27, N30, and the signal P<3> is input to the gate circuits of NMOS·FET N24, N28, N31, N33.

在时钟CLK为低电平期间,PMOS·FET P11~P14导通,节点ND11~ND14全部充电,时钟CLK成为高电平时,NMOS·FET N25、N29、N32、N34导通,节点ND21~ND24放电。When the clock CLK is at a low level, the PMOS FETs P11~P14 are turned on, and the nodes ND11~ND14 are fully charged. When the clock CLK becomes a high level, the NMOS FETs N25, N29, N32, and N34 are turned on, and the nodes ND21~ND24 are discharged. .

只有在信号PB<3:0>的全部信号是「0」的情况下,从节点ND11输出高电平信号,在至少某一个信号是「1」的情况下,输出低电平信号,并输出由倒相器IN111反转了的信号PGB。只有在信号PB<3:1>的全部信号是「0」的情况下,从节点ND12输出高电平信号,在至少某一个信号是「1」的情况下,输出低电平信号,并由倒相器IN113反转后,与倒相器IN112的输出一起输入到或非电路NR101,然后输出信号S<0>。只有在信号PB<3:2>的全部信号是「0」的情况下,从节点ND13输出高电平信号,在至少某一个信号是「1」的情况下,输出低电平信号,并由倒相器IN115反转后,与倒相器IN114的输出一起输入到或非电路NR102,然后输出信号S<1>。只有在信号PB<3>是「0」的情况下,从节点ND14输出高电平信号,该信号是「1」的情况下,输出低电平信号,并由倒相器IN117反转后,与倒相器IN116的输出一起输入到或非电路NR103,然后输出信号S<2>。倒相器IN118把倒相器IN117的输出反转后,进一步由或非电路NR104反转,然后作为信号S<3>输出。Only when all the signals of the signal PB<3:0> are "0", a high-level signal is output from the node ND11, and when at least one signal is "1", a low-level signal is output, and output The signal PGB inverted by the inverter IN111. Only when all the signals of the signal PB<3:1> are "0", a high-level signal is output from the node ND12, and when at least one signal is "1", a low-level signal is output, and the After the inversion of the inverter IN113, the output of the inverter IN112 is input to the NOR circuit NR101, and then the signal S<0> is output. Only when all the signals of the signal PB<3:2> are "0", the node ND13 outputs a high-level signal, and when at least one of the signals is "1", a low-level signal is output, and the After the inversion of the inverter IN115, the output of the inverter IN114 is input to the NOR circuit NR102, and then the signal S<1> is output. Only when the signal PB<3> is "0", a high-level signal is output from the node ND14, and when the signal is "1", a low-level signal is output, and after being inverted by the inverter IN117, Together with the output of the inverter IN116, it is input to the NOR circuit NR103, and then the signal S<2> is output. After inverter IN118 inverts the output of inverter IN117, it is further inverted by NOR circuit NR104, and then output as signal S<3>.

图15是用PMOS·FET、NMOS·FET和非逻辑电路构成选择器SEL1的情况下的电路构成图。FIG. 15 is a circuit configuration diagram in the case where the selector SEL1 is constituted by PMOS·FETs, NMOS·FETs and non-logic circuits.

具有选择器SEL1的多路转换器MUX1、MUX2例如分别具备图15(a)、(b)所示的电路构成,多路转换器MUX1的PMOS·FET P21连接在电源端子和节点ND31之间;NMOS·FET N41和N42串联在节点ND31和接地端子之间;NMOS·FET N43和N44串联再与此并联;NMOS·FET N45和N46串联再与此并联;NMOS·FET N47和N48串联再与此并联。信号S<0:3>被输入到NMOS·FETN41、N43、N45、N47的门电路,信号G<0:3>被输入到NMOS·FET N42、N44、N46、N48的门电路。The multiplexers MUX1 and MUX2 having the selector SEL1 have, for example, the circuit configurations shown in FIG. NMOS FETs N41 and N42 are connected in series between the node ND31 and the ground terminal; NMOS FETs N43 and N44 are connected in series and connected in parallel; NMOS FETs N45 and N46 are connected in series and connected in parallel; NMOS FETs N47 and N48 are connected in series and connected in parallel in parallel. The signal S<0:3> is input to the gate circuits of NMOS·FET N41, N43, N45, N47, and the signal G<0:3> is input to the gate circuits of NMOS·FET N42, N44, N46, N48.

时钟信号CLK为低电平期间,PMOS·FET P21导通,节点ND31充电。时钟信号CLK成为高电平时,至少存在一个信号S<0>和G<0>、信号S<1>和G<1>、信号S<2>和G<2>、信号S<3>和G<3>之中的两者都成为「1」组合的情况下,节点ND31成为低电平。节点ND31的电平被倒相器IN21反转后,输出为信号GG。When the clock signal CLK is at a low level, the PMOS·FET P21 is turned on, and the node ND31 is charged. When the clock signal CLK becomes high level, at least one signal S<0> and G<0>, signal S<1> and G<1>, signal S<2> and G<2>, signal S<3> and When both of G<3> are combined with “1”, the node ND31 becomes low level. After the level of the node ND31 is inverted by the inverter IN21, the signal GG is output.

多路转换器MUX2具有与多路转换器MUX1一样的构成,相当于多路转换器MUX1把中的信号G<3:0>置换为信号KG<3:0>。PMOS·FET P22连接在电源端子和节点ND32之间;NMOS·FET N51和N52串联在节点ND32和接地端子之间;NMOS·FET N53和N54串联再与此并联;NMOS·FET N55和N56串联再与此并联;NMOS·FET N57和N58串联再与此并联。信号S<0:3>被输入到NMOS·FET N51、N53、N55、N57的门电路,信号K<0:3>被输入到NMOS·FET N52、N54、N56、N58的门电路。The multiplexer MUX2 has the same configuration as the multiplexer MUX1, and corresponds to the signal G<3:0> in the multiplexer MUX1 being replaced by the signal KG<3:0>. PMOS FET P22 is connected between the power supply terminal and node ND32; NMOS FETs N51 and N52 are connected in series between node ND32 and the ground terminal; NMOS FETs N53 and N54 are connected in series and then in parallel; NMOS FETs N55 and N56 are connected in series and then It is connected in parallel with this; NMOS·FET N57 and N58 are connected in series and then connected in parallel with this. The signal S<0:3> is input to the gate circuits of NMOS·FET N51, N53, N55, and N57, and the signal K<0:3> is input to the gate circuits of NMOS·FET N52, N54, N56, and N58.

时钟信号CLK为低电平期间,PMOS·FET P22导通,节点ND31充电。时钟信号CLK成为高电平时,至少存在一个信号S<0>和K<0>、信号S<1>和K<1>、信号S<2>和K<2>、信号S<3>和K<3>之中的两者都成为「1」组合的情况下,节点ND32成为低电平。节点ND32的电平被倒相器IN22反转后,输出为信号KG。When the clock signal CLK is at a low level, the PMOS·FET P22 is turned on, and the node ND31 is charged. When the clock signal CLK becomes high level, at least one signal S<0> and K<0>, signal S<1> and K<1>, signal S<2> and K<2>, signal S<3> and When both of K<3> are combined with “1”, the node ND32 becomes low level. After the level of the node ND32 is inverted by the inverter IN22, the signal KG is output.

作为在每比特中生成P、G、K信号的电路,也可以用例如图21(a)~(d)所示的电路。图21(a)所示的电路输入两个输入信号A和B(/A和/B),然后在A和B之间进行逻辑和运算,产生并输出信号P。时钟信号CLK被输入到PMOS·FET P31的门电路,在低电平期间,节点ND41充电。时钟信号CLK成为高电平时,NMOS·FET N63的门电路输入该电平并导通。NMOS·FET N61、N62、N64、N65的门电路分别输入信号A、/B、/A、B,根据这些电平的组合,来维持充了电的节点ND41的充电状态或放电。该节点ND41的电平由倒相器IN131反转之后被输出为信号P。As a circuit for generating P, G, and K signals for each bit, for example, circuits shown in Figs. 21(a) to (d) may be used. The circuit shown in FIG. 21(a) inputs two input signals A and B (/A and /B), and then performs a logical sum operation between A and B to generate and output a signal P. The clock signal CLK is input to the gate circuit of the PMOS·FET P31, and the node ND41 is charged during the low level period. When the clock signal CLK becomes high level, the gate circuit of NMOS·FET N63 receives the level and turns on. The gate circuits of NMOS FETs N61, N62, N64, and N65 input signals A, /B, /A, and B respectively, and maintain the charging state or discharge of the charged node ND41 according to the combination of these levels. The level of the node ND41 is inverted by the inverter IN131 and output as a signal P.

图21(b)所示的电路把在逻辑和上加了反转的信号PB输出到二输入信号A和B之间。该电路相当于把输入到图21(a)的电路中的NMOS·FETN61、N62、N64、N65的门电路的信号的组合A、/B、/A、B置换为A、B、/A、/B的电路。The circuit shown in FIG. 21(b) outputs the signal PB to which the logical sum is inverted, between the two input signals A and B. This circuit is equivalent to replacing the combinations A, /B, /A, B of signals input to the gate circuits of NMOS·FET N61, N62, N64, N65 in the circuit of FIG. 21(a) with A, B, /A, /B circuit.

图21(c)所示的电路是在A和B之间进行逻辑积运算并输出信号G的电路。时钟信号CLK被输入到PMOS·FET P33的门电路,在低电平期间,节点ND43充电。信号A、B分别被输入到NMOS·FET N81、N82,根据这些电平的组合,来维持充了电的节点ND43的充电状态或放电。时钟信号CLK成为高电平时,NMOS·FET N33的门电路输入该电平并导通。该节点ND43的电平由倒相器IN133反转之后被输出为信号G。The circuit shown in FIG. 21(c) performs a logical product operation between A and B and outputs a signal G. The clock signal CLK is input to the gate circuit of the PMOS·FET P33, and the node ND43 is charged during the low level period. Signals A and B are input to NMOS·FETs N81 and N82, respectively, and the charged state of the charged node ND43 is maintained or discharged according to a combination of these levels. When the clock signal CLK becomes high level, the gate circuit of NMOS·FET N33 receives the level and turns on. The level of the node ND43 is inverted by the inverter IN133 and output as a signal G.

图21(d)所示的电路在A和B之间进行排他逻辑和运算并输出信号K,该电路相当于把输入到图21(c)的电路中的NMOS·FET N81、N82的门电路的信号的组合A、B置换为/A、/B。The circuit shown in Figure 21(d) performs an exclusive logical sum operation between A and B and outputs a signal K, which is equivalent to the gate circuit of the NMOS FET N81 and N82 input to the circuit in Figure 21(c) The combination of signals A and B is replaced by /A and /B.

图22(a)和(b)分别表示生成与时钟信号CLK同步了的每比特的进位信号Cin和反转进位信号/Cin的波形C和CB的电路的一例。22( a ) and ( b ) show an example of a circuit for generating waveforms C and CB of the carry signal Cin and inverted carry signal /Cin per bit synchronized with the clock signal CLK, respectively.

像上面所说明的那样,本发明的CLA电路把每m比特的信号P、G、K送到由m比特构成的组中,并求出以组为单位的信号PG、GG、KG,所以,即使在求比特数多的运算的进位时在多组中使用每组求出来的信号PG、GG、KG,从而能够缩短计算延迟时间。As explained above, the CLA circuit of the present invention sends the signals P, G, and K of every m bits to a group consisting of m bits, and obtains the signals PG, GG, and KG in units of groups. Therefore, Even when calculating the carry of a calculation with a large number of bits, the signals PG, GG, and KG obtained for each group are used in multiple groups, thereby shortening the calculation delay time.

例如,在图19所示的电路构成中,把整体32比特的运算分成为每4比特的组,用3组的组阶层求每组的信号PG、GG、KG,最后再求出进位信号CGGG。与逻辑电路AN1、优先编码器PE、选择器SE的具体电路构成是一个例子,也能够形成各种各样的变形。For example, in the circuit configuration shown in Figure 19, the overall 32-bit operation is divided into groups of 4 bits, and the signals PG, GG, and KG of each group are obtained using the group hierarchy of 3 groups, and finally the carry signal CGGG is obtained . The specific circuit configuration of logic circuit AN1, priority encoder PE, and selector SE is an example, and various modifications are possible.

图23是图17所示的准-NMOS与非电路42与1检索电路2-7连接的情况下的电路构成图,与图17同等的部分用同样的标号表示。该准-NMOS与非电路42,如图24所示,该准-NMOS电路62连接在由同样逻辑构成的定时电路46上,定时电路46是1检索电路2-7的一部分。准-NMOS电路62并联在接地电位和信号线X之间,由接受各比特的P信号的反转信号的NMOS·FET、把电源连接在信号线X上的PMOS门电路47、把控制信号送到PMOS门电路47的与非电路48构成。同样,定时电路46并联在接地电位和信号线X之间,由接受各比特的PB信号的NMOS·FET、把电源连接在信号线X*上的PMOS门电路49构成。FIG. 23 is a circuit configuration diagram in the case where the quasi-NMOS NAND circuit 42 shown in FIG. 17 is connected to a search circuit 2-7, and parts equivalent to those in FIG. 17 are denoted by the same reference numerals. The quasi-NMOS NAND circuit 42 is shown in FIG. 24. The quasi-NMOS circuit 62 is connected to a timing circuit 46 composed of the same logic. The timing circuit 46 is a part of the search circuit 2-7. The quasi-NMOS circuit 62 is connected in parallel between the ground potential and the signal line X, and the NMOS FET receiving the inversion signal of the P signal of each bit, and the PMOS gate circuit 47 connecting the power supply to the signal line X send the control signal to The NAND circuit 48 to the PMOS gate circuit 47 is constituted. Similarly, the timing circuit 46 is connected in parallel between the ground potential and the signal line X, and is composed of an NMOS·FET for receiving the PB signal of each bit, and a PMOS gate circuit 49 for connecting the power supply to the signal line X * .

图25是表示图24所示的准-NMOS与非电路42的输入输出的定时的时序图。FIG. 25 is a timing chart showing the timing of input and output of the quasi-NMOS NAND circuit 42 shown in FIG. 24 .

向准-NMOS电路62的输入信号在预充电期间被提升到“H”电平,因此,信号线X被下拉到“L”电平。The input signal to the quasi-NMOS circuit 62 is raised to "H" level during the precharge period, and therefore, the signal line X is pulled down to "L" level.

向定时电路46的输入信号在预充电期间被提升到“H”电平,因此,信号线X*被同时下拉到“H”电平。另一方面,在输出确定期间,作为向准-NMOS电路62的输入信号和向定时电路46的输入信号,输入各比特P的信号P<3:0>和各比特P的信号PB<3:0>。The input signal to the timing circuit 46 is raised to "H" level during the precharge period, and therefore, the signal line X * is pulled down to "H" level at the same time. On the other hand, during the output determination period, as the input signal to the quasi-NMOS circuit 62 and the input signal to the timing circuit 46, the signal P<3:0> of each bit P and the signal PB<3:0 of each bit P are input. 0>.

在预充电期间,因为定时电路46的输出信号OUTPUT*(OUTPUT的反转)被预充电到“H”电平,所以,允许信号En使控制信号48的输出成为“1”,PMOS门电路47导通。以后的输出确定期间,确定全部输入信号的逻辑值,但是在这里逻辑为非成立的情况下(即:信号线X与接地电位非连接),因为没有把准-NMOS电路62的信号线X下拉到“L”电平的电流通路,PMOS门电路47使信号线X固定在“H”电平,所以,不流过消耗电流。另一方面,在逻辑成立的情况下,因为存在把信号线X下拉到“L”电平的电流通路,PMOS门电路47导通而消耗无用电流。但是,在定时电路46中,因为逻辑成立而使信号线X*变化为“L”电平,输出信号OUTPUT*也变化为“L”电平。这样,通过控制电路48就使PMOS门电路47截止,所以就无消耗电流流过。During the precharge period, because the output signal OUTPUT* (the inversion of OUTPUT) of the timing circuit 46 is precharged to "H" level, the enable signal En makes the output of the control signal 48 become "1", and the PMOS gate circuit 47 conduction. During the subsequent output determination period, the logic values of all the input signals are determined, but in the case where the logic is false (that is, the signal line X is not connected to the ground potential), the signal line X of the quasi-NMOS circuit 62 is not pulled down. In the current path to the "L" level, the PMOS gate circuit 47 fixes the signal line X at the "H" level, so that no consumption current flows. On the other hand, when the logic is established, since there is a current path that pulls down the signal line X to "L" level, the PMOS gate circuit 47 is turned on to consume useless current. However, in the timer circuit 46, the signal line X * changes to "L" level because the logic is established, and the output signal OUTPUT* also changes to "L" level. In this way, the PMOS gate circuit 47 is turned off by the control circuit 48, so that no consumption current flows.

以上的构成一般被应用于运动输出那样的定时电路和准-NMOS电路的组合,即:图26是输出同步那样的定时电路和准-NMOS电路的组合的构成例的电路构成图。该准-NMOS电路62和定时电路46是由同样逻辑构成的NMOS·FET构成的。但是,如果信号线X和信号线X*在输出确定期间输出同样的逻辑值,就没有必要特别由同样逻辑来构成,这样的准-NMOS电路并列设置在接地电位和信号线X之间,并由接受各比特的P信号的NMOS·FET、把电源连接到信号线X的PMOS门电路47、把控制信号加到PMOS门电路47的与非电路48构成。同样,定时电路46并联在接地电位和信号线X之间,由接受各比特的PB信号的NMOS·FET、把电源连接在信号线X*上的PMOS门电路49构成。The above configuration is generally applied to a combination of a timing circuit such as a motion output and a quasi-NMOS circuit, that is, FIG. 26 is a circuit configuration diagram of a configuration example of a combination of a timing circuit such as an output synchronization and a quasi-NMOS circuit. The quasi-NMOS circuit 62 and the timer circuit 46 are composed of NMOS·FETs having the same logic configuration. However, if the signal line X and the signal line X * output the same logic value during the output determination period, it is not necessary to be particularly constituted by the same logic, such a quasi-NMOS circuit is arranged in parallel between the ground potential and the signal line X, and It consists of an NMOS·FET receiving the P signal of each bit, a PMOS gate circuit 47 connecting the power supply to the signal line X, and a NAND circuit 48 supplying a control signal to the PMOS gate circuit 47 . Similarly, the timing circuit 46 is connected in parallel between the ground potential and the signal line X, and is composed of an NMOS·FET for receiving the PB signal of each bit, and a PMOS gate circuit 49 for connecting the power supply to the signal line X * .

图27是表示图26所示的准-NMOS与非电路61的输入输出的定时的时序图。FIG. 27 is a timing chart showing the timing of input and output of the quasi-NMOS NAND circuit 61 shown in FIG. 26 .

向准-NMOS与非电路62的输入信号INPUT[N:0]和向定时电路63输入的输入信号INPUT*[N:0]是在输入确定期间取相等的逻辑值的信号。The input signal INPUT[N:0] to the quasi-NMOS NAND circuit 62 and the input signal INPUT*[N:0] to the timer circuit 63 are signals that take equal logical values during input determination.

向准-NMOS与非电路62的输入信号INPUT[N:0]在预充电期间被提升为“H”电平,因此,信号线X被下拉为“L”电平。The input signal INPUT[N:0] to the quasi-NMOS NAND circuit 62 is raised to "H" level during the precharge period, and therefore, the signal line X is pulled down to "L" level.

向定时电路46输入的输入信号INPUT*[N:0]在预充电期间被提升为“H”电平,因此,信号线X*同时被下拉为“H”电平。另一方面,在输出确定期间,向准-NMOS与非电路62的输入信号和向定时电路46的应评价的输入信号被输入为INPUT[N:0]和INPUT*[N:0]。The input signal INPUT*[N:0] to the timer circuit 46 is raised to "H" level during the precharge period, and therefore, the signal line X * is pulled down to "H" level at the same time. On the other hand, during output determination, an input signal to the quasi-NMOS NAND circuit 62 and an input signal to be evaluated to the timing circuit 46 are input as INPUT[N:0] and INPUT*[N:0].

因为定时电路46的输出信号OUTPUT*(OTPUT的反转)被充电到“H”电平,所以,允许信号En使控制电路48的输出成为“1”,PMOS门电路47导通。此后的输出确定期间,确定全部输入信号的逻辑值,但是在这里逻辑为非成立的情况下(即:信号线X与接地电位非连接),因为没有把准-NMOS电路62的信号线X下拉到“L”电平的电流通路,PMOS门电路47使信号线X固定在“H”电平,所以,不流过消耗电流。另一方面,在逻辑成立的情况下,因为存在把信号线X下拉到“L”电平的电流通路,PMOS门电路47导通而消耗无用电流。但是,在定时电路46中,因为逻辑成立而使信号线X*变化为“L”电平,输出信号OUTPUT*也变化为“L”电平。这样,通过控制电路48就使PMOS门电路47截止,所以就无消耗电流流过。Since the output signal OUTPUT* (the inversion of OTPUT) of the timer circuit 46 is charged to "H" level, the enable signal En makes the output of the control circuit 48 "1", and the PMOS gate circuit 47 is turned on. During the subsequent output determination period, the logical values of all the input signals are determined, but in the case where the logic is false (that is, the signal line X is not connected to the ground potential), since the signal line X of the quasi-NMOS circuit 62 is not pulled down In the current path to the "L" level, the PMOS gate circuit 47 fixes the signal line X at the "H" level, so that no consumption current flows. On the other hand, when the logic is established, since there is a current path that pulls down the signal line X to "L" level, the PMOS gate circuit 47 is turned on to consume useless current. However, in the timer circuit 46, the signal line X * changes to "L" level because the logic is established, and the output signal OUTPUT* also changes to "L" level. In this way, the PMOS gate circuit 47 is turned off by the control circuit 48, so that no consumption current flows.

图28是按照本发明的互补的准-准-NMOS与非电路构成的逻辑电路的电路构成图。该逻辑电路71具备第一准-NMOS电路72和与该第一准-NMOS电路72互补的第二准-PMOS电路73。第一准-NMOS电路72由经PMOS门电路74供给电源的NMOS FET的组合电路72n构成,第二准-PMOS电路73也由经PMOS门电路75供给电源的NMOS FET的组合电路73n构成。另外,与非电路76、77连接在两个准-NMOS电路中,与非电路76、77用来由这两个电路的输出信号预充电时的逻辑值使准-NMOS电路的PMOS门电路74、75截止,逻辑成立并反转时PMOS门电路74、75互为对方。Fig. 28 is a circuit configuration diagram of a logic circuit composed of a complementary quasi-quasi-NMOS NAND circuit according to the present invention. The logic circuit 71 includes a first quasi-NMOS circuit 72 and a second quasi-PMOS circuit 73 complementary to the first quasi-NMOS circuit 72 . The first quasi-NMOS circuit 72 is made up of a combined circuit 72n of NMOS FETs powered by a PMOS gate circuit 74, and the second quasi-PMOS circuit 73 is also made up of a combined circuit 73n of NMOS FETs powered by a PMOS gate circuit 75. In addition, the NAND circuits 76, 77 are connected in two quasi-NMOS circuits, and the NAND circuits 76, 77 are used to make the PMOS gate circuit 74 of the quasi-NMOS circuit by the logic value when the output signals of these two circuits are precharged. , 75 cut off, the PMOS gate circuits 74 and 75 are opposite to each other when the logic is established and reversed.

图29是表示图28所示的互补的准-准-NMOS与非电路的输入输出的定时的时序图。FIG. 29 is a timing chart showing the timing of input and output of the complementary quasi-quasi-NMOS NAND circuit shown in FIG. 28 .

如果产生互补的输出,对第一准-NMOS电路72的输入信号和对第二准-PMOS电路73输入信号即对NMOS FET要素的门信号的组合也可以是任何信号。例如:作为对第一准-NMOS电路72的输入信号和对第二准-PMOS电路73输入信号,在输出确定期间输入取互相反转的逻辑值的输入信号INPUT[N:0]和INPUT*(INPUT的反转)[N:0]。The combination of the input signal to the first quasi-NMOS circuit 72 and the input signal to the second quasi-PMOS circuit 73, that is, the gate signal to the NMOS FET element, may be any signal if complementary outputs are generated. For example: as the input signal to the first quasi-NMOS circuit 72 and the input signal to the second quasi-PMOS circuit 73, input signals INPUT[N:0] and INPUT* that take mutually inverted logic values are input during the output determination period (Inversion of INPUT)[N:0].

在预充电期间,对第一准-NMOS电路72的输入信号INPUT[N:0]和对第二准-PMOS电路73输入信号INPUT*[N:0]被提升为“H”电平,因此,信号线X和信号线X*被下拉为“L”电平。During the precharge period, the input signal INPUT[N:0] to the first quasi-NMOS circuit 72 and the input signal INPUT*[N:0] to the second quasi-PMOS circuit 73 are raised to "H" level, so , the signal line X and the signal line X * are pulled down to "L" level.

因为第一准-NMOS电路72的输出信号OUTPUT被预充电为“H”电平,所以,在输出确定期间,允许信号En使与非电路76的输出为“1”,PMOS门电路74导通。Because the output signal OUTPUT of the first quasi-NMOS circuit 72 is precharged to "H" level, so, during the output determination period, the enable signal En makes the output of the NAND circuit 76 "1", and the PMOS gate circuit 74 is turned on. .

同样,因为第二准-NMOS电路73的输出信号OUTPUT*被预充电为“H”电平,所以,在输出确定期间,允许信号En使与非电路77的输出为“1”,PMOS门电路75导通。此后,在输出确定期间,确定全部输入信号的逻辑值,这里,组合电路72n和组合电路73n的任何一方成立,另一方就不成立。因此,就没有把逻辑未成立的准-NMOS电路中的信号线X或X*下拉为“L”电平的电流通路,PMOS门电路74或75把信号线X或X*固定在“H”电平上,所以没有消耗电流流过。另一方面,在逻辑成立的准-NMOS电路中,因为存在把信号线X或X*下拉为“L”电平的电流通路,所以PMOS门电路73或74导通,而消耗无用电流。但是,因为逻辑未成立的准-NMOS电路的输出信号OUTPUT或OUTPUT*变化为“L”电平,所以与非电路76或77导通,而PMOS门电路74或75截止,没有消耗电流流过。Likewise, since the output signal OUTPUT* of the second quasi-NMOS circuit 73 is precharged to "H" level, the enable signal En makes the output of the NAND circuit 77 "1" during the output determination period, and the PMOS gate circuit 75 is turned on. Thereafter, during the output determination period, the logical values of all the input signals are determined, and here, either one of the combination circuit 72n and the combination circuit 73n is established, and the other is not established. Therefore, there is no current path for pulling down the signal line X or X * in the quasi-NMOS circuit whose logic is not established to "L" level, and the PMOS gate circuit 74 or 75 fixes the signal line X or X * at "H". level, so no consumption current flows. On the other hand, in the quasi-NMOS circuit where the logic holds, since there is a current path that pulls down the signal line X or X * to "L" level, the PMOS gate circuit 73 or 74 is turned on to consume useless current. However, since the output signal OUTPUT or OUTPUT* of the quasi-NMOS circuit whose logic is not established changes to "L" level, the NAND circuit 76 or 77 is turned on, and the PMOS gate circuit 74 or 75 is turned off, and no consumption current flows. .

图30是作为图28所示的电路的应用例使用准-NMOS与非电路的本发明的互补的逻辑电路的电路构成图。该逻辑电路81具备第一准-NMOS电路82和具有与该第一准-NMOS电路82互补的输出的第二准-PMOS电路83。第一准-NMOS电路82由经PMOS门电路84供给电源的NMOS FET的组合电路82n构成,第二准-PMOS电路83也由经PMOS门电路85供给电源的NMOS FET的组合电路83n构成。作为对第一准-NMOS电路82的输入信号和对第二准-PMOS电路83的输入信号,在输出确定期间输入取互相反转的逻辑值的输入信号INPUT[N:0]和输入信号INPUT*(INPUT的反转)[N:0]。这里,N=2,根据德·摩根定理的公式,把NMOS FET的组合电路82n和NMOS FET的组合电路83n设为:FIG. 30 is a circuit configuration diagram of a complementary logic circuit of the present invention using a quasi-NMOS NAND circuit as an application example of the circuit shown in FIG. 28 . This logic circuit 81 includes a first quasi-NMOS circuit 82 and a second quasi-PMOS circuit 83 having an output complementary to that of the first quasi-NMOS circuit 82 . The first quasi-NMOS circuit 82 is composed of a combined circuit 82n of NMOS FETs powered by a PMOS gate circuit 84, and the second quasi-PMOS circuit 83 is also composed of a combined circuit 83n of NMOS FETs powered by a PMOS gate circuit 85. As an input signal to the first quasi-NMOS circuit 82 and an input signal to the second quasi-PMOS circuit 83, an input signal INPUT[N:0] and an input signal INPUT taking mutually inverted logical values are input during the output determination period. *(invert of INPUT)[N:0]. Here, N=2, according to the formula of De Morgan's theorem, the combined circuit 82n of NMOS FET and the combined circuit 83n of NMOS FET are set as:

/(([0]*[1]+[2]-(/[0]+/[1])*/[2]/(([0]*[1]+[2]-(/[0]+/[1])*/[2]

图31是图30所示的互补的准-准-NMOS与非电路的输入输出的定时的时序图。FIG. 31 is a timing chart of input and output timings of the complementary quasi-quasi-NMOS NAND circuit shown in FIG. 30 .

如果产生互补的输出,对第一准-NMOS电路82的输入信号和对第二准-PMOS电路83输入信号即对NMOS FET要素的门信号的组合也可以是任何组合。例如:作为对第一准-NMOS电路82的输入信号和对第二准-PMOS电路83输入信号,在输出确定期间输入取互相反转的逻辑值的输入信号INPUT[2:0]和INPUT*(INPUT的反转)[2:0]。The combination of the input signal to the first quasi-NMOS circuit 82 and the input signal to the second quasi-PMOS circuit 83, that is, the gate signal to the NMOS FET element, may be any combination if complementary outputs are generated. For example: as the input signal to the first quasi-NMOS circuit 82 and the input signal to the second quasi-PMOS circuit 83, input signals INPUT[2:0] and INPUT* that take mutually inverted logic values are input during the output determination period (Inversion of INPUT)[2:0].

在预充电期间,对第一准-NMOS电路82的输入信号INPUT[2:0]和对第二准-PMOS电路83输入信号INPUT*[2:0]被提升为“H”电平,因此,信号线X和信号线X*被下拉为“L”电平。During the precharge period, the input signal INPUT[2:0] to the first quasi-NMOS circuit 82 and the input signal INPUT*[2:0] to the second quasi-PMOS circuit 83 are raised to "H" level, so , the signal line X and the signal line X * are pulled down to "L" level.

因为第一准-NMOS电路82的输出信号OUTPUT被预充电为“H”电平,所以,在输出确定期间,允许信号En使与非电路86的输出为“1”,PMOS门电路84导通。Because the output signal OUTPUT of the first quasi-NMOS circuit 82 is precharged to "H" level, so, during the output determination period, the enable signal En makes the output of the NAND circuit 86 "1", and the PMOS gate circuit 84 is turned on. .

同样,因为第二准-NMOS电路83的输出信号OUTPUT*被预充电为“H”电平,所以,在输出确定期间,允许信号En使与非电路87的输出为“1”,PMOS门电路85导通。此后,在输出确定期间,确定全部输入信号的逻辑值,这里,组合电路82n和组合电路83n的任何一方成立,另一方就不成立。因此,就没有把逻辑未成立的准-NMOS电路中的信号线X或X*下拉为“L”电平的电流通路,PMOS门电路84或85把信号线X或X*固定在“H”电平上,所以没有消耗电流流过。另一方面,在逻辑成立的准-NMOS电路中,因为存在把信号线X或X*下拉为“L”电平的电流通路,所以PMOS门电路83或84导通,而消耗无用电流。但是,因为逻辑未成立的准-NMOS电路的输出信号OUTPUT或OUTPUT*变化为“L”电平,所以与非电路86或87导通,而PMOS门电路84或85截止,没有消耗电流流过。Likewise, since the output signal OUTPUT* of the second quasi-NMOS circuit 83 is precharged to "H" level, the enable signal En makes the output of the NAND circuit 87 "1" during the output determination period, and the PMOS gate circuit 85 conduction. Thereafter, during the output determination period, the logical values of all the input signals are determined, and here, either one of the combination circuit 82n and the combination circuit 83n is established, and the other is not established. Therefore, there is no current path for pulling down the signal line X or X * in the quasi-NMOS circuit whose logic is not established to "L" level, and the PMOS gate circuit 84 or 85 fixes the signal line X or X * at "H". level, so no consumption current flows. On the other hand, in the quasi-NMOS circuit where the logic holds, since there is a current path that pulls down the signal line X or X * to "L" level, the PMOS gate circuit 83 or 84 is turned on to consume useless current. However, since the output signal OUTPUT or OUTPUT* of the quasi-NMOS circuit whose logic is not established changes to "L" level, the NAND circuit 86 or 87 is turned on, and the PMOS gate circuit 84 or 85 is turned off, and no consumption current flows. .

另外,与非电路86、87连接在两个准-NMOS电路中,与非电路86、87用来由这两个电路的输出信号预充电时的逻辑值使准-NMOS电路的PMOS门电路84、85截止,逻辑成立并反转时准-NMOS电路的PMOS门电路84、85互为对方。In addition, the NAND circuits 86, 87 are connected in two quasi-NMOS circuits, and the NAND circuits 86, 87 are used to make the PMOS gate circuit 84 of the quasi-NMOS circuit by the logical value when the output signals of these two circuits are precharged. , 85, when the logic is established and reversed, the PMOS gate circuits 84 and 85 of the quasi-NMOS circuit are opposite to each other.

Claims (2)

1. initial logical circuit of 1 that occurs of retrieval when the upper bit begins to check in order the bit of serial data of 2 system numbers comprises:
Import the NOT logic of upper bit of the serial data of described 2 system numbers;
Respectively with the upper bit of the serial data of described 2 system numbers beyond bit corresponding one by one, input is corresponding to the bit of the serial data of the described 2 system numbers of this bit position and be in the NOR circuit of the bit more upper than this bit position;
Correspond respectively to the bit phase inverter that be provided with, that import the output of above-mentioned NOT logic and above-mentioned NOR circuit of the serial data of described 2 system numbers;
Correspond respectively to 2 input circuits that the bit of the serial data of described 2 system numbers is provided with;
An input of described 2 input circuits is the output corresponding to the described phase inverter of this bit position, and another input, with the upper bit beyond described 2 input circuits of the corresponding setting of bit the time, be the output that is positioned at the described NOR circuit last than this bit position, when corresponding described 2 input circuits that are provided with, be to be fixed in 0 or 1 value with the upper bit.
2. according to the logical circuit of claim 1, it is characterized in that described NOT logic and NOR circuit are made of the n channel metal oxide semiconductor field effect transistor that is connected in parallel between the output line that is connected in parallel on earthing potential and described NOT logic and NOR circuit.
CNB001070320A 1999-03-09 2000-03-09 Logic circuit and carry lookahead circuit Expired - Fee Related CN1188947C (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP062346/1999 1999-03-09
JP06234699A JP3781573B2 (en) 1999-03-09 1999-03-09 Logic circuit

Publications (2)

Publication Number Publication Date
CN1267136A CN1267136A (en) 2000-09-20
CN1188947C true CN1188947C (en) 2005-02-09

Family

ID=13197483

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB001070320A Expired - Fee Related CN1188947C (en) 1999-03-09 2000-03-09 Logic circuit and carry lookahead circuit

Country Status (2)

Country Link
JP (1) JP3781573B2 (en)
CN (1) CN1188947C (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3640643B2 (en) 2002-01-18 2005-04-20 沖電気工業株式会社 Power number encoder circuit and mask circuit
JP4485577B2 (en) 2006-02-01 2010-06-23 富士通株式会社 Parity generation circuit, component circuit for parity generation circuit, information processing apparatus, and encoder
JP5169618B2 (en) * 2008-08-20 2013-03-27 富士通株式会社 Computing device, matrix computing device, resource allocation device, and computing method
US9942063B2 (en) 2012-10-26 2018-04-10 Altera Corporation Apparatus for improved encoding and associated methods
US9490836B2 (en) * 2012-10-26 2016-11-08 Altera Corporation Apparatus for improved encoding and associated methods

Also Published As

Publication number Publication date
CN1267136A (en) 2000-09-20
JP2000259392A (en) 2000-09-22
JP3781573B2 (en) 2006-05-31

Similar Documents

Publication Publication Date Title
CN1153155C (en) Information processing device equipped with a coprocessor which efficiently uses register data in main processor
CN1049539C (en) Synchronizing circuit
CN1305219C (en) Level shift circuit
CN1059413A (en) Carry out arithmetic, the method for the relevant computing of logical and and numerical value arithmetical unit
CN1253790C (en) Display device and driving method thereof
CN1236380C (en) Microprocessor with random number generator and instruction for storing random data
CN1129066C (en) Processor, operation method thereof, and data processor
CN1308811C (en) Continuous multi-buffering random number generator and random number generation method
CN1288550C (en) Random number generator bit string filter and method
CN1320769C (en) Coder, decoder and data transfer systems
CN1086521C (en) Integrated circuit, system and method for reducing distortion between clock signal and data signal
CN1102260C (en) Method, system, equipment and multiplier for automatic design of logic circuit
CN1130731C (en) Semiconductor read-only memory
CN1941616A (en) Differential amplifier, digital-to-analog converter and display device
CN1184387A (en) Reception pointer processing apparatus in SDH transmission system
CN1188947C (en) Logic circuit and carry lookahead circuit
CN1261871C (en) Microprocessor including random number generator supporting operating system-independent multitasking operation and method
CN1577332A (en) Information display control apparatus, server, recording medium which records program and program
CN1835365A (en) Frequency dividing circuit, power supply circuit and display device
CN1071489C (en) Semiconductor storing device
CN1764928A (en) Multi-level monochrome image display method, multi-level monochrome image display device, computer, monochrome display device, reconversion adapter, and video card
CN1053693A (en) The address processor of signal processing apparatus
CN101044450A (en) Processor
CN1138175A (en) Compiler and processor for processing loops at high speed
CN1968018A (en) Accelerated N-channel and P-channel dynamic registers

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20050209