SU951297A1 - Device for determination of two number difference - Google Patents

Device for determination of two number difference Download PDF

Info

Publication number
SU951297A1
SU951297A1 SU782671767A SU2671767A SU951297A1 SU 951297 A1 SU951297 A1 SU 951297A1 SU 782671767 A SU782671767 A SU 782671767A SU 2671767 A SU2671767 A SU 2671767A SU 951297 A1 SU951297 A1 SU 951297A1
Authority
SU
USSR - Soviet Union
Prior art keywords
numbers
difference
output
counter
comparison circuit
Prior art date
Application number
SU782671767A
Other languages
Russian (ru)
Inventor
Игорь Вячеславович Войнов
Анатолий Владимирович Курников
Original Assignee
Предприятие П/Я В-8708
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 Предприятие П/Я В-8708 filed Critical Предприятие П/Я В-8708
Priority to SU782671767A priority Critical patent/SU951297A1/en
Application granted granted Critical
Publication of SU951297A1 publication Critical patent/SU951297A1/en

Links

Landscapes

  • Complex Calculations (AREA)

Description

(54) УСТГОЙСТВО ДЛЯ ОПРЕДЕЛЕНИЯ РАЗНОСТИ ДВУХ(54) CONSTITUTION FOR DETERMINATION OF TWO DIFFERENCE

1one

Изобретенне относитс  к автоматике и вычислительной технике и предшйначено дл  определени  абсолютного значени  и знака разности сравниваемых чисел.The invention relates to automation and computing technology and is predefined to determine the absolute value and sign of the difference of the numbers being compared.

Известно устройство дл  определени  разности двух чисел, основанное на последовательном вычитании единичных импульсов из двух счетчиков, в которых хран тс  коды зтих чисел tl.A device for determining the difference of two numbers is known, based on sequential subtraction of single pulses from two counters in which codes of these tl numbers are stored.

Однако дл  зтого устройства характерна потер  быстродействи  при нарушении услови  А-В - где А и В - фавниваемые числа.However, for this device, there is a characteristic loss of speed when the AB condition is violated - where A and B are favored numbers.

Наиболее близким к предлагаемому  вл етс  устройство дл  определени  разности двух чисел, содержащее счетчики, на которые подаютс  сравниваемые тсла А и В в параллельном коде, схему .сравнени , нмеющую выходы Больше и Меньше, элементы И, генератор импульсов, триггер знака и счетчик абсолютного значени  разности с выходом в виде параллельиого кода 2.The closest to the present invention is a device for determining the difference of two numbers, containing counters, which are compared comparable A and B in a parallel code, a comparison circuit, storing More and Less, elements And, a pulse generator, a sign trigger and an absolute value counter difference with the output in the form of parallel code 2.

Однако нзвестное устройство характеризуетс  неоптимальностью схемного решени , обусП19вленной тем, что используемый алгоритмHowever, the known device is characterized by the non-optimality of the circuit design, due to the fact that the algorithm used

ЧИСЕЛNUMBERS

сравнени  чисел А и В основан на прибавлении определершого числа к меньшему из сравниваемых чисел, а так как априорно обычно не известно, какое из чисел меньше, то дл  технической реализаш и устройства требуетс  два счетчика, в которые подаютс  сравннваемьсе числа А и В.comparing numbers A and B is based on adding a definitive number to the smaller of the numbers being compared, and since it is usually not known a priori which of the numbers is smaller, two counters are required for technical realization and device, which are compared to numbers A and B.

Цель изобретени  - зшрошение устройства.The purpose of the invention is to expand the device.

Поставленна  цель достигаетс  тем, что устройство, содержащее два счетчика, схему сравненн , генератор импульсов, элемент И н триггер знака, причем выходы разр дов первого счетчика соединены с входами первой группы схемы сравнени , выход генератора нмпульсов соедннен с. .первым входом элемента И, выход которого подключен к счетным входам первого и второго счетчиков, содержит регистр, выходы разр дов которого соедииены с входами второй группы схемы сравиени , первый и второй выходы схемы сравнени  соединены соответственно с входами заданн  режима суммнровани  и вычитани  первого счетчика и с установочными входами триггераThe goal is achieved by the fact that a device containing two counters, a circuit compared, a pulse generator, a sign element trigger, the outputs of the bits of the first counter connected to the inputs of the first group of the comparison circuit, the output of the pulse generator connected to. The first input of the AND element, the output of which is connected to the counting inputs of the first and second counters, contains a register, the outputs of which bits are connected to the inputs of the second group of the comparison circuit, the first and second outputs of the comparison circuit are connected respectively to the inputs of the specified totalizer and subtraction of the first counter and with trigger trigger inputs

знака, третий выход схемы q BHeifflfl соединен с вторым входом элемента И.sign, the third output of the q BHeifflfl circuit is connected to the second input of the element I.

На чертеже изображена функциональна  схема устройства дл  определени  разности двух чисел.The drawing shows a functional diagram of the device for determining the difference of two numbers.

Устройство содержит реверсивный счетчик 1, регистр 2, схему сравнени  3, имекхцую.. выходы 4-6 Больше, Меньше и Неравнозначность , элемент И 7, генератор юлпупъсов 8, триггер знака 9 и счетчик 10 абсолютного значени  разности, выход 11 которого  вп etc  выходом устройства. Сравниваемые числа А и В подаютс  в параллельном кодеThe device contains a reversible counter 1, a register 2, a comparison circuit 3, ikkhtsuyu .. outputs 4-6 More, Less and Unequivalence, the element And 7, generator julpup 8, the trigger sign 9 and the counter 10 absolute value of the difference, output 11 of which in etc etc devices. The numbers A and B compared are supplied in parallel code.

на входы 12 и 13 реверсивного счетчика 1 и регистра 2 соответственно, выхода которых подключены к схеме сравнени  6, выходы 4 и 5 Больше и Меньше схемы сравнени  3 подключены к входам триггера знака 9 и к входам задани  режима суммиров анн  и вычитани  счетчика 1, выход 6 Неравнозначность схемы сравнени  3 соединен с входом элемента И 7, другой вход которого соединен с выходом генератора импульсов 8, выход элемента И 7 подключен к счетным входам реверсивного счетчика 1 и счетчика 10 абсолютного значени  разности.to inputs 12 and 13 of the reversible counter 1 and register 2, respectively, whose outputs are connected to a comparison circuit 6, outputs 4 and 5 More and Less than the comparison circuit 3 are connected to the trigger inputs of character 9 and to the inputs of setting the summation mode Ann and subtraction of counter 1, output 6 The unequality of the comparison circuit 3 is connected to the input of the element AND 7, another input of which is connected to the output of the pulse generator 8, the output of the element 7 is connected to the counting inputs of the reversible counter 1 and the counter 10 of the absolute value of the difference.

Устройство работает следуюшим образом. . Если число А больше числа В, на выходе 4 схемы сравнени  3 по вл етс  сигнал, который устанавливает триггер знака 9 в положение, соответствующее знаку плюс, и похцслючает реверсивный счетчик 12 в режим вычитани . Одновременно шгнал с выхода 6 Неравнозначность схемы сравнени  3 открывает элемент И 7, и импульсы с генератора 8 поступают на входы счетчиков 1 и 10. Когда числа, записанные в счетчнке 1 и регистре 2, сравн ютс , на выходе 6 схемы сравнени  3 пропадает сигнал, что закрывает элемент И 7, При этом в счетчике 10 зафиксирован код абсолютного значени  разности фавниваемых чисел (|Cf |А-В/) а состо ние триггера 9 соответствует знаку разности.The device works as follows. . If the number A is greater than the number B, the output 4 of the comparison circuit 3 shows a signal that sets the trigger of sign 9 to the position corresponding to the plus sign, and turns the reversible counter 12 into subtraction mode. At the same time, the signal from output 6 The unequality of the comparison circuit 3 opens element 7 and the pulses from generator 8 arrive at the inputs of counters 1 and 10. When the numbers recorded in counter 1 and register 2 are compared, the output 6 of comparison circuit 3 disappears which closes the element AND 7, In this case, the counter 10 records the code of the absolute value of the difference of the supported numbers (| Cf | AB), and the state of the trigger 9 corresponds to the sign of the difference.

При устройство работает аналогичио рассмотренному случаю.When the device works analogy to the case.

Использование реверсивного счетчика и регистра вместо двух счетчиков и одного элемента И вместо двух элементов И, выходы которых монтажно объединены , упрощают схему данного устройства по сравнению с прототипом.Using a reversible counter and register instead of two counters and one element And instead of two elements And, the outputs of which are assembly and integrated, simplify the design of this device compared to the prototype.

Claims (2)

1.Авторское свидетельство СССР № 167317, кл. G 06 F 7/02, 1963.1. USSR author's certificate number 167317, cl. G 06 F 7/02, 1963. 2.Авторское свидетельство СССР № 341031, кл. G 06 F 7/02, 1970 (прототип).2. USSR author's certificate number 341031, cl. G 06 F 7/02, 1970 (prototype).
SU782671767A 1978-10-02 1978-10-02 Device for determination of two number difference SU951297A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU782671767A SU951297A1 (en) 1978-10-02 1978-10-02 Device for determination of two number difference

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU782671767A SU951297A1 (en) 1978-10-02 1978-10-02 Device for determination of two number difference

Publications (1)

Publication Number Publication Date
SU951297A1 true SU951297A1 (en) 1982-08-15

Family

ID=20788379

Family Applications (1)

Application Number Title Priority Date Filing Date
SU782671767A SU951297A1 (en) 1978-10-02 1978-10-02 Device for determination of two number difference

Country Status (1)

Country Link
SU (1) SU951297A1 (en)

Similar Documents

Publication Publication Date Title
SU951297A1 (en) Device for determination of two number difference
SU601703A1 (en) Gaussian function integrator
SU686029A1 (en) Device for determining the difference of two numbers
SU518003A1 (en) Reversible decimal pulse counter
SU575645A2 (en) Device for comparing numbers following one by one
SU1280603A1 (en) Information input device
SU645152A1 (en) Binary number comparing arrangement
SU732892A1 (en) Stochastic functional converter
SU542338A1 (en) Periodic pulse frequency multiplier
SU448461A1 (en) Device for dividing numbers
SU1405055A1 (en) Square rooting device
SU660048A1 (en) Binary multiplier of pulse number by plus/minus five
SU684539A1 (en) Arrangement for taking logarithms of numbers
SU849200A1 (en) Device for determination of numeric string extremum values
SU400034A1 (en) DEVICE FOR MANAGING THE REVERSIBLE COUNTER
SU1553972A1 (en) Squaring device
SU556500A1 (en) Memory register for shift register
SU547766A1 (en) Dividing device
SU842806A2 (en) Device for computing the square root
SU769537A1 (en) Squarer
SU1434430A1 (en) Generator of uniformly distributed random numbers
SU369565A1 (en) DEVICE FOR CALCULATION OF FUNCTION y = e ^
SU949654A1 (en) Square rooting device
SU446054A1 (en) Device for converting binary numbers
SU1166100A1 (en) Dividing device