SU1418749A1 - Device for multiplying matrices - Google Patents

Device for multiplying matrices Download PDF

Info

Publication number
SU1418749A1
SU1418749A1 SU874187207A SU4187207A SU1418749A1 SU 1418749 A1 SU1418749 A1 SU 1418749A1 SU 874187207 A SU874187207 A SU 874187207A SU 4187207 A SU4187207 A SU 4187207A SU 1418749 A1 SU1418749 A1 SU 1418749A1
Authority
SU
USSR - Soviet Union
Prior art keywords
inputs
registers
outputs
output
bits
Prior art date
Application number
SU874187207A
Other languages
Russian (ru)
Inventor
Иван Иванович Обод
Original Assignee
И.И.Обод
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 И.И.Обод filed Critical И.И.Обод
Priority to SU874187207A priority Critical patent/SU1418749A1/en
Application granted granted Critical
Publication of SU1418749A1 publication Critical patent/SU1418749A1/en

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

Изобретение относитс  к вычисли тельной технике и может быть использовано дл  операций над матрицами. Целью изобретени   вл етс  повьшение быстродействи . Устройство содержит регистры 1-4, блоки 5-8 пам ти,, регистры 9-12, сумматоры 13-16,.регистры 17-20, блок 21 управлени . В устройстве осуществл етс  одновременное вычисление всех элементов результиру- к цей матрицы. „ 3 ил,The invention relates to a computational technique and can be used for matrix operations. The aim of the invention is to improve the speed. The device contains registers 1-4, memory blocks 5-8, registers 9-12, adders 13-16, registers 17-20, control block 21. The device performs simultaneous calculation of all elements of the result matrix. „3 silt

Description

4(23вШ4 (23B

||ка.1Ж|| ka.1Zh

0000

4four

СОWITH

Изобретение относитс  к вычислительной технике и может быть использовано дл  операций над матрицами. The invention relates to computing and can be used for matrix operations.

Целью изобретени   вл етс  повышение , быстродействи The aim of the invention is to improve the speed

На фиг.1 представлена функциональна  схема устройства, на фиг.2 - функциональна  схема блока управле- щ , на фиг.З - временна  диаграмма работы блока управлени , ; Устройство содержит рег- истры 1-4, |блокй 5-8 пам ти, регистры 9-12, сум |маторы 13-16j регистры 17--20 и блокFig. 1 shows the functional diagram of the device, Fig. 2 shows the functional diagram of the control unit, Fig. 3 shows the time diagram of the operation of the control unit,; The device contains registers 1-4, | blocky 5-8 memory, registers 9-12, sum | matory 13-16j registers 17--20 and block

.121 управлени , элемент И 22 схему |23 сравнени , триггер 24, генератор 25 импульсов, счетчик 26д схему 27 сравнени , элемент И 28, входы 29И- 29,4 элементов первой матрицы, входы 30,1-30,4 элементов второй матрицы.121 control, element 22 And comparison circuit | 23, trigger 24, generator 25 pulses, counter 26d comparison circuit 27, element 28, inputs 29and 29.4 elements of the first matrix, inputs 30.1-30.4 elements of the second matrix

:устройства9 выходы.31 а 1-31.4 устрой:ства .: devices 9 outputs. 31 a 1-31.4 devices: cts.

i Устройство работает сл.едующим обI разом,:i The device works as a leader, once:

Регистры работают в режиме . параллельной записи информации. гистры . 17-20 также работают в режимеRegisters are working in mode. parallel recording of information. gistry. 17-20 also work in mode

.параллельной записи информации. Регистры 1-4 работают щ в режиме дарап лельной записи информации и в ратгсиме последовательного сдвига информа.цнисparallel recording of information. Registers 1–4 operate in a mode of recording information in a ratios and in the sequential shift of informational information.

Устройство производит умножение двух матриц 22. Начнем рассмотрение процесса работы устройства в момент приема очередньк значений элементов матриц. В. этом случае на третьем вы ходе блока 21 управлени  имеетс  высокий потенциал (фиг,36) разрешающий .работу регистров в режиме параллельной записи информации. По импульсу с четвертого выхода блока 21 (фиГгЗв) производитс  запись элемен тов матрицы А в регистры 1--4, При этом в регистр 1 записываетс  элемен all, в, регистр 2 - элемент .a12, в регистр 3 - элемент а21, в регистр 4 - элемент а22. В регистры 9-12 записываютс  элементы мат)ицы В „.При этом в младшие разр ды регистров 9 и 11 записываетс  элемент :Ь21,) а в старпше - элемент Ъ11j в старшиеThe device produces the multiplication of two matrices 22. Let us begin the consideration of the process of the device operation at the moment of receiving the queue values of matrix elements. B. In this case, on the third run of the control unit 21, there is a high potential (FIG. 36) allowing the registers to operate in a parallel information recording mode. The pulse from the fourth output of block 21 (FGGSv) records the elements of the matrix A into registers 1--4. In this case, the element all is written to register 1, the element a12 is written into register 1, and the element a21 is recorded into register 3 4 - element a22. In registers 9-12, the elements of the mat are written. At the same time, the element is written to the lower bits of registers 9 and 11: ,21,) and in the first order - element b11j to the senior

.разр ды регистров 10-и 12 - элемент Ь12, а в младшие - элемент Ь.22, Ре- гистры 17-20 по этому импульсу обнул ютс .The bits of the registers 10 and 12 are the element b12, and in the younger ones the element b.22, registers 17–20 are zeroed by this pulse.

После приема элементов матриц А и В вырабатываетс  высокий потеш.щат1 на втором выходе блока 21 (фиГоЗг) что разрешает работу регистров 1-4After receiving the elements of the matrices A and B, a high level of performance is generated at the second output of block 21 (fig3), which enables the operation of registers 1-4

00

5 .five .

00

5five

00

5five

в режиме последовательного сдвига информации . По импульсам с первого выхода устройства 21 управлени  (фиг,Зд) начинаетс  сдвиг информации в сторону старших разр дов.-В этл блоки 5-8 пам ти предварительно записан в  чейки пам ти результат умножени  кода адреса этих  чеек пам ти. В результате этого на выходе блоков пам -. ти всегда получаетс  результат перемножени  входньк кодов. Так как элементы матрицы А поступают поразр дно, то дл  получени  результата перемножени  матриц необходимо осуществить накопление результатов поразр дного перемножени . Это накопление осуществл етс  в накопительных сумматорах, вьшолненных на сумматоре и регистре. - Кроме того, при накоплении осуществл етс  перемножение предыдущего результата в процессе накоплени  на два о Это осуществл етс  тем, что выходы с регистров поступают на первые входы сумматоров со сдвигом на один разр д в сторону старших. Этим и осуществлено умножение на два. Запись информации в регистры 17-20 осущест- во етс  по заднему фронту импульса с первого выхода устройства 21 управлени  ;(фиг,3д) , Таким образом, на выходе регистра 17 в конце вычислений получаетс  элемент матрицы a11-Ы .1+а12|,Ъ12,, на выходе регистра 18 - .b12+a12.b12 и т.д. Дл  нагл дно.сти распишем содержание  чеек пам ти блока 5 пам ти в зависимости от входных разр дов регистров 1 и 2; , В.ЫХОД Выход Содержимоеin the sequential shift mode information. The pulses from the first output of the control unit 21 (FIG. A) start shifting the information towards the higher bits. In this block, blocks 5–8 of the memory are preliminarily recorded in the memory cells the result of multiplying the address code of these memory cells. As a result, the output of the memory blocks is. These always get the result of multiplying the input codes. Since the elements of the matrix A are bitwise received, it is necessary to accumulate the results of the bitwise multiplication in order to obtain the result of the matrix multiplication. This accumulation is carried out in accumulative adders executed on the adder and register. - In addition, during accumulation, the previous result is multiplied in the process of accumulation by two o. This is accomplished by the fact that the outputs from the registers go to the first inputs of the adders with a shift by one bit to the higher ones. This and carried out the multiplication by two. Writing information into registers 17-20 is carried out on the falling edge of a pulse from the first output of control unit 21; (FIG. 3d). Thus, at the end of the calculation, the output of the register 17 is an element of the matrix a11-Ы .1 + a12 |, B12, at the register output 18 - .b12 + a12.b12, etc. For the sake of understanding, let's write down the contents of the memory cells of memory block 5, depending on the input bits of registers 1 and 2; , V.OUT Exit Content

регист- регист- блока 5register-register-block 5

ра 1 ра 2 пам ти -. pa 1 pa 2 memory -.

О 1 О 1About 1 About 1

ОABOUT

о 1 1about 1 1

оabout

.Ъ1Г.2G

Ь21B21

Ь1НЬ21B1nb21

5five

В дальнейшем работа устройства, аналогична. . .In the future, the operation of the device is similar. . .

Устройство 21 управлени  работает Control device 21 operates

.следующим образом,.in the following way,

Генератор 25 вьграбатывает последовательность вь1ходных импульсов (фиг,За), Счетчик 26 ведет подсчет этих импульсов. Устройство 23 сравнени  имеет код сравнени  на один мпад- ший разр д меньший чем код сравнени  устройства 27 о Таким образом, первым срабатывает устройство 23, которое переключает триггер 24 в нулевое состо ние (фиг.36). Затем срабатывает устройство 27, которое возвращает триггер в единичное состо ние (фиг.Зг). В момент .нахождени  тригге ра в нулевом состо нии один импульс проходит через элемент 28 (фиг.Зв), В момент нахождени  триггера в единичном состо нии импульсы проход т через элемент 22 ().The generator 25 accumulates a sequence of incoming pulses (FIG. Pro), Counter 26 counts these pulses. Comparison device 23 has a comparison code by one m / h bit smaller than the comparison code of device 27 o. Thus, device 23 triggers first, which switches trigger 24 to the zero state (Fig. 36). Then, the device 27 is triggered, which returns the trigger to the one state (Fig. 3d). When the trigger is in the zero state, one pulse passes through element 28 (Fig. 3b). When the trigger is in the single state, the pulses pass through element 22 ().

Claims (1)

Формула изобретени Invention Formula Устройство дл  умножени  матриц, содержащее два блока пам ти, сумма- , тор и блок управлени , о т л и ч а ю щ е ё с   тем, что, с целью повышени  быстродействи , в него дополнительно введены два блока пам тиj .три сумматора, двенадцать регистров, причем информационные входы регистров с первого по четвертый под1слючены соответственно к входам элементов первой матрицы устройства с первого по четвертый, й.ервый выход блока зшрав- лени  подключен к входам синхроимпульсов сдвига регистров с первого по четвертый и к сйнхровходам регистров с п того по восьмойJ второй выход блока управлени , подключен к входам режима сдвига .регистров с первого по четвертый, вход режима записи которых подключен к третьему выходу блока управлени , четвертьй выход ко 10A device for multiplying matrices containing two memory blocks, a sum, a torus, and a control block, is necessary so that, in order to improve speed, two memory blocks are additionally inserted into it. , twelve registers, with the information inputs of the registers from the first to the fourth are respectively connected to the inputs of the elements of the first matrix of the device from the first to the fourth, the first output of the reference block is connected to the inputs of the first to fourth synchronous pulses of the registers with the synchro rods O, on the eighth — the second output of the control unit, is connected to the inputs of the shift mode. The registries from the first to the fourth, whose recording mode input is connected to the third output of the control unit, the fourth output to 10 1515 418749 . 418749. торого подключен к входам синхроимпульсов записи регистров с первого по четвертый и с дев того по двенад цатьй, а также к входам установки в О регистров с п того по восьмой, входы группы разр дов .адреса первого блока пам ти подключены к выходам первого, второго и дев того регистров , информационные входы регистров с дев того по двенадц 1 ый подключены соответственно к входам элементов второй матрицы устройства с первого по четвертьй, входы группы разр дов адреса второго блока пам ти подключены к выходам первого, второго и дес того регистров, входы группы разр дов адреса третьего блока пам ти подключены к выходам третьего, четвертого и одиннадцатого регистров, входыгруп- пы разр дов, адреса четвертого блока пам ти подключены к выходам третьего., четвертого и .двенадиатого регистров, выходы блоков пам ти с первого по четвертьш подключены соответственно к первым входам сумматоров с первого по четвертьй, выходы которых подключены соответственно к информационным входам регистров с первого по четвертьй , выходы которых подключены ссот- ветственно к выходам устройства с первого по четвертьй и к вторым входам сумматоров с первого по четвер тый.Secondly, it is connected to the inputs of clock pulses from the first to fourth register and from the ninth to the twelve, as well as to the installation inputs in О registers from the fifth to the eighth, the inputs of the group of bits. The addresses of the first memory block are connected to the outputs of the first, second and second the ninth registers, the information inputs of the registers from the ninth to the twentieth 1st are connected respectively to the inputs of the elements of the second matrix of the device from the first to the fourth, the inputs of the group of address bits of the second memory block are connected to the outputs of the first, second and ten that reg The inputs, the group of bits of the address of the third memory block are connected to the outputs of the third, fourth, and eleventh registers, the groups of bits, the addresses of the fourth memory block are connected to the outputs of the third, fourth, and twelve registers, the outputs of the memory blocks from the first on the quarter are connected respectively to the first inputs of the adders from the first to the quarter, the outputs of which are connected respectively to the information inputs of the registers from the first to the quarter, the outputs of which are connected to the outputs of the device with the first to the fourth and the second inputs of the adders from the first to the fourth. 2020 2525 30thirty Фив.2Thebes.2 аbut 1 I I I I I I I i I I 1 I LI ULJJ L1 I I I I I I I I I I 1 I LI ULJJ L 33 1 i M i 1 I i 1 I 11LLLLM1 i M i 1 I i 1 I 11LLLLM Фие.ЗFi.Z
SU874187207A 1987-01-23 1987-01-23 Device for multiplying matrices SU1418749A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU874187207A SU1418749A1 (en) 1987-01-23 1987-01-23 Device for multiplying matrices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU874187207A SU1418749A1 (en) 1987-01-23 1987-01-23 Device for multiplying matrices

Publications (1)

Publication Number Publication Date
SU1418749A1 true SU1418749A1 (en) 1988-08-23

Family

ID=21282823

Family Applications (1)

Application Number Title Priority Date Filing Date
SU874187207A SU1418749A1 (en) 1987-01-23 1987-01-23 Device for multiplying matrices

Country Status (1)

Country Link
SU (1) SU1418749A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР № 1236500, кл. G 06 F .15/347, 1984. Авторское свидетельство СССР № 647687, кл. G 06 F 15/347, 1976. *

Similar Documents

Publication Publication Date Title
SU1418749A1 (en) Device for multiplying matrices
RU2037197C1 (en) Device for solving systems of linear algebraic equations
RU1807499C (en) Matrix multiplier
SU1035603A1 (en) Device for computing inverse value
SU1444815A1 (en) Device for implementing fast hartley transform
SU1751858A1 (en) Device for calculation of remainder to modulus of binary number
SU1162040A1 (en) Digital accumalator
SU1543400A1 (en) Device for multiplication of variable by a fraction
SU1171774A1 (en) Function generator
SU1124325A1 (en) Device for selecting signals
SU1401479A1 (en) Multifunction converter
SU1562966A1 (en) Device for selection of asynchronous signals on basis of criterion "m out of n"
SU951991A1 (en) Computer
SU877529A1 (en) Device for computing square root
SU1665385A1 (en) Device for fourier-galois transformation
SU1374215A1 (en) Adder-accumulator
SU1394239A1 (en) Logical storage device
SU1418712A1 (en) Addressing device
SU855658A1 (en) Digital device for computing functions
SU1120343A1 (en) Function generator
SU1264165A1 (en) Adder-accumulator
RU2007034C1 (en) Device for generation of indexes of members of multiplicative groups from galois fields gf(p)
SU1594515A1 (en) Digital function converter
SU1661760A1 (en) Arc tan function calculator
SU1103236A1 (en) Data loding device