[go: up one dir, main page]

RU2841043C1 - Device for comparing binary numbers - Google Patents

Device for comparing binary numbers Download PDF

Info

Publication number
RU2841043C1
RU2841043C1 RU2024133319A RU2024133319A RU2841043C1 RU 2841043 C1 RU2841043 C1 RU 2841043C1 RU 2024133319 A RU2024133319 A RU 2024133319A RU 2024133319 A RU2024133319 A RU 2024133319A RU 2841043 C1 RU2841043 C1 RU 2841043C1
Authority
RU
Russia
Prior art keywords
group
input
binary numbers
inverting
output
Prior art date
Application number
RU2024133319A
Other languages
Russian (ru)
Inventor
Дмитрий Васильевич Андреев
Артём Юрьевич Дороднов
Original Assignee
федеральное государственное бюджетное образовательное учреждение высшего образования "Ульяновский государственный технический университет"
Filing date
Publication date
Application filed by федеральное государственное бюджетное образовательное учреждение высшего образования "Ульяновский государственный технический университет" filed Critical федеральное государственное бюджетное образовательное учреждение высшего образования "Ульяновский государственный технический университет"
Application granted granted Critical
Publication of RU2841043C1 publication Critical patent/RU2841043C1/en

Links

Images

Abstract

FIELD: computer equipment.
SUBSTANCE: device for comparing binary numbers is intended for recognition of ratios X>Y, X=Y, X<Y, where X, Y are n-bit binary numbers set by binary signals, and can be used in digital computer systems as a comparator information processing means. Device for comparing binary numbers comprises 2×n implicators (111, 121, …, 11n, 12n) and 4×n-4 NAND elements (212, 222, 232, 242, …, 21n, 22n, 23n, 24n). Due to the said elements connection new scheme, which price according to Quine is equal to 14×n-8, the maximum signal propagation delay time in the disclosed device is determined by the expression τ=(2×n-1)×τE, where τE is the duration of the delay introduced by the logic element.
EFFECT: faster operation while preserving functional capabilities and Quine price of the prototype.
1 cl, 1 dwg, 1 tbl

Description

Изобретение относится к вычислительной технике и может быть использовано для построения средств автоматики, функциональных узлов систем управления и др.The invention relates to computer technology and can be used for constructing automation equipment, functional units of control systems, etc.

Известно устройство сравнения двоичных чисел (патент РФ 2353966, кл. G06F7/02, 2009г.), содержащее логические элементы, среди которых импликаторов, и выполняющее распознавание отношений X>Y, X=Y, X<Y, где X, Y есть n-разрядные двоичные числа, задаваемые двоичными сигналами.A device for comparing binary numbers is known (RU patent 2353966, class G06F7/02, 2009), containing logical elements, among which implicators, and performing recognition of relations X>Y, X=Y, X<Y, where X, Y are n-bit binary numbers specified by binary signals.

К причине, препятствующей достижению указанного ниже технического результат при использовании известного устройства сравнения двоичных чисел, относятся схемная сложность и низкое быстродействие, обусловленные тем, что цена по Квайну схемы упомянутого аналога равна и максимальное время задержки распространения сигнала в упомянутом аналоге определяется выражением , где τЭ есть длительность задержки, вносимой логическим элементом.The reason preventing the achievement of the technical result specified below when using the known binary number comparison device is the circuit complexity and low speed, due to the fact that the Quine price of the circuit of the mentioned analogue is equal to and the maximum delay time of signal propagation in the mentioned analog is determined by the expression , where τ E is the duration of the delay introduced by the logic element.

Наиболее близким устройством того же назначения к заявленному изобретению по совокупности признаков является принятое за прототип устройство сравнения двоичных чисел (патент РФ 2298220, кл. G06F7/02, 2007г.), содержащее логические элементы, среди которых элементов И-НЕ, импликаторов, и выполняющее распознавание отношений X>Y, X=Y, X<Y, где X, Y есть n-разрядные двоичные числа, задаваемые двоичными сигналами. При этом цена по Квайну схемы прототипа равна .The closest device for the same purpose to the claimed invention in terms of its features is the binary number comparison device adopted as a prototype (RU Patent 2298220, class G06F7/02, 2007), containing logical elements, among which NAND elements, implicators, and performing recognition of relations X>Y, X=Y, X<Y, where X, Y are n-bit binary numbers specified by binary signals. In this case, the Quine price of the prototype scheme is equal to .

К причине, препятствующей достижению указанного ниже технического результата при использовании прототипа, относится низкое быстродействие, обусловленное тем, что максимальное время задержки распространения сигнала в прототипе определяется выражением, где τЭ есть длительность задержки, вносимой логическим элементом.The reason preventing the achievement of the technical result specified below when using the prototype is the low speed, due to the fact that the maximum delay time of signal propagation in the prototype is determined by the expression , where τ E is the duration of the delay introduced by the logic element.

Техническим результатом изобретения является повышение быстродействия при сохранении функциональных возможностей и цены по Квайну прототипа.The technical result of the invention is an increase in performance while maintaining the functional capabilities and price according to Quine of the prototype.

Указанный технический результат при осуществлении изобретения достигается тем, что в устройстве сравнения двоичных чисел, содержащем импликаторов и элементов И-НЕ, которые сгруппированы в n групп так, что j-я () группа содержит два импликатора, а k-я () группа дополнительно содержит два элемента И-НЕ, в первой группе неинвертирующий и инвертирующий входы первого импликатора соединены соответственно с инвертирующим и неинвертирующим входами второго импликатора, первым и (n+1)-ым входами устройства сравнения двоичных чисел, выход i-го () импликатора первой группы подключен к второму входу i-го элемента И-НЕ второй группы, особенность заключается в том, что в k-ю группу дополнительно введены два элемента И-НЕ, в k-й группе выход i-го импликатора, подключенного неинвертирующим входом к инвертирующему входу (3-i)-го импликатора, и выход i-го элемента И-НЕ, подключенного вторым входом к первому входу (5-i)-го элемента И-НЕ, соединены соответственно с первым входом i-го и вторым входом (i+2)-го элементов И-НЕ, выход (i+2)-го элемента И-НЕ предыдущей группы подключен к первому входу (5-i)-го элемента И-НЕ последующей группы, а выход (i+2)-го элемента И-НЕ n-й группы является i-ым выходом устройства сравнения двоичных чисел, k-й и (n+k)-й входы которого образованы соответственно неинвернтирующими входами первого и второго импликаторов k-й группы.The specified technical result in the implementation of the invention is achieved by the fact that in the device for comparing binary numbers, containing implicators and NAND gates that are grouped into n groups such that the j-th ( ) the group contains two implicators, and the k-th ( ) the group additionally contains two AND-NOT elements, in the first group the non-inverting and inverting inputs of the first implicator are connected respectively to the inverting and non-inverting inputs of the second implicator, the first and (n+1)th inputs of the binary number comparison device, the output of the i-th ( ) the implicator of the first group is connected to the second input of the i-th AND-NOT element of the second group, the peculiarity is that two AND-NOT elements are additionally introduced into the k-th group, in the k-th group the output of the i-th implicator, connected by the non-inverting input to the inverting input of the (3-i)-th implicator, and the output of the i-th AND-NOT element, connected by the second input to the first input of the (5-i)-th AND-NOT element, are connected respectively to the first input of the i-th and the second input of the (i+2)-th AND-NOT elements, the output of the (i+2)-th AND-NOT element of the previous group is connected to the first input of the (5-i)-th AND-NOT element of the subsequent group, and the output of the (i+2)-th AND-NOT element of the n-th group is the i-th output of the binary number comparison device, the k-th and (n+k)-th inputs of which are formed respectively by the non-inverting inputs of the first and second implicators of the k-th groups.

На чертеже представлена схема предлагаемого устройства сравнения двоичных чисел.The drawing shows a diagram of the proposed binary number comparison device.

Устройство сравнения двоичных чисел содержит импликаторов 111, 121, …, 11n, 12n и элементов И-НЕ 212, 222, 232, 242, …, 21n, 22n, 23n, 24n, причем все импликаторы и элементы И-НЕ сгруппированы в n групп так, что j-я группа содержит импликаторы 11j, 12j, а k-я () группа дополнительно содержит элементы 21k, 22k, 23k, 24k, неинвертирующий и инвертирующий входы импликатора 111 соединены соответственно с инвертирующим и неинвертирующим входами импликатора 121, первым и (n+1)-ым входами устройства сравнения двоичных чисел, выход импликатора 1i1 подключен к второму входу элемента 2i2, выход импликатора 1ik, подключенного неинвертирующим входом к инвертирующиму входу импликатора 1(3-i)k, и выход элемента 2ik, подключенного вторым входом к первому входу элемента 2(5-i)k, соединены соответственно с первым входом элемента 2ik и вторым входом элемента 2(i+2)k, выход элемента 2(i+2)r подключен к первому входу элемента 2(5-i)(r+1), а выход элемента 2(i+2)n является i-ым выходом устройства сравнения двоичных чисел, k-й и (n+k)-й входы которого образованы соответственно неинвертирующими входами импликаторов 11k и 12k.The binary number comparator contains implicators 1 11 , 1 21 , …, 1 1n , 1 2n and NAND gates 2 12 , 2 22 , 2 32 , 2 42 , …, 2 1n , 2 2n , 2 3n , 2 4n , where all the implicators and NAND gates are grouped into n groups so that the j-th the group contains implicators 1 1j , 1 2j , and the k-th ( ) the group additionally contains elements 2 1k , 2 2k , 2 3k , 2 4k , the non-inverting and inverting inputs of the implicator 1 11 are connected respectively to the inverting and non-inverting inputs of the implicator 1 21 , the first and (n+1)th inputs of the binary number comparison device, the output of the implicator 1 i1 connected to the second input of element 2 i2 , the output of implicator 1 ik , connected by the non-inverting input to the inverting input of implicator 1 (3-i)k , and the output of element 2 ik , connected by the second input to the first input of element 2 (5-i)k , are connected respectively to the first input of element 2 ik and the second input of element 2 (i+2)k , the output of element 2 (i+2)r connected to the first input of element 2 (5-i)(r+1) , and the output of element 2 (i+2)n is the i-th output of the binary number comparison device, the k-th and (n+k)-th inputs of which are formed by the non-inverting inputs of implicators 1 1k and 1 2k , respectively.

Работа предлагаемого устройства сравнения двоичных чисел осуществляется следующим образом. На его первый, …, n-й и (n+1)-й,…,(2×n)-й входы подаются соответственно произвольные двоичные сигналы xn-1,…,x0∈{0,1} и yn-1,…,y0∈{0,1}, которые задают подлежащие сравнению n-разрядные двоичные числа X=xn-1…x0, Y=yn-1…y0 (xn-1, yn-1 и x0, y0 определяют значения старших и младших разрядов соответственно). В представленной ниже таблице приведены значения формируемых элементами 23k, 24k () сигналов z1k, z2k, полученные для всех возможных наборов значений сигналов z1(k-1), z2(k-1), xn-k, yn-k, причем , .The proposed binary number comparison device operates as follows. Its first, …, n-th and (n+1)-th,…,(2×n)-th inputs are supplied with arbitrary binary signals x n-1 ,…,x 0 ∈{0,1} and y n-1 ,…,y 0 ∈{0,1}, which specify the n-bit binary numbers to be compared X=x n-1 …x 0 , Y=y n-1 …y 0 (x n-1 , y n-1 and x 0 , y 0 determine the values of the senior and junior digits, respectively). The table below shows the values formed by the elements 2 3k , 2 4k ( ) signals z 1k , z 2k , obtained for all possible sets of signal values z 1(k-1) , z 2(k-1) , x nk , y nk , and , .

z1(k-1) z 1(k-1) z2(k-1) z 2(k-1) xn-k x nk yn-k y nk z1k from 1k z2k from 2k 00 11 00 00 00 11 00 11 00 11 00 11 00 11 11 00 00 11 00 11 11 11 00 11 11 00 00 00 11 00 11 00 00 11 11 00 11 00 11 00 11 00 11 00 11 11 11 00 11 11 00 00 11 11 11 11 00 11 00 11 11 11 11 00 11 00 11 11 11 11 11 11

Анализ данных, приведенных в таблице, позволяет заключить, что z1k=0 (z2k=0), когда z1(k-1)=0 (z2(k-1)=0) или z1(k-1)=z2(k-1)=1 и xn-k<yn-k (z1(k-1)=z2(k-1)=1 и yn-k<xn-k), и что z1k=1 (z2k=1), когда z1(k-1)=1 и z2(k-1)=0 (z2(k-1)=1 и z1(k-1)=0) или z1(k-1)=z2(k-1)=1 и xn-k≥yn-k (z1(k-1)=z2(k-1)=1 и yn-k≥xn-k). Дополнительно отметим, что z11=0 (z21=0), когда xn-1<yn-1 (yn-1<xn-1), и что z11=1 (z21=1), когда xn-1≥yn-1 (yn-1≥xn-1). Таким образом, если X>Y либо X=Y либо X<Y, то z1n=1, z2n=0 либо z1n=z2n=1 либо z1n=0, z2n=1 соответственно.An analysis of the data presented in the table allows us to conclude that z 1k =0 (z 2k =0) when z 1(k-1) =0 (z 2(k-1) =0) or z 1(k-1) =z 2(k-1) =1 and x nk <y nk (z 1(k-1) =z 2(k-1) =1 and y nk <x nk ), and that z 1k =1 (z 2k =1) when z 1(k-1) =1 and z 2(k-1) =0 (z 2(k-1) =1 and z 1(k-1) =0) or z 1(k-1) =z 2(k-1) =1 and x nk ≥y nk (z 1(k-1) =z 2(k-1) =1 and y nk ≥x nk ). Additionally, note that z 11 =0 (z 21 =0) when x n-1 <y n-1 (y n-1 <x n-1 ), and that z 11 =1 (z 21 =1) when x n-1 ≥y n-1 (y n-1 ≥x n-1 ). Thus, if X>Y or X=Y or X<Y, then z 1n =1, z 2n =0 or z 1n =z 2n =1 or z 1n =0, z 2n =1, respectively.

Вышеизложенные сведения позволяют сделать вывод, что предлагаемое устройство сравнения двоичных чисел выполняет распознавание отношений X>Y, X=Y, X<Y, где X, Y есть n-разрядные двоичные числа, задаваемые двоичными сигналами, и обладает более высоким по сравнению с прототипом быстродействием, поскольку максимальное время задержки распространения сигнала в предлагаемом устройстве определяется выражением , где τЭ есть длительность задержки, вносимой логическим элементом. При этом цена по Квайну схемы предлагаемого устройства равна .The above information allows us to conclude that the proposed device for comparing binary numbers performs recognition of the relations X>Y, X=Y, X<Y, where X, Y are n-bit binary numbers specified by binary signals, and has a higher speed compared to the prototype, since the maximum delay time of signal propagation in the proposed device is determined by the expression , where τ E is the duration of the delay introduced by the logic element. In this case, the Quine price of the proposed device circuit is equal to .

Claims (1)

Устройство сравнения двоичных чисел, содержащее импликаторов и элементов И-НЕ, которые сгруппированы в n групп так, что j-я () группа содержит два импликатора, а k-я () группа дополнительно содержит два элемента И-НЕ, причем в первой группе неинвертирующий и инвертирующий входы первого импликатора соединены соответственно с инвертирующим и неинвертирующим входами второго импликатора, первым и (n+1)-м входами устройства сравнения двоичных чисел, а выход i-го () импликатора первой группы подключен к второму входу i-го элемента И-НЕ второй группы, отличающееся тем, что в k-ю группу дополнительно введены два элемента И-НЕ, в k-й группе выход i-го импликатора, подключенного неинвертирующим входом к инвертирующему входу (3-i)-го импликатора, и выход i-го элемента И-НЕ, подключенного вторым входом к первому входу (5-i)-го элемента И-НЕ, соединены соответственно с первым входом i-го и вторым входом (i+2)-го элементов И-НЕ, выход (i+2)-го элемента И-НЕ предыдущей группы подключен к первому входу (5-i)-го элемента И-НЕ последующей группы, а выход (i+2)-го элемента И-НЕ n-й группы является i-м выходом устройства сравнения двоичных чисел, k-й и (n+k)-й входы которого образованы соответственно неинвертирующими входами первого и второго импликаторов k-й группы.A binary number comparison device comprising implicators and NAND gates that are grouped into n groups such that the j-th ( ) the group contains two implicators, and the k-th ( ) the group additionally contains two AND-NOT elements, where in the first group the non-inverting and inverting inputs of the first implicator are connected respectively to the inverting and non-inverting inputs of the second implicator, the first and (n+1)th inputs of the binary number comparison device, and the output of the i-th ( ) the implicator of the first group is connected to the second input of the i-th AND-NOT element of the second group, characterized in that two AND-NOT elements are additionally introduced into the k-th group, in the k-th group the output of the i-th implicator, connected by the non-inverting input to the inverting input of the (3-i)-th implicator, and the output of the i-th AND-NOT element, connected by the second input to the first input of the (5-i)-th AND-NOT element, are connected respectively to the first input of the i-th and the second input of the (i+2)-th AND-NOT elements, the output of the (i+2)-th AND-NOT element of the previous group is connected to the first input of the (5-i)-th AND-NOT element of the subsequent group, and the output of the (i+2)-th AND-NOT element of the n-th group is the i-th output of the binary number comparison device, the k-th and (n+k)-th inputs of which are formed respectively by the non-inverting inputs of the first and second implicators of the k-th group.
RU2024133319A 2024-11-07 Device for comparing binary numbers RU2841043C1 (en)

Publications (1)

Publication Number Publication Date
RU2841043C1 true RU2841043C1 (en) 2025-06-02

Family

ID=

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5515306A (en) * 1995-02-14 1996-05-07 Ibm Processing system and method for minimum/maximum number determination
JP2826430B2 (en) * 1993-01-05 1998-11-18 日本電気株式会社 Binary number comparison circuit
RU2298220C1 (en) * 2005-12-02 2007-04-27 Государственное образовательное учреждение высшего профессионального образования "Ульяновский государственный технический университет" Device for comparing binary numbers
RU2361266C1 (en) * 2008-01-22 2009-07-10 Государственное образовательное учреждение высшего профессионального образования "Ульяновский государственный технический университет" Binary number comparator
RU2393526C2 (en) * 2008-05-19 2010-06-27 Закрытое акционерное общество "ИВЛА-ОПТ" Comparator of binary numbers

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2826430B2 (en) * 1993-01-05 1998-11-18 日本電気株式会社 Binary number comparison circuit
US5515306A (en) * 1995-02-14 1996-05-07 Ibm Processing system and method for minimum/maximum number determination
RU2298220C1 (en) * 2005-12-02 2007-04-27 Государственное образовательное учреждение высшего профессионального образования "Ульяновский государственный технический университет" Device for comparing binary numbers
RU2361266C1 (en) * 2008-01-22 2009-07-10 Государственное образовательное учреждение высшего профессионального образования "Ульяновский государственный технический университет" Binary number comparator
RU2393526C2 (en) * 2008-05-19 2010-06-27 Закрытое акционерное общество "ИВЛА-ОПТ" Comparator of binary numbers

Similar Documents

Publication Publication Date Title
US11915116B2 (en) Arithmetic apparatus for a neural network
US3209328A (en) Adaptive recognition system for recognizing similar patterns
RU2841043C1 (en) Device for comparing binary numbers
RU2363037C1 (en) Device for comparing binary numbers
RU2649296C1 (en) Comparator of binary numbers
RU2393526C2 (en) Comparator of binary numbers
RU2298220C1 (en) Device for comparing binary numbers
US3701143A (en) Walsh function generator
RU2677371C1 (en) Binary numbers comparison device
RU2790010C1 (en) Device for selecting the smaller of binary numbers
RU2363035C1 (en) Device for comparing binary numbers
RU2300135C1 (en) Device for selecting the greater one of two binary numbers
RU2843084C1 (en) Comparator of binary numbers
RU2787333C1 (en) Binary number comparator
RU2363034C1 (en) Device for selecting greater of two binary numbers
RU2791460C1 (en) Device for selection of the bigger of binary numbers
RU2353966C1 (en) Binary digits comparison device
Jain et al. Sparsity-constrained community-based group testing
RU2789747C1 (en) Device for selection of the bigger from binary numbers
RU2757832C1 (en) Binary number comparator
RU2843505C1 (en) Binary number selector
RU2757829C1 (en) Binary number comparing apparatus
RU2300136C1 (en) Device for sorting binary numbers
RU2789723C1 (en) Device for selecting the smaller of two binary numbers
RU2710872C1 (en) Parallel single signal counter