RU2324971C1 - Binary data comparator - Google Patents
Binary data comparator Download PDFInfo
- Publication number
- RU2324971C1 RU2324971C1 RU2007106468/09A RU2007106468A RU2324971C1 RU 2324971 C1 RU2324971 C1 RU 2324971C1 RU 2007106468/09 A RU2007106468/09 A RU 2007106468/09A RU 2007106468 A RU2007106468 A RU 2007106468A RU 2324971 C1 RU2324971 C1 RU 2324971C1
- Authority
- RU
- Russia
- Prior art keywords
- group
- output
- elements
- input
- exclusive
- Prior art date
Links
Landscapes
- Logic Circuits (AREA)
Abstract
Description
Изобретение относится к вычислительной технике и может быть использовано для построения средств автоматики, функциональных узлов систем управления и др.The invention relates to computer technology and can be used to build automation, functional units of control systems, etc.
Известны устройства сравнения двоичных чисел (см., например, нижний рис. в табл.3.5 на стр.103 в книге Справочник по цифровой вычислительной технике. Малиновский Б.Н., Александров В.Я., Боюн В.П. и др. / Под ред. Б.Н. Малиновского. Киев: Техника, 1974 г.), реализующие оператор отношения x2≥x1, где х1, х2∈{0,1} - одноразрядные двоичные числа, задаваемые двоичными сигналами.Known devices for comparing binary numbers (see, for example, the lower figure in Table 3.5 on page 103 in the book Handbook of Digital Computing. Malinovsky B.N., Aleksandrov V.Ya., Boyun V.P. and others. / Under the editorship of BN Malinovsky. Kiev: Technique, 1974), realizing the ratio operator x 2 ≥x 1 , where x 1 , x 2 ∈ {0,1} are single-bit binary numbers defined by binary signals.
К причине, препятствующей достижению указанного ниже технического результата при использовании известных устройств сравнения двоичных чисел, относится ограниченные функциональные возможности, обусловленные тем, что не допускается сравнение четырехразрядных двоичных чисел, задаваемых двоичными сигналами.The reason that impedes the achievement of the technical result indicated below when using known binary number comparison devices is limited functionality, due to the fact that it is not allowed to compare four-digit binary numbers given by binary signals.
Наиболее близким устройством того же назначения к заявленному изобретению по совокупности признаков является принятое за прототип устройство сравнения двоичных чисел (рис.4.18 на стр.163 в книге Бибило П.Н. Основы языка VHDL. М.: Солон-Р, 2000 г.), которое содержит три элемента ИСКЛЮЧАЮЩЕЕ ИЛИ, три элемента ИЛИ, три элемента И-НЕ, два элемента И и реализует оператор отношения А≥В, где А=а3а2а2а1a0 и В=b3b2b1b0 есть четырехразрядные двоичные числа, задаваемые двоичными сигналами a0, ..., b0, ..., b3∈{0,1}.The closest device of the same purpose to the claimed invention in terms of features is the binary number comparison device adopted for the prototype (Fig. 4.18 on page 163 in the book by PN Bibilo, Fundamentals of VHDL. M .: Solon-R, 2000) , which contains three EXCLUSIVE OR elements, three OR elements, three AND elements, two AND elements, and implements the relationship operator A≥B, where A = a 3 a 2 a 2 a 1 a 0 and B = b 3 b 2 b 1 b 0 is four-digit binary numbers defined by binary signals a 0 , ..., b 0 , ..., b 3 ∈ {0,1}.
К причине, препятствующей достижению указанного ниже технического результата при использовании прототипа, относятся ограниченные функциональные возможности, обусловленные тем, что не выполняется реализация оператора отношения А>В.The reason that impedes the achievement of the technical result indicated below when using the prototype is limited functionality due to the fact that the implementation of the operator of the relation A> B is not performed.
Техническим результатом изобретения является расширение функциональных возможностей за счет обеспечения реализации оператора отношения А≥В либо оператора отношения А>В, где А=а3а2a1а0 и В=b3b2b1b0 есть четырехразрядные двоичные числа, задаваемые двоичными сигналами a0, ..., a3, b0, ..., b3∈{0,1}.The technical result of the invention is to expand the functionality by providing the implementation of the operator of the relationship A≥B or the operator of the relationship A> B, where A = a 3 a 2 a 1 a 0 and B = b 3 b 2 b 1 b 0 there are four-digit binary numbers, defined by binary signals a 0 , ..., a 3 , b 0 , ..., b 3 ∈ {0,1}.
Указанный технический результат при осуществлении изобретения достигается тем, что в устройстве сравнения двоичных чисел, содержащем три элемента ИСКЛЮЧАЮЩЕЕ ИЛИ, три элемента ИЛИ, три элемента И-НЕ, два элемента И, которые сгруппированы в три группы так, что каждая группа содержит по одному элементу ИСКЛЮЧАЮЩЕЕ ИЛИ, ИЛИ, И-НЕ, а каждая группа, кроме третьей, дополнительно содержит элемент И, в каждой группе второй вход и выход элемента ИСКЛЮЧАЮЩЕЕ ИЛИ соединены соответственно с вторым входом элемента И-НЕ и объединенными вторым входом элемента ИЛИ, первым входом элемента И-НЕ, в каждой группе, кроме третьей, первый и второй входы элемента И соединены соответственно с выходом элемента ИЛИ и выходом элемента И-НЕ, выход элемента И предыдущей группы подключен к первому входу элемента ИЛИ последующей группы, особенность заключается в том, что в него дополнительно введена аналогичная первой четвертая группа элементов, а в третью группу дополнительно введен элемент И, первый, второй входы и выход которого соединены соответственно с выходом элемента ИЛИ, выходом элемента И-НЕ третьей группы и первым входом элемента ИЛИ четвертой группы, в которой выход элемента И образует выход устройства сравнения двоичных чисел, подсоединенного i-м , (4+i)-м и настроечным входами соответственно к первому, второму входам элемента ИСКЛЮЧАЮЩЕЕ ИЛИ i-й группы и первому входу элемента ИЛИ первой группы.The specified technical result in the implementation of the invention is achieved by the fact that in the binary comparison device containing three elements EXCLUSIVE OR, three elements OR, three elements NAND, two elements AND, which are grouped into three groups so that each group contains one element EXCLUSIVE OR, OR, AND-NOT, and each group, except the third, additionally contains an AND element, in each group the second input and output of the EXCLUSIVE OR element are connected respectively to the second input of the AND-NOT element and the second electronic input connected OR, the first input of the AND-NOT element, in each group, except the third, the first and second inputs of the AND element are connected respectively to the output of the OR element and the output of the AND-NOT element, the output of the AND element of the previous group is connected to the first input of the OR element of the subsequent group, the peculiarity lies in the fact that the fourth element group similar to the first is additionally introduced into it, and the And element is additionally introduced into the third group, the first, second inputs and the output of which are connected respectively to the output of the OR element, the output of the AND gate NOT ith group and the first input of the OR element of the fourth group, in which the output of the AND element forms the output of the binary number comparison device connected by the i-th , (4 + i) -th and tuning inputs respectively to the first, second inputs of the element EXCLUSIVE OR of the i-th group and the first input of the element OR of the first group.
На чертеже представлена схема предлагаемого устройства сравнения двоичных чисел.The drawing shows a diagram of the proposed device for comparing binary numbers.
Устройство сравнения двоичных чисел содержит элементы ИСКЛЮЧАЮЩЕЕ ИЛИ 11, ..., 14, элементы ИЛИ 21, ..., 24, элементы И-НЕ 31, ..., 34, элементы И 41, ..., 44, причем второй вход и выход элемента 1, соединены соответственно с вторым входом элемента 3i и объединенными вторым входом элемента 2i, первым входом элемента 3i, подключенного выходом к второму входу элемента 4i, первый вход которого соединен с выходом элемента 2i, выход элемента 4j подключен к первому входу элемента 2j+1, а выход элемента 44 образует выход устройства сравнения двоичных чисел, i-й, (4+i)-й и настроечный входы которого соединены соответственно с первым, вторым входами элемента 1i и первым входом элемента 21.The binary number comparison device contains the elements EXCLUSIVE OR 1 1 , ..., 1 4 , elements OR 2 1 , ..., 2 4 , elements NAND 3 1 , ..., 3 4 , elements AND 4 1 ,. .., 4 4 , and the second input and output of element 1, connected respectively to the second input of element 3 i and combined by the second input of element 2 i , the first input of element 3 i , connected by the output to the second input of element 4 i , the first input of which is connected to the output of element 2 i , the output of element 4 j connected to the first input of element 2 j + 1 , and the output of element 4 4 forms the output of the binary number comparison device, the i-th, (4 + i) -th and tuning inputs of which are connected respectively to the first, second inputs of element 1 i and the first input element 2 1 .
Работа предлагаемого устройства сравнения двоичных чисел осуществляется следующим образом. На его настроечном входе фиксируется управляющий сигнал z0∈{0,1}. На его первый, ..., четвертый и пятый, ..., восьмой входы подаются соответственно произвольные двоичные сигналы a0, ..., a3 {0,1} и b0, ..., b3∈{0,1}, которые задают подлежащие сравнению четырехразрядные двоичные числа A=a3a2a1a0 и B=b3b2b1b0 (a3, b3 задают значения старших, a а0, b0 - младших разрядов). Тогда сигнал на выходе элемента 4i будет определяться выражениемThe work of the proposed device for comparing binary numbers is as follows. The control signal z 0 ∈ {0,1} is fixed at its tuning input. At its first, ..., fourth and fifth, ..., eighth inputs, arbitrary binary signals a 0 , ..., a 3 {0,1} and b 0 , ..., b 3 ∈ {0 , 1}, which specify the four-digit binary numbers A = a 3 a 2 a 1 a 0 and B = b 3 b 2 b 1 b 0 that are subject to comparison (a 3 , b 3 specify the values of the highest, and a 0 , b 0 , the lower discharges). Then the signal at the output of element 4 i will be determined by the expression
В представленной ниже таблице приведены значения реализуемой выражением (1) функции на всех возможных наборах значений ее аргументов.The table below shows the values of the function implemented by expression (1) on all possible sets of values of its arguments.
Анализ данных, приведенных в таблице, позволяет заключить, что: 1) если ai-1<bi-1 или аi-1=bi-1 и zi-1=0, то zi=0; 2) если аi-1>bi-1 или ai-1=bi-1 и zi-1=1, то zi=1. Таким образом, при z0=1 либо z0=0 на выходе предлагаемого устройства соответственно получимAn analysis of the data given in the table allows us to conclude that: 1) if a i-1 <b i-1 or a i-1 = b i-1 and z i-1 = 0, then z i = 0; 2) if a i-1 > b i-1 or a i-1 = b i-1 and z i-1 = 1, then z i = 1. Thus, when z 0 = 1 or z 0 = 0 at the output of the proposed device, respectively, we obtain
Вышеизложенные сведения позволяют сделать вывод, что предлагаемое устройство сравнения двоичных чисел обладает более широкими по сравнению с прототипом функциональными возможностями, так как обеспечивает реализацию оператора отношения А≥В либо оператора отношения А>В, где A=a3a2a1a0 и В=b3b2b1b0 есть четырехразрядные двоичные числа, задаваемые двоичными сигналами a0, ..., a3, b0, ..., b3∈{0,1}.The above information allows us to conclude that the proposed device for comparing binary numbers has wider functionality compared to the prototype, as it provides the implementation of the ratio operator A≥B or the ratio operator A> B, where A = a 3 a 2 a 1 a 0 and In = b 3 b 2 b 1 b 0 there are four-digit binary numbers defined by the binary signals a 0 , ..., a 3 , b 0 , ..., b 3 ∈ {0,1}.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
RU2007106468/09A RU2324971C1 (en) | 2007-02-20 | 2007-02-20 | Binary data comparator |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
RU2007106468/09A RU2324971C1 (en) | 2007-02-20 | 2007-02-20 | Binary data comparator |
Publications (1)
Publication Number | Publication Date |
---|---|
RU2324971C1 true RU2324971C1 (en) | 2008-05-20 |
Family
ID=39798907
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
RU2007106468/09A RU2324971C1 (en) | 2007-02-20 | 2007-02-20 | Binary data comparator |
Country Status (1)
Country | Link |
---|---|
RU (1) | RU2324971C1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
RU2504825C1 (en) * | 2012-07-20 | 2014-01-20 | Федеральное государственное бюджетное образовательное учреждение высшего профессионального образования "Ульяновский государственный технический университет" | Device for comparing binary numbers |
RU2507564C1 (en) * | 2012-10-26 | 2014-02-20 | Федеральное государственное бюджетное образовательное учреждение высшего профессионального образования "Ульяновский государственный технический университет" | Device for comparing binary numbers |
RU2762621C1 (en) * | 2020-10-28 | 2021-12-21 | федеральное государственное бюджетное образовательное учреждение высшего образования "Ульяновский государственный технический университет" | Binary number comparison device |
RU2791462C1 (en) * | 2022-03-18 | 2023-03-09 | федеральное государственное бюджетное образовательное учреждение высшего образования "Ульяновский государственный технический университет" | Binary number comparator |
-
2007
- 2007-02-20 RU RU2007106468/09A patent/RU2324971C1/en not_active IP Right Cessation
Non-Patent Citations (1)
Title |
---|
БИБИЛО П.Н. Основы языка VHDL. - М.: Солон-Р, 2000, с.163, рис.4.18. * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
RU2504825C1 (en) * | 2012-07-20 | 2014-01-20 | Федеральное государственное бюджетное образовательное учреждение высшего профессионального образования "Ульяновский государственный технический университет" | Device for comparing binary numbers |
RU2507564C1 (en) * | 2012-10-26 | 2014-02-20 | Федеральное государственное бюджетное образовательное учреждение высшего профессионального образования "Ульяновский государственный технический университет" | Device for comparing binary numbers |
RU2762621C1 (en) * | 2020-10-28 | 2021-12-21 | федеральное государственное бюджетное образовательное учреждение высшего образования "Ульяновский государственный технический университет" | Binary number comparison device |
RU2791462C1 (en) * | 2022-03-18 | 2023-03-09 | федеральное государственное бюджетное образовательное учреждение высшего образования "Ульяновский государственный технический университет" | Binary number comparator |
RU2791463C1 (en) * | 2022-03-18 | 2023-03-09 | федеральное государственное бюджетное образовательное учреждение высшего образования "Ульяновский государственный технический университет" | Comparison device for binary numbers |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2294007C1 (en) | Logical transformer | |
RU2287897C1 (en) | Majority module | |
RU2324971C1 (en) | Binary data comparator | |
RU2363037C1 (en) | Device for comparing binary numbers | |
RU2300131C1 (en) | Binary number comparator | |
RU2300133C1 (en) | Device for picking minimal one of two binary numbers | |
RU2298219C1 (en) | Device for selecting maximal one out of two binary numbers | |
RU2629451C1 (en) | Logic converter | |
RU2300137C1 (en) | Majority module | |
RU2704735C1 (en) | Threshold module | |
RU2300135C1 (en) | Device for selecting the greater one of two binary numbers | |
RU2361266C1 (en) | Binary number comparator | |
RU2329530C1 (en) | Binary code comparator device | |
RU2677371C1 (en) | Binary numbers comparison device | |
RU2420789C1 (en) | Device for comparing binary numbers | |
RU2298220C1 (en) | Device for comparing binary numbers | |
RU2621280C1 (en) | Binary number comparator | |
RU2363034C1 (en) | Device for selecting greater of two binary numbers | |
RU2300130C1 (en) | Device for selecting the lesser one of two binary numbers | |
RU2713862C1 (en) | MULTIPLIER MODULO q | |
RU2791464C1 (en) | Device for selecting the smallest of binary numbers | |
RU2789747C1 (en) | Device for selection of the bigger from binary numbers | |
RU2242044C1 (en) | Majority module | |
RU2809211C1 (en) | Binary number comparator | |
RU2398265C2 (en) | Logic module |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | The patent is invalid due to non-payment of fees |
Effective date: 20090221 |