분석해서 한글로 설명해주세요. I will tip $400. VECTOR PROCESSOR AND CONTROL may be an address of…
- User
분석해서 한글로 설명해주세요. I will tip bottom , diagonal , num_row , num_col , Alternatively , if the number of bits of the reference row_stride , col_stride register address is predetermined , data stored in the plurality Here , diagonal may be bottom of register files 110 may be determined based on the number address , right address , and diagonal address , respectively . of bits of the reference register as well . The num_row , and num_col may be the maximum value in FIGS . 5A and 5Bs are views to describe an operation of 30 the vertical direction and the maximum value in the hori a shuffle unit 120 according to an embodiment of the zontal direction , respectively . The row_stride and col_stride disclosure . may be a vertical increment or a horizontal increment , As illustrated in FIG . 5A the leftmost multiplexer may respectively . That is , the configuration register 144 may receive an input of the input data ( 0,0 ) , ( 0 , 1 ) , ( 0 , 2 ) , and ( 0 , receive the maximum value in the vertical direction , the 3 ) outputted from the plurality of register files 110 in the TO 35 maximum value in the horizontal direction , the vertical cycle . The leftmost multiplexer may output ( 0 , 0 ) as the increment ,and the horizontal increment as column size reg . , input data . The remaining multiplexers may be operating in row size reg . , row index reg . , and column index reg . , the similar manner . respectively . The pattern reg . may be input as the instruction At this time , the shuffle control unit 140 may provide itself and represents a reference pattern . information on data that each multiplexer has to output in 40 Here , the reference pattern represents a data access order . each cycle . For example , the shuffle control unit 140 may For example , the reference pattern may be one of 1D control the leftmost multiplexer to output the input data increase , 2D increase , and 2D zigzag . input through the first input port of the leftmost multiplexer The control unit 143 may receive an input of the above in the TO cycle . data and control the address multiplexer 141 and the shuffle Then , as illustrated in FIG . 5B , the leftmost multiplexer 45 data path 120-1 . may receive the input data ( 0 , 0 ) , ( 0 , 1 ) , ( 0 , 2 ) , and ( 0 , 3 ) Besides , a state update instruction after the multiplication outputted from the plurality of register files 110 in the Ti operation or multiply and add ( MAC ) operation may be cycle . The leftmost multiplexer may output ( 0 , 1 ) as input used , as shown below . data . The remaining multiplexers may be operating in the Instruction 2 ] similar manner . 50 sf_mul multiplicand , acc , multiplier leftmost multiplexer to output the input data input through In instruction 2 , multiplicand may be an image , and the second input port of the leftmost multiplexer in the Ti multiplier may be a filter . Here , res may be the multiplication cycle . result of multiplicand and multiplier , and acc may be the That is , the shuffle unit 120 may be implemented with a 55 result of adding the result of multiplying multiplicand and plurality of multiplexers , and each multiplexer may receive multiplier to the previous value . a plurality of input data and output one of the input data . As described above , when instruction 1 and instruction 2 Through the above operation , the SIMD lane in which each are used , simplification of a program code is possible . of the plurality of input data is to be operated may be FIG . 7 is a view to describe simplification of a program changed . 60 code according to an embodiment of the disclosure . The shuffle unit 120 may receive and perform shuffling of The left side of FIG . 7 illustrates a program code accord a plurality of input data , and then provide the data to the ing to the related art and the right side of FIG . 7 illustrates execution unit 130 immediately . Accordingly , the power a program code according to this disclosure . consumption for storing the shuffled data in the register file According to the related art , data stored in a vector 110 again may be reduced , and the operation speed may be 65 register file is shuffled and then stored as a vector register file improved . In addition , the size of the hardware may be again . Accordingly , the program code according to the reduced as well . related art may include instructions for shuffling , such as a sure . 20 a US 11,263,018 B2 11 12 hcat and vcat . Also , data shuffling is required for every The input instruction may include at least one of a type of cycle , and accordingly , hcat or vcat may be necessary for operation to be processed by the execution unit , an operation every cycle . method , and information on the horizontal and vertical According to this disclosure , after the data stored in the increments . plurality of register files 110 is shuffled , operations may be 5 The step of performing parallel operation in step S830 performed immediately without storing the data in the may include performing parallel operation of input data plurality of register files 110. That is , there is no need for outputted from the shuffle unit using the scalar data output shuffling instructions such as hcat and veat , and only the ted from the scalar register file . sf_set2d instruction described above is necessary . That is , According to various embodiments of the disclosure as the initial input of the instruction sf_set2d is stored as the 10 described above , the vector processor may perform shuffling shuffling method , and the plurality of register files 110 may of the input data and then perform operation without re storing , thereby improving processing speed and energy perform shuffling for data necessary for each cycle and efficiency . provide the data . Meanwhile , the methods according to various embodi According to the disclosure , parallel operation may be 15 ments may be programmed and stored in various storage performed using sf_mul or sf_mac described above , without media . Accordingly , the methods according to various using hcat or vcat for each cycle . embodiments described above may be implemented in vari FIG . 8 is a flowchart to describe a control method of a ous types of electronic apparatuses that execute the storage vector processor according to an embodiment of the disclo- medium . Specifically , a non - transitory computer readable medium First , a plurality of data are stored in each of a plurality storing a program sequentially executing the control method of register files provided in each of a plurality of SIMD may be provided . lanes , and input data used for the current cycle among a The non - transitory computer readable medium is a plurality of data is output in step S810 . By the shuffle unit , medium that semi - permanently stores data and from which a plurality of input data outputted from the plurality of 25 data is readable by a device , but not a medium that stores register files may be received , and the received plurality of data for a short time , such as register , a cache , a memory , and input data may be shuffled and output to correspond to each the like . In detail , the aforementioned various applications or of the plurality of SIMD lanes in step S820 . Then , the input programs may be stored in the non - transitory computer data outputted from the shuffle unit may be received and a readable medium , for example , a compact disc ( CD ) , a parallel operation may be performed in step S830 . 30 digital versatile disc ( DVD ) , a hard disc , a Solid State Drive Here , the step of shuffling and outputting in step S820 ( SSD ) , a blu - ray disc , a universal serial bus ( USB ) , a may include receiving a plurality of input data outputted memory card , a read only memory ( ROM ) , and the like , and may be provided . from the plurality of register files by each of a plurality of multiplexers provided in each of the plurality of SIMD lanes 35 are merely exemplary and are not to be construed as limiting The foregoing exemplary embodiments and advantages in the shuffle unit , and outputting one input data correspond the present disclosure . The present teaching can be readily ing to the lane in which the corresponding multiplexer is applied to other types of apparatuses . Also , the description provided among the plurality of received input data . of the exemplary embodiments of the present disclosure is The method may further include controlling a plurality of intended to be illustrative , and not to limit the scope of the register files and a shuffle unit for each cycle based on an 40 claims , and many alternatives , modifications , and variations input instruction . At this time , the plurality of register files will be apparent to those skilled in the art . and the shuffle unit may be controlled for a specific cycle , The invention claimed is : and then the current state may be stored . That is , when one 1. A vector processor comprising : cycle is ended , the stored current state may be updated . a plurality of register files , wherein each of the plurality Here , the step of controlling may include transmitting the 45 of register files is provided to a corresponding lane of reference register address of each of the plurality of SIMD a plurality of single instruction multiple data ( SIMD ) lanes to each of the plurality of register files , and the lanes , stores a plurality of data , and outputs input data reference register address may be an address of input data to be used in a current cycle among the plurality of which is used for the current cycle among the plurality of data ; data stored in each register file . a shuffle unit for receiving a plurality of input data In addition , the step of controlling may include transmit outputted from the plurality of register files , performing ting the shuffle information for the plurality of input data to shuffling of the received plurality of input data such that the received plurality of input data respectively the shuffle unit , and the shuffle information may be infor correspond to the plurality of SIMD lanes , and output mation on the input data to be output in each of the plurality ting the shuffled plurality of input data , wherein a of SIMD lanes . number of the shuffled plurality of input data outputted The step of controlling may include controlling the by the shuffle unit is the same as a number of the address multiplexer to provide the reference register address plurality of input data received by the shuffle unit ; for the input data to be used in the current cycle to each of an execution unit for receiving the shuffled plurality of the plurality of register files . input data outputted from the shuffle unit and perform Here , the step of controlling may include storing the ing a parallel operation on the shuffled plurality of input reference register address of each of the plurality of SIMD data ; and lanes to at least one address register and controlling the a shuffle control unit for controlling the plurality of address multiplexer to provide one of the plurality of refer- register files and the shuffle unit based on an input ence register addresses provided from the instruction decode 65 instruction , unit and at least one address registers to a corresponding wherein the shuffle unit comprises a plurality of multi register file . plexers configured to receive the plurality of input data 50 55 60 20 25 US 11,263,018 B2 13 14 outputted from the plurality of register files and output ing , by the shuffle unit , shuffling of the received plu the shuffled plurality of input data , the plurality of input rality of input data such that the received plurality of data received by the plurality of multiplexers respec- input data respectively correspond to the plurality of tively correspond to the plurality of register files , and SIMD lanes , and outputting , by the shuffle unit , the each of the plurality of multiplexers is connected to at 5 shuffled plurality of input data , wherein a number of the least one register file from among the plurality of shuffled plurality of input data outputted from the register files and configured to receive input data from shuffle unit is the same as a number of the plurality of one of the at least one connected register file , input data received by the shuffle unit ; wherein the shuffle control unit comprises an address receiving the shuffled plurality of input data outputted multiplexer configured to provide a reference register 10 from the shuffle unit and performing a parallel opera address to each of the plurality of register files , and the shuffle control unit controls the plurality of register files tion on the shuffled plurality of input data ; and controlling , by a shuffle control unit , the plurality of to output the plurality of input data based on the reference register address , register files and the shuffle unit based on an input wherein the shuffle control unit includes a register for 15 instruction , storing a current state , generates shuffle information on wherein the shuffle unit comprises a plurality of multi the plurality of input data based on at least one of the plexers configured to receive the plurality of input data input instruction and the current state , transmits the outputted from the plurality of register files and output shuffle information to the shuffle unit , and updates the the shuffled plurality of input data , the plurality of input current state after the current cycle , data received by the plurality of multiplexers respec wherein the shuffle information is information on input tively correspond to the plurality of register files , each data to be outputted from each of the plurality of SIMD of the plurality of multiplexers is connected to at least lanes , and one register file from among the plurality of register wherein the shuffle control unit controls the plurality of files and configured to receive input data from one of multiplexers to output different data each other . the at least one connected register file , and the shuffle 2. The vector processor of claim 1 , wherein each of the control unit comprises an address multiplexer , plurality of multiplexers is connected to the plurality of wherein the controlling of the plurality of register files register files , receives the plurality of input data outputted and the shuffle unit comprises : from the plurality of register files and outputs one input data controlling the address multiplexer to provide a reference corresponding to a lane of the plurality of SIMD lanes 30 register address to each of the plurality of register files , provided with a corresponding multiplexer of the plurality of and multiplexers among the received plurality of input data . controlling the plurality of register files to output the 3. The vector processor of claim wherein the reference plurality of input data based on the reference register register address is an address of input data which is used in address , the current cycle among the plurality of data . wherein the shuffle control unit includes a register for 4. The vector processor of claim 1 , wherein the shuffle storing a current state , control unit further comprises : wherein the controlling of the plurality of register files a control unit to control the address multiplexer . and the shuffle unit comprises generating shuffle infor 5. The vector processor of claim 4 , wherein the shuffle mation on the plurality of input data based on at least control unit further comprises : one of the input instruction and the current state , at least one address register to store a reference register transmitting the shuffle information to the shuffle unit , address of each of the plurality of SIMD lanes , and and updating the current state after the current cycle , wherein the control unit controls the address multiplexer wherein the shuffle information is information on input to provide one of a plurality of reference register data to be outputted from each of the plurality of SIMD addresses provided from an instruction decode unit and 45 lanes , and the at least one address register to a corresponding wherein the shuffle control unit controls the plurality of register file . multiplexers to output different data each other . 6. The vector processor of claim 1 , wherein the input 9. The control method of claim 8 , wherein the receiving instruction comprises at least one of a type of operations to of the plurality of input data comprises receiving the plu be processed by the execution unit , an operation method , 50 rality of input data outputted from the plurality of register and information on an increment in a horizontal direction files by each of the plurality of multiplexers provided in the and an increment in a vertical direction . plurality of SIMD lanes in the shuffle unit , and the output 7. The vector processor of claim 1 , further comprising : ting of the shuffled plurality of input data comprises out a scalar register file , putting one input data corresponding to a lane of the wherein the execution unit performs the parallel operation 55 plurality of SIMD lanes provided with a corresponding of the shuffled plurality of input data outputted from the multiplexer of the plurality of multiplexers among the shuffle unit using scalar data outputted from the scalar received plurality of input data , each of the plurality of register file . multiplexers being connected to the plurality of register 8. A control method of a vector processor , the control files . method comprising : 10. The control method of claim 8 , wherein the reference storing a plurality of data to each of a plurality of register register address is an address of input data which is used in files that is provided to a corresponding lane of a the current cycle among the plurality of data . plurality of single instruction multiple data ( SIMD ) 11. The control method of claim 8 , wherein the controlling lanes , and outputting input data to be used in a current of the address multiplexer comprises controlling at least one cycle among the plurality of data ; 65 address register to store a reference register address of each receiving , by a shuffle unit , a plurality of input data of the plurality of SIMD lanes and controlling the address outputted from the plurality of register files , perform- multiplexer to provide one of a plurality of reference register 35 40 60 16 US 11,263,018 B2 15 addresses provided from an instruction decode unit and the at least one address register to a corresponding register file . 12. The control method of claim 8 , wherein the input instruction comprises at least one of a type of operations to be processed by an execution unit , an operation method , and 5 information on an increment in a horizontal direction and an increment in a vertical direction . 13. The control method of claim 8 , further comprising performing the parallel operation of the shuffled plurality of input data outputted from the shuffle unit using scalar data 10 outputted from a scalar register file . a a
- Assistant
이 발명은 벡터 프로세서와 이를 제어하는 방법에 관한 것입니다. 벡터 프로세서는 동시에 여러 값을 하나의 지시사항(instruction)으로 처리하는 프로세서를 의미하며, 특히 SIMD(Single Instruction Multiple Data) 방식을 사용하여 여러 데이터를 병렬로 처리하는 데에 사용됩니다.
각 SIMD 레인에는 여러 데이터를 저장하고, 현재 주기에서 사용할 입력 데이터를 출력하는 다수의 레지스터 파일들이 제공됩니다. 또한, 셔플 유닛(shuffle unit)은 각 레지스터 파일에서 출력된 다수의 입력 데이터를 받아들여 SIMD 레인 각각에 해당하는 입력 데이터로 셔플하고 출력하는 기능을 수행합니다.
이에 더하여, 실행 유닛(execution unit)은 셔플 유닛에서 출력된 입력 데이터를 받아서 이에 대해 병렬 연산을 수행합니다. 셔플 제어 유닛(shuffle control unit)은 입력 지시에 기반하여 레지스터 파일들과 셔플 유닛을 제어합니다.
셔플 유닛은 각 SIMD 레인에 제공된 다중화기(multiplexers)로 구성되며, 각 다중화기는 여러 레지스터 파일들로부터 출력된 입력 데이터를 받아 받아들인 다수의 입력 데이터 중에서 해당 SIMD 레인에 제공된 다중화기와 관련된 한 개의 입력 데이터를 선택하여 출력합니다.
이러한 구성을 통해 벡터 프로세서는 입력 데이터를 셔플한 후 별도로 저장하지 않고 곧바로 연산을 수행할 수 있어 프로세싱 속도와 에너지 효율성을 향상시킬 수 있습니다. 또한, 셔플을 위한 별도 지시사항들 없이도 병렬 연산을 수행할 수 있기에 프로그램 코드가 간단해집니다.
이 발명으로 인해 복잡한 데이터 셔플링과 저장 과정 없이 빠르게 병렬 연산을 수행할 수 있는 벡터 프로세서 아키텍처와 그 제어 방법이 제공됩니다.