SU444180A1 - Device for comparing binary numbers - Google Patents

Device for comparing binary numbers

Info

Publication number
SU444180A1
SU444180A1 SU1828534A SU1828534A SU444180A1 SU 444180 A1 SU444180 A1 SU 444180A1 SU 1828534 A SU1828534 A SU 1828534A SU 1828534 A SU1828534 A SU 1828534A SU 444180 A1 SU444180 A1 SU 444180A1
Authority
SU
USSR - Soviet Union
Prior art keywords
circuit
input
output
inputs
counter
Prior art date
Application number
SU1828534A
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 SU1828534A priority Critical patent/SU444180A1/en
Application granted granted Critical
Publication of SU444180A1 publication Critical patent/SU444180A1/en

Links

Landscapes

  • Hardware Redundancy (AREA)

Description

(54) УСТРОЙСТВО ДЛЯ СРАВНЕНИЯ ДВОИЧНЫХ ЧИСЕЛ(54) DEVICE FOR COMPARISON OF BINARY NUMBERS

1one

Изобретение относитс  к автоматике 1 и цифровой вычислительной технике и может быть использовано, например, в системах управлени  технологическими процессами, системах обегающего контрол  дл  комплекс ного решени  задач сравнени  чисел, представленных-параллельным способом.,The invention relates to automation 1 and digital computer technology and can be used, for example, in process control systems, ambient control systems for complexly solving the comparison of numbers presented in a parallel way.,

Известны устройства сравнени  дл  получени  отдельных результатов, наибольшего , наименьшего чисел, наибольшей разности . Однако эти устройства не позвол ют получить величину наименьшей разности, а также не дают комплексного решени , при котором одновременно определ ютс  все четыре указанные результата цифровогоComparison devices are known for obtaining individual results, the largest, smallest numbers, the largest difference. However, these devices do not allow to obtain the value of the smallest difference, and also do not provide a comprehensive solution, which simultaneously determines all four of the specified digital results.

сравнени .compare.

Цепь изобретени  - создание простого устройства с расширенными функциональны-, ми возможност ми дл  сравнени  двоичных чисел, представленных параллельным спо- , собом, в котором з§ полный цикл отработки алгоритма его функционировани  в качестве рег льтатов сравнени  определ- ютс  экстремальные значени  как сравниваемых чисел, так .и их разностей.I The chain of the invention is the creation of a simple device with enhanced functionalities for comparing binary numbers represented in a parallel way, in which the full cycle of working out the algorithm of its functioning as comparison rules is defined as extreme values as compared numbers so. and their differences. I

Дл  достижени  этой цели в предлагаемом устройстве сравнени  выходы третьей и четвертой схем И через шестую схему ИЛИ св заны с входом первого сум- ктрующего счетчика, а другие входы третьей и четвертой схем И - с выходами п той и шестой схем И, одним из входов.. св занных с первыми входами двух седь мых схем И и с выходами первого триггера , счетный вход которого св зан с вто-, рыми входами обоих седьмых схем И , выходом третьей схемы ИЛИ, первым входом восьмой схемы И и одним из раэдельных входов второго триггера, другие входы п той и шестой CJSSM И соединены с входом второго суммирующего счетчика и с выходом дев той схемы И, выходы седьмых и восьмой схем И подключены к шинам сброса соответственно реверсивных и первого суммирующего счет- чиков, первый вход дев той схемы И св зан с пр мым выходом второго тригге-. ра, другой вход которого соединен с входной шиной устройства, а инверсный выходс одним из входов дес той схемы И,To achieve this goal in the proposed device, the comparison of the outputs of the third and fourth circuits AND through the sixth circuit OR are connected to the input of the first counting counter, and the other inputs of the third and fourth circuits AND to the outputs of the fifth and sixth circuits AND, one of the inputs. associated with the first inputs of the two seventh circuits And and with the outputs of the first trigger, the counting input of which is connected with the second, rymi inputs of both the seventh And circuits, the output of the third OR circuit, the first input of the eighth And circuit, and one of the separate inputs of the second trigger , other entrances of pto and six CJSSM AND are connected to the input of the second summing counter and with the output of the ninth And circuit, the outputs of the seventh and eighth circuits And are connected to the reset buses, respectively, of the reversing and first summing counters, the first input of the ninth And circuit is connected to the forward output of the second trigger . pa, the other input of which is connected to the input bus of the device, and the inverse output of one of the inputs of the tenth circuit AND,

выход которой подключен к входу третьего суммирующего счетчика, а ее другой вход и другой вход дев той схемы И св заны с выходом одиннадцатой схемы И, один из входов которой подключен к выходу второй схемы И, а другой - к другому входу восьмой схемы И, к выходу второй схемы ИЛИ, и с входом четвертого суммирующего счетчика.the output of which is connected to the input of the third summing counter, and its other input and another input of the ninth AND circuit are connected to the output of the eleventh And circuit, one of the inputs of which is connected to the output of the second And circuit, and the other to the other input of the eighth And circuit, the output of the second circuit OR, and with the input of the fourth summing counter.

На чертеже показана блок-схема устройства дл  сравнени  двоичных чисел.The drawing shows a block diagram of a device for comparing binary numbers.

Устройство содержит вычитающие счетчики 1, 2 и 3 сравниваемых чисел с вычитающим счетным входом, первый 4 и . второй 5 реверсивные счетчики; первый 6 и второй 7 суммирующие счетчики (минимальной и максимальной разности) с суммирующим счетным входом; третий 8 и Четвертый 9 суммирующие счетчики (на- именьшего и наибольшего чисел) с суммирующим счетным входом; первую схему ИЛИ 1О; дифференцирующие цепи 11; первые схемы И 12, генератор счетных импульсов 13; вторую схему И 14; вторую схему ИЛИ 15; шестую схему ИЛИ 16; восьмую схему И 17; четвертую cxeN-iy РШИ 18; п тую схему ИЛИ 19; третью схему И 20; седьмые схемы И 21, 22; четвертую схему И 23; первый управл ющий триггер со счетным входом 24; второй управл ющий триггер 25 с раздельными входами; третью схекгу , п тую 27 и шестую 28 схемы И, дев тую 29, дес тую 30 одиннадцатую 31 схемы И, входную клемму 32 устройства.The device contains subtractive counters 1, 2 and 3 compared numbers with subtractive counting input, the first 4 and. second 5 reversible counters; the first 6 and second 7 summing counters (minimum and maximum differences) with a summing counting input; the third 8 and the fourth 9 summing counters (the lowest and largest numbers) with a summing counting input; the first scheme OR 1O; differentiating circuit 11; the first circuit And 12, the generator of counting pulses 13; the second circuit And 14; second circuit OR 15; the sixth scheme OR 16; eighth scheme, And 17; fourth cxeN-iy RSH 18; fifth circuit OR 19; the third circuit And 20; seventh schemes And 21, 22; fourth circuit And 23; the first control trigger with a counting input 24; a second control trigger 25 with separate inputs; the third circuit, the fifth 27 and the sixth 28 circuit And, the ninth 29, tenth 30 eleventh 31 circuit And, the input terminal 32 devices.

Устройство работает следующим образом , В исходном состо нии сравниваемые числа записаны в счетчики 1-3. При этом есть сигналы на выходах каждой из схем 10 и следовательно на вторых входах каждой из схем 12 и на выходе схемы 15, а также на вторых входах схем 17 и 31. Первый н второй управл ющие триггеры наход тс  в состо нии, при котором на их единичных выходах имеютс  сигналы. В каждом из разр дов счетчиков 4 и 5 записаны единицы.The device operates as follows. In the initial state, the compared numbers are recorded in counters 1-3. There are signals at the outputs of each of the circuits 10 and therefore at the second inputs of each of the circuits 12 and at the output of the circuit 15, as well as at the second inputs of the circuits 17 and 31. The first and second control triggers are in the state where their single outputs have signals. Units are recorded in each of the bits of counters 4 and 5.

После поступлени  на клемму 32 раз- мездающего сигнала импульсы от генератора 13 через схему 14 и схемы 12 поступают на информационные входы счетчиков 1-3, уменьша  их содержимое. Одновременно импульсы через схемы 14 и 31 поступают в счетчик наибольшего ла 9 и подсчитьюаютс  в нем. С выхода схемы .И 31 импульсы поступают на второй вход схемы И ЗО. Поскольку при I подаче на клемму 32 разрешающий сиг- i нал устанавливает триггер 25 в состо - ние , при котором по вл етс  сигнал на его нулевом выходе, следовательно, на первом входе схемы И ЗО, импульсы через эту схему проход т в счетчик 8 наименьщего числа и подсчитываютс  в нем.After the spreading signal arrives at terminal 32, the pulses from the generator 13 through the circuit 14 and the circuit 12 arrive at the information inputs of counters 1-3, reducing their content. At the same time, the pulses through the circuits 14 and 31 enter the counter of the largest la 9 and count in it. From the output of the circuit .and 31 pulses arrive at the second input of the circuit and the DA. Since when I is applied to terminal 32, the enabling signal i sets the trigger 25 to the state when the signal appears at its zero output, therefore, at the first input of the circuit AND AOR, pulses through this circuit pass into the counter 8 of the smallest numbers and counts in it.

После поступлени  в схему количества импульсов, равного наименьшему числу, содержимое одного (или нескольких) счетчиков 1-3 становитс  равным нулю, исчезает сигнал с выхода соответствующей схемы 10 и, следовательно, сигнал на втором входе соответствующей схемы ИЛИ 12. Прохождение импульсов в эти счетчики прекращаетс . Исчезновение сигнала на выI ходе схемы Ю фиксируетс  соответствующей дифференцирующей цепью 11, импульс с выхода которой через схему ИЛИ 26 перебрасывает триггер 25 в исходное состо ние , в результате чего по вл етс  сигнал на первом входе схемы И 29, снимаетс  сигнал с первого входа схемы И ЗО, и подсчет импульсов в счетчике 9 наименьщего числа прекращаетс . Импульс с выхода схемы ИЛИ 26 перебрасывает триггер 24 в состо ние, при котором по вл етс  сигнал на его нулевом выходе , следовательно, на втором входе схемы ИЛИ 27 и первом входе схемы И 22. Импульс с выхода схемы ИЛИ 26 подаетс  на вторые входы схем И 21 и 22, проходит через схему И 22, очища  счетчик 5, в результате чего закрываетс  схема И 23.After the number of pulses in the circuit is equal to the smallest number, the contents of one (or several) counters 1-3 become zero, the signal from the output of the corresponding circuit 10 disappears, and therefore the signal at the second input of the corresponding circuit OR 12. The pulses pass into these counters is terminated. The disappearance of the signal at the output of the circuit Y is fixed by the corresponding differentiating circuit 11, the pulse from the output of which through the circuit OR 26 transfers the trigger 25 to the initial state, as a result of which the signal appears at the first input of the circuit 29, the signal from the first input of the circuit 29 is removed. AOR, and the counting of pulses in the lowest number counter 9 stops. The pulse from the output of the OR circuit 26 transfers the trigger 24 to the state at which a signal appears at its zero output, therefore, at the second input of the OR circuit 27 and the first input of the circuit AND 22. The pulse from the output of the circuit OR 26 is fed to the second inputs of the circuit Both 21 and 22, goes through circuit 22, clearing counter 5, which closes circuit 23.

Поскольку по вилс  сигнал на первом входе 29, счетные импульсы с выхода схемы И 31 через схему И 29 начинают поступать на информационный вход счетчика 7 максимальной разности и подсчитываютс  в нем. Одновременно счетные импульсы с выхода схемы И 29 поступают на первые входы схем И 27 и 28. При по влении сигнала на втором входе схемы И 27 и с выхода схемы ИЛИ 18 на первом входе схемы И 20, импульсы .через схемы И 27 и 20 проход т на суммирующий вход счетчика 5, подсчитыва сь в нем. При этом схема И 23 открываетс  и импульсы поступ юкт на вычитающий вход счетчика 4, уменьша  его содержимое, а также через схему ИЛИ 16 подсчитываютс  в счетчике 6 минимальной разности.Since the signal at the first input 29 is transmitted, the counting pulses from the output of the AND 31 circuit through the AND 29 circuit begin to arrive at the information input of the maximum difference counter 7 and are counted therein. At the same time, the counting pulses from the output of the AND 29 circuit arrive at the first inputs of the AND 27 and 28 circuits. When a signal appears at the second input of the AND 27 circuit and from the output of the OR 18 circuit to the first input of the AND 20 circuit, the pulses through the circuits And 27 and 20 pass t to the summing input of the counter 5, calculated in it. In this case, the AND 23 circuit opens and the pulses of the input to the subtracting input of counter 4 reduce its content, and also through the circuit OR 16 are counted in the counter 6 of the minimum difference.

После того, как число, следующее за наименьшим из сравниваемых чисел, обращаетс  в Нуль, исчезает сигнал с выходаодной из схем ИЛИ 1О и закрываетс  соответствующа  схема И 12, прекраща After the number following the smallest of the compared numbers goes to Zero, the signal from the output one of the OR 1O schemes disappears and the corresponding AND 12 scheme closes, terminating

поступление вычитающих импульсов в дан- ный счетчик. the arrival of subtractive pulses in this counter.

j Исчезновение сигнала на выходе схемы ИЛИ 10 фиксируетс  соответствующей дифференцирующей цепью 11, импульс с выхода которой через схему ИЛИ 26 подтверждает состо ние триггера 25 и перебрасывает триггер 24 в противоположное состо ние, в результате чего по вл ютс  сигналы на первом входе схемы И 21 и втором входе схемы И 28. Импульсы с выхода схемы ИЛИ 26 поступают на второй вход схемы И 21, проход т через схему И 21, очища  счетчик 4, благодар  чему закрываетс  схема И 2О, и, проход  через схему И 17, очищает -счетчик 6 минимальной разности Импульсы с выхода схемы И 29 через схемы И 28 и 23 ггодсчитываютс  в реверсивном счетчике 4 и через схему ИЛИ 16 - в суммирующий счетчик 6 и вычитаютс  из содержимого реверсивного счетчика 5.j The disappearance of the signal at the output of the OR 10 circuit is fixed by the corresponding differentiating circuit 11, the pulse from the output of which through the OR circuit 26 confirms the state of the trigger 25 and transfers the trigger 24 to the opposite state, as a result of which signals appear at the first input of the circuit 21 and 21 the second input of the AND 28 circuit. The pulses from the output of the OR circuit 26 are fed to the second input of the AND 21 circuit, pass through the AND 21 circuit, clearing counter 4, thereby closing the AND 2O circuit and, passing through the AND 17 circuit, clears the-6 counter minimum difference impulses with the output of the circuit AND 29 through the circuits AND 28 and 23 are read in the reversible counter 4 and through the circuit OR 16 - into the sum counter 6 and subtracted from the contents of the reversing counter 5.

Если количество импульсов, поступив- щих в схему с момента времени обращени в нуль одного или нескольких сравниваемых чисел, зафиксированного дифференциру ющей цепью 11, до момента времени обращени  в 1гуль следующего одного (или нескольких) сравниваемых чисел, также зафиксированного дифференцирующей цепью 11 (т, е. текущее значение разностиIf the number of pulses entering the circuit from the time when one or several compared numbers, recorded by differentiating circuit 11, zero, to the time of 1 second of the next one (or several) compared numbers, also recorded by differential circuit 11 (t, e. current difference value

сравниваемых чисел), меньше или равно уменьщаемому, записанному в одном из реверсивных счетчиков 4 или 5 (в данном случае в счетчике 5), то в схеме в этот отрезок времени никаких переключений не происходит. Эта разность, как наименьша  из всех предыдущих, окажетс  записанной в суммирующем счетчике 6. Если же очередна  текуща  разность больще уменьщаемого , то момент времени, при котором выполн етс  равенство количества импульсов , поступивших в схему, предыдущему значению разности, содержимое регистра уменьшаемого (в данном случае счетчика 5) станет равным нулю, схема И 14 закроетс , и дальнейшее поступление: иктульсов в устройство прекратитс . Предыдущее значение разности в качестве наименьшего из всех сравниваемых к этому моменту будет восстановлено в схеме И 22 и запомнено.numbers being compared), less than or equal to the decrement recorded in one of the reversible counters 4 or 5 (in this case, counter 5), then no switchings occur in the circuit in this time interval. This difference, as the smallest of all previous ones, will be recorded in summing counter 6. If the next current difference is more diminishing, then the time at which the number of pulses received in the circuit, the previous value of the difference, is equal, the contents of the register decremented ( If the counter 5) becomes zero, the AND circuit 14 is closed, and further flow: the pulse to the device will stop. The previous value of the difference in quality of the smallest of all compared to this point will be restored in the scheme And 22 and stored.

После того, как обратитс  в нуль наибольшее из всех чисел, исчезнет сигнал с выхода схемы : ИЛИ 15, т., е. сигнал на вторых входах схГем И 31 и 17, поступление импульсов в суммирующ.ие счетчики 9.и 7 прекратитс , а импульс с выхода схемы ИЛИ 26 не сбросит содержимое счетчика 6 в нуль. Таким образом , в счетчиках 9 и 8 записаны наибольщее и наименьшее из сравниваемыхAfter the largest of all numbers vanishes, the signal from the output of the circuit disappears: OR 15, i.e., the signal at the second inputs of AND 31 and 17, the flow of pulses to the counters 9. and 7 stop, and the pulse from the output of the circuit OR 26 does not reset the contents of counter 6 to zero. Thus, in counters 9 and 8 the largest and smallest of the compared

и 6 - максимальна and 6 is maximum

чисел, в счетчиках 7 разность чисел.numbers, in counters 7 the difference of numbers.

Предмет изобретени Subject invention

Устройство дл  сравнени  двоичных чисел , содержащее Ц двоичных вычитающих счетчиков, выходы каждого из которых через схемы ИЛИ св заны с одним из входов первых схем И , другими входами св занных с выходом второй схемы И, подключенной одним из входов к выходу генератора, и с входами второй схемы ИЛИ, а через дифференцирующие це|пи с входами третьей схемы ИЛИ, выходы первых схем И соединены с информационными входами соответствующих вычитающих счетчиков, два реверсивных счетчика , выходы которых св заны с входами четвертой и п той схем ИЛИ входы сложени  - с выходами третьей и четвертой схем И, одни из входов которых соединены с выходами п той и четвертой схем ИЛИ соответственно, выход третьей схемы И кроме того подключен к входу вычитани  второго реверсивного счетчика, а выход четвертой схемы И - к входу вычитани  первого реверсивного счетчика, четыре суммирующих счетчика, триггеры, схемы И, ИЛИ, отличающее- с   тем, что, с целью расширени  функциональных возможностей, в нем выходы третьей и четвертой схем И через шестую схему ИЛИ св заны с входом первого суммирующего счетчика, а другие входы третьей и четвертой схем И - с выходами п той и щестой схем И, одним иA device for comparing binary numbers containing Q binary subtractive counters, the outputs of each of which are connected through OR of one of the inputs of the first AND diagrams, with other inputs connected with the output of the second AND circuit connected with one of the inputs to the generator output, and with the inputs the second OR circuit, and through the differentiating circuits | pi with the inputs of the third OR circuit, the outputs of the first AND circuits are connected to the information inputs of the corresponding subtractive counters, two reversible counters, whose outputs are connected to the inputs of the fourth and fifth IL circuits And the inputs of the addition are with the outputs of the third and fourth circuits AND, one of the inputs of which is connected to the outputs of the fifth and fourth circuits OR, respectively, the output of the third AND circuit is also connected to the subtracting input of the second reversible counter, and the output of the fourth AND circuit to the input of subtraction the first reversible counter, four summing counters, triggers, AND, OR circuits, characterized in that, in order to expand the functionality, therein, the outputs of the third and fourth circuits AND, through the sixth OR circuit, are connected to the input of the first summing account Ica, and other inputs of the third and fourth AND gates - to the outputs of the fifth and schestoy AND circuits, and one

входов, св занных с первыми входами двух седьмых схем И и с выходами первого триггера, счетный вход которого св зан с вторыми входами обоих седьмых схем И, выходом третьей схемы ИЛИ первым входом восьмой схемы И и одним из раздельных входов второго триггера , другие входы п той и шестой схем И соединены с входом второго суммирующего счетчика и с выходом дев той схемы И, выходы седьмых и восьмой схем И подключены, к шинам сброса соответственно реверсивных и первого суммирующего счетчиков, первый вход дев той схемы И св зан с пр мым выхо- дом второго триггера, другой вход которого соединен с входной шиной устройства , а инверсивный выход - с одним из входов дес той схемы И, выход которой подключен к входу третьего суммирующего счетчика, а ее другой вход и другой вход дев той схемы И св заны с выхо7 дом одиннадцатой схемы И, один из входов которой подключен к выходу второй схемы И, а другой - к другому входу 444180 Ь Iвосьмой схемы И, к выходу второй схе-; мы ИЛИ , и с входом четвертого суммирующего счетчика.inputs associated with the first inputs of the two seventh And circuits and the outputs of the first trigger, the counting input of which is connected with the second inputs of both the seventh And circuits, the output of the third circuit OR the first input of the eighth And circuit and one of the separate inputs of the second trigger, the other inputs n The second and sixth circuits And are connected to the input of the second summing counter and with the output of the ninth And circuit, the outputs of the seventh and eighth circuits And are connected, to the reset buses, respectively, reversible and the first summing counters, the first input of the ninth And circuit is connected to the direct output d m of the second trigger, the other input of which is connected to the device input bus, and the inverse output — to one of the inputs of the tenth AND circuit, the output of which is connected to the input of the third summing counter, and its other input and the other input of the ninth AND circuit the house of the eleventh circuit AND, one of the inputs of which is connected to the output of the second circuit AND, and the other to the other input 444180 b of the eighth circuit AND, to the output of the second circuit; we are OR, and with the input of the fourth totalizer.

тt

S2S2

SU1828534A 1972-08-11 1972-08-11 Device for comparing binary numbers SU444180A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU1828534A SU444180A1 (en) 1972-08-11 1972-08-11 Device for comparing binary numbers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU1828534A SU444180A1 (en) 1972-08-11 1972-08-11 Device for comparing binary numbers

Publications (1)

Publication Number Publication Date
SU444180A1 true SU444180A1 (en) 1974-09-25

Family

ID=20527029

Family Applications (1)

Application Number Title Priority Date Filing Date
SU1828534A SU444180A1 (en) 1972-08-11 1972-08-11 Device for comparing binary numbers

Country Status (1)

Country Link
SU (1) SU444180A1 (en)

Similar Documents

Publication Publication Date Title
SU444180A1 (en) Device for comparing binary numbers
US3145292A (en) Forward-backward counter
SU411453A1 (en)
SU440795A1 (en) Reversible binary counter
SU767753A1 (en) Number comparator
SU1130876A1 (en) Device for calculating polynomial coefficients
SU363177A1 (en) THRESHOLD RECORDER
SU955031A1 (en) Maximum number determination device
SU603986A2 (en) Binary number comparing arrangement
SU397907A1 (en) DEVICE FOR CONSTRUCTION IN SQUARE NUMBERS PRESENTED IN UNITARY CODE
SU362490A1 (en) REVERSIBLE COUNTER
SU1193672A1 (en) Unit-counting square-law function generator
SU1242938A1 (en) Calculating device
SU409386A1 (en) DECIMAL COUNTER
SU1160561A1 (en) Ternary forward-backward counter
SU382088A1 (en) DEVICE FOR CONSTRUCTION IN SQUARES
SU1046935A1 (en) Scaling device
SU638948A1 (en) Information input arrangement
SU780205A1 (en) Reversible binary-decimal counter
SU1075260A1 (en) Device for making summation of m n-bit numbers arriving in sequential order
SU1120320A1 (en) Device for calculating square and square root
SU1628063A1 (en) Arithmetic counting device
SU547762A1 (en) Input device
SU395989A1 (en) Accumulating Binary Meter
SU446055A1 (en) Device for comparing binary numbers