SU1233153A1 - Device for taking sum - Google Patents
Device for taking sum Download PDFInfo
- Publication number
- SU1233153A1 SU1233153A1 SU843812982A SU3812982A SU1233153A1 SU 1233153 A1 SU1233153 A1 SU 1233153A1 SU 843812982 A SU843812982 A SU 843812982A SU 3812982 A SU3812982 A SU 3812982A SU 1233153 A1 SU1233153 A1 SU 1233153A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- inputs
- overflow
- code
- adders
- outputs
- Prior art date
Links
Landscapes
- Complex Calculations (AREA)
Abstract
Изобретение относитс к области вычислительной техники и может быть использовано дл построени быстродействующих арифметических устройств, работающих как в системе остаточных классов (СОК), так и в позиционно- остаточной системе счислени (ПОС). Цель изобретени - расширение функциональных возможностей за счет формировани устройством сигнала переполнени . Устройство дл сложени содержит первую и в/орую группы из п сумматоров (п - число оснований СОК), первые и вторые входы которых объединены и вл ютс входами соответствен- но первого и второго операндов в СОК. Новьм в. устройстве вл етс то, что в него дополнительно введены п мультиплексоров , переключатель режима, формирователь переполнени и два преобразовател позиционного кода в код СОК, входы которых вл ютс входами соответственно первого и второго позиционных операндов, а их выходы подключены соответственно к первьм и вторЕ м входам каждого из п су мато- ров первой группы, выходы которых подключены к соответствующим входам формировател переполнени и первым входам п мультиплексоров, вторые входы которых подк ючейы к соответствующим выходам п сумматоров второй группы выходы п мультиплексоров в- л ютс выходом суммы устройства, а их управл нщие входы объединены, подключены к выходам формировател переполнени и переключател режима и вл ютс выходом переполнени устройства 1 з.п. ф-лы. 2 ил. i (О С ю 00 И-А СП 00The invention relates to the field of computing and can be used to build high-speed arithmetic devices operating in the system of residual classes (SOC) and in the position-residual number system (PIC). The purpose of the invention is to enhance the functionality by generating an overflow signal by the device. The device for adding contains the first and second groups of n adders (n is the number of bases of the SOC), the first and second inputs of which are combined and are the inputs respectively of the first and second operands in the SOC. New in The device is that n multiplexers, a mode switch, an overflow driver, and two position code converters into a SOC code, whose inputs are the inputs of the first and second positional operands, and their outputs are connected to the first and second inputs each of the n matrices of the first group, the outputs of which are connected to the corresponding inputs of the overflow generator and the first inputs of n multiplexers, the second inputs of which are connected to the corresponding the outputs n of the adders of the second group, the outputs of the multiplexers are output by the sum of the device, and their control inputs are combined, connected to the outputs of the overflow driver and the mode switch and are the output of the overflow device f-ly. 2 Il. i (О Сю 00 И-А СП 00
Description
11eleven
Изобретение относитс к вычислительной технике и может быть использовано дл построени быстродействующих арифметических устройств, работающих как в системе остаточных клас- сов (СОК), так и в позиционно-оста- точной системе счислени (ПОС),The invention relates to computing and can be used to build high-speed arithmetic devices operating in the residual class system (SSC) and in the position-residual number system (POS).
Цель изобретени - расширение функциональных возможностей за счет формировани устройством сигнала пере- The purpose of the invention is to expand the functionality by forming a signal
полнени , )plump,)
На фиг. 1 представлена структурна схема устройства дл сложени ; на фиг. 2 структурна схема форми- ровател переполнени ,,FIG. 1 is a block diagram of the device for addition; in fig. 2 block diagram of the overflow driver
Устройство содержит первый преобразователь позиционного кода 1 в код системы остаточных ютассов, второй преобразователь 2 позиционного кода в код системы остаточных классов, вход 3 первого позиционного операнда вход 4 второго позиционного операнда первую группу 5 из п сумматоров, вторую группу 6 из п сумматоров, сумма- тор 7 первой группь из п сумматоров, сумматор 8 второй группы из п сумматоров , вход 9 первого операнда в СОК, вход 10 второго операнда в СОК, формирователь 11 переполнени , п коммутаторов 12, выход 13 суммы устройства , переключатель 14 режима, элемент И 15.The device contains the first converter of positional code 1 into the code of the residual system, the second converter 2 of the positional code into the code of the system of residual classes, input 3 of the first positional operand input 4 of the second positional operand first group 5 of n accumulators, second group 6 of n adders, sum- torus 7 of the first group of n adders, adder 8 of the second group of n adders, input 9 of the first operand to the SOC, input 10 of the second operand to the SOC, overflow generator 11, n switches 12, device 13 output 13, switch 14 modes, element and 15.
Формирователь 11 переполнени содержит п дешифраторов 16 двоичногоThe overflow driver 11 contains n binary decoders 16
кода в код 1 из Р, (Р; - основани code to code 1 of P, (P; - base
J J J j
СОК) , вход 17 формировател переполнени , элементы И 18 на п входов, элемент ИЛИ 19, выход 20 формировател переполнени .JUICE), the input 17 of the overflow driver, the elements AND 18 on the n inputs, the element OR 19, the output 20 of the overflow driver.
Переключатель 14 режима представл ет собой ключ, с помощью которого на управл ющие входы п ко гмутаторов 12 подаетс нулевой потенциал.Mode switch 14 is a key with which a zero potential is supplied to the control inputs of the nc switchings 12.
Предлагаемое устройство может работать в двух режимах суммировать числа, представленные кодом СОК, и суммировать числа, представленнью по зиционным (двоичным) кодом.The proposed device can operate in two modes to sum up the numbers represented by the SOC code, and to summarize the numbers represented by the positional (binary) code.
Необходимость разработки такого устройства св зана с тем, что за счет перехода в позиционных устройствах к основанию системы счислени Sj значительно превьппающему двойку, быстро растет скорость вычислении. Наиболее подход щий (по крайней мере в насто щее врем ) величиной основани вл етс . Эта величина, как известно, называетс байтом. Если жеThe need to develop such a device is due to the fact that due to the transition in the positional devices to the base of the number system Sj is much higher than the deuce, the speed of calculation quickly increases. The most appropriate (at least at the present time) base value is. This value is known to be called a byte. If
, ,
Q 5 „ Q 5 „
532532
в пределах байта оставить традиционную двоичную арифметику, то эффекта от перехода к S 2 не получитс . Если же в пределах байта применить другое кодирование (например, СОК), позвол ющее распараллелить операцию по нескольким независимьм основани м, то эффект от перехода к большому S возрастает при увеличении S.within the byte to leave the traditional binary arithmetic, the effect of the transition to S 2 will not be received. If, however, a different coding (for example, a SOC) is used within a byte, which allows the operation to be parallelized across several bases, the effect of moving to a large S increases with increasing S.
Машинное слово современной ЭВМ имеет длину обычно 2 или 4 байта. Тогда сумматор такой ЭВМ может быть построен на основе двух или четырех предложенных устройств. При этом каждый байт исходных данных, представленных двоичным кодом, с помощью преобразователей 1 и 2 преобразуетс в код СОК по п основани м Pj таким, чтобы S i Р/2, где Р п Р; диапазон СОК. Такое требование к Р св зано с необходимостью формировани сигнала V переноса (переполнени через S) из младшего S-ичного разр да в старший S-ичный разр д. Поскольку основани Р- СОК взаимно простые числа, из которых только одно может быть четным или кратным степени двойки, то невозможно подобрать такое S, которое удовлетвор ло бы условию 2 S Р/2 (где, в частном случае, ). Поэтому в дальнейшем будем полагать, что S . Наиболее удачным набором оснований СОК дл вл етс значени Р 8, Р, 5, РО, 13, дл которьгх Р 520, Р/2 260. Удобство таких оснований состоит и в упрощении преобразователей 1 и 2, поскольку в качестве остатка от двоичного числа по основанию Р 8 можно вз ть три его младших двоичных разр да. Тогда преобразователи 1 и 2 должны формировать только остатки по основани м Р 5 и Р 13. В общем случае добитьс такого упрощени не всегда удаетс , поэтому чертеж выполнен дл общего случа . Двоична разр дность основани равна ,т log Р, - ближайшее большое и.елое. Так дл приведенного 0 набора оснований m га + т + i , 3 + 3 + 4 10 бит.The machine word of a modern computer is usually 2 or 4 bytes long. Then the adder of such a computer can be built on the basis of two or four proposed devices. At the same time, each byte of the source data represented by the binary code is converted by means of converters 1 and 2 into an ROC code for p bases Pj such that S i P / 2, where P p P; SOC range. Such a requirement for P is associated with the need to form a transfer signal V (overflow through S) from a younger S-like bit to a higher S-ary bit. Since the bases of the P-SOM are mutually prime numbers, of which only one can be even or multiple degree of two, then it is impossible to choose an S that would satisfy the condition 2 S Р / 2 (where, in the particular case,). Therefore, in the following, we assume that S. The most successful SOK base set for is P 8, P, 5, PO, 13, for which P 520, P / 2 260. Convenience of such bases consists in simplifying converters 1 and 2, since The base of P8 can be taken from its three lower binary bits. Then the transducers 1 and 2 should form only residues at the bases of P 5 and P 13. In general, this simplification is not always possible to achieve, so the drawing is made for a general case. Binary base depth is, m log P, is the nearest large and white. So for the given 0 base set m ha + t + i, 3 + 3 + 4 10 bits.
Если преобразователи 1 и 2 выпол- НЯ(УЬ на основе ПЛМ 556 серии, то дл каждого из них потребуетс применить по три корпуса 256x4 бит.If transducers 1 and 2 are executed (UB based on PLA 556 series, then for each of them you will need to use three 256x4 bit packages.
Устройство работает следующим образом .The device works as follows.
Режим с аперандами в коде СОК.Mode with uprands in the code JUICE.
00
SSSS
Переключатель 14 режима подает (гуле- вой потенциал. Операнды, представленные кодом СОК по п основани м в виде А (,, , .,.,, ) и а ( „ ft, , . . ,, р |), А : Р, Б Р, по входам 9 и 10 поступают на соответствующие входы сумматоров 7 и 8 первой 5 и второй 6 групп. На вькоде сумматоров 7 первой группы 5 формируетс величинаSwitch 14 of the mode delivers (a head potential. Operands represented by a JUICE code according to n grounds in the form A (,, ,,.,. ,,) and a („ft,,.., Р |), А: Р , БР, through the inputs 9 and 10 arrive at the corresponding inputs of the adders 7 and 8 of the first 5 and second 6 groups. On the code of the adders 7 of the first group 5, the value
G - А + В (с, о/ + (,,Э, ,.., Д.).G - А + В (с, о / + (,, Э, .., D.).
о. ) +about. ) +
пP
, 2 , , 2,
Выходные сигналы сумматоров 8 второй группы 6 в данном случае не используютс , поскольку переключатель 14 режима обнул ет выход формировани переполнени и на выходы ко1чму- таторов 12 пройдет величина С G. Результат суммировани С, как и исходные операнды, представлены остатками по п основани м СОК.The output signals of the adders 8 of the second group 6 are not used in this case, since the mode switch 14 zeroes the overflow shaping output and the outputs of the switches 12 are passed to the value C. G. The summation result C, like the initial operands, is represented by residues at the bottom of the JUICE .
Режим с операндами в позиционном (двоичном коде). Переключатель 14 режима не подает нулевой потенциал.Mode with operands in positional (binary code). The mode switch 14 does not supply a zero potential.
Операнды представленные 1 разр д- Operands presented 1 bit d-
ным двоичным кодом в виде А а 1the binary code in the form of a a 1
5five
Ь..2B.2
причем А S, В S,moreover A S, B S,
50 5550 55
S 2, где S - величина основани системы счислени . Операнды А и В по входам 3 и 4 поступают на первый 1 и второй 2 преобразователи, где они преобразуютс в код СОК, каждый 35 по п основани м, С выходов преобразо- .вателей 1 и 2 операнды А и В в коде СОК А (of, Ы, ..., ) и В (jB, Э Ph поступают на первые и вторые входы сумматоров 7 и 8 40 первой 5 и второй 6 групп, на выходах которых образуютс величины G иS 2, where S is the base number of the number system. Operands A and B through inputs 3 and 4 are fed to the first 1 and second 2 converters, where they are converted into a JUICE code, each 35 in paracellists, From the outputs of converters 1 and 2, and the operands A and B in the JUICE A code ( Of, S, ...,) and B (jB, E Ph arrive at the first and second inputs of adders 7 and 8 40 of the first 5 and second 6 groups, the outputs of which form the values of G and
50 55 50 55
, где G where G
А + В - S - ((,, с./,о) +А + В - S - ((,, с ./, о) +
-KLS, ,i,...,,/) - (S, .S, S). -Kls, i, ... ,, / / - (s, .s, s).
Формирователь 11 переполнени фомирует сигнал V по правилу (О, если G SThe overflow driver 11 generates the V signal according to the rule (O, if G S
1,one,
если G S, о , если V 0if G S, oh if V 0
тогда С - then C -
G , если V 1.G if V 1.
Поскольку величина S вл етс константой , то ее вычитание можно учесть при составлении таблиц, по которым выполн ютс операции в сумматорах 8 группы 6. Эти таблицы рассчитываютс со смеп(ением на величи Since the value of S is a constant, its subtraction can be taken into account when drawing up the tables for which operations are performed in the adders 8 of group 6. These tables are calculated with a shift (by
1515
2525
2020
35 40 35 40
5five
ну - (S)P, по каждому из оснований СОК. Так, дл рассмотренного в материалах за вки набора основалий величина имеет вид S /О, 1, 9/-, т.е. 5 по первому основанию коррекци равна О п О, п -1, п -9, с.помощью сигнала v на выходы п коммутаторов 2передаетс либо G,либо & ,а с выхода Зснимаетс сигнал переполнени . 10 Таким образом, предлагаемое устройство формирует сигнал переполнени , что позвол ет ему работать в. .СОК, ПОС и с двоичными операндами.well - (S) P, for each of the bases of JUICE. So, for the set of foundations considered in the materials of the application, the value is S / O, 1, 9 / -, i.e. 5, on the first base, the correction is equal to O p O, p -1, n -9, s using signal v to the outputs n of switches 2 is transmitted either G or & and the overflow signal is cleared from the output. 10 Thus, the proposed device generates an overflow signal, which allows it to operate in. SOK, PIC and binary operands.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU843812982A SU1233153A1 (en) | 1984-11-15 | 1984-11-15 | Device for taking sum |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU843812982A SU1233153A1 (en) | 1984-11-15 | 1984-11-15 | Device for taking sum |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1233153A1 true SU1233153A1 (en) | 1986-05-23 |
Family
ID=21146941
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU843812982A SU1233153A1 (en) | 1984-11-15 | 1984-11-15 | Device for taking sum |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1233153A1 (en) |
-
1984
- 1984-11-15 SU SU843812982A patent/SU1233153A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР 446056, кл. G 06 Y 1/72, 1975. Авторское свидетельство СССР « 883903, кл. .С 06 F 7/72, t98t. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0271255A3 (en) | High-speed binary and decimal arithmetic logic unit | |
GB1430814A (en) | Residue generating circuit | |
JPH05134851A (en) | Multiplying circuit output system | |
ES465443A1 (en) | High speed binary and binary coded decimal adder | |
SU1233153A1 (en) | Device for taking sum | |
GB1579100A (en) | Digital arithmetic method and means | |
EP0326182A3 (en) | High speed digital signal processor for signed digit numbers | |
US3786490A (en) | Reversible 2{40 s complement to sign-magnitude converter | |
JPS592934B2 (en) | Niyuuriyokusouchi | |
JPS56152046A (en) | Arithmetic and logic circuit | |
SU1001085A1 (en) | Device for computing complex number modulus | |
SU746505A2 (en) | Device for raising binary numbers to the third power | |
SU1264160A1 (en) | Device for calculating sets of logic functions | |
SU1679479A1 (en) | Faber-schouder signal generator | |
SU1193663A1 (en) | Adder for compressed codes | |
JPS62154029A (en) | Multiplier circuit | |
RU2022337C1 (en) | Parallel sign-digit code/additional binary code converter | |
RU2037268C1 (en) | Binary-coded-decimal-code-8-4-2-1-to-code-5-4-2-1 converter | |
SU864282A1 (en) | Computing module | |
US3423577A (en) | Full adder stage utilizing dual-threshold logic | |
JP3093564B2 (en) | Multiplication device | |
SU771665A1 (en) | Number comparing device | |
SU411450A1 (en) | ||
SU1401449A1 (en) | Switching network | |
SU911516A1 (en) | Device for computing complex number absolute value |