SU980089A1 - Number comparing device - Google Patents

Number comparing device Download PDF

Info

Publication number
SU980089A1
SU980089A1 SU813290420A SU3290420A SU980089A1 SU 980089 A1 SU980089 A1 SU 980089A1 SU 813290420 A SU813290420 A SU 813290420A SU 3290420 A SU3290420 A SU 3290420A SU 980089 A1 SU980089 A1 SU 980089A1
Authority
SU
USSR - Soviet Union
Prior art keywords
inputs
outputs
elements
input
counter
Prior art date
Application number
SU813290420A
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 SU813290420A priority Critical patent/SU980089A1/en
Application granted granted Critical
Publication of SU980089A1 publication Critical patent/SU980089A1/en

Links

Description

(54) УСТРОЙСТВО ДЛЯ СРАВНЕНИЯ ЧИСЕЛ(54) DEVICE FOR COMPARING NUMBERS

1one

Изобретение относитс  к области автоматики и вычис ительной техники и может быть использовано в устройствах управлени  ЭВМ и устройствах обработ ки данных.The invention relates to the field of automation and computing technology and can be used in computer control devices and data processing devices.

Известно устройство дл  ср нени  чисел, содержащее счетчик, дешифратор, два триггера и элементы И 1 .A device for number matching is known, which contains a counter, a decoder, two triggers, and And 1 elements.

Недостатком этого устройства  вл етс  невозможность изменени  значений нижнего и верхнего допусков, так как они задаютс  схемно в дешифраторах.A disadvantage of this device is the impossibility of changing the values of the lower and upper tolerances, since they are specified schematically in the decoders.

Наиболее близким по технической сущности к изобретению  вл етс  устройство ,5 дл  сравнени  чисел, содержащее регистры , схемы сравнени , группу элементов И, триггеры, дешифратор, элементы И, генератор импульсов и счетчик}, 2 .The closest in technical essence to the invention is a device, 5 for comparing numbers, containing registers, comparison circuits, a group of elements And, triggers, a decoder, elements And, a generator of pulses and a counter}, 2.

Недостатком этого устройства  вл ет- 20 с  невозможность сравнени  отрицательных чисел.A disadvantage of this device is that it is impossible to compare negative numbers.

Цель изобретени  - расширение области применени  устройства за счет обеспечени  возможности сравнени  отрицательных чисел.The purpose of the invention is to expand the field of application of the device by making it possible to compare negative numbers.

Claims (2)

Поставленна  цель достигаетс  тем, что устройство дл  сравнени  чисел, содержащее регистры, схемы сравнени , группу элементов И, триггеры, дешифратор И, генератор импульсов и счетчик, причем выходы разр дов первого, второго и третьего регистров подключены к первым группам входов соответствующих схем сравнени , первый вход второй группы входов первой схемы сравнени  подключен . к первьп входам вторых групп входов второй и третьей схем сравнени , другие входы второй группы входов первой схемы сравнени  соединены с соответствующими входами вторых групп входов второй и третьей схем сравнени  и подключены к выходам соответствукжщх разр дов счетчика, информационные входы первой группы ycTpoJteTBa подключены соответственно к информационным вкбдам элементов И группы, выходы которых подключены к входам разр дов первого регистра соответственн о, информационTibie входы второй и третьей групп устройства подключены к входам первого, второго и третьего регистров соответственно , вход запуска устройства подклк чен к входу запуска генератора импульсов , Вход останова которого соединен с выходом первой схемы сравнени , установочный вход устройства соединен с управл к дими входами элементов И группы , с входом установки в единичное соето кие счетчика и нулевыми входами первого и второго триггеров, единичные входы которых соединены с выходами второй и третьей схем сравнени  соответ ственно, единичные выходы первого и вто рого триггеров соединены с входами дешифратора соответственно, выходы которого подключены к первым входам первого , второго и третьего элементов И соответственно, вход анализа результата устройства соединен с вторыми входами первого, второго и третьего элементов И, выходы которых подключены к выходам устройства соответственно, содержит третий и четвертый триггеры, четвертый и п тый элементы И и элемент ИЛИ - НЕ, причем установочный вход устройства соединен с единичнь:ми входами третьего и четвертого триггеров единичный-и нулевой выходы четвертого триггера подключены к первым входам четвертого и п того элементов И соответственно , вторые входы которых соединены с выходом генератора импульсов, выходы четвертого и п того элементов И соединены соответственно С вычитающим и суммирующим входами счетчика, выходы разр дов счетчика соединены с входами элемента ИЛИ - НЕ, выход кот рого подключен к нулевым жодам третьего и четвертого триггеров, выход треть его триггера соединен с первым входом второй группы-входов первой схемы сравнени . На чертеже изображена схема устройства . Устройство содержит регистры 1-3, схемы 4-6 сравнени , группу 7 элементов И, триггеры 8 и 9, дешифратор 10, элементы И 11-13, генератор 14 импуп сов, счетчик 15, знаковый разр д 16 регистров, информа ионные шкны 17-19, управл ющий вкод 2 О, вход 21 запуска, вход 22 анализа результата, выходы 23-25, управл ющий 26 и знаковый 27 триггеры, элементы И 28 и 29 и элеме ИЛИ-НЕ ЗО. Устройство работает следующим обраом . На регистры 2 и 3 по шинам 18 и 19 оответственно записывактЬ  значени  нижнего и-верхнего допусков. Затем на ход 20 устройства подаетс  сигнал, по KOTopoiviy обнул ютс  триггеры 8 и 9, а триггеры 26 и 27 и счетчик 15 устанавливаютс  в 1, а также через группу 7 элементов И с шины 17 принимаетс  сравниваемое число. Все числа в устройстве представл ютс  пр мым кодом: знаковым разр дом (хранитс  в знаковых разр дах соответствующих регистров) и числовыми разр дами (хран тс  в осталь- ных разр дах регистров). Знаковый разр д числа дл  положительных и отрицательных чисел принимает значение соответственно О и 1, а числовые разр ды представл ют собой двоичный код модул  числа. Например, числа +5 и - 5 представл ютс  соответственно так: О.1О1 и 1.1О1. Затем импульсом на входе 21 запускаетс  генератор 14 импульсов и начинаетс  этап непосредственно сравнени  числа, записанного в регистре 1 с допусками, который заключаетс  в сравнении числа, .записанного в знаковом триггере 27 (знак числа ) и счетчике 15 (модуль числа) с содержимым регистров . При этом в начальный момент времени в знаковом триггере 2 7 н счетчике 15 находитс  минимальное число 1.11...1, которое увеличива сь (счетчик 15 при этом работает на вычитание, уменьша  наход щийс  в нем модуль числа ), достигает (если сравниваемое число положительное) значени  1.ОО....О. При этом срабатьтает элемент,ИЛИ-НЕ 30, сигналом с выхода которого обнул ютс  управл ющий 26 и знаковый 27 тиггеры. В знаковом триггере 27 и счетчике 15 будет .число О.ОО....О. С этого момента счетчик будет- работать на сложение и это число будет увеличиватьс . Окончание сравнени  наступает при совпадении содержимого рагистра 1 с содержимым триггера 27 и счетчика 15. При этом схема 4 сравнени  выдает сигнал. который проходит на вход останова генератора 14 импульсов, ЕСЛИ сравниваемое число меньше нижнего допуска, то после окончани  paботы генератора 14 триггеры 8 и 9 будут наэсодитБс  в состо нии О. Если сравниваемое число попадает в заданный допуск, то триггер 8 будет нахолитьс  в состо нии 1, а триггер 9 в О. Если сравниваемое число больше верхнего допуска, то триггеры 8 и 9 будут находитс  в состо нии 1. Дешифратор 10, декодиру  одно из трех указанных состо ний, выдает высокий уровень на один из элементов И 11-13. После этого на вход 22 анализа результата сигнала опроса, который пройдет на соответствующий выход устройства через тот элемент И 11-13, на вто рой вход которого подан высокий уровень с дешифратора 10, По вление сигнала на одном из ёыходов устройства свидетельствует о значении сравниваемого числа. Таким образом, в предлагаемом устройстве расширена область применени , так как оно позвол ет сравнивать отрицательные числа за счет того, что счетчик считает импульсы не с нул , а с манимального числа. Формула изобретени  Устройство дл  сравнени  чисел, содержащее регистры, схемы сравнени , группу элементов И, триггеры, дешифратор , элементы И, генератор импульсов и счетчик, причем выходы разр дов первого , второго и третьего регистров подключены к первым группам входов соответствук цих схем сравнени , первый вхо второй группы входов первой схемы сравне ни  подключен к первым входам вторых гру входов второй и третьей схем сравнени  другие входы второй группы входов первой схемы сравнени  соединены с соответствующими входами вторых групп вхо дов второй и .третьей схем сравнени  и подключены к выходам соответствутощих разр дов счетчика, информационные входы первой группы устройства подключены соответственно к информационным входам элементов И группы, выходы которых подключены к входам разр дов первого регистра соответственно, информационные входы второй и третьей грухш устройства подкЛючейы к входам первого второго и третьего регистров соответственно , вкод, запуска устройства подключен к входу запуска генератора импульсов, вход останова которого соединен с выходом первой схемы сравнени , установочный вход устройства соединен с управл ющими входами элементов и группы, с входом установки в единичное состо ние счетчика и нулевым), входами первого и второго триггеров, единичные входы которых соединены с выходами второй и третьей схем сравнени  соответственно. единичные выходы первого и второго трит геров соединены с входами дешифратора соответственно, выходы которого подключены к первым вкодам первого, второго и третьего элементов . И; соответственно, вход анализа результата устройства соединен с вторыми входами первого, второго и третьего элементов И, выходы которых подключены к выходам устройства соответственно, отличаюшеес  тем, что, с цетшю расширени  области его применени  за счет обеспечени  возможности сравнени  отрицательных чисел, оно содержит третий и четвертый триггерры , четвертый и п тый элементы iM и элемент ИЛИ - НЕ, причем установочный вход устройства соединен с единичными входами третьего и четвертого триггеров, единичный и нулевой выходы четверто.го триггера подключены к первым входам четвертого и п того элементов И соответственно , вторые входы которых соединены с выходом генератора импульсов, выходы четвертого и п того элементов И соединены соответственно с вьгчитающим и суммирующим входами счетчика, выходы разр дов счетчика соединены с входами элемента ИЛИ - НЕ, .выход feoторого подключен к нулевьп входам третьего и четвертого триггеров, выход третьего триггера соединен с первым входом второй группы входов первой схемы сравнени . Источники информации, прин тые во внимание при экспертизе 1. Авторское свидетельство СССР № 641446, кл. GO6 F 7/04, 1977. The goal is achieved by the fact that a device for comparing numbers, containing registers, comparison circuits, a group of elements AND, triggers, decoder AND, a pulse generator and a counter, the outputs of the bits of the first, second and third registers are connected to the first groups of inputs of the respective comparison circuits, The first input of the second group of inputs of the first comparison circuit is connected. to the first inputs of the second groups of inputs of the second and third comparison circuits, other inputs of the second group of inputs of the first comparison circuit are connected to the corresponding inputs of the second groups of inputs of the second and third comparison circuits and connected to the outputs of the corresponding counter bits, information inputs of the first ycTpoJteTBa group are connected respectively to informational ones QCDDs of elements AND groups, the outputs of which are connected to the inputs of the bits of the first register, respectively, informational inputs of the second and third groups of the device are connected to the input The first, second, and third registers, respectively, the start input of the device is connected to the start input of the pulse generator, whose stop input is connected to the output of the first comparison circuit, the installation input of the device is connected to the control inputs of the AND elements of the group, to the installation input to the single socket the counter and zero inputs of the first and second triggers, the single inputs of which are connected to the outputs of the second and third comparison circuits, respectively, the single outputs of the first and second triggers are connected to the inputs the decoder, respectively, the outputs of which are connected to the first inputs of the first, second and third elements And, respectively, the input analysis of the result of the device is connected to the second inputs of the first, second and third elements And, the outputs of which are connected to the outputs of the device, respectively, contains the third and fourth triggers, the fourth and the fifth elements AND and the element OR - NOT, and the installation input of the device is connected to the unit inputs: the third and fourth triggers, the unit and zero outputs of the fourth trigger are connected to the first inputs of the fourth and fifth elements And, respectively, the second inputs of which are connected to the output of the pulse generator, the outputs of the fourth and fifth elements And are connected respectively With the subtracting and summing inputs of the counter, the outputs of the bits of the counter are connected to the inputs of the element OR - NOT, output It is connected to the zero terminals of the third and fourth triggers, the output of a third of its trigger is connected to the first input of the second group of inputs of the first comparison circuit. The drawing shows a diagram of the device. The device contains registers 1-3, circuits 4-6 comparisons, a group of 7 And elements, triggers 8 and 9, a decoder 10, And 11-13 elements, an impulse generator 14, a counter 15, a sign bit of 16 registers, information screens 17 -19, control code 2 O, start input 21, result analysis input 22, outputs 23-25, control 26 and sign 27 triggers, elements 28 and 29 and OR-NOT AOR. The device works as follows. Registers 2 and 3 on tires 18 and 19, respectively, record the values of the lower and upper tolerances. Then, a signal is sent to the device stroke 20, the triggers 8 and 9 are zeroed by KOTopoiviy, and the triggers 26 and 27 and the counter 15 are set to 1, and a comparable number is received via the group 7 of the elements AND. All numbers in the device are represented by a direct code: a sign bit (stored in the sign bits of the respective registers) and a number bit (stored in the remaining bits of the registers). The sign bit of a number for positive and negative numbers takes on the value O and 1, respectively, and the number bits represent the binary code of the modulus of the number. For example, the numbers +5 and −5 are represented respectively as O.1O1 and 1.1O1. Then, a pulse generator 14 is started up with a pulse at input 21 and a stage begins directly comparing the number recorded in register 1 with tolerances, which consists in comparing the number recorded in the sign trigger 27 (number sign) and counter 15 (number modulus) with the contents of the registers. At the same time, at the initial moment of time, in the sign trigger 2 7 n, the counter 15 contains the minimum number 1.11 ... 1, which increases (counter 15 at the same time works on subtraction, decreasing the modulus of the number in it), reaches (if the compared number is positive ) values 1.OO .... O. At the same time, an element, OR-NOT 30, is triggered, the control 26 and the sign 27 tiggers are zeroed with a signal from the output of which. In the sign trigger 27 and the counter 15 there will be a number of OO .... O. From this point on, the counter will work on addition and this number will increase. The end of the comparison occurs when the contents of the register 1 coincide with the contents of the trigger 27 and the counter 15. In this case, the comparison circuit 4 generates a signal. which passes to the stopping input of the generator 14 pulses, IF the compared number is less than the lower tolerance, then after the generator 14 ends, the triggers 8 and 9 will be pressed into state O. If the compared number falls within the specified tolerance, the trigger 8 will be idle in state 1 and the trigger 9 is in O. If the compared number is greater than the upper tolerance, then the triggers 8 and 9 will be in state 1. The decoder 10, by decoding one of the three indicated states, gives a high level to one of the AND 11-13 elements. After that, the input 22 of the analysis of the result of the interrogation signal, which will pass to the corresponding output of the device through that element 11-13, the second input of which is fed high from the decoder 10, the appearance of the signal at one of the outputs of the device indicates the value of the compared number. Thus, in the proposed device, the scope is expanded, since it allows you to compare negative numbers due to the fact that the counter counts pulses not from zero, but from a minimum number. Claim device Comparison of numbers containing registers, comparison circuits, group of elements AND, triggers, descrambler, elements AND, pulse generator and counter, with the outputs of the bits of the first, second and third registers connected to the first groups of inputs of the corresponding comparison circuits The input of the second group of inputs of the first circuit is compared to the first inputs of the second group of inputs of the second and third comparison circuits; other inputs of the second group of inputs of the first comparison circuit are connected to the corresponding inputs of the second the groups of inputs of the second and third circuits are connected to the outputs of the corresponding bits of the counter, the information inputs of the first group of the device are connected respectively to the information inputs of elements AND groups whose outputs are connected to the inputs of the bits of the first register respectively, the information inputs of the second and third devices LOCKS to the inputs of the first second and third registers, respectively, in the device startup code are connected to the trigger input of the pulse generator, the stop input of which is connected to Exit first comparing circuit adjusting the input device connected with the control inputs of the elements and the group with a single input for setting the state of the counter and zero) inputs of the first and second flip-flops, single inputs of which are connected to the outputs of the second and third comparison circuits, respectively. single outputs of the first and second trigs are connected to the inputs of the decoder, respectively, the outputs of which are connected to the first codes of the first, second and third elements. AND; respectively, the input of the analysis of the result of the device is connected to the second inputs of the first, second, and third elements AND, the outputs of which are connected to the outputs of the device, respectively, characterized in that, in order to expand its field of application by allowing comparison of negative numbers, it contains the third and fourth the trigger, the fourth and fifth elements of iM and the element OR - NOT, with the installation input of the device connected to the single inputs of the third and fourth triggers, the unit and zero outputs of the fourth g the trigger is connected to the first inputs of the fourth and fifth elements And, respectively, the second inputs of which are connected to the output of the pulse generator, the outputs of the fourth and fifth elements of And are connected respectively to the highering and summing inputs of the counter, the outputs of the counter bits are connected to the inputs of the element OR - NOT, The output of which is connected to the zero inputs of the third and fourth flip-flops, the output of the third flip-flop is connected to the first input of the second group of inputs of the first comparison circuit. Sources of information taken into account during the examination 1. USSR author's certificate No. 641446, cl. GO6 F 7/04, 1977. 2. Авторкое свидетельство СССР по за вке № 2900О77/24, кл. G06F 7/04, 1979 (прототип).2. USSR author's certificate in application number 2900О77 / 24, cl. G06F 7/04, 1979 (prototype). 1818 II
SU813290420A 1981-06-02 1981-06-02 Number comparing device SU980089A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU813290420A SU980089A1 (en) 1981-06-02 1981-06-02 Number comparing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU813290420A SU980089A1 (en) 1981-06-02 1981-06-02 Number comparing device

Publications (1)

Publication Number Publication Date
SU980089A1 true SU980089A1 (en) 1982-12-07

Family

ID=20958880

Family Applications (1)

Application Number Title Priority Date Filing Date
SU813290420A SU980089A1 (en) 1981-06-02 1981-06-02 Number comparing device

Country Status (1)

Country Link
SU (1) SU980089A1 (en)

Similar Documents

Publication Publication Date Title
CA1075817A (en) Sequential encoding and decoding of variable word length fixed rate data codes
SU980089A1 (en) Number comparing device
SU1005031A1 (en) Device for comparing numbers
SU1552171A1 (en) Device for comparison of numbers in residual classes system
SU864279A1 (en) Number comparator
SU590732A1 (en) Parallel binary-decimal squaring device
SU1338066A1 (en) Pulse sequence frequency controlled divider
SU1168926A1 (en) Device for comparing binary numbers
SU1171780A1 (en) Device for determining quantity of ones in binary number
SU1608635A1 (en) Data input device
SU1016778A1 (en) Code comparison circuit
SU1517021A1 (en) Computing device
SU436351A1 (en) POSSIBLE DEVICE
SU1142829A1 (en) Device for sorting numbers
SU1741155A1 (en) Device for defining complement of a set
SU1444744A1 (en) Programmable device for computing logical functions
SU1605222A1 (en) Data input device
SU1201855A1 (en) Device for comparing binary numbers
SU1583934A1 (en) Device for sorting numbers
SU1037258A1 (en) Device for determination of number of ones in binary code
SU877515A1 (en) Data input device
SU1413622A1 (en) Number sorting device
SU767765A2 (en) Asynchronous device for determining data parity
SU970367A1 (en) Microprogram control device
SU1262472A1 (en) Information input device