SU1040484A1 - Device for comparing binary numbers - Google Patents

Device for comparing binary numbers Download PDF

Info

Publication number
SU1040484A1
SU1040484A1 SU823399251A SU3399251A SU1040484A1 SU 1040484 A1 SU1040484 A1 SU 1040484A1 SU 823399251 A SU823399251 A SU 823399251A SU 3399251 A SU3399251 A SU 3399251A SU 1040484 A1 SU1040484 A1 SU 1040484A1
Authority
SU
USSR - Soviet Union
Prior art keywords
node
transfer
outputs
output
inputs
Prior art date
Application number
SU823399251A
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 SU823399251A priority Critical patent/SU1040484A1/en
Application granted granted Critical
Publication of SU1040484A1 publication Critical patent/SU1040484A1/en

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

УСТРОЙСТВО ДЛЯ СРАВНЕНИЯ ДВОИЧНЫХ ЧИСЕЛ, содержащее п поразр дных узлов сравнени ,где п - количество разр дов сравниваемых чисел,и п + 1 узлов переноса, причем каждый поразр дный узел сравнени  содержит первый третий элемент И-НЕ, первый вход поразр дного узла сравнени  соединен с входами первого и второго элементов И-НЕ , вторрй - с входами первого и третьего элемейтов И-НЕ, выход первого элемента И-НЕ соединен с входами второго и третьего элементов И-НЕ, выходы которых  вл ютс  первым и вторым выходами поразр дного, узла срав- нени  соответственно, каждый j-тый ,узел переноса (где j-22+l, 0 п/2. целое число) содержит первый и второй элементы И-НЕ, выходы которых  вл ютс  первым и вторым выходами узла переноса соответственно, каждый (j+l)-й у-зел перенбса содержит элемент И-НЕ, выход которого  вл етс , (Первым выходом узла переноса, входы первого эЯемента И-НЕ j-того узла подключены к первому ВЕЛходу (j-l)-ro узла переноса и к первым выходам (j-l)-ro и j-Toro поразр дных узлов сравнени , входы второго элемента И-НЕ j-Toro узла переноса подключены к второму выходу (j-l)-ro узла переноса и к вторым выходам (j-l)-ro и J-того поразр дных узлов сравнени , входы элемента И-НЕ (j+17-го узла переноса подключены к первому выходу j-Toro узла nepesHoca и к вторым выходам j-Toro и (j4-l)-ro поразр дных узлов сравнени f первый и второй вхо W ды переноса устройства соединены со-ответственно с входами первого и вто рого элементов И-НЕ первого узла пе-реноса ., перэый и второй выходы (j+1)го уз.ла переноса  вл ютс  первым и вторым выходами устройства соответственно , Отличающеес   тем, о ifi о 4; что, с целью упрощени  схемы, каждый (j+l)-й узел переноса содеЕ жит элемент НЕ, вход которого пс1дключен к второму выходу j-того узла переноса, а выход  вл етс  вторым выходом (j-H)-ro узла переноса. X 4;A DEVICE FOR COMPARISON OF BINARY NUMBERS containing n bit comparison nodes, where n is the number of digits of numbers being compared, and n + 1 transfer nodes, each bit comparison node containing the first third IS-NOT element, the first input of the bit comparison node is connected with the inputs of the first and second elements NAND, the second with the inputs of the first and third elements NAND, the output of the first element NAND is connected to the inputs of the second and third elements NAND, the outputs of which are the first and second outputs of bitwise, comparison node respectively, every j-th transfer node (where j-22 + l, 0 p / 2 is an integer) contains the first and second AND-NOT elements whose outputs are the first and second outputs of the transfer node, respectively, each (j + l) -th y-green of the transfer field contains an AND-NEA element whose output is, (The first output of the transfer unit, the inputs of the first AND-NO element of the j-th node are connected to the first BELOW (jl) -ro transfer node and to the first outputs (jl) -ro and j-Toro of comparison nodes, the inputs of the second element of the AND-NOT j-Toro transfer unit are connected to the second output (jl) -ro of the transfer unit and to to the other outputs (jl) -ro and J-th of the comparison reference nodes, the inputs of the NAND element (j + 17 of the transfer node are connected to the first j-Toro output of the nepesHoca node and to the second j-Toro and (j4-l ) -ro of the reference nodes f of the first and second transfer ports W of the device are connected, respectively, with the inputs of the first and second elements of AND-NOT of the first transfer node, the first and second outputs (j + 1) of the second node. Carriers are the first and second outputs of the device, respectively, wherein about 4; that, in order to simplify the scheme, each (j + l) -th transfer node contains an NOT element, the input of which is connected to the second output of the jth transfer node, and the output is the second output of the (j-H) -ro transfer node. X 4;

Description

Изобретение относитс  к автоматике и вычислителоиой технике и пред (назначено дл  сравнени  чисел, представленных параллельными кодами. Известно устройство дл  сравнени  двоичных чисел, содержащее п последовательно соединенных  чеек, кажда  из которых состоит из элементов И-НЕ U . Недостатком этого устройства  вл етс  низкое быстродействие, обусло ленное наличием в каждой цепи перено са 2 п элементов И-НЕ, где п - число разр дов сравниваемых чисел и сложность , обусловленна  наличием семи логических элементов на каждый сравниваемый .разр д. Наиболее близким по технической сущности к предлагаемому  вл етс  устройство дл  сравнени  двоичных чи сел,, содержащее п поразр дных узлов сравнени , где п - число разр дов в сравниваемых числах и (п-И) узлов пе ;реноса, причем каждый поразр дный |узел сравнени  состоит из трех элементов И-НЕ, а каждый узел переноса содержит два элемента И-Ш 2. Недостаток этого устройства - избыточность схемы переноса, и,, как следствие, сложность устройства. Цель изобретени  - упрощение устройства . Поставленна  цель достигаетс  тем что в устройстве дл  сравнени  двоич ных чисел, содержащем п поразр днЕлс узлов сравнени , где п - число раз РЯДОВ в сравниваемых числах, и (п+1) |узлов переноса, причем каждый поразр дный узел сравнени  содержит первый - третий элемент И-НЕ, первый вход поразр дного} узла сравнени  сое динен с входами первого и второго элементов И-НЕ, второй - входами пер вого и третьего элементов Н-НЕ, выход первого элемента И-НК соединен с входами второго и третьего элементов И-НЕ, выходы которого  вл ютс  первым и вторьм выходами поразр дного узла сравнени  соответственно, каждый j-й узел переноса (где j-21-H - целое число),, содержит пер вый и второй элементы И-НЕ, входы ко торого  вл ютс  первым и вторьм .выхо дами узла переноса соответственно, каикдый (j+l)-й узел переноса содержи элемент И-НЕ,. выход которого  вл етс  первым выходом узла переноса вхо ды первого элемента И-НЕ j-ro узла подключены к первому выходу (j-l)-ro узла переноса и к первым выходам (j-l)-ro и j-ro поразр дных уэлов сравнени  , входы второго элемента И-НЕ j-ro узла переноса подключены к ВЫХОДУ (j-l)-ro уэла переноса и | вторым выходам (j-l)To и j-ro поразр дных узлов сравнени ,.вхо ды элемента И-НЕ (j4-l)-ro узла переноса подключены к первому выходу j-ro узла переноса и к вторым выходам j-ro и (j+l)-ro поразр дных узлов сравнени , первый и второй входы переноса устройства соединены соот- . ветственно с входами первого и второго элементов И-НЕ первого узла переноса , первой и второй выходы (j+l)-ro узла переноса  вл ютс  первым и вторым выходами устройства соответственно , каждый (-ьГ)-й узел переноса содержит элемент НЕ, вход которого подключен к второму выходу j-ro узла переноса, а выход  вл етс  вторым выходом (j+l)-ro узла переноса . . . ., На чертеже приведена схема устройства . . Устройство содержит поразр дные узлы 1, ..., If,, каждый из которых содержит первый-третий элементы И-НЕ 2-4, узлы 5 и 6 переноса, каждый узел 5 содержит первый и второй элементы И-НЕ 7 и 8, каждый узел б содержит элемент И-НЕ 9 и элемент НЕ|10 , входы переноса 11 и 12 устройства ,, выходы 13 и 14 устройства, входы 15i,, 152,... П ir 1б2,,««« 16 поразр дных узлов сравнени , выходы 17ц, 17,... 17, 18;, 182,... 18 W поразр дных узлов сравнени . Устройство работает следующим образом .. Поразр дные узлы 1 сравнени  при равенстве чисел в разр де формируют уровни логической единицы на своих выходах 17 и 18. Если какой-либо разр д первого числа меньше (больше) этого же раэр да второго числа, на выходе 17 соответствующего поразр дного уэла срглнени  формируетс  уровень логического нул  (единицы), а . на втором выходе 18 - уровень логической единицы (нул ). Результат сргшнени  кодов в старшем разр де (т.е. в разр де с большим номером 1,) по отношению к предшествующему разр ду  вл етс  преобладающ При неравенстве кедов. При наличии неравенства в одном из разр дов, на соответствующем выходе 17 или 18 поразр дного узла сравнени  по вл етс  нулевой уровень, который блокирует перенос информации по цепи от входа переноса 11 до.выхода 13 и формирует на выходе 13 предварительный результат. Перенос по цепи от входа переноса 12 до Btjrхода 14 блокируетс  только при нулев1ого уровн  .на выходе 17 поразр дного узла сравнени , при этом на выходах 14 всегда будут различные уровни. При равенстве кодов сравниваемых чисел перенос будет распростран тьс  от входов переноса 11 и 12 до выходов 13 и 14 по обеим цеп м переноса, причем на выходах: 13 и 14 установ тс  одинаковые уровни Интерпретаци  сигналов на выходах устройства 13 и 14 зависит от тогр  вл етс  ли четным или нечетным число разр дов. Так как в конкретном случае число разр дов сравниваемых чисел известно и оно либо четно, либо нечетно, то на выходах устройства всегда можно получить однозначный результат срав-. нени . В таблице приводитс  состо ние |выходов в зависимости от числа раз|р дов и результаты сравнени .The invention relates to automation and computing technology and pre (assigned to compare numbers represented by parallel codes. A device for comparing binary numbers is known, containing n serially connected cells, each of which is made up of AND-NE elements. The disadvantage of this device is low speed , due to the presence in each chain of transfer of 2 n I-NOT elements, where n is the number of digits of the numbers being compared and complexity, due to the presence of seven logical elements for each compared. The closest in technical essence to the present invention is a device for comparing binary numbers of villages, containing n bit comparison nodes, where n is the number of bits in the compared numbers and (n, I) nodes; The single | comparison node consists of three IS-NES elements, and each transfer node contains two I-W elements 2. The disadvantage of this device is the redundancy of the transfer scheme and, as a result, the complexity of the device The purpose of the invention is to simplify the device. The goal is achieved by the fact that in a device for comparing binary numbers containing n times the number of comparison nodes, where n is the number of times of the ROWS in the numbers being compared, and (n + 1) | transfer nodes, each bit comparison node containing the first - third the NAND element, the first input of the same} comparison node is connected to the inputs of the first and second NAND elements, the second - the inputs of the first and third H – NOT elements, the output of the first AND – NK element is connected to the inputs of the second and third AND elements - NOT, whose outputs are first and second by moves of the comparison node, respectively, each j-th transfer node (where j-21-H is an integer), contains the first and second AND-NOT elements, whose inputs are the first and second outputs of the transfer node , the (j + l) -th node of the transfer contains the element AND NOT ,. the output of which is the first output of the transfer unit; the inputs of the first element of the NAND j-ro node are connected to the first output (jl) -ro of the transfer node and to the first outputs (jl) -ro and j-ro of the discharge wells; the inputs of the second element AND-NOT j-ro transfer node connected to the OUTPUT (jl) -ro Wela transfer and | the second outputs (jl) To and j-ro of the comparison reference nodes, the input of the NAND element (j4-l) -ro of the transfer unit are connected to the first output of the j-ro transfer node and to the second outputs j-ro and (j + l) -ro of comparison reference nodes, the first and second transfer inputs of the device are connected respectively. Respectively with the inputs of the first and second elements AND-NOT of the first transfer unit, the first and second outputs (j + l) -ro of the transfer unit are the first and second outputs of the device, respectively, each (-G) -th transfer unit contains the item NOT, the input which is connected to the second output of the j-ro transfer unit, and the output is the second output of the (j + l) -ro transfer unit. . . ., The drawing is a diagram of the device. . The device contains bit units 1, ..., If, each of which contains the first to third elements AND-NOT 2-4, nodes 5 and 6 of the transfer, each node 5 contains the first and second elements AND-NOT 7 and 8, each node b contains an element AND-NOT 9 and an element NOT | 10, the transfer inputs 11 and 12 of the device, the outputs 13 and 14 of the device, the inputs 15i ,, 152, ... P ir 1b2, "" "16 bit nodes comparisons, outlets 17c, 17, ... 17, 18; 182, ... 18 W of comparison bit units. The device works as follows. The bit units 1 of the comparison, when the numbers in the bit are equal, form the levels of the logical unit at their outputs 17 and 18. If any bit of the first number is less (more) than the same rar and second number, the output 17 The corresponding zero bit of srglneni forms the level of logical zero (one), and. at the second exit 18 - the level of the logical unit (zero). The result of the higher code discharge codes (i.e., a discharge with a large number 1,) with respect to the preceding one is predominant. With unequal sneakers. If there is an inequality in one of the bits, a zero level appears at the corresponding output 17 or 18 of the bit comparison node, which blocks the transfer of information along the circuit from transfer input 11 to output 13 and forms a preliminary result at output 13. The chain transfer from transfer input 12 to Btj input 14 is blocked only at zero level. At output 17 of the bit comparison node, there will always be different levels at outputs 14. If the codes of the compared numbers are equal, the transfer will extend from the transfer inputs 11 and 12 to the outputs 13 and 14 along both transfer chains, with the outputs: 13 and 14 having the same levels. Interpretation of the signals at the outputs of the device 13 and 14 depends on whether even or odd number of bits. Since in the specific case the number of bits of the numbers being compared is known and it is either even or odd, then at the outputs of the device one can always get an unambiguous result compared. nothing The table lists the state of | outputs depending on the number of times | row and the results of the comparison.

Прим е ч а н и в X Предлагаемое устройство  вл етс  болёе проспам по сргшнению с протоffNote to and in X The proposed device is more avenues on the basis of protoff

////

fjfj

Г4 - произвольное состо ние. типом, так как имеет (11 n-t-1) элеменjj товходов, а прототип - (12 n-f2),G4 is an arbitrary state. type, as it has (11 n-t-1) elements of inputs, and the prototype is (12 n-f2),

Claims (1)

УСТРОЙСТВО ДЛЯ СРАВНЕНИЯ · ДВОИЧНЫХ ЧИСЕЛ, содержащее η поразрядных узлов сравнения,где η - количество разрядов сравниваемых чисел, и п+1 узлов переноса, причем каждый поразрядный узел сравнения содержит первый третий элемент И-НЕ, первый вход поразрядного узла сравнения соединен с входами первого и второго элементов И-НЕ, второй - с входами первого и третьего’ элементов И-НЕ, выход первого элемента И-НЕ соединен с входами второго и третьего элементов И-НЕ, · выходы которых являются первым и вторым выходами поразрядного, узла сравнения соответственно, каждый J-тый .узел переноса (где j-22+1, 0<£ η/2. целое число) содержит первый и второй элементы И-НЕ, выходы которых являются первым и вторым выходами узла переноса соответственно, каждый (j+l)-ft у-зел перенбса содержит элемент И-НЕ, выход которого является, (первым выходом узла переноса, входы первого эЯемента И-НЕ j-того узла подключены к первому выходу (j-l)-ro узла переноса и к первым выходам (j-l)-ro и j-того поразрядных узлов сравнения, входы второго элемента И-НЕ j-того узла переноса подключены к второму выходу (j-l)-ro узла переноса и к вторым выходам (j-l)-ro и j-того поразрядных узлов сравнения, входы элемента И-НЕ (j+l)F-ro узла переноса подключены к первому выходу j-того узла переноса и к вторым выходам j-того и (j+l)-ro поразрядных <g узлов сравнения, первый и второй — узлов сравнения, первый и второй вхо ды переноса устройства соединены со-- [ΛDEVICE FOR COMPARISON · BINARY NUMBERS, containing η bitwise comparison nodes, where η is the number of bits of compared numbers, and n + 1 transfer nodes, each bitwise comparison node contains the first third AND-NOT element, the first input of the bitwise comparison node is connected to the inputs of the first and the second AND-NOT elements, the second - with the inputs of the first and third AND-NOT elements, the output of the first AND-NOT element is connected to the inputs of the second and third AND-NOT elements, the outputs of which are the first and second outputs of the bitwise comparison node, respectively Naturally, each Jth transfer site (where j-22 + 1, 0 <£ η / 2. Integer) contains the first and second AND-NOT elements, the outputs of which are the first and second outputs of the transfer node, respectively, each (j + l) -ft y-zelan of the transfer contains an AND-NOT element, the output of which is (the first output of the transfer node, the inputs of the first e-element AND NOT of the j-node are connected to the first output (jl) -ro of the transfer node and to the first outputs (jl) -ro and j-bit bit comparison nodes, the inputs of the second AND-NOT element of the j-th transfer node are connected to the second output of (jl) -ro transfer node and to the second you the moves of (jl) -ro and j-bit bit comparison nodes, the inputs of the AND-NOT element (j + l) F-ro of the transfer node are connected to the first output of the j-th transfer node and to the second outputs of the j-th and (j + l ) -ro bitwise <g comparison nodes, the first and second - comparison nodes, the first and second inputs of the device transfer are connected to-- [Λ А»Т*Г· At* t> А A _ -в το пеответственно с входами первого и рого элементов И-НЕ первого узла реноса, первый и второй выходы (j+1)го уз.ла переноса являются первым и вторым выходами устройства соответст-, венно, Отличающеес я тем, что, с целью упрощения схемы, каждый ; (j+lj-й узел переноса содержит элемент НЕ, вход которого подключен к второму выходу j-того узла переноса, а выход является вторым выходом (j+l)-ro узла переноса.A »T * G · At * t> A A _ -to το, respectively, with the inputs of the first and horn elements AND NOT of the first renal node, the first and second outputs of the (j + 1) th transfer node are the first and second outputs of the device Accordingly, distinguished by the fact that, in order to simplify the scheme, each; (the j + ljth transfer node contains an element NOT whose input is connected to the second output of the jth transfer node, and the output is the second output of the (j + l) -ro transfer node. χ>χ>
SU823399251A 1982-02-22 1982-02-22 Device for comparing binary numbers SU1040484A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU823399251A SU1040484A1 (en) 1982-02-22 1982-02-22 Device for comparing binary numbers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU823399251A SU1040484A1 (en) 1982-02-22 1982-02-22 Device for comparing binary numbers

Publications (1)

Publication Number Publication Date
SU1040484A1 true SU1040484A1 (en) 1983-09-07

Family

ID=20998300

Family Applications (1)

Application Number Title Priority Date Filing Date
SU823399251A SU1040484A1 (en) 1982-02-22 1982-02-22 Device for comparing binary numbers

Country Status (1)

Country Link
SU (1) SU1040484A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
1. Авторское свидетельство СССР 631914, к . G 06 F 7/02, 1974. 2. Авторское свидетельство СССР; № 798809, кл. G 06 F 7/02, 1978 (прототип).. *

Similar Documents

Publication Publication Date Title
Mukhopadhyaya et al. Fault-tolerant routing in distributed loop networks
KR960042416A (en) Max value selection circuit
SU1040484A1 (en) Device for comparing binary numbers
SU1195346A1 (en) Device for selecting maximum number
SU1056180A1 (en) Device for comparing parallel codes of numbers
SU1128251A1 (en) Device for comparing binary numbers
Stojmenovic A simple systolic algorithm for generating combinations in lexicographic order
SU763889A1 (en) Device for selecting maximum of n numbers
SU798809A1 (en) Binary number comparing device
SU1631538A2 (en) Device for extremal number selection from n-bit binary numbers
SU1376079A1 (en) Number-comparing device
RU1774377C (en) Associative memory
SU1156060A1 (en) Device for selecting extremum number
SU1104672A2 (en) Device for checking truth of transmitting information by quasiternary code
SU1543406A2 (en) Device for single-side shifts of binary codes with check
SU1238056A1 (en) Device for comparing n-bit binary numbers
SU1330626A1 (en) Device for operand shift
SU1300457A1 (en) Device for comparing two n-bit binary numbers
SU728124A1 (en) N-digit number comparing device
SU1249505A1 (en) Device for comparing binary numbers
JPH05189979A (en) Priority encoder
SU489104A1 (en) Device for comparing binary numbers
SU1383335A1 (en) Device for comparing numbers
SU1425676A1 (en) Device for checking parallel binary code by modulo k
SU1368873A1 (en) Operand-shifting device