SU1325460A1 - Device for comparing numbers in residue system - Google Patents
Device for comparing numbers in residue system Download PDFInfo
- 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
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)
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)
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 |
-
1986
- 1986-03-03 SU SU864031498A patent/SU1325460A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР № 608155, кл. G 06 F 7/04, 1976. Акушский И. Я., Бурцев В. М., Пак И. Т. О новой позиционной характеристике непозиционного кода и ее применении-В кн.: Теори кодировани и оптимизаци сложных систем.-Алма-Ата: Наука, с. 8-16. Авторское свидетельство СССР № 873237, кл. G 06 F 7/04, 1979 * |
Cited By (1)
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 | |
SU864279A1 (en) | Number comparator | |
SU708249A1 (en) | Arrangement for detecting short circuitings in a series of cu electrolysis bathes | |
SU604152A1 (en) | Arrangement for analysis of binary code combinations | |
SU646325A1 (en) | Information exchange arrangement | |
SU822175A2 (en) | Series-to-parallel code converter | |
SU1388876A2 (en) | Device for addressing storage units | |
SU788378A1 (en) | Device for checking "1 from n" code | |
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 | |
SU1256092A1 (en) | Device for checking synchronism of reproduced signals | |
SU1322458A1 (en) | Successive approximation register | |
SU1506544A1 (en) | Threshold logical element | |
SU957201A1 (en) | Device for determination of extremal numbers |