SU1137465A1 - Squaring device - Google Patents
Squaring device Download PDFInfo
- Publication number
- SU1137465A1 SU1137465A1 SU833620998A SU3620998A SU1137465A1 SU 1137465 A1 SU1137465 A1 SU 1137465A1 SU 833620998 A SU833620998 A SU 833620998A SU 3620998 A SU3620998 A SU 3620998A SU 1137465 A1 SU1137465 A1 SU 1137465A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- group
- bit
- shift register
- register
- Prior art date
Links
Landscapes
- Complex Calculations (AREA)
Abstract
УСТРОЙСТВО ДЛЯ ЮЗВЕДЕНИЯ В КВАДРАТ, содержащее группу элементов И, накапливающий сумматор, разр дные входы которого соединены соответственно с выходами элементов И группы, отличающеес тем, что, с целью сокращени аппаратурных затрат, устройство содержит сдвиговьй регистр, выход i-го разр да которого ( i 1, П -2, где п - разр дность числа, возводимого в квадрат соединен с первым входом -го элемента И группы, пр мой выход (п-П-го разр да регистра сдвига соединен с первым входом П-го элемента И группы, инверсный выход ((п-1 )-го разргда регистра сдвига соединен с первым входом(п-1)-го элемента И группы, вторые входы элементов И группы объединены и соединены с выходом п-го разр да регистра сдвига, вход сдвига регистра соединен с входом записи накапли Бающего сумматора и тактовым входом устройства, информационный вход которого соединен с информационным входом регистра сдвига.A SQUARE FOR SQUARE IN SQUARE, containing a group of elements AND, accumulating an adder, the bit inputs of which are connected respectively to the outputs of the elements AND group, characterized in that, in order to reduce hardware costs, the device contains a shift register, the output of the i-th bit of which ( i 1, П -2, where p - the width of the number squared is connected to the first input of the th element of the group, direct output (the n-th bit of the shift register is connected to the first input of the n-th element of the And group , inverse output ((n-1) -th register register shift is connected to the first input of the (n-1) -th element of the AND group, the second inputs of the AND elements of the group are combined and connected to the output of the n-th shift register register, the shift input of the register is connected to the recording input of the Daladir accumulator and the clock input of the device, information the input of which is connected to the information input of the shift register.
Description
( г - п: Изобретение относитс к вычислительной технике и может быть исполь зовано при конструировании и разра ботке специализированных и универса ных цифровых вычислительных машин. Известно устройство дл возведени в квадрат, содержащее п-разр ный регистр основани , распределитель импульсов, группу из г элемент И-НЕ,(и-2)групп элементов И по m элементов в каждой ( - к) при 1 четном и (т )при k нечетном , где Ic - номер группы элеме тов И k l-(ti -2), п- разр дный сум матор 1 }. Недостатком данного устройства вл етс большой расход оборудовани . Наиболее близким по технической сути к изобретению вл етс устройс во дл возведени в квадрат, .содержа:щее регистр, сумматор и группу элементов И, причем выход i-ro разр да регистра подключен ко входу {2i -I )-го разр да сумматора, выходы -го и j-ro разр дов регистра (j i +1, i+2,...,n) через элемен ты И соединены с (i + j ) -м разр дом сумматора 2. Недостатком данного устройства вл етс большой расход оборудовани обусловленный использованием большог числа элементов И (приблизительно П , „ сумматоров удвоенной длины. Цель изобретени - сокращение аппаратурных затрат. Поставленна цель достигаетс тем, что устройство дл возведени в квадрат, содержащее группу элемен тов И, накапливающий сумматор, разр дные входы которого соединены соот ветственно с выходами элементов И группы, содержит сдвиговый регистр, выход i-ro разр да которого (, h-2, где п- разр дность числа, возводимого в квадрат ) соединен с первым входом I-ro элемента И группы , пр мой выход (ti-l)-ro разр да регистра сдвига соединен с первым входом и-го элемента И группы, инверсный выход(-1)-го разр да регистра сдвига соединен с первым входом (n-l)-ro элемента И группы, вторые входы элементов И группы обьединены и соединены с выходом п-го разр да регистра сдвига, вход сдвига регистра сдвига соединен с входом записи накапливающего сумматора и тактовым входом устройства,информационный вход которого соединен с информационным входом регистра сдвига. На чертеже приведена схема устройства . Устройство дл возведени в квадрат содержит тактовый вход устройства 1, сдвиговый регистр 2, информационный вход устройства 3, группу элементов И 4, накапливающий сумматор 5, выход младших разр дов устройства 6, выход старших разр дов устройства 7. Накапливающий сумматор 5 представл ет собой регистр суммы и комбинационный сумматор. Выходы регистра суммы соединены с входами комбинационного сумматора со сдвигом на два разр ды влево. Устройство работает следующим образом . Дл отыскани квадрата числа необходимо выполнить п циклов. В исходном состо нии сдвиговой регистр 2 и накапливающий сумматор 5 сброшены в ноль. Первый цикл. На аход 3 устройства подаетс младший разр д числа, возводимого в квадрат, Х и на тактовый вход 1 подаетс сигнал С . Разр д Х записываетс в h-и разр д сдвигового регистра 2, проходит через элемент И (4 1группы и поступает на вход (п-1 1-го разр да накапливающего сумматора 5. Второй цикл. На вход 3 подаетс второй разр д числа Х2 и на тактовый вход 1 сигнал С. Разр д Х переписываетс в (п-1)-й разр д сдвигового регистра 2, Х2 записываетс в h-ii разр д со входа (п-1 )-го разр да накапливающего сумматора 5. Сформированный в предьщущем цикле разр д Х записываетс в (п-1)разр д регистра суммы сумматора 5 и оттуда поступает на вход (п-З)-го разр да сумматора 5. В результате в сумматор поступают коньюкции (в п-й разр д )и (в ( )-й разр д ). Третий цикл. На входы устройства 1 и 3 подаютс С- и X, соответственно. Содержимое сдвигового регистра 2 сдвигаетс на один разр д. В сумматор поступают коньюкции XjXj в п-й разр д.(g - n: The invention relates to computing and can be used in the design and development of specialized and universal digital computers. A device for squaring, containing a n-bit base register, pulse distributor, a group of g elements, is known. I-NOT, (u-2) groups of elements I with m elements in each (- k) with 1 even u (t) with k odd, where Ic is the number of the group of elements And k k l- (ti -2), n - bit summator 1}. The disadvantage of this device is the high consumption of equipment. Its close technical essence to the invention is a device for squaring, containing: a register, an adder and a group of elements AND, the output of the i-th register bit being connected to the input of the (2i-I) -th digit of the adder, the outputs of the -th and j-ro bits of the register (ji +1, i + 2, ..., n) are connected by elements And are connected to the (i + j) th bit of the adder 2. The disadvantage of this device is the high consumption equipment due to the use of a large number of elements And (approximately P, „adders doubled length. The purpose of the invention is to reduce hardware costs. The goal is achieved by the fact that a device for squaring, containing a group of elements AND, accumulating an adder, the bit inputs of which are connected respectively to the outputs of elements AND of a group, contains a shift register, the output of which i-ro is (, h-2 where the p-width of the number squared is connected to the first input of the I-ro element AND group, the direct output (ti-l) -ro bit of the shift register is connected to the first input of the i-th element And group, inverse output (-1) -th bit of the shift register is connected to the first input of (nl) -ro element These AND groups, the second inputs of the AND elements of the group are connected and connected to the output of the n-th digit of the shift register, the shift input of the shift register is connected to the recording input of the accumulating adder and the clock input of the device, whose information input is connected to the information input of the shift register. The drawing shows a diagram of the device. The squaring device contains a clock input of the device 1, a shift register 2, an information input of the device 3, a group of elements AND 4, an accumulator adder 5, an output of the lower bits of the device 6, an output of the higher bits of the device 7. The accumulator adder 5 is a register sums and combinational adder. The outputs of the sum register are connected to the inputs of the combinational adder with a shift of two digits to the left. The device works as follows. To find the square of the number you need to perform n cycles. In the initial state, the shift register 2 and accumulating adder 5 are reset to zero. First cycle At device 3, the least significant digit of the number squared, X, and the clock input 1, signal C are supplied. Bit X is recorded in the h-and bit of the shift register 2, passes through the element And (4 1 group and enters the input (p-1 of the 1st bit accumulating adder 5. The second cycle. To the input 3 is fed the second bit of the number X2 and to the clock input 1 signal C. The bit d X is written to the (n-1) th bit of the shift register 2, X2 is written to h-ii bit from the input of the (n-1) th bit of the accumulating adder 5. Formed in the previous cycle, bit X is written to (n-1) the bit register of the sum of adder 5 and from there it goes to the input of the (n-3) th bit of the adder 5. As a result, sum Ator enters the conjunctions (in the p-th bit) and (in () -th bit). The third cycle. At the inputs of the device 1 and 3 are sent C- and X, respectively. The content of the shift register 2 is shifted by one bit. the adder receives the conjunction XjXj in the n-th bit.
311374654311374654
XjXj в (п-1)-й разр д, .- в.7, младшие - с выхода 6 устройства, (п -2)-й разр д, . Таким образом, введение сдвиговогсXjXj in (p-1) -th discharge, .- c.7, the younger ones - from the output of device 6, (n-2) -th discharge,. Thus, the introduction of shifts
Аналогичным образом выполн ютс регистра позволило сократить аппаратSimilarly, the performed register allowed to reduce the apparatus
и оставшиес ц-3 цикла. После завер-.турные затраты за счет сокращени and the remaining c-3 cycles. After completion costs due to reduction
шени последнего п-го цикла в на-числа элементов И группы с пор дкаthe last n-th cycle of a cycle in the na-numbers of elements AND groups from the order
капливающем сумматоре 5 будут записа- ni приблизительно в ны п старших разр дов квадрата числа- 2 the cumulative adder 5 will write ni approximately into us n the most significant bits of the square of the number 2
X. г, младших разр дов квадрата числа быстродействию изобретеX выход т из сумматора 5. Старшие , 2X. g, the least significant digits of the square of the number of speed of the invention, are output from the adder 5. Older, 2
разр ды квадрата считываютс с выходание не уступает прототипу.square bits are read out the output is not inferior to the prototype.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU833620998A SU1137465A1 (en) | 1983-05-05 | 1983-05-05 | Squaring device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU833620998A SU1137465A1 (en) | 1983-05-05 | 1983-05-05 | Squaring device |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1137465A1 true SU1137465A1 (en) | 1985-01-30 |
Family
ID=21074099
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU833620998A SU1137465A1 (en) | 1983-05-05 | 1983-05-05 | Squaring device |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1137465A1 (en) |
-
1983
- 1983-05-05 SU SU833620998A patent/SU1137465A1/en active
Non-Patent Citations (1)
Title |
---|
I. Авторское свидетельство СССР № 780005, кл. G 06 F 7/552, 1978. 2. Авторское свидетельство СССР № 640291, кл. G 06 F 7/552, 1977 (прототип). * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
SU1561834A3 (en) | Memory addressing device | |
SU1137465A1 (en) | Squaring device | |
SU970358A1 (en) | Device for squaring | |
SU1287143A1 (en) | Device for ranking numbers | |
SU830377A1 (en) | Device for determining maximum number code | |
SU875376A1 (en) | Device for determining maximum from m binary numbers | |
SU1388857A1 (en) | Device for logarithming | |
SU1180927A1 (en) | Correlator | |
SU1107124A1 (en) | Device for sequential extracting of ones from n-bit binary code | |
SU896616A1 (en) | Device for mutual normalizing of binary numbers | |
SU1619260A1 (en) | Matrix-type squaring device | |
SU698017A1 (en) | Digital integrator | |
SU1322269A1 (en) | Device for extracting root of sum of squares of three numbers | |
SU1552178A1 (en) | Device for computing sum of products | |
SU1481747A1 (en) | Number multiplier | |
SU1417007A1 (en) | Squaring device | |
SU1472901A1 (en) | Function generator | |
SU1229755A1 (en) | Device for multiplying in redundant number system | |
SU1010653A1 (en) | Memory device | |
SU1198524A1 (en) | Device for calculating value of check element | |
SU993262A1 (en) | Information processing device | |
SU1236465A1 (en) | Device for calculating values of trigonometric functions | |
SU1168931A1 (en) | Pipeline device for calculating values of trigonometric functions | |
SU1735907A1 (en) | Associative memory | |
SU763898A1 (en) | Microprogram control device |