SU1756880A1 - Comparator of binary numbers - Google Patents

Comparator of binary numbers Download PDF

Info

Publication number
SU1756880A1
SU1756880A1 SU904861029A SU4861029A SU1756880A1 SU 1756880 A1 SU1756880 A1 SU 1756880A1 SU 904861029 A SU904861029 A SU 904861029A SU 4861029 A SU4861029 A SU 4861029A SU 1756880 A1 SU1756880 A1 SU 1756880A1
Authority
SU
USSR - Soviet Union
Prior art keywords
elements
comparison
bit
outputs
input
Prior art date
Application number
SU904861029A
Other languages
Russian (ru)
Inventor
Виталий Алексеевич Чистяков
Original Assignee
Завод "Вэм"
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 Завод "Вэм" filed Critical Завод "Вэм"
Priority to SU904861029A priority Critical patent/SU1756880A1/en
Application granted granted Critical
Publication of SU1756880A1 publication Critical patent/SU1756880A1/en

Links

Abstract

Изобретение относитс  к вычислительной технике и автоматике и может быть использовано в устройствах обработки информации. Целью изобретени   вл етс  сокращение аппаратурных затрат. Устройство содержит поразр дные узлы сравнени  1 и группу элементов ИЛИ 2. Каждый поразр дный узел сравнени  содержит элементы И 3. Сравниваемые параллельные коды подаютс  на входы 4 и 5. Результат сравнени  формируетс  на выходах 7. 1 и , 1 табл.The invention relates to computing and automation and can be used in information processing devices. The aim of the invention is to reduce hardware costs. The device contains comparing units 1 and a group of elements OR 2. Each comparing unit contains elements AND 3. Compared parallel codes are fed to inputs 4 and 5. The result of the comparison is formed at outputs 7. 1 and 1 table.

Description

; ;

Ъ $гB $ g

Ьл-1 4/7 5/L-1 4/7 5 /

Л L

СЛ ОSL O

ооoo

Изобретение относитс  к вычислительной технике и автоматике и может быть ис- пользовано в устройствах обработки информации.The invention relates to computing and automation and can be used in information processing devices.

Известно устройство дл  сравнени  чисел , содержащее элемент ИЛИ-НЕ, миого- входовой элемент ИЛИ-НЕ и п узлов анализа (n-основание системы счислени  позиционного кода), каждый из которых включает элементы И, ИЛИ, НЕ.A device for comparing numbers is known, which contains an OR-NOT element, an ORIG-NE input element, and n analysis nodes (an n-base of a position code number system), each of which includes AND, OR, NOT elements.

Недостатком устройства  вл етс  то, что оно работает только с позиционными кодами и не работает с двоичными кодами.The disadvantage of the device is that it only works with positional codes and does not work with binary codes.

Наиболее близким по технической сущности к предлагаемому  вл етс  устройство дл  сравнени  двоичных чисел 2, содержащее п поразр дных узлов сравнени , где п - количество разр дов сравниваемых чисел, две группы элементов И-НЕ, причем каждый поразр дный узел сравнени  содержит три элемента И-НЕ, i-вход первого сравниваемого числа устройства, где I 1,2,...,п, соединен с первыми входами первого и второго элементов И-НЕ 1-го поразр дного узла сравнени , I-вход второго сравниваемого числа устройства соединен с вторым входом первого и первым входом третьего элементов И-НЕ 1-го поразр дного узла сравнени , в каждом поразр дном узле сравнени  выход первого элемента И-НЕ соединен с вторыми входами второго и третьего элементов И-НЕ, выходы второго и третьего элементов И-НЕ 1-го поразр дного узла сравнени , гдеThe closest in technical essence to the present invention is a device for comparing binary numbers 2, containing n bit comparison nodes, where n is the number of bits of the numbers being compared, two groups of AND-NOT elements, each bit comparison node containing three elements AND NOT, the i-input of the first comparative number of the device, where I 1,2, ..., p, is connected to the first inputs of the first and second elements of the NAND of the 1st bit comparison node, the I-input of the second comparative number of the device is connected to the second input of the first and the first input The third AND-NO elements of the 1st bit comparison node, in each bit-comparison comparison node, the output of the first AND – NE element is connected to the second inputs of the second and third AND – NO elements, the outputs of the second and third AND – NE elements of the 1st bit Comparison node, where

I 1,2п-1, соединены с первыми входамиI 1,2p-1, connected to the first inputs

1-х элементов И-НЕ первой и второй групп, первые входы элементов И-НЕ первой и второй групп выполнены инверсными, выходы второго и третьего элементов И-НЕ п-го поразр дного узла сравнени  соединены с вторыми входами всех элементов И-НЕ соответственно второй и первой групп, шинами монтажного ИЛИ, которые  вл ютс  выходами устройства, выходы второго и третьего элементов И-НЕ j-ro поразр дного узла сравнени  Q п-1,...,2,1) соединены с (n+2-j)-MH входами К-х элементов И-НЕ соответственно второй и первой групп, где К 1 I-NOT elements of the first and second groups, the first inputs of the I-NOT elements of the first and second groups are made inverse, the outputs of the second and third elements of the N-NI of the nth comparison node are connected to the second inputs of all AND-NES elements, respectively the second and first groups, mounting OR buses, which are the outputs of the device, the outputs of the second and third AND – HE elements j-ro of the bit comparison node Q n-1, ..., 2,1) are connected to (n + 2- j) -MH inputs Kx elements AND-NOT, respectively, the second and first groups, where K

1,2J-1.1.2J-1.

Недостатком данного устройства  вл етс  сложность по Квайну дл  п 8, равна  118.The disadvantage of this device is Quine's complexity for n 8, equal to 118.

Целью изобретени   вл етс  сокращение аппаратурных затрат.The aim of the invention is to reduce hardware costs.

Поставленна  цель достигаетс  тем, что в устройство дл  сравнени  двоичных чисел , содержащее п поразр дных узлов сравнени , где п - количество разр дов сравниваемых чисел причем каждый поразр дный узел сравнени  содержит три элемента И. 1-й вход первого сравниваемогоThe goal is achieved by the fact that a device for comparing binary numbers, containing n bitwise comparison nodes, where n is the number of digits of the numbers being compared, each bitwise comparison node containing three elements I. The 1st input of the first compared

числа устройства, где i 1.2п соединенdevice numbers where i 1.2p is connected

с первыми входами первого и второго элементов И i-ro поразр дного узла сравнени . 1-й вход второго сравниваемого числа устройства соединен с вторым входом первого и первым входом третьего элементов И 1-го поразр дного узла сравнени , в каждом поразр дном узле сравнени  инверсный выход первого элемента И соединен с вторымиwith the first inputs of the first and second elements AND i-ro of the bitwise comparison node. The 1st input of the second compared number of the device is connected to the second input of the first and the first input of the third element AND the 1st bit comparison node, in each bit comparison node the inverse output of the first element I is connected to the second

0 входами второго и третьего элементов И, инверсные выходы второго и третьего элементов И п-го поразр дного узла сравнени   вл ютс  выходами устройства, введена группа элементов ИЛИ, причем инверсные0 the inputs of the second and third elements AND, the inverse outputs of the second and third elements AND the n-th bit comparison node are the outputs of the device, the group of elements OR is introduced, and the inverse

5 выходы вторых элементов И всех поразр дных узлов сравнени  объединены по монтажному ИЛИ, инверсные выходы третьих элементов И всех поразр дных узлов сравнени  объединены по монтажному ИЛИ,5 outputs of the second elements AND of all bit comparison nodes are combined by mounting OR, inverse outputs of the third elements AND of all bit comparison nodes are combined by mounting OR,

0 пр мые выходы второго и третьего элементов И К-ro поразр дного узла сравнени , где0 direct outputs of the second and third elements AND K-ro of a bitwise comparison node, where

К - 1,2п-1, соединены соответственно сK - 1.2p-1, connected respectively to

первым и вторым входами К-го элемента ИЛИ группы, инверсный выход которого со5 единен через схемы монтажных ИЛИ с инверсным выходом первого элемента И (К-Н)-го поразр дного узла сравнени , пр мой выход 1-го элемента ИЛИ группы, где I 1,2п-2, подключен к третьему входуthe first and second inputs of the K-th element OR group, the inverse output of which is co5 through the mounting OR circuits with the inverse output of the first AND (C – H) th bit comparison node, the direct output of the 1st OR element, where I 1,2p-2, connected to the third input

0 (1+1)-го элемента ИЛИ группы,0 (1 + 1) -th element OR group,

На чертеже представлена функциональна  схема предложенного устройства.The drawing shows a functional diagram of the proposed device.

Устройство содержит поразр дные узлы 1i...n сравнени , группу элементов ИЛИThe device contains comparison units 1i ... n, a group of elements OR

5 2i...n-i, каждый поразр дный узел сравнени  1 i...n сравнени  состоит из элементов И 31...3, входов 4i...n и 51.. п, МОНТАЖНОЕ ИЛИ 61 и 62 и выходов 7i и 72. Входы 4i. n и 5i...n подключены через элементы И 32 и Зз,5 2i ... ni, each parallel comparison node 1 i ... n comparison consists of AND 31 ... 3 elements, inputs 4i ... n and 51 .. n, INSTALLING OR 61 and 62 and outputs 7i and 72. Inputs 4i. n and 5i ... n are connected through the elements of And 32 and 3h,

0 МОНТАЖНОЕ ИЛИ 6i и 62 к выходам 7i и 2. Входы элементов 3 подключены к входам 4i...n и 5i...n, выходы - к входам элементов И 32 и 33. пр мые выходы которых подключены к входам соответствующих элементов0 INSTALLATION OR 6i and 62 to outputs 7i and 2. The inputs of elements 3 are connected to inputs 4i ... n and 5i ... n, the outputs to inputs of elements AND 32 and 33. The direct outputs of which are connected to the inputs of the corresponding elements

5 ИЛИ 2i...n-i группы, инверсные выходы которых через МОНТАЖНОЕ ИЛИ соединены с инверсными выходами элементов И 3 Пр мой выход элемента ИЛИ 2i через элементы ИЛИ 22...п-2 подключен к входу элемента5 OR 2i ... n-i groups, the inverse outputs of which through the INSTALLATION OR are connected to the inverse outputs of the elements AND 3 The direct output of the element OR 2i through the elements OR 22 ... n-2 is connected to the input of the element

0 ИЛИ 2ц-1 группы,0 OR 2ts-1 groups

Устройство работает следующим образом ,The device works as follows

При равенстве чисел на входах 4 и 5 (Аа В 1), все поразр дные узлы 1With the equality of the numbers at inputs 4 and 5 (Aa B 1), all digits of nodes 1

5 сравнени  формируют на инверсных выходах элементов И 32 и И Зз уровни сигнала логической 1, которые проход т на выходы 7i и 72. При этом на пр мых выходах элементов ИЛИ 2 - уровни логических О, а на инверсных - уровни логических 1.5 comparisons are formed at the inverse outputs of the AND 32 and I C3 elements of the signal levels of logical 1, which pass to the outputs 7i and 72. At the same time, at the direct outputs of the OR 2 elements, the levels are logical O, and at the inverse ones, the levels of logical 1.

Если какой-либо разр д числа А, например , подаваемый на вход 42, меньше или больше такого же разр да числа В, подана- емого на вход 52, то на инверсных выходах элементов И 32 - уровень 1 или О, И Зз - уровень О или 1 узла 12If any digit of the number A, for example, supplied to the input 42, is less than or greater than the same bit of the number B, fed to the input 52, then the inverse outputs of the elements And 32 are level 1 or O, and Z3 is the level Oh or 1 node 12

Результат сравнени  в старшем разр де чисел А и В (входы 4i и 5i) по отношению к остальным младшим разр дам  вл етс  преобладающим при неравенстве чисел. При наличии неравенства в старшем разр де чисел А и В на инверсном выходе элемента И 32 или И Зз узла сравнени  1i по вл етс  уровень логического О, который поступает на вход 1г или 7i. При этом сигнал логической 1 пр мого выхода элемента И 32 или Зз проходит через элементы ИЛИ 2i...n-i. На инверсных выходах элементов ИЛ И 2i...n-i формируютс  уровни логических О, которые поступают на входы элементов И 32 и И Зз соседних младших узлов 1 сравнени  и осуществл ют блокировку сравнени  этих младших разр дов сравниваемых чисел.The result of the comparison in the higher order of the numbers A and B (inputs 4i and 5i) with respect to the rest of the younger categories is predominant with the inequality of the numbers. If there is an inequality in the higher order of the numbers A and B, the inverse output of the element AND 32 or I of the comparison node 1i appears the level of logical O, which is fed to the input 1g or 7i. In this case, the signal of logical 1 direct output of the element AND 32 or Z3 passes through the elements OR 2i ... n-i. At the inverse outputs of the IL-And 2i ... n-i elements, logical O levels are formed, which are fed to the inputs of the AND 32 and I of the neighboring lower comparison nodes 1 and block the comparison of these low-order bits of the numbers being compared.

Состо ние элементов устройства при сравнении различных кодов А и В приведены в таблице.The state of the elements of the device when comparing different codes A and B is shown in the table.

Следовательно, на выходах 7i и 2 при А В - код 11, при А В - код 10 и при А В - код 01. Таким образом, предло- женное устройство сохран ет функции известного и содержит меньшее количество оборудовани .Therefore, at outputs 7i and 2, when A B is code 11, when A B is code 10 and when A B is code 01. Thus, the proposed device retains the functions of the known and contains less equipment.

Claims (1)

Формула изобретени Invention Formula Устройство дл  сравнени  двоичных чи- сел, содержащее п поразр дных узлов сравнени , где п - количество р зр дов гр IHHH ваемых чисел, причем каждый поразр дный узел сравнени  содержит три -элемента 11, 1-й вход первого сравниваемого числ  устA device for comparing binary numbers, containing n bitwise comparison nodes, where n is the number of digits of the IHHH divisible numbers, each bitwise comparison node containing three 11 elements, the 1st input of the first compared numbers set ройства, где I 1,2п, соединен с первымиroevstva, where I 1,2p, is connected to the first входами первого и второго элементов И Но поразр дного узла сравнени , 1-й вход вто рого сравниваемого числа устройства соединен с вторым входом первого и первым входом третьего элементов И 1-го поразр дного узла сравнени , в каждом поразр дном узле сравнени  инверсный выход первого элемента И соединен с вторыми входами второго и третьего элементов И, инверсные выходы второго и третьего элементов И n-го поразр дного узла сравнени   вл ютс  выходами устройства, отличающеес  тем. что, с целью сокращени  аппаратурных затрат, в него введена группа элементов ИЛИ, причем инверсные выходы вторых элементов И всех поразр дных узлов сравнени  объединены по монтажному ИЛИ, инверсные выходы третьих элементов И всех поразр дных узлов сравнени  объединены по монтажному ИЛИ, пр мые выходы второго и третьего элементов И К-го поразр дного узла сравнени , где К 1,2п-1, соединены соответственно с первым и вторым входами К-го элемента ИЛИ группы, инверсный выход которого соединен через схемы монтажных ИЛИ с инверсным выходом первого элемента И (R+1)-ro поразр дного узла сравнени , пр мой выход 1-го элемента ИЛИ группы, где the inputs of the first and second elements AND But of the bit comparison node, the 1st input of the second compared number of the device is connected to the second input of the first and the first input of the third elements AND 1 of the second comparison node, in each bit comparison node the inverse output of the first element And connected to the second inputs of the second and third elements AND, the inverse outputs of the second and third elements AND the n-th bit comparison node are the outputs of the device, characterized in that. that, in order to reduce hardware costs, a group of OR elements was introduced into it, the inverse outputs of the second elements AND of all bit units of the comparison are combined by mounting OR, the inverse outputs of the third elements AND of all bit sizes of the comparison are combined by mounting OR, and the third element of the IK-th bit of the comparison node, where K is 1,2n-1, are connected respectively to the first and second inputs of the K-th element of the OR group, the inverse output of which is connected via mounting circuits OR to the inverse output of the first th element and (R + 1) -ro node bit-wise comparison, a direct output of the 1st of the OR group, where 1,2п-2, подключен к третьему входу (1+1)го элемента ИЛИ группы.1,2p-2, is connected to the third input of the (1 + 1) th element of the OR group.
SU904861029A 1990-08-20 1990-08-20 Comparator of binary numbers SU1756880A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU904861029A SU1756880A1 (en) 1990-08-20 1990-08-20 Comparator of binary numbers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU904861029A SU1756880A1 (en) 1990-08-20 1990-08-20 Comparator of binary numbers

Publications (1)

Publication Number Publication Date
SU1756880A1 true SU1756880A1 (en) 1992-08-23

Family

ID=21533120

Family Applications (1)

Application Number Title Priority Date Filing Date
SU904861029A SU1756880A1 (en) 1990-08-20 1990-08-20 Comparator of binary numbers

Country Status (1)

Country Link
SU (1) SU1756880A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР № 1128250, кл. G 06 F 7/02, 1983. Авторское свидетельство СССР № 1288688. кл. G 06 F 7/02, 1985. *

Similar Documents

Publication Publication Date Title
SU1756880A1 (en) Comparator of binary numbers
US4651301A (en) Circuit arrangement for performing rapid sortation or selection according to rank
US3794974A (en) Digital flow processor
SU1121669A1 (en) Device for comparing number of ones in binary codes
SU1054825A1 (en) Device for determination of number position on digital axis
SU1128251A1 (en) Device for comparing binary numbers
SU620977A1 (en) Number comparing arrangement
SU822178A1 (en) Binary number comparator
SU1725215A1 (en) Device for sorting numbers
SU1561072A1 (en) Apparatus for comparing lines of the table
SU864288A1 (en) Device for servicing requests
SU1236482A1 (en) Variable priority device
SU1361722A1 (en) Code converter
SU646325A1 (en) Information exchange arrangement
SU1336001A1 (en) Inquiry-priority service device
SU1615721A1 (en) Device for distributing tasks among processors
SU1043631A1 (en) Comparison device
SU1112367A1 (en) Device for simulating digital information transmission systems
SU1083178A1 (en) Information output device
SU1363209A1 (en) Priority device
SU1171779A1 (en) Device for determining extreme number from n numbers
SU1444748A1 (en) Device for comparing numbers
SU1397933A1 (en) Device for permutation searching
SU943707A1 (en) Device for sorting numbers
SU1624476A1 (en) Computer system exchange direction selector