SU1325460A1 - Device for comparing numbers in residue system - Google Patents

Device for comparing numbers in residue system Download PDF

Info

Publication number
SU1325460A1
SU1325460A1 SU864031498A SU4031498A SU1325460A1 SU 1325460 A1 SU1325460 A1 SU 1325460A1 SU 864031498 A SU864031498 A SU 864031498A SU 4031498 A SU4031498 A SU 4031498A SU 1325460 A1 SU1325460 A1 SU 1325460A1
Authority
SU
USSR - Soviet Union
Prior art keywords
inputs
elements
input
outputs
group
Prior art date
Application number
SU864031498A
Other languages
Russian (ru)
Inventor
Сергей Николаевич Хлевной
Петр Трофимович Литвиненко
Константин Мингалеевич Сагдеев
Владимир Витальевич Фомин
Original Assignee
Предприятие П/Я Р-6208
Ставропольское высшее военное инженерное училище связи им.60-летия Великого Октября
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 Предприятие П/Я Р-6208, Ставропольское высшее военное инженерное училище связи им.60-летия Великого Октября filed Critical Предприятие П/Я Р-6208
Priority to SU864031498A priority Critical patent/SU1325460A1/en
Application granted granted Critical
Publication of SU1325460A1 publication Critical patent/SU1325460A1/en

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

Изобретение относитс  к вычислительной тетхнике. Цель изобретени  - расширение диапазона возможной разности сравниваемых чисел. Устройство содержит п (по числу оснований системы остаточных классов) коммутаторов и сумматоров, 2п-2 шифраторов, (п-2) блоков фиксации равенства , элементы ИЛИ и блок анализа, содержащий триггеры, элементы И, ИЛИ, НЕ, ИЛИ-НЕ, И-НЕ. Остатки «i-а„ и PI-рп сравниваемых чисел А и В поступают на входы устройства, затем последовательно вычисл ютс  разности |А-В| в СОК {pi, рг р„-.} и |В-AIX- Блок анализа фиксирует случаи , , либо случаи, когда устройство не может сравнивать А и В, поскольку |А-В| р1р„. 1 з.п.ф-лы, 2 ил. (Л 00 N5 СЛ 4 О5This invention relates to a computing tethnika. The purpose of the invention is to expand the range of the possible difference of compared numbers. The device contains p (by the number of bases of the system of residual classes) of switches and adders, 2π-2 encoders, (p-2) equality fixation blocks, OR elements and an analysis block containing triggers, AND, OR, NOT, OR-NOT, AND elements -NOT. The residues "i-a" and PI-pn of the compared numbers A and B are fed to the inputs of the device, then the differences | A-B | in the JUICE {pi, pg p „-.} and | B-AIX- The analysis block records cases, or cases when the device cannot compare A and B, because | A-B | p1p „. 1 hp ff, 2 ill. (L 00 N5 SL 4 O5

Description

Изобретение относитс  к вычислительной технике.The invention relates to computing.

Цель изобретени  - расширение диапазона области применени  за счет увеличени  диапазона разности сравниваемых чисел .The purpose of the invention is to expand the range of the application area by increasing the range of the difference of the compared numbers.

На фиг. 1 приведена функциональна  схема устройства; на фиг. 2 - схема блока анализа.FIG. 1 shows a functional diagram of the device; in fig. 2 is a block diagram analysis.

Устройство содержит п коммутаторов 11 - п, где п - количество оснований системы остаточных классов (СОК), две группы шифраторов 2i-2n-i и 3|-3„ 1, п сумматоров 4i-4„, (п-2) блоков 5i-5п-2 фиксации равенства , элементы ИЛИ 6-8, блок 9 анализа, п групп входов остатков первого 10 и второго 11 чисел, вход 12 задани  пор дка сравнений операндов, вход 13 начальной установки , входы 14 и 15 синхронизации, выходы «Равно 16, «Меньше 17, «Больше 18, «Несравнимо 19. На чертеже обозначены также информационные входы 20 - 22 блока 9 анализа.The device contains n switches 11 - n, where n is the number of bases of the residual class system (SOC), two groups of encoders 2i-2n-i and 3 | -3 „1, n adders 4i-4", (n-2) blocks 5i -5п-2 equality fixations, elements OR 6-8, analysis block 9, n groups of inputs of residuals of the first 10 and second 11 numbers, input 12, specify the order of comparisons of operands, input 13 of the initial setup, inputs 14 and 15 of synchronization, outputs "Equal 16, "Less than 17," More than 18, "Incomparable 19. The drawing also indicates the information inputs 20-22 of the analysis block 9.

Блок 9 анализа содержит элементы И 23-29, элементы ИЛИ 30-32, элементы НЕ 33 и 34, элементы И-НЕ 35 и ИЛИ-НЕ 36, триггеры 37 и 38.The analysis block 9 contains elements AND 23-29, elements OR 30-32, elements NOT 33 and 34, elements AND-NO 35 and OR-NOT 36, triggers 37 and 38.

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

На входы 10| -10п и lli -11„ поступают значени  остатков чисел А и В oci-а„ и р|-РП по основани м СОК pi-р«. При нулевом сигнале на входе 12 на первом и втором выходах :-го коммутатора (г 1,2,...,п) - соответственно а, и р,, а при единичном - соответственно а, и р/, а при единичном - соответственно р/ и а/. Сумматоры 4i-4„.| имеют один суммируюший и два вычитающих входа, причем при нулевом значении на входе 12 на ыходах г -го сумматора - величина ,--р,-f/, где f,- - величина на выходе г -го шифратора 2i-2„ 1 первой группы, . При единичном значении на входе 12 С,р,-а,-f,-.At the entrances 10 | -10p and lli -11 "receive the values of the residues of the numbers A and B oci-a" and p | -PP on the basis of the JUICE pi-p ". At the zero signal at the input 12 on the first and second outputs: the nd switch (r 1,2, ..., p), respectively, a, and p, and at the single — respectively, a, and p /, and at the single — respectively p / and a /. Adders 4i-4 „. | have one summing and two subtracting inputs, and with zero value at input 12 at outputs of this adder - value, - p, -f /, where f, - - value at output of the twoth encoder 2i-2 „1 first groups,. With a single value at the input 12 C, p, -a, -f, -.

Шифратор 2/ (,2,...,п-1) преобразует остаток ,г -pnlj в остаток Iv ilpt (или .-a;l(,/i в остаток ). Шифратор 3 преобразует величину Q в величинуThe encoder 2 / (, 2, ..., p-1) converts the remainder, r -pnlj into the remainder Iv ilpt (or.-A; l (, / i into the remainder). The encoder 3 converts the value of Q into the value

(.}- Cj-Xjln, где 1 (modp,-).(.} - Cj-Xjln, where 1 (modp, -).

Перед началом работы сигналом по входу 13 триггеры 37 и 38 устанавливаютс  в нулевое состо ние. На входе 12 - нулевой потенциал, поэтому на ВЕЯходах шифраторов 3|-3„ | формируютс  величиныBefore the operation of the signal at input 13, the triggers 37 and 38 are set to the zero state. At the input 12 - the potential is zero, therefore on the VEI of encoders 3 | -3 „| values are formed

,- | |а„-р„|р„|рс1е1 Если ,р,„ то ..., а если ..., то ., - | | a „-р„ | р „| рс1е1 If, р,„ then ..., and if ..., then.

ВеличинаMagnitude

, если , и , if

, если ,, if a ,

ПP

где р,-.where r, -.

с другой стороныon the other hand

pipn, если , и pipn if and

С |В-Л|р р|р,ь если .С | В-Л | р р | р, ь if.

Если С О, то Л Б.If C O, then L B.

Если после вычислени  А-B,„ при нулевом сигнале на входе 12 ... 0, то на выходах блоков 5i-5„-2 фиксации равенства , элемента ИЛИ 6 и входе 20 блока 9 анализа - нулевой уровень, на выходе элемента ИЛИ 8 - единичный уровень.If, after calculating А-B, „at zero signal at input 12 ... 0, then at the outputs of blocks 5i-5„ -2, equality is fixed, the element OR 6 and the input 20 of the analysis block 9 - the zero level, at the output of the element OR 8 - single level.

После импульса по входу 14 триггер 37 установлен в единичное состо ние, что при- 5 водит к по влению логической единицы на выходе «Больще 18 устройства. ,After the pulse at the input 14, the trigger 37 is set to one, which leads to the appearance of a logical unit at the output of “More than 18 devices. ,

Если, после вычислени  А-Б|р„ /..., то на выходе элементов ИЛИ 6 и 8 - нулевые уровни, что приводит к по влению логической единицы на 0 выходе «Равно 16 устройства.If, after calculating АB | p „/ ..., then at the output of the elements OR 6 and 8 - zero levels, which leads to the appearance of a logical unit at the 0 output“ Equal to 16 devices.

Если на выходе какого-либо блока 5i - 5л--2 сигнал логической единицы, то либо , либо . В последнем случае устройство не .может определить соотношение чисел А и В. На вход 12 подаетс  сигнал логической единицы, а затем после окончани  переходных процессоров - импульс по входу 15.If the output of a block 5i - 5l - 2 signal of a logical unit, then either, or. In the latter case, the device cannot determine the ratio of the numbers A and B. Input 12 is given a signal of a logical unit, and then after the termination of transient processors, a pulse is output 15.

Аналогично, после вычислени  |В-Л|р , если ..., то на выходе блоков 5|-5п-2, элемента ИЛИ 6 и входе 20 блока 9 анализа - нули, на выходе элемента ИЛИ 8 - единица, что после импульса по входу 15 приводит к установке триггера 38 в единичное состо ние.Similarly, after calculating | B-L | p, if ..., then the output of the blocks 5 | -5n-2, the element OR 6 and the input 20 of the analysis block 9 is zero, the output of the element OR 8 is one, that after the pulse input 15 causes the flip-flop 38 to be set to one.

После проведени  вычислени  И -В,, и 5 IB-/1|р триггеры 37 и 38 указывают на результат сравнени :After the computation of AND-B ,, and 5 IB- / 1 | p, the triggers 37 and 38 indicate the result of the comparison:

5five

00

Триггеры 37 38Triggers 37 38

О О 1 1About About 1 1

О 1 ОO 1 o

А несравнимо с В, так как 1 А-В I pip,,A is incomparable with B, since 1 A-B I pip ,,

Claims (2)

Формула изобретени Invention Formula I Устройство дл  сравнени  чисел в системе остаточных классов, содержащее п сумматоров, где п - количество оснований системы, три элемента ИЛИ, блок фиксации равенства чисел, выход которого соединен с первым входом первого элемента ИЛИ, тличающеес  тем, что, с целью расширени  области применени  за счет увеличени  диапазона разности сравниваемых чисел, в него введены п коммутаторов, две группыI A device for comparing numbers in the system of residual classes, containing n adders, where n is the number of bases of the system, three OR elements, a unit for fixing the equality of numbers, the output of which is connected to the first input of the first OR element, differing from the fact that by increasing the range of the difference of the compared numbers, n switches were introduced into it, two groups из (п-1) шифраторов кажда , (п-3) блоков фиксации равенства чисел и блок анализа, причем группа входов разр дов i-ro остатка первого и второго чисел, где i 1,2,...« , соединены соответственно с первой и второй группами информационных входов t-ro коммутатора, перва  и втора  группы выходов которого соединены соответственно с суМ Мирующим и первым вычитающим входами /-ГО сумматора, выходы п-го сумматора соединены с входами второго элемента ИЛИ и с входами всех шифраторов первой группы, выход/-го шифратора первой группы, где / 1,2,(п-1), соединен с вторым вычитающим входом /-го сумматора, выходы которого соединены с входами /-го шифратора второй группы, группа выходов k-ro шифратора второй группы, где k 1, 2,..., (п.-2), соединена с первой группой входов -го блока фиксации равенства, группа выходов ()-ro шифратора второй группы соединена с второй группой входов fe-ro блока фиксации равенства, выход 1-го блока фиксации равенства, где / 2,3,...,(п-2) соединен с /-М входом первого элемента ИЛИ, группа выходов (п-1)-го шифратора второй группы соединена с входами третьего элемента ИЛИ, выходы первого, второго и третьего элементов ИЛИ соединены соответственно с первым, вторым и третьим информационными входами блока анализа, вход задани  пор дка сравнени  операндов устройства соединен с управл ющими входами всех коммутаторов, вход начальной установки устройства соединен с входом начальной установки блока анализа, первый и второй входы синхронизации устройства соединены соответственно с первым и вторым входами синхронизации блока анализа, выходы «Равно, «Меньше, «Больше , «Несравнимо которых  вл ютс  соответственно выходами «Равно, «Меньше, «Больше и «Несравнимо устройства.from (p-1) encryptors each, (p-3) units for fixing equality of numbers and an analysis unit, with the group of inputs of bits i-ro of the remainder of the first and second numbers, where i 1,2, ... ", are connected respectively to the first and second groups of information inputs of the t-ro switch, the first and second groups of outputs of which are connected respectively to the Summing MUM and the first subtractive inputs of the I-th adder, the outputs of the n-th adder are connected to the inputs of the second OR element and the output of the / th encoder of the first group, where / 1,2, (n-1), is connected to the second you reading input of the / -th adder, the outputs of which are connected to the inputs of the / -th encoder of the second group, the output group of the k-ro encoder of the second group, where k 1, 2, ..., (p.-2), is connected to the first group of inputs th block of equality fixation, group of outputs () -ro of the encoder of the second group is connected to the second group of inputs of fe-ro block of equality fixation, output of 1st block of equality fixation, where / 2,3, ..., (p-2) connected to the / -M input of the first element OR, the group of outputs of the (n-1) -th encoder of the second group is connected to the inputs of the third element OR, the outputs of the first, second and third e The OR elements are connected to the first, second, and third information inputs of the analysis unit respectively, the input order for comparing the device operands is connected to the control inputs of all switches, the initial setup input of the device is connected to the initial setup input of the analysis unit, the first and second synchronization inputs of the device are connected with the first and second synchronization inputs of the analysis block, the outputs are Equal To, Less, No More, Which are incomparable, respectively The Equals, Less, More and "incomparably device. 00 2. Устройство по п. , отличающеес  тем, что блок анализа содержит семь элементов И, три элемента ИЛИ, два элемента НЕ, элемент И-НЕ, элемент ИЛИ-НЕ и два триггера, приче и первый информационный вход блока анализа соединен с первыми входами элемента ИЛИ-НЕ, первого и второго элементов И и через первый элемент НЕ с первыми входами третьего и четвертого элементов И, выходы последних соединены с первыми входами соответственно первого и второго элементов ИЛИ, входы которого соединены с входами установки в единичное состо ние соответственно первого и второго триггеров, пр мые выходы которого соеди5 нены с первыми входами соответственно п того и шестого элементов И, а также соответственно с первым и вторым входами элемента И-НЕ, выход которого соединен с вторыми входами п того и шестого элементов И, первым входом седьмого элемен0 та И и входом второго элемента НЕ, выходы которого  вл ютс  соответственно выходами «Больше, «Меньше, «Равно, и «Несравнимо блока анализа, вход начальной установки блока анализа соединен с2. The device according to p., Characterized in that the analysis block contains seven elements AND, three elements OR, two elements NOT, element NAND, element OR-NOT and two triggers, and the first information input of the analysis unit connected to the first inputs the element OR NOT, the first and second elements AND, and through the first element NOT with the first inputs of the third and fourth elements AND, the outputs of the latter are connected to the first inputs of the first and second elements OR, respectively, whose inputs are connected to the installation inputs of the first state respectively o and second flip-flops, the direct outputs of which are connected to the first inputs of the fifth and sixth elements AND, respectively, as well as the first and second inputs of the AND-NOT element, the output of which is connected to the second inputs of the fifth and sixth elements And, the first input the seventh element AND and the input of the second element NOT, the outputs of which are respectively the outputs "More," Less, "Equal, and" Incomparably the analysis unit, the input of the initial installation of the analysis unit is connected to 5 входами установки в нулевое состо ние первого и второго триггеров, первый вход синхронизации блока анализа соединен с вторыми входами первого и третьего элементов И, второй вход синхронизации блока анализа соединен с вторыми входами второго5 inputs for setting the first and second triggers to the zero state; the first synchronization input of the analysis unit is connected to the second inputs of the first and third elements, And the second synchronization input of the analysis unit is connected to the second inputs of the second 0 и четвертого элементов И, второй и третий информационные входы блока анализа соединены соответственно с первым и вторым входами третьего элемента ИЛИ, выход которого соединен с третьими входами третьего и четвертого элементов И и с вторым0 and the fourth And elements, the second and third information inputs of the analysis unit are connected respectively to the first and second inputs of the third OR element, the output of which is connected to the third inputs of the third and fourth And elements and to the second 5 входом элемента ИЛИ-НЕ, выход которого соединен с вторым входом седьмого элемента И, выходы первого и второго элементов И соединены с вторыми входами соответственно второго и первого элементов ИЛИ.5 input element OR NOT, the output of which is connected to the second input of the seventh element AND, the outputs of the first and second elements AND connected to the second inputs, respectively, of the second and first elements OR. 10, п,10, p, /го/ go i « I -f 1i "I -f 1 fu2.fu2. Фиг. гFIG. g 1 W1 W jvijvi
SU864031498A 1986-03-03 1986-03-03 Device for comparing numbers in residue system SU1325460A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU864031498A SU1325460A1 (en) 1986-03-03 1986-03-03 Device for comparing numbers in residue system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU864031498A SU1325460A1 (en) 1986-03-03 1986-03-03 Device for comparing numbers in residue system

Publications (1)

Publication Number Publication Date
SU1325460A1 true SU1325460A1 (en) 1987-07-23

Family

ID=21224291

Family Applications (1)

Application Number Title Priority Date Filing Date
SU864031498A SU1325460A1 (en) 1986-03-03 1986-03-03 Device for comparing numbers in residue system

Country Status (1)

Country Link
SU (1) SU1325460A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2557444C1 (en) * 2014-07-16 2015-07-20 Федеральное государственное бюджетное образовательное учреждение высшего образования "Вятский государственный университет" Device for comparing numbers in system of residual classes based on interval-positional characteristics

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР № 608155, кл. G 06 F 7/04, 1976. Акушский И. Я., Бурцев В. М., Пак И. Т. О новой позиционной характеристике непозиционного кода и ее применении-В кн.: Теори кодировани и оптимизаци сложных систем.-Алма-Ата: Наука, с. 8-16. Авторское свидетельство СССР № 873237, кл. G 06 F 7/04, 1979 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2557444C1 (en) * 2014-07-16 2015-07-20 Федеральное государственное бюджетное образовательное учреждение высшего образования "Вятский государственный университет" Device for comparing numbers in system of residual classes based on interval-positional characteristics

Similar Documents

Publication Publication Date Title
EP0208939A3 (en) Arithmetic circuit for calculating absolute difference values
SU1325460A1 (en) Device for comparing numbers in residue system
SU588543A1 (en) Device for adding binary numbers
SU1137471A1 (en) Device for determination of number of ones in data sequence
SU1644147A1 (en) Majority-redundant device
SU1285461A2 (en) Device for comparing numbers
SU1179545A1 (en) Frequency-to-number converter
SU1451691A2 (en) Modulo-m adding and subtracting device
SU962895A1 (en) Apparatus for monitoring simultaneous depression of keys
SU708249A1 (en) Arrangement for detecting short circuitings in a series of cu electrolysis bathes
SU646325A1 (en) Information exchange arrangement
SU822175A2 (en) Series-to-parallel code converter
SU1388876A2 (en) Device for addressing storage units
SU1390794A1 (en) Pulse stretcher
SU879609A2 (en) Digital function synthesizer
SU746510A1 (en) Device for subtracting non-uniform pulse-frequency trains
SU732882A1 (en) Device for resolving differential equations
SU696539A1 (en) Matrix decoder for combination switch
SU1322458A1 (en) Successive approximation register
SU957201A1 (en) Device for determination of extremal numbers
SU1684914A1 (en) Generator of pseudorandom numbers
SU798901A1 (en) Integrating device
SU1443015A1 (en) Device for determining optimized article maintenance periods
SU1115239A2 (en) Pulse repetition frequency divider with variable countdown
SU1575174A1 (en) Device for multiplying two n-digit numbers