SU1179322A1 - Device for multiplying two numbers - Google Patents
Device for multiplying two numbers Download PDFInfo
- Publication number
- SU1179322A1 SU1179322A1 SU843746600A SU3746600A SU1179322A1 SU 1179322 A1 SU1179322 A1 SU 1179322A1 SU 843746600 A SU843746600 A SU 843746600A SU 3746600 A SU3746600 A SU 3746600A SU 1179322 A1 SU1179322 A1 SU 1179322A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- inputs
- outputs
- multiplier
- block
- elements
- Prior art date
Links
Abstract
УСТРОЙСТВО ДЛЯ УМНОЖЕНИЯ ДВУХ ЧИСЕЛ, содержащее регистр множимого , регистр множител , блок формировани частичных произведений, блок синхронизации, регистры старших и младших разр дов произведений, информационные входы которых соединены соответственно с выходами старших и младших разр дов блока формировани частичных произведений, перва и втора группы входов которого соединены соответственно с выходами регистров множимого и множител , информационные входы которых соединены соответственно со входами множимого и множител устройства , выходы блока синхронизации соединены с синхровходами регистров множимого, множител , старших разр дов произведени и младших разр дов произведени соответственно, отличающеес тем, что, с целью расширени функциональных возможностей за счет обеспечени умножени двоичных целых чисел по модулю 2 -1, в него введены элемент НЕ, две группы элементов И по h элементов И в каждой, И -разр дньм сумматор и блок коррекции результата, содержащий ц -входовый элемент И и П-разр дный сумматор, причем выходы регистра младших разр дов произведени соединены со входами первого слагаемого П-разр дного сумматора, входы второго слагаемого которого соединены с вьгходами элементов И первой группы, первые входы которых соединены с выходом элемента НЕ, с s вход которого соединен со входом установки режима работы устройства и с первыми входами элементов И второй группы, вторые входы которых соединены с выходами регистра старших разр дов произведени и вторыми входами соответствующих элементов И первой группы, а выходы - с выходами старших разр дов произведени устройства , выходы младших разр дов произведени которого соединены с выходами И -разр дного сумматора бло- . ьэ ка коррекции результата, входы первого слагаемого которого соединены с ши1чд ной нулевого потенциала, а входы второго слагаемого - со входами п -входового элемента И блока коррекции результата и выходами суммы п-разр дного сумматора, выход переноса .которого соединен со входом переноса этого же г1 -разр дного сумматора, выход tl-входового элемента И блока коррекции результата соединен со входом переноса п-разр дного сумматора блока коррекции результата.A DEVICE FOR THE MULTIPLICATION OF TWO NUMBERS, containing the multiplicable register, the multiplier register, the block of formation of partial products, the synchronization block, the registers of the high and low bits of the works, the information inputs of which are connected respectively to the outputs of the high and low bits of the block of formation of partial products, the first and second groups whose inputs are connected respectively to the outputs of the multiplier and multiplier registers, the information inputs of which are connected respectively to the inputs of the multiplicand and multiplier The synchronization block outputs are connected to the synchronous inputs of the multiplicand, multiplier, higher work bits and lower work bits, respectively, characterized in that, in order to expand the functionality by providing multiplication of binary integers modulo 2 -1, the element is NOT, the two groups of elements are And by h are the elements And are in each, the AND is the bit size adder and the result correction block containing the q -input element AND and the P-bit adder, with the outputs of the low-order register n The images are connected to the inputs of the first term of the P-bit adder, the inputs of the second term of which are connected to inputs of elements AND of the first group, the first inputs of which are connected to the output of element NOT, with s whose input is connected to input of setting the operating mode of the device and with the first inputs of elements AND the second group, the second inputs of which are connected to the outputs of the high-order register of the product and the second inputs of the corresponding elements of the first group, and the outputs to the outputs of the higher-order product of the device va, outputs LSBs product of which are connected to the outputs of AND -bit adder Bloch. There is a result correction, the inputs of the first addend of which are connected to a wide zero potential, and the inputs of the second addend are connected to the inputs of the n-input element AND of the result correction block and the outputs of the sum of the n-adder, the transfer output of which is connected r1-bit adder, output of tl-input element And the result correction block are connected to the transfer input of the n-bit adder of the result correction block.
Description
Изобретение относитс к вычислительной технике и технической кибернетике и может быть использовано в устройствах дл цифровой обработки сигналов (в частности, дл цифровой обработки изображений), а также в системах кодировани , принцип действи которых базируетс на теории полей Галуа.The invention relates to computing and technical cybernetics and can be used in devices for digital signal processing (in particular, for digital image processing), as well as in coding systems whose principle of operation is based on Galois field theory.
Цель изобретени - расширение функциональных возможностей устройства за счет обеспечени дополнительно умножени п -разр дных двоичных чисел по модулю , которой отличен от степени двойки.The purpose of the invention is to expand the functionality of the device by providing an additional multiplication of n-bit binary modulus, which is different from the power of two.
На фиг,1 схематически показано устройство дл умножени двух чисел} на фиг.2 - схема блока коррекции результата .Fig. 1 schematically shows a device for multiplying two numbers} in Fig. 2 is a diagram of a result correction block.
Устройство дл умножени двух чисел (фиг.1) содержит регистры множимого 1 и множител .2, блок 3 формировани частичных произведений, регистры младших 4 и старших 5 разр до произведени , элемент НЕ 6, первую 7 и вторую 8 группу элементов И,и -разр дный сумматор 9, блок 10 коррекции результата и блок11 синхронизации.The device for multiplying two numbers (Fig. 1) contains registers of multiplicative 1 and multiplier .2, block 3 for the formation of partial products, registers of lower 4 and higher 5 bits before the product, element 6, first 7 and second group 8 elements And, and - a bit adder 9, a result correction block 10, and a synchronization block 11.
Блок 10 коррекции результата (фиг.2) содержитh-входовый элемент И 12 и 1 -разр дный сумматор 13The result correction block 10 (FIG. 2) contains an h-input element And 12 and a 1-digit adder 13
Устройство работает следующим образом .The device works as follows.
Разр ды а, ..., а, множимого и в , .., Вр| множител поступают на регистры 1 и 2 соответственно. Далее они передаютс на входы сомножителей блока 3, на выходах которого формируетс результат обычного умножени , представл ющий собой число с 2 двоичными разр дами. По сигналу приема С младшие разр ды занос тс в регистр i, а старшие - в регистр 5The bits a, ..., a, the multiplicand, and, .., BP | multipliers come to registers 1 and 2, respectively. Then they are transmitted to the inputs of the factors of block 3, the outputs of which form the result of the usual multiplication, which is a number with 2 binary bits. On the reception signal C, the lower bits are recorded in register i, and the older ones - in register 5
Если сигнал, определ ющий режим работы устройства, соответствует логической единице,то на входах элементов И с первой группы по вл ютс сигналы логического нул . Тогда на выходах Э , . , Q -разр дного сумматора 9 по вл ютс младшие разр ды произведени , а иа выходах элементов И второй группы Qti+ , ..., С) 2п старшие разр ды. Таким образом , осуществл етс обычное умножение п -разр дных двоичных чисел. If the signal that determines the operation mode of the device corresponds to a logical one, then the logical zero signals appear at the inputs of the AND elements from the first group. Then at the exits E,. , Q-bit of the adder 9 appear younger bits of the product, and on the outputs of the elements And the second group Qti +, ..., C) 2n higher bits. Thus, the usual multiplication of n-bit binary numbers is accomplished.
Так как 2 совпадает с единицей по модулю 2 -1, то 2 совпадает поSince 2 coincides with the unit modulo 2 -1, then 2 coincides on
указанному модулю с ,2,..., л). Это означает, что старшие разр ды произведени имеют тот же вес, что и соответствующие им младшие разр ды. Поэтому дл приведени произведени по модулю 2 -1 необходимо сложить два числа, образованные младшими и старшими разр дами произведени .specified module c, 2, ..., l). This means that the highest bits of the product have the same weight as the corresponding lower bits. Therefore, to bring the product modulo 2 -1, it is necessary to add two numbers formed by the lower and upper digits of the product.
Указанное действие осуществл етс в режиме умножени по модулю . Сигнал, определ ющий режим работы устройства, соответствует в таком режиме логическому нулю. На выходах элементов И первой группы по вл ютс сигналы, соответствующие старшим разр дам произведени , а на выходах элементов И второй группы - сигналы логического нул . Сумматор 9 произ .водит сложение чисел, образованных младшими и старшими разр дами. После сложени может возникнуть перенос из Г1-ГО разр да сумматора, имеющий вес 2, т.е. единица по модулю . Поэтому вводитс обратна св зь между выходом переноса и входом переноса сумматора 9. За врем двух сложений на выходах Q, , ..., Q сумматора 9 формируютс разр ды умножени по модулю 2 -1. Результат получаетс в двоичном коде.The specified action is performed in the modulo multiply mode. The signal that determines the mode of the device in this mode corresponds to a logical zero. At the outputs of the elements of the first group there appear signals corresponding to the most senior bit of the product, and at the outputs of the elements of the second group there appear signals of a logical zero. Adder 9 produces the addition of the numbers formed by the younger and older bits. After the addition, transfer from the G1-GO discharge of the adder, having a weight of 2, i.e. unit modulo. Therefore, feedback is introduced between the transfer output and the transfer input of the adder 9. During the two additions at the outputs Q,, ..., Q of the adder 9, multiplication bits are generated modulo 2 -1. The result is in binary code.
Однако устройство дл умножени двух чисел имеет в режиме умножени по модулю 2 -1 два представлени нул : 00 . . .0 и (, J такHowever, a device for multiplying two numbers in multiplication modulo 2 -1 mode has two representations zero: 00. . .0 and (, J so
Л разр довL discharge
(1 разр дов(1 bit
как число 11 ...1 сравнимо с ну11 разр довas the number 11 ... 1 is comparable to digit 11
лем по модулю . Поэтому окончательный результат необходимо скорректировать . Коррекци результата при необходимости осуществл етс блоком 10. Результат умножени (или р да умножений и сложений по модулю ) поступает на И-входной элемент И 12 и одновременно на входы первого слагаемого ц -разр дного сумматора 13 (на входы второго слагаемого подаетс сигнал логического нул ). При равенстве всех разр дов результата единице на выходе п -вхоного элемента И 12 по вл етс единица , поступающа на вход переноса h-разр дного сумматора 13. Тогда на его выходах суммы устанавливаютс нулевые значени .Lem on the module. Therefore, the final result must be adjusted. Correction of the result, if necessary, is carried out by block 10. The result of multiplication (or a series of multiplications and additions modulo) is fed to an AND input element AND 12 and simultaneously to the inputs of the first term of the c-discharge adder 13 (a logical zero signal is fed to the inputs of the second term ). When all the bits of the result are equal to one, the unit at the output of the n-element element And 12 appears the unit arriving at the transfer input of the h-bit adder 13. Then at its sum outputs zero values are set.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU843746600A SU1179322A1 (en) | 1984-03-28 | 1984-03-28 | Device for multiplying two numbers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU843746600A SU1179322A1 (en) | 1984-03-28 | 1984-03-28 | Device for multiplying two numbers |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1179322A1 true SU1179322A1 (en) | 1985-09-15 |
Family
ID=21121256
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU843746600A SU1179322A1 (en) | 1984-03-28 | 1984-03-28 | Device for multiplying two numbers |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1179322A1 (en) |
-
1984
- 1984-03-28 SU SU843746600A patent/SU1179322A1/en active
Non-Patent Citations (1)
Title |
---|
Патент US № 4037093, кл. G 06 F 7/52, опублик. 1977. Авторское свидетельство СССР № 900281, кл. G 06 F 7/52, 1979. Макаревич О.Б., Спиридонов Б.Г. Цифровые процессоры обработки сигналов на основе БИС. - Зарубежна электронна техника, 1983, № 1, с. 59-61, рис. 1,2. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4168530A (en) | Multiplication circuit using column compression | |
Agrawal et al. | On modulo (2 n+ 1) arithmetic logic | |
EP0416869B1 (en) | Digital adder/accumulator | |
GB2262637A (en) | Padding scheme for optimized multiplication. | |
US5870322A (en) | Multiplier to selectively perform unsigned magnitude multiplication or signed magnitude multiplication | |
US4118786A (en) | Integrated binary-BCD look-ahead adder | |
SU1179322A1 (en) | Device for multiplying two numbers | |
SU1667059A2 (en) | Device for multiplying two numbers | |
JPS5841532B2 (en) | Sekiwa Keisan Cairo | |
JP3071607B2 (en) | Multiplication circuit | |
SU1291973A1 (en) | Dividing device | |
RU2799035C1 (en) | Conveyor totalizer by modulo | |
SU822174A1 (en) | Converter of direct binary-decimal code into complementary binary-decimal one | |
SU696450A1 (en) | Device for adding in redundancy notation | |
SU1013946A1 (en) | Multiplication device | |
SU1208550A1 (en) | Adder operating in binary-coded decimal code | |
SU783791A1 (en) | Polynominal multiplying device | |
SU1141401A1 (en) | Device for calculating difference of two numbers | |
RU2021633C1 (en) | Multiplying device | |
SU1034032A1 (en) | Matrix computing device | |
SU1737446A1 (en) | Modulo ferma numbers adder | |
SU1119008A1 (en) | Device for multiplying binary numbers in complement representation | |
RU2069009C1 (en) | Adding device | |
JPH0784762A (en) | Multiplication circuit | |
SU769540A1 (en) | Multiplier |