SU760089A1 - Binary number comparing device - Google Patents

Binary number comparing device Download PDF

Info

Publication number
SU760089A1
SU760089A1 SU782634995A SU2634995A SU760089A1 SU 760089 A1 SU760089 A1 SU 760089A1 SU 782634995 A SU782634995 A SU 782634995A SU 2634995 A SU2634995 A SU 2634995A SU 760089 A1 SU760089 A1 SU 760089A1
Authority
SU
USSR - Soviet Union
Prior art keywords
inputs
output
elements
numbers
digits
Prior art date
Application number
SU782634995A
Other languages
Russian (ru)
Inventor
Mikhail A Duda
Roman A Duda
Leonid M Zubko
Original Assignee
Inst Kibernetiki An
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 Inst Kibernetiki An filed Critical Inst Kibernetiki An
Priority to SU782634995A priority Critical patent/SU760089A1/en
Application granted granted Critical
Publication of SU760089A1 publication Critical patent/SU760089A1/en

Links

Landscapes

  • Logic Circuits (AREA)

Description

Изобретение относится к области автоматики и вычислительной техники и может быть использовано при реализации технических средств автоматики и ЭЦВМ для сравнения чисел, представленных последовательным кодом.The invention relates to the field of automation and computing and can be used in the implementation of technical means of automation and digital computers to compare numbers represented by a serial code.

Известно устройство для сравнения двоичных чисел, содержащее триггеры, логические элементы И, ИЛИ-НЕ и выполняющее сравнение чисел по модулю, представленных последовательным кодом, начиная со старших разрядов (1). Это устройство для сравнения чисел по модулю имеет большое количество оборудования и неA device for comparing binary numbers, containing triggers, logic gates AND, OR-NOT and performing a comparison of modulo numbers represented by a sequential code, starting with the high-order bits (1), is known. This device for comparing numbers by module has a large amount of equipment and does not

1 может сравнивать двоичные числа, представленные последовательным кодом, начиная с младших разрядов. 1 can compare binary numbers represented by a sequential code, starting at lower digits.

Наиболее близким техническим решением к предложенному является устройство, содержа» щее триггер с тремя устойчивыми состояниями на элементах И-НЕ, первый и второй входы которого соединены с выходами первого и второго элементов И-НЕ, одни из входов которых связаны с выходом элемента неравнозначности, входы которого соединены с вторыми входами этих же элементов И-НЕ соответственно, и сThe closest technical solution to the proposed is a device containing a trigger with three stable states on the elements AND-NOT, the first and second inputs of which are connected to the outputs of the first and second elements AND-NOT, one of the inputs of which are connected to the output of the inequality element which is connected to the second inputs of the same elements AND-NOT, respectively, and

22

выходами третьего и четвертого элементов И-НЕ соответственно, причем одни из входов третьего и четвертого элементов И-НЕ подключены к входным шинам устройства, а другие входы — к выходу пятого элемента И-НЕ, входы которого соедйнены с шиной управления и с соответствующим выходом триггера (2).the outputs of the third and fourth elements AND-NOT, respectively, and one of the inputs of the third and fourth elements AND-NOT connected to the input bus device, and the other inputs to the output of the fifth element AND-NOT, the inputs of which are connected to the control bus and the corresponding trigger output (2).

К недостаткам этого устройства относятся его относительная сложность и малое быстродействие.The disadvantages of this device are its relative complexity and low speed.

Цель изобретения - повышение быстродействия и упрощение устройства.The purpose of the invention is to increase the speed and simplify the device.

Поставленная цель достигается тем, что в устройстве для сравнения двоичных, чисел, содержащем трехстабильный триггер, элементы И-НЕ, элемент неравнозначности, причем первый и второй информационные входы устройства соединены со входами элемента неравнозначности, выход которого подключен к первым входам первого и второго элементов И-НЕ, выходы первого и второго элементов И-НЕ соединены с первым и вторым входами трехстабильного триггера, третий вход которого подключён к первой шине управления, а первый выход —This goal is achieved by the fact that in a device for comparing binary numbers containing a three-stage trigger, AND-NOT elements, an unequal element, the first and second information inputs of the device are connected to the inputs of an unequal element, whose output is connected to the first inputs of the first and second AND elements -NO, the outputs of the first and second elements of the IS-NOT are connected to the first and second inputs of the three-stable trigger, the third input of which is connected to the first control bus, and the first output is

3 760089 4.3 760089 4.

к первому входу третьего элемента И-НЕ, второй вход которого соединён со второй шиной управления, выход третьего элемента И-НЕ соединен со вторыми входами первого и второго . элементов И-НЕ, а третьи входы первого и второго элементов И-НЕ подключены к первому и второму информационным входам устройства соответственно.to the first input of the third NAND element, the second input of which is connected to the second control bus, the output of the third NAND element is connected to the second inputs of the first and second. elements NAND, and the third inputs of the first and second elements NAND are connected to the first and second information inputs of the device, respectively.

Функциональная схема устройства представлена на чертеже.Functional diagram of the device shown in the drawing.

Устройство содержит элементы И-НЕ 1, 2, 3, элементы И-НЕ 4, 5, 6, образующие трехстабильный триггер 7, элемент 8 неравнозначности, информационные входы 9 и 10, шины 11 и 12 управления, выходные шины 13, 14, 15 для значений А = В, А< В и А >'В соответственно, выходную шину 16 суммы одноименных разрядов сравниваемых чисел.The device contains elements AND-NOT 1, 2, 3, elements AND-NOT 4, 5, 6, forming a three-stable trigger 7, element 8 unequalities, information inputs 9 and 10, tires 11 and 12 of the control, output tires 13, 14, 15 for the values A = B, A <B, and A> 'B, respectively, the output bus 16 is the sum of like bits of the numbers being compared.

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

По сигналу, поступающему по шине 12* управления низким потенциалом на .входы элементов Й-НЕ 4 и 6, триггер 7 устанавливается В исходное состояние — низкий потенциал на выходе элемента И-НЕ 5 и высокие потенциалы на выходах элементов И-НЕ 4 и. 6. При сравнении -чисел,‘ начиная с младших разрядов, на шипу 1Г управления подаётся низкий потенциал, который образует на выходе элемента Й-НЕ 3, независимо, от сигнала на входе, подключенном к выходу элемента И-НЕ 5, высокий потенциал. Этот сигнал поступает на входы элементов И-НЕ 1 и 2. Поэтому сигналы на выходах элементов . И-НЕ 1 и 2 зависят от сигналов на информационных входах 10, 9 и сигнала на ’оыходе элемента 8 неравнозначности. При равенстве Одноименных разрядов сравниваемых чисел на входах 9 и 10 на выходе элемента неравнозначности в этом случае сигнал отсутствует и. элементы Й-НЕ Г и 2 не срабатывают.The signal coming through the bus 12 * control low potential on the inputs of the elements YHE 4 and 6, the trigger 7 is set In the initial state - low potential at the output of the element AND NOT 5 and high potentials at the outputs of the elements AND NOT 4 and. 6. When comparing the numbers, ‘starting from the lower digits, a low potential is applied to the 1G control spike, which forms the output potential of the N-HE 3 element, regardless of the signal at the input connected to the output of the NAND 5 element, a high potential. This signal is fed to the inputs of the elements AND-NOT 1 and 2. Therefore, the signals at the outputs of the elements. NAND 1 and 2 depend on the signals at the information inputs 10, 9 and the signal at the ’exit of the unequal element 8. In case of equal digits of the compared numbers at inputs 9 and 10 at the output of the inequality element, in this case there is no signal and. The elements Y and N G and 2 do not work.

Отсутствие сигнала на выходе элемента 8 неравнозначности и выходной шине 16 означает,' что сумма одноименных разрядов сравниваемых чисел на входах 9 и 10 равна 0.The absence of a signal at the output of the element 8 inequality and the output bus 16 means that the sum of the same-like digits of the compared numbers at the inputs 9 and 10 is equal to 0.

При разных кодах в одноименных разрядах, например ”1” (низкий потенциал на информационном входе 10) и ”0” (высокий потенциал Η3ι информационном входе 9), на выходе элемента 8 неравнозначности в этом случае появиться высокий потенциал. Появление сигнала на выходе элемента неравнозначности и выходной шине 16 означает, что сумма одноименных разрядов сравниваемых чисел на информационных входах 9 и 10 равна 1. Вследствие появления высокого потенциала на выходе элемента неравнозначности элемент И-НЕ 2 открыт по тремWith different codes in the like digits, for example, "1" (low potential at information input 10) and "0" (high potential Η 3ι information input 9), at the output of element 8 of unequal values, in this case, a high potential appears. The appearance of the signal at the output of the inequality element and the output bus 16 means that the sum of the like digits of the compared numbers at information inputs 9 and 10 is 1. Due to the appearance of a high potential at the output of the non-equivalence element, the AND-NOT 2 is open in three

"входам и сигнал с его выхода поступает на"inputs and the signal from its output goes to

входы элементов И-НЕ 5, 6 и устанавливаетthe inputs of the elements are NOT 5, 6 and sets

на их выходах высокие потенциалы, которыеon their outputs are high potentials that

поступают на входы элемента И-НЕ' 4. На остальных его входах также присутствуют высокие потенциалы (отсутствует сигнал "Сброс” на шине 12 и не включился элемент И-НЕ 1), поэтому на его выходе, образующем цепь положительной обратной связи, имеется низкий потенциал. Таким образом трехстабильный триггер 7 установится в положение, при котором на выходной шине 15 для значения А > ВThe inputs of the element AND-NOT '4 are received. The remaining inputs also have high potentials (there is no “Reset” signal on bus 12 and the element IS-NOT 1 did not turn on), therefore, its output, forming a positive feedback circuit, has a low potential. Thus, the three-stable trigger 7 is established in the position at which, on the output bus 15, for the value A> B

Ю появится сигнал (низкий потенциал).A signal will appear (low potential).

При сравнении чисел, представленных последовательным кодом, начиная с младших разрядов, на выходе элемента 8 неравнозначности появится единичный сигнал, суммы одноименных разрядов сравниваемых чисел и трехстабильный триггер 7 переключится столько раз, сколько разрядов не сравнилось между собой, причем состояние этого триггера будет определяться последним (самым старшим из несравнивших ся) разрядов, поэтому в конце сравнения его результат будет правильно указан выходами трехстабильного триггера 7.When comparing the numbers represented by a sequential code, starting with the least significant digits, a single signal will appear at the output of the unequal element 8, the sum of the same digits of the compared numbers and the three-stable trigger 7 will switch as many times as the digits are not compared with each other (the state of this trigger will be determined last ( the most senior of the unmatched bits), so at the end of the comparison, its result will be correctly indicated by the outputs of the three-stable trigger 7.

При поступлении на сравнение чисел, начиная со старших разрядов, что определяется вы25 соким потенциалом на шине 11 управления, работа устройства аналогична работе при сравнении чисел младшими разрядами вперед до первого несравнения, при котором на выходе элемента 8 неравнозначности появится единич30 ный сигнал суммы одноименных разрядов сравниваемых чисел на информационных входах 9,On admission to the comparison of numbers, beginning with the high order bits that is determined you 25 sokim potential bus control 11, operation of the apparatus is similar to the work by comparing the numbers LSB forward to the first incomparably, wherein in the output of the element 8 nonequivalence appears the unit 30 ny sum signal homonymous bits of the compared numbers on the information inputs 9,

10 и произойдет переключение трехстабильного триггера 7, вследствие чего на выходе элемента И-НЕ 5 установится высокий потенциал.10 and a tri-stable trigger 7 will be switched, as a result of which a high potential is established at the output of the element NE-5.

Этот высокий потенциал поступает на вход элемента Й-НЕ 3, на выходе которого образуется низкий потенциал, который поступает на входы элементов Й-НЁ 1, 2 и не разрешает им в дальнейшем включаться. При этом на; выходах эле40 ментов И-НЕ 1 и 2 установятся высокие потенциалы. Поэтому трехстабильный триггер 7 до конца сравнения не переключится и его значение, определяемое несравнившимися самыми старшими разрядами чисел А и В, указываетThis high potential arrives at the input of the element H – NO 3, at the output of which a low potential is formed, which flows at the inputs of the elements H – HH 1, 2 and does not allow them to be switched on. At the same time on; The outputs of the eleven 40 cops of AND-NOT 1 and 2 will establish high potentials. Therefore, the three-stable trigger 7 will not switch until the end of the comparison, and its value, determined by the incomparable most significant bits of the numbers A and B, indicates

45 правильный результат. * 45 correct result. *

, Появление низкого потенциала на выходе элемента И-НЕ 3 не влияет на работу элемента 8 неравнозначности. Поэтому при сравнении чисел, представленных последовательным кодом, начиная со старших разрядов, на выходе элемента неравнозначности появится единичный сигнал суммы одноименных разрядов сравниваемых чисел на информационных входах 9 и 10 столько раз, сколько разрядов не сравнилось между собой., The appearance of a low potential at the output of the element AND-NOT 3 does not affect the operation of the element 8 of unequalities. Therefore, when comparing the numbers represented by a sequential code, starting with the upper digits, the output of the inequality element will receive a single signal of the sum of like digits of the compared numbers at information inputs 9 and 10 as many times as the digits did not compare with each other.

Предлагаемое устройство' позволяет сравнивать двоичные числа, представленные последовательным кодом, начиная' как с младших, так и со старших разрядов, причем его работа неThe proposed device 'allows you to compare binary numbers represented by a sequential code, starting' with both the lower and higher digits, and his work is not

5five

зависит от временных параметров элементов' И-НЕ 4, 5, 6. Кроме того, устройство для сравнения двоичных Чисел выполняет суммирование одноименных разрядов сравниваемых чисел, представленных последовательным кодом, начиная как с младших, так и со старших разрядов.depends on the time parameters of the elements' AND-NOT 4, 5, 6. In addition, the device for comparing binary Numbers performs summation of the same-named digits of the compared numbers, represented by a sequential code, starting from both the lower and the higher digits.

Такое построение устройства для сравнения двоичных чисел отличает устройство от прототипа по количеству используемых элементов И-НЕ, по быстродействию и по количеству выполняемых функций.Such a construction of a device for comparing binary numbers distinguishes a device from a prototype by the number of used NAND elements, by speed and by the number of functions performed.

Устройство выполняет функции сравнения и суммирования одноименных разрядов чисел, представленных последовательным кодом, начиная как с младших, так и со старших разрядов.The device performs the functions of comparing and summing the same-digit bits of numbers represented by a sequential code, starting with both the lower and the higher digits.

Claims (1)

Формула изобретенияClaim Устройство для сравнения двоичных чисел, содержащее трехстабильный триггер, элементы И-НЕ, элемент неравнозначности, причем первыйA device for comparing binary numbers containing a three-stable trigger, elements of NAND, an element of inequality, the first 760089760089 66 и второй информационные входы устройства соединены со входами элемента неравнозначности, выход которого подключен к первым входам первого и второго элементов И-НЕ, выхо5· ды первого и второго элементов И-НЕ соединены с первым и вторым входами трехстабильного триггера, третий вход которого подключен к первой шине управления, а первый выход - к первому входу третьего элемента ,0 И-НЕ, второй вход которого соединен со второй шиной управления, отличающееся тем, что, с целью повышения быстродействия и упрощения устройства, в нем выход третьего элемента И-НЕ соединен со вторыми вхо15 дами первого и второго элементов И-НЕ, а третьи входы первого и второго элементов И-НЕ подключены к первому и второму информационным входам устройства соответственно.and the second information inputs of the device are connected to the inputs of the unequal element, the output of which is connected to the first inputs of the first and second elements AND-NOT, the output of 5 · dy the first and second elements AND-NOT connected to the first and second inputs of the three-stable trigger, the third input of which is connected to the first control bus, and the first output to the first input of the third element, 0 AND-NOT, the second input of which is connected to the second control bus, characterized in that, in order to improve performance and simplify the device, the output of the third lementa AND-NO element is connected to second vho15 rows of first and second AND-NO element and third inputs of first and second AND-NO elements are connected to first and second data inputs of the device, respectively.
SU782634995A 1978-06-28 1978-06-28 Binary number comparing device SU760089A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU782634995A SU760089A1 (en) 1978-06-28 1978-06-28 Binary number comparing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU782634995A SU760089A1 (en) 1978-06-28 1978-06-28 Binary number comparing device

Publications (1)

Publication Number Publication Date
SU760089A1 true SU760089A1 (en) 1980-08-30

Family

ID=20772869

Family Applications (1)

Application Number Title Priority Date Filing Date
SU782634995A SU760089A1 (en) 1978-06-28 1978-06-28 Binary number comparing device

Country Status (1)

Country Link
SU (1) SU760089A1 (en)

Similar Documents

Publication Publication Date Title
US4433372A (en) Integrated logic MOS counter circuit
US4611337A (en) Minimal logic synchronous up/down counter implementations for CMOS
SU760089A1 (en) Binary number comparing device
US3992612A (en) Rate multiplier
SU1128251A1 (en) Device for comparing binary numbers
SU1056180A1 (en) Device for comparing parallel codes of numbers
SU485445A1 (en) Device for comparing binary numbers
SU754409A1 (en) Number comparing device
US3862401A (en) Multi-phase pulse counter
SU763889A1 (en) Device for selecting maximum of n numbers
SU881735A1 (en) Number sorting device
RU2222822C2 (en) Device for programmed control over electric motor drives, electron keys and signaling
SU1195346A1 (en) Device for selecting maximum number
SU375559A1 (en) FORMER CURRENT LINEAR EXPANDING WITH DIGITAL CONTROL
US5373291A (en) Decoder circuits
SU1444760A1 (en) Device for squaring a sequential series of numbers
SU801259A1 (en) N-digit binary counter
SU1633392A1 (en) Serial adder
SU744995A1 (en) Binary counter
SU1076901A1 (en) Device for sorting numbers
SU966690A1 (en) Device for discriminating extremum from nm-digital binary codes
SU798815A1 (en) Device for comparing numbers
SU473181A1 (en) Device for comparing binary numbers
SU902264A1 (en) Reversible pulse counter
SU1670684A1 (en) Device for comparison of two binary numbers