CS257355B1 - Connecting the processor unit - Google Patents
Connecting the processor unit Download PDFInfo
- Publication number
- CS257355B1 CS257355B1 CS865867A CS586786A CS257355B1 CS 257355 B1 CS257355 B1 CS 257355B1 CS 865867 A CS865867 A CS 865867A CS 586786 A CS586786 A CS 586786A CS 257355 B1 CS257355 B1 CS 257355B1
- Authority
- CS
- Czechoslovakia
- Prior art keywords
- matrix
- modular
- bus
- block
- inverse
- Prior art date
Links
Landscapes
- Complex Calculations (AREA)
Abstract
Očelora zapojenia procesorovej jednotky je přesné riešenie sústavy lineárnych rovnic v oblasti zvolenej zvyškovej triedy. Uvedeného účelu sa dosiahne výpočtom inverznej matice v modulovej aritmetike, ktorý sa vykonává v aritmetickéj jednotke (A) v spolupráci s pamaťovým maticovým polom (Mj, blokom (I) tvorby modulových inverzných a negovaných čísel a blokom (C) riadiacej logiky. K riešeniu sústavy lineárnych rovnic v obore reálných čísel je potřebných viacero procesorových jednotiek (Pi až Pm), ktoré pracujú synchronně v súčinnosti s riadiacou jednotkou (R) a hostitelským počítačom (H). Zapojenie procesorovej jednotky mOže nájsť široké uplatnenie pri riešení sústav lineárnych rovnic vo všetkých oblastiach védy a techniky.The purpose of the processor unit connection is the exact solution of a system of linear equations in the area of the selected residue class. The stated purpose is achieved by calculating the inverse matrix in modular arithmetic, which is performed in the arithmetic unit (A) in cooperation with the memory matrix field (Mj, the block (I) for creating modular inverse and negated numbers and the block (C) of control logic. To solve a system of linear equations in the area of real numbers, several processor units (Pi to Pm) are required, which work synchronously in cooperation with the control unit (R) and the host computer (H). The connection of the processor unit can find wide application in solving systems of linear equations in all areas of science and technology.
Description
Vynález sa týká zapojenia procesorové] jednotky vhodnej na riešenie sústav- lineárnych rovnic v oblasti zvyškových tried na báze modulovej aritmetiky.The invention relates to the use of a processor unit suitable for solving systematic equations in the field of residual classes based on modular arithmetic.
Doteraz známe zapojenie procesorových jednotiek riešia sústavy lineárnych rovnic len v oblasti reálných čísel. Sú známe architektúry procesorových jednotiek s distribuovaným polom procesorov, ktoré umožňujú riešiť sústavy lineárnych rovnic, kde každý procesor rieši výpočet z hladiska prvku maticového pol'a. Ich spoločnou nevýhodou ostává nepriaznivý vplyv zaokrúhlovacích chýb, pretože pracujú v oblasti reálných čísel.The hitherto known involvement of processor units solves systems of linear equations only in the field of real numbers. Processor unit architectures with distributed array of processors are known which allow to solve systems of linear equations, where each processor solves the calculation from the matrix array element. Their common disadvantage remains the unfavorable effect of rounding errors because they work in the real numbers area.
Uvedenú nevýhodu odstraňuje zapojenie procesorovej jednotky podlá vynálezu, ktorého podstata spočívá v tom, že pamáťové maticové pole je spojené prvým stlpcom so zbernicou a ostatnými stlpcami cez sériovú zbernicu s aritmetickou jednotkou. Aritmetická jednotka pozostáva z n -j- 1 identických blokov modulových lineárnych operácií. Sériový vstup prvého až predposledného'· bloku modulových lineárnych operéčií je spojený s druhým až posledným stlpcom pamáťového maticového póla. Sériový výstup druhého až posledného bloku modulových lineárnych operácií je spojený s druhým až posledným stlpcom pamáťového maticového pol'a. Všetky bloky modulových lineárnych operácií sú spojené so zbernicou s ktorou je spojený blok tvorby modulových inverzných a negovaných čísel a blok riadiacej logiky. Blok riadiacej logiky je spojený jednou riadiacou zbernicou s blokom tvorby modulových inverzných a negovaných čísel a druhou riadiacou zbernicou je spojený s aritmetickou jednotkou a parná ťovým maticovým polom.This disadvantage is overcome by the wiring of the processor unit according to the invention, which is characterized in that the memory array array is connected by the first column to the bus and the other columns via a serial bus to the arithmetic unit. The arithmetic unit consists of n -j-1 identical blocks of modular linear operations. The serial input of the first to penultimate block of modular linear operations is coupled to the second to last column of the memory matrix pole. The serial output of the second to last block of modular linear operations is coupled to the second to last column of the memory array array. All blocks of modular linear operations are connected to the bus to which the block of module inversion and negation and the control logic block are connected. The control logic block is connected by one control bus to the modular inverse and negated number block, and the other control bus is connected to the arithmetic unit and the steam matrix array.
Výhoda systému na riešenie sústav lineárnych rovnic, ktorého základným prvkom je procesorová jednotka, spočívá v odstraňovaní zaokrúhlovacích chýb pri výpočte.The advantage of a system for solving systems of linear equations, the basic element of which is a processor unit, is the elimination of rounding errors in the calculation.
Na připojených výkresoch a to na obr. 1 je schematicky znázorněné blokové zapojenie systému na riešenie sústav lineárnych rovnic a na obr. 2 je znázorněné zapojenie procesorovej jednotky.In the accompanying drawings, FIG. 1 is a schematic block diagram of a system for solving systems of linear equations; and FIG. 2 shows the wiring of the processor unit.
Zapojenie systému na riešenie sústav lineárnych rovnic pozostáva z riadiacej jednotky R, ktorá je cez zbernicu Za spojená s hostitelským počitačom H a cez zbernicu Zi a paralelné spojeným procesorovými jednotkami Pi až Pm.The connection of the system for solving systems of linear equations consists of a control unit R, which is connected via bus Z to the host computer H and via bus Zi and parallel connected processor units Pi to P m .
Zapojenie procesorovej jednotky pozostáva z pamáťového maticového póla M, ktoré obsahuje η + 1 stípcov a n riadkov. Druhý až η + 1 štipec pamáťového maticového póla M je spojený cez sériovú zbernicu S s aritmetickou jednotkou A. Prvý štipec pamáťového maticového póla M je spojený so zbernicou Zi. Aritmetická jednotka A pozostáva z n -j- 1 identických blokov Ai až An+1 modulových lineárnych operácií. Každý blok Aj modulových lineárnych operácií obsahuje klopný obvod di( kde i — 1,The wiring of the processor unit consists of a memory matrix pole M that contains η + 1 columns and r rows. The second to η + 1 pin of the memory matrix pole M is connected via the serial bus S to the arithmetic unit A. The first pin of the memory matrix pole M is connected to the bus Zi. The arithmetic unit A consists of n-1 identical blocks A 1 to A n + 1 of modular linear operations. Each block I of modular linear operations contains a flip-flop d i ( where i - 1,
2, . . . n + 1. Klopné obvody di až dn+1 tvorla adresný posuvný register. Zbernica Zi je spojená s blokom I tvorby modulových inverzných a negovaných čísel a s blokom C riadiacej logiky. Zbernica Zi je spojená s blokmi Ai až An+i modulových lineárnych operácií. Blok C riadiacej logiky je riadiacou zbernicou Z3 spojený s blokom I tvorby modulových inverzných a negovaných čísel a riadiacou zbernicou Zái je. spojený s aritmetickou jednotkou A as pantátovým maticovým polom M.2,. . . n + 1. The flip-flops di to d n + 1 formed an address shift register. The bus Zi is connected to the block I of the module inversion and negation and the block C of the control logic. The Zi bus is connected to blocks Ai to A n + i of modular linear operations. The control logic block C is connected by the control bus Z3 to the modular inverse and negated number generation block I and the control bus Zi is. connected to the arithmetic unit A and the hinged matrix field M.
Hostitelský počítač H vypielů v., prvom kroku hodnoty matice' B a vektore- právej strany y sústavy lineárnych rovnicThe host computer H of polices in the first step of the value of the matrix 'B and the vector-right side y of the system of linear equations
Bx ~ y do riadiacej jednotky R. Súčasne v· tomto kroku vysiela riadiacai jednotka R do všetkých procesorových jednotiek Pi až Pm najprv hodnoty prvého riadku transportovanej matice B. V ďalšom kroku sa uskutoční paralelné vo všetkých procesorových jednotkách ΡΪ až'Pm převod čísel riadku do kódu riadku pamáťového maticového póla M na zvyškových tried a ich zápis do prvého obr. 2. To sa opakuje pre ďalšie riadky až do úplného načítania matice. Zároveň sa do n + 1 stípca pamáťového maticového póla M zapisujú v kóde zvyškových tried hodnoty vektora y. Převod sa uskutočňuje v- blokooh Ai až An+1 modulových lineárnych operácií, ktoré sa pri zápise zo zbernice Zi inicializujú postupné pomocou posuvného adresného registra zloženého z klopných obvodov di až d„+i. V druhom kroku sa počítá; inverzná matica v zmysle modulovej aritmetiky. To znamená, že pre hladanú maticu B_1 musí platitBx ~ s to the control unit M. At the same time in this step sends · riadiacai unit R in all the processing units P m and Pi first value of the first line of the transported matrix B. Next, are performed in parallel in all the processor units ΡΪ až'P transfer numbers m line into the line code of the memory matrix pole M of the residual classes and writing them to the first FIG. 2. This is repeated for the next rows until the matrix is fully loaded. At the same time, the values of vector y are written to the n + 1 column of the memory matrix pole M in the residual class code. The conversion takes place in block Ai to A n + 1 modular linear operations, which are initialized sequentially when writing from the bus Zi using a shift address register composed of flip-flops di to d "+ i. The second step counts; inverse matrix in terms of modular arithmetic. This means that for search matrix B _1 must pay
B_1 . B.(mod Mk] — E kde E je jednotková matica a Mk je modul použitý v procesorovej jednotke- Pk. Výpočet je založený na Gaussovej eliminačnej metóde v zmysle modulovej aritmetiky. Z pamáťového: maticového póla M sa> prečíta prvák Ml 1,1] a v bloku I tvorby modulových inverzných a-negovaných čísel sa vyhledá k němu inverzný prvok; ktorý spíňa podmienkuB _1 . B. (mod M k ] - E where E is a unit matrix and M k is a module used in the processor unit - P k . The calculation is based on the Gaussian elimination method in terms of modular arithmetic. 1,1] and in block I of the formation of modular inverse and negated numbers, the inverse element is searched for;
Μ-^Ι,Ι) . M<(1,1) (modiMiJ —1Μ- ^ Ι, Ι). M < (1.1) < 1 >
Prvok M-1(1,1) sa vystaví na zbernicu Zi danej procesorovej jednotky Pk a v blokoch Ai až An+1 modulových lineárnych operácií sa vykoná násobenie s prvkami M(l,2] až M(l,n], ktoré sa výstavujú po sériovéj zbernici S. Prvok M(l,n -f- 1) v bloku An+i sa nastaví na hodnotu 1. Násobenie sa potom redukuje na pripočítavanie alebo prázdnu operáciu podlá hodnoty vystavených bitov na sériovej zbernici S. Výsledná hodno257355 ta sa prevádza do hodnoty modula Mk a súčasne sa zapisuje po sériovej zbernici S do pamaťového maticového póla M. Z obrázku 2 je vidieť, že zápisom sa previedol posun riadku pamaťového maticového poia M o jednu hodnotu dol'ava. V dalšom kroku sa k prvku M(2,l) nájde v bloku I tvorby modulových inverzných a negovaných čísel hodnota —M(2,l) (mod Mu)The element M -1 (1,1) is exposed to the bus Zi of the given processing unit P k and in blocks Ai to A n + 1 of the modular linear operations are multiplied with the elements M (1,2) to M (1, n] which The M (1, n -f- 1) element in block A n + i is set to 1. Multiplication is then reduced to a credit or empty operation according to the value of the exposed bits on the serial bus S. Result value 257355 This is converted to the value of the module M k and is simultaneously written over the serial bus S to the memory matrix pole M. From FIG. 2 it can be seen that the write has shifted the row of the memory array M by one value to the left. of element M (2,1) finds in block I the creation of modular inverse and negated numbers —M (2,1) (mod M u )
Hodnoty prvého riadku, ktoré sú uchované aj v blokoch Ai až An, modulových lineárnych operácií sa vynásobené hodnotou —M(2,l) (mod Mkj připočítájú k hodnotám druhého riadku. Proces je opat paralelný. Výsledná hodnota [M(2,i) — M(l,i) .The values of the first row, which are also stored in blocks Ai to A n , of the modular linear operations are multiplied by —M (2,1) (mod M to j adds to the values of the second row. The process is parallel. , i) - M (1, i).
. M(2,l)j, kde i označuje pozíciu prvku v riadku, sa tvoří postupným načítavaním hodnot M(2,l) po sériovej zbernici S a súčasným jej připočítáváním k súčinu —M(l,i) .. M (2,1) j, where i denotes the position of the element in the row, is created by successively reading the values of M (2,1) over the serial bus S and adding it to the product —M (1, i).
. M(2,l), kde hodnota —M(2,l) je vystavená na zbernicu Zi procesorovej jednotky Pk a M(l,i) sú uchované hodnoty prvého riadku v interných registroch blokov Ai až A„ modulových lineárnych operácií. Hodnota M(2,n -j- 1) v An+1 sa nastaví na nulu. Spatný převod a zápis do pamaťového maticového póla M s posunom o jednu hodnotu dol'ava je opáť paralelizovaný. Tento proces sa opakuje pre riadky 3 až n. Výpočet inverznej matice pokračuje nájdením inverzného čísla k prvku B22 matice B sústavy lineárnych rovnic, ktorý sa dostal na pozíciu M(2,l) pamaťového maticového poťa M. Takto postupujeme až po prvok Bnn. Na začiatku celého procesu výpočtu matice B-1 e. M (2,1), where the value of M (2,1) is exposed to the bus Zi of the processing unit P k and M (1,1) retains the values of the first row in the internal registers of the blocks A 1 to A of the modular linear operations. The value of M (2, n -j-1) in A n + 1 is set to zero. The reverse conversion and writing to the memory matrix pole M with a shift of one value to the left is again parallelized. This process is repeated for lines 3 through n. The calculation of the inverse matrix continues by finding the inverse number to the element B22 of the matrix B of the system of linear equations, which got to the position M (2,1) of the memory matrix field M. This proceeds up to the element B nn . At the beginning of the whole process of calculating matrix B -1 e
(mod Mk) bol vektor y uchovaný v stípci η -j- 1 pamaťového maticového poía M. Postupné sa prepismi s posunom dostal až na pozíciu stípca 1. Aby jeho hodnoty ostali uchované, nesmú sa s ním vykonávať počas výpočtu inverznej matice operácie, tak ako s ostatnými prvkami matice. Preto adresný posuvný register zložený z klopných obvodov di až dn+i plní v procese výpočtu B-1 (mod Mk) postupné funkciu dekodéra pasivity bloku An+1 až Ai modulových lineárnych operácií. Blok A; modulových lineárnych operácií prisluchajúci polohe vektora y je pasivný a okrem přepisu a tým posunu vektora doťava nevykonává žiadnu operáciu. Týmto je připravený vektor y v prvom stípci a inverzná matica B_1 (mod Mkj v stípcoch 2 až n 1 maticového poťa M k vzájomnému vynásobeniu. To sa uskutoční postupným čítáním hodnot vektora y na zbernicu Zi procesorovej jednotky Pk, násobením odpovedajúcich riadkov pamaťového maticového poťa M danými hodnotami a připočítáním k výslednej hodnotě vektora x (mod Mk).(mod M k ) the vector y was stored in column η -j- 1 of the memory matrix field M. Gradually, it shifted to the position of column 1, in order to retain its values, it must not be processed during the inverse matrix of the operation, as with the other elements of the matrix. Therefore, the address shift register composed of flip-flops di to d n + i performs the gradual function of the passivity decoder of block An + 1 to Ai of modular linear operations in the process of calculating B -1 (mod Mk). Block A; The modular linear operations associated with the position of the vector y are passive, and do not perform any operation except transcription and thus the vector shift to the left. This was prepared in the vector y in the first column and the inverse matrix B _1 (mod mkj in Column 2 and n 1 of the matrix coating resin M to the cross-multiplying. This is accomplished by successive counting values of the vector y to the bus Z the processing unit P of, multiplying the corresponding rows of the memory nut Potau M given values and adding to the resulting value of vector x (mod M k ).
Výpočet konči prevodom výsledného vektora x z kódu zvyškových tried. Převod sa uskutočňuje modifikovaným Euklidovým algoritmom, pričom sa na ňom zúčastňujú všetky procesorové jednotky Pi až Pm. Výsledné hodnoty sa zaznamenávajú v riadiacej jednotke R a vysielajú po zbernici Z2 spáť do hostitelského počítača H.The calculation ends with the conversion of the resulting vector x from the residual class code. The conversion is performed by a modified Euclidean algorithm, in which all processing units Pi to P m are involved . The resulting values are recorded in the control unit R and transmitted back to the host computer H via bus Z2.
Vynález móže nájsť široké využitie pri riešení sústav lineárnych rovnic vo všetkých oblastiach védy a techniky.The invention can find wide application in solving systems of linear equations in all fields of science and technology.
Claims (2)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CS865867A CS257355B1 (en) | 1986-08-06 | 1986-08-06 | Connecting the processor unit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CS865867A CS257355B1 (en) | 1986-08-06 | 1986-08-06 | Connecting the processor unit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CS586786A1 CS586786A1 (en) | 1987-05-14 |
| CS257355B1 true CS257355B1 (en) | 1988-04-15 |
Family
ID=5404435
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CS865867A CS257355B1 (en) | 1986-08-06 | 1986-08-06 | Connecting the processor unit |
Country Status (1)
| Country | Link |
|---|---|
| CS (1) | CS257355B1 (en) |
-
1986
- 1986-08-06 CS CS865867A patent/CS257355B1/en unknown
Also Published As
| Publication number | Publication date |
|---|---|
| CS586786A1 (en) | 1987-05-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101536110B (en) | Error correction device and method thereof | |
| EP2017743B1 (en) | High speed and efficient matrix multiplication hardware module | |
| US3412240A (en) | Linear interpolater | |
| EP0083967B1 (en) | Monolithic fast fourier transform circuit | |
| US5513132A (en) | Zero latency overhead self-timed iterative logic structure and method | |
| US20220019407A1 (en) | In-memory computation circuit and method | |
| US20030065695A1 (en) | Component reduction in montgomery multiplier processing element | |
| CN101790718A (en) | Method and system for multiplication of large numbers | |
| CN113743600B (en) | Storage and calculation integrated architecture pulse array design method suitable for multi-precision neural network | |
| CN100435090C (en) | Scalable High-Basic Montgomery Modular Multiplication Algorithm and Its Circuit Structure | |
| JPS62256034A (en) | Pipeline computing unit | |
| Fisher et al. | Design of the PSC: A programmable systolic chip | |
| RU2163391C1 (en) | Method and device for digital processing of signals | |
| RU51428U1 (en) | FAULT-RESISTANT PROCESSOR OF INCREASED FUNCTIONAL RELIABILITY | |
| US4061906A (en) | Computer for numeric calculation of a plurality of functionally interrelated data units | |
| US4276608A (en) | Fibonacci p-code parallel adder | |
| CN117521734A (en) | An in-memory computing circuit for implementing energy-efficient multiplication operations | |
| US4845728A (en) | VLSI binary updown counter | |
| CN119357123B (en) | Memory architecture of basic linear algebra subroutine and implementation method thereof | |
| RU2249845C1 (en) | Multiplier based on neurons | |
| CN115268314B (en) | Trajectory polynomial generating device and trajectory sequence controller thereof | |
| SU940167A1 (en) | Device for solving linear simultaneous equations | |
| Ding et al. | A Memory-Efficient NTT Accelerator with a Highly Parallel Memory Mapping Scheme | |
| RU1795454C (en) | Conveyor adder | |
| SU1647591A1 (en) | Matrix inversion device |