Data processing method, signal processor, chip and electronic equipment

By dividing and storing the data to be processed in the processing chip and performing vector multiplication and accumulation operations, the problem of low calculation efficiency of the channel frequency domain autocorrelation matrix in the frequency domain direction delay spread estimation is solved, and efficient data processing and accurate averaging are achieved. square error calculation.

CN118778923APending Publication Date: 2024-10-15伟光有限公司(CN)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310370165.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-07
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

When using the minimum mean square error scheme for delay spread estimation in the frequency domain direction, it is necessary to calculate the channel frequency domain autocorrelation matrix, which results in a large number of instructions required for the processing chip and low efficiency.

Method used

By dividing the data to be processed into multiple groups and storing them in the register area, vector multiplication and accumulation operations are used to reduce the number of instructions and improve data processing efficiency. The specific method includes dividing N groups of data to be processed into n groups, performing vector multiplication and addition operations in the register area, using the vector operation unit for parallel processing, calculating some upper triangular and lower triangular elements of the autocorrelation matrix, and deriving all element.

Benefits of technology

It significantly reduces the number of instructions required, improves data processing efficiency, and improves the computing power of the chip. In particular, it improves the calculation accuracy of the mean square error in the delay spread estimation in the frequency domain direction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118778923A_ABST
    Figure CN118778923A_ABST
Patent Text Reader

Abstract

The invention relates to a data processing method, a signal processor, a chip and electronic equipment, and the method comprises the steps: storing n groups of to-be-processed data in N groups of to-be-processed data into a group of register regions according to a set arrangement mode, the N groups of to-be-processed data corresponding to at least one group of register regions; controlling each group of register areas corresponding to the N groups of to-be-processed data to perform vector multiply-accumulate operation to obtain processing results of the N groups of to-be-processed data; wherein N and n are positive integers. According to the embodiment of the invention, the n groups of to-be-processed data in the N groups of to-be-processed data are stored in one group of register regions according to the set arrangement mode, vector multiply-accumulate operation can be performed on the N groups of to-be-processed data according to the groups of the register regions, and the data processing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of chips, and more specifically, to a data processing method, a signal processor, a chip and an electronic device. Background Art

[0002] In some scenarios, a processing chip such as a vector digital signal processor (VDSP) can be used to calculate the autocorrelation matrix of the data. For example, the minimum mean square error (MMSE) scheme can be used in the frequency domain to estimate the delay spread. In this case, it is necessary to calculate the channel frequency domain autocorrelation matrix, and then calculate the mean square error (MSE) based on the channel frequency domain autocorrelation matrix. The number of instructions required to calculate the autocorrelation matrix using a processing chip is large, and the efficiency is low. Summary of the invention

[0003] The embodiments of the present application provide a data processing method, a signal processor, a chip and an electronic device, which can improve data processing efficiency.

[0004] The present application provides a data processing method, including:

[0005] storing n groups of data to be processed among the N groups of data to be processed in a group of register areas according to a set arrangement, wherein the N groups of data to be processed correspond to at least one group of register areas;

[0006] Controlling each group of register regions corresponding to the N groups of data to be processed to perform vector multiplication and accumulation operations to obtain processing results of the N groups of data to be processed;

[0007] Wherein, N and n are positive integers.

[0008] The present application provides a signal processor, including:

[0009] Multiple register areas;

[0010] A storage control unit, used for storing n groups of data to be processed among the N groups of data to be processed in a group of register areas according to a set arrangement, wherein the N groups of data to be processed correspond to at least one group of register areas;

[0011] A vector operation unit, used for controlling each group of register regions corresponding to the N groups of data to be processed to perform vector multiplication and accumulation operations to obtain processing results of the N groups of data to be processed;

[0012] Wherein, N and n are positive integers.

[0013] An embodiment of the present application provides a chip, wherein the chip is configured with the above-mentioned signal processor.

[0014] An embodiment of the present application provides an electronic device, wherein the electronic device is configured with the above-mentioned signal processor.

[0015] In an embodiment of the present application, n groups of data to be processed among N groups of data to be processed are stored in a group of register areas according to a set arrangement, and vector multiplication and accumulation operations can be performed on the N groups of data to be processed according to the grouping of the register areas, thereby improving data processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 is an architectural diagram of a vector digital signal processor according to an embodiment of the present application.

[0017] Figure 2 It is a flowchart of a data processing method according to an embodiment of the present disclosure.

[0018] Figure 3a and Figure 3b It is a schematic diagram of storing data in a cache unit according to an embodiment of the present application.

[0019] Figure 4 It is a flowchart of a data processing method according to another embodiment of the present disclosure.

[0020] Figure 5a and Figure 5b is a schematic diagram of the elements that need to be calculated in the autocorrelation matrix.

[0021] Figure 6 is a schematic diagram of the structure of a signal processor according to an embodiment of the present disclosure.

[0022] Figure 7 is a schematic structural diagram of a signal processor according to another embodiment of the present disclosure.

[0023] Figure 8 is a schematic diagram of an upper triangular matrix according to an embodiment of the present application.

[0024] Fig. 9 is a schematic diagram of a lower triangular matrix according to an embodiment of the present application.

[0025] Fig.10 It is a schematic diagram of the calculation principle of the upper triangular matrix or the lower triangular matrix according to an embodiment of the present application.

[0026] Fig.11a and Fig.11b is a schematic diagram of a partial triangular matrix according to an embodiment of the present application.

[0027] Fig.12It is a schematic diagram of the partial triangular matrix calculation principle of a set of data according to an embodiment of the present application.

[0028] Fig.13 It is a schematic diagram of the partial triangular matrix calculation principle of multiple groups of data according to an embodiment of the present application.

[0029] Fig.14 It is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0030] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0031] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0032] It should be understood that the "indication" mentioned in the embodiments of the present application can be a direct indication, an indirect indication, or an indication of an association relationship. For example, A indicates B, which can mean that A directly indicates B, for example, B can be obtained through A; it can also mean that A indirectly indicates B, for example, A indicates C, and B can be obtained through C; it can also mean that there is an association relationship between A and B.

[0033] In the description of the embodiments of the present application, the term "corresponding" may indicate a direct or indirect correspondence between two items, or an association relationship between the two items, or a relationship between indication and being indicated, configuration and being configured, and the like.

[0034] like Figure 1 , which shows an architecture diagram of a vector digital signal processor (VDSP) shown in an exemplary embodiment of the present application. The VDSP 100 may include: a vector register (VR) 101, a vector arithmetic unit (VALU) 102, a data memory (DM) 103, a load store unit (LSU) 104, a program memory (PM) 105 and a program control unit (PCU) 106.

[0035] VR101 may be a component in VDSP100 for storing data. For example, a VR101 may include 256, 512 or other number of register units. The data length of a register unit may include, but is not limited to, 2048 bits (64 units × 32 bits), 2048 bits (128 units × 16 bits), 1024 bits (32 units × 32 bits) or 1024 bits (64 units × 16 bits), etc. Optionally, in an embodiment of the present application, VR101 may be divided into different register areas, and different register areas are located in different power domains, so that different register areas may be controlled to be in an activated state or an inactivated state by switches.

[0036] VALU102 is a component in VDSP100 that performs operations on data in VR101. VALU102 may include a VALU internal register area and a VALU vector operation area, wherein the VALU internal register is used to store data read from VR101, and the VALU vector operation unit is used to perform operations on data read from VR101. In this embodiment, VALU102 can process 64 arithmetic operations of integer data at a time, such as multiplication operations, addition operations, subtraction operations, and shift operations. Optionally, VALU102 can be divided into different vector operation areas, and different vector operation areas are located in different power domains, so that different vector operation areas can be controlled to be in an activated state or an inactivated state through switches.

[0037] DM103 is a data storage component for data exchange between VDSP100 and other components in the computer device. It is equivalent to a system-level cache on VDSP100, and is used to store data to be processed sent from other components, and to store data processed by VDSP100. For example, DM103 can be divided into different data storage areas, and different data storage areas are located in different power domains, so that different data storage areas can be controlled to be in an activated state or an inactivated state through switches.

[0038] LSU104 is a component in VDSP100 used for data exchange between DM103 and VR101. In the embodiment of the present application, when VDSP100 is in working state, on the one hand, LSU104 can read data from DM103 and store it in VR101 for VALU102 to perform data calculation and processing, and on the other hand, LSU104 can read the data processed by VALU102 from VR101 and store it in DM103; for example, LSU104 reads two 2048-bit width data from DM104 at a time, and stores one 2048-bit width data. For example, LSU104 can only access DM103 in active state and VR101 in active state.

[0039] PM105 is a component for storing program instructions in VDSP100. In the embodiment of the present application, PM105 is a collection of multiple memories with a width of, for example, 16 bits. In different working modes, different instruction storage areas in PM105 are in an activated state.

[0040] PCU 106 is a component used to decode program instructions in VDSP 100. For example, PCU 106 can support decoding of up to 4 48-bit encoded instructions at the same time, namely 2 load instructions, 1 store instruction, and 1 arithmetic operation (alu) instruction, and the Very Long Instruction Word (VLIW) is 192 bits wide.

[0041] Figure 2 is a flow chart of a data processing method 200 according to an embodiment of the present disclosure. The method may optionally adopt Figure 1 The VDSP execution shown is, but not limited to, this method. The method may include:

[0042] S201, storing n groups of data to be processed among N groups of data to be processed into a group of register areas according to a set arrangement, wherein the N groups of data to be processed correspond to at least one group of register areas.

[0043] S202, controlling each group of register regions corresponding to the N groups of data to be processed to perform vector multiplication and accumulation operations to obtain processing results of the N groups of data to be processed, wherein N and n are positive integers.

[0044] In an embodiment of the present application, N groups of data to be processed can be divided into n groups of data to be processed. For example, if N is 100 and n is 10, 100 groups of data to be processed can be divided into 10 groups of 10 data to be processed. If N is 20 and n is 4, 20 groups of data to be processed can be divided into 5 groups of 4 data to be processed. In an embodiment of the present application, N can also be equal to n, that is, the N groups of data to be processed as a whole are taken as the processing object. For example, if N=4, 4 groups of data to be processed can be directly processed together.

[0045] For n groups of data to be processed, they can be stored in a group of register areas according to a set arrangement. A group of register areas can include multiple register areas. The maximum number of elements in a register area can be equal to the number of elements in the n groups of data to be processed. It can be determined specifically according to the capacity of a register area and the length of a group of data to be processed. For example, 1 group of data to be processed includes 8 elements, and a register area with a length of 32 bits can store up to 4 groups of 32 elements. For another example, 1 group of data to be processed includes 6 elements, and a register area with a length of 32 bits can store up to 5 groups of 30 elements. For another example, 1 group of data to be processed includes 4 elements, and a register area with a length of 16 bits can store up to 4 groups of 16 elements.

[0046] If each n groups of data to be processed in N groups of processed data correspond to a group of register areas, then N groups of processed data correspond to N / n groups of register areas. If N / n is not an integer, it can be rounded up. In this case, the number of data to be processed in the last group of register areas may be less than n groups. For example, if N is 22 and n is 4, the 22 groups of data to be processed can be divided into 5 groups of 4 data to be processed and 1 group of 2 data to be processed, and stored in 6 groups of register areas respectively.

[0047] For each group of register areas corresponding to N groups of data to be processed, a vector multiplication and accumulation operation can be performed to obtain the processing results of the N groups of data to be processed. For example, the N groups of data to be processed are divided into N / n groups of data to be processed, which can be stored in N / n groups of register areas in VDSP. For each group of register areas, a VMAC operation can be performed through a vector multiplication and vector addition (VMAC) instruction. VMAC operations can include vector multiplication operations and vector addition operations. For example, if a VMAC instruction of VDSP can process M, for example, 32 complex conjugate multiplication and accumulation operations, the length of a single register area of ​​a group of register areas can be set to 32. In this way, the computing efficiency can be improved through parallel processing.

[0048] In an embodiment of the present application, n groups of data to be processed among N groups of data to be processed are stored in a group of register areas according to a set arrangement method, and vector multiplication and accumulation operations can be performed on the N groups of data to be processed according to the grouping of the register areas. Each vector multiplication and accumulation operation can process a large amount of data, thereby reducing the number of required instructions and improving data processing efficiency.

[0049] In one embodiment, the first register area and the plurality of second register areas in a group of register areas are storage units of a vector register (VR) in a VDSP. For example, a VR in a VDSP may include 256, 512, or other number of register units. The data length of a register unit may include, but is not limited to, 2048 bits (64 units × 32 bits), 2048 bits (128 units × 16 bits), 1024 bits (32 units × 32 bits), or 1024 bits (64 units × 16 bits), etc. A register area in an embodiment of the present application may include part or all of the storage units of one or more register units.

[0050] In one embodiment, the method further includes: expanding and storing the N groups of data to be processed in a cache unit; wherein the elements of the n groups of data to be processed in the N groups of data to be processed with the same sequence number are adjacent and expanded and stored in the order of group numbers.

[0051] In the embodiment of the present application, N groups of data to be processed can be first expanded and stored in the cache unit, and then loaded from the cache unit into the register area. For example, data can be loaded from the cache unit to the first register area and the second register area through the parallel vector load (Vector Load, VLD) instruction in the VDSP. Since VLD and VMAC can be parallel, only the number of instructions of VMAC can be calculated.

[0052] In an embodiment of the present application, in a cache unit, the N groups of data to be processed can be stored in a circular cache manner. For example, if the N groups of data to be processed are divided into n groups of data to be processed, the n groups of data to be processed can be stored once in the cache unit by arranging the elements with the same sequence number in different groups adjacently according to the group number, and then stored again in a circular manner. The second storage can have the same amount of data as the first storage, or it can be less than the first storage, which can be determined specifically according to the length of a group of data to be processed.

[0053] For example, one group of data to be processed is {c1, c2, c3, c4}, and another group of data to be processed is {d1, d2, d3, d4}. If the elements with the same sequence number are adjacent and in the order of the group number, c1 and d1 with sequence number 0 are stored first, and then c2 and d2 with sequence number 1 are stored. By analogy, the data stored in the cache unit for the first time is {c1, d1, c2, d2, c3, d3, c4, d4}. In one case, the data stored for the second time is the same as the data stored for the first time, which is {c1, d1, c2, d2, c3, d3, c4, d4}. In another case, the data stored for the second time includes the first half of the data stored for the first time {c1, d1, c2, d2}.

[0054] In one embodiment, T is the length of a group of data to be processed, that is, the number of elements in a group of data to be processed. i is the element number in a group of data to be processed. The n×i+1th storage unit to the n×(i+1)th storage unit in the cache unit stores the element with the sequence number i of the n groups of data to be processed in the order of the group numbers. Wherein, i is an integer from 0 to T-1.

[0055] like Figure 3a and Figure 3b As shown, in the cache unit, after storing n groups of data to be processed in sequence according to the same element number adjacent to each other and arranged in sequence according to the group number, the element h0 with the sequence number 0 is stored from the 1st to the nth storage unit, the element h1 with the sequence number 1 is stored from the n+1th to the 2nth storage unit, and so on. The element hi with the sequence number i is stored from the n×i+1th storage unit to the n×(i+1)th storage unit, and the element hT with the sequence number T is stored from the n×(T-1)+1th to the n×Tth storage unit.

[0056] For example, there are two groups of data to be processed, {c1, c2, c3, c4} and {d1, d2, d3, d4}, each group includes 4 elements, that is, n = 2, T = 4, and the element numbers are 0, 1, 2, and 3. The first storage unit to the second storage unit of the cache unit (n = 2, i = 0) can store elements c1 and d1 with a sequence number i of 0. The third storage unit to the fourth storage unit of the cache unit (n = 2, i = 1) can store elements c2 and d2 with a sequence number i of 1. And so on.

[0057] In one embodiment, j is the element serial number in a group of data to be processed, and the n×(T+j)+1th storage unit to the n×(T+j+1)th storage unit in the cache unit stores the elements with serial number j of the n groups of data to be processed in order of group numbers, and j is an integer from 0 to less than or equal to T-1.

[0058] like Figure 3a and Figure 3b As shown, after the first arrangement and storage of n groups of data to be processed, continue to arrange and store part or all of the data of the n groups of data to be processed in a circular manner. If the maximum value of j is T-1, it is equivalent to storing the n groups of data to be processed twice in a circular manner in the cache unit, and the storage method is simple. If the maximum value of j is less than T-1, for example, the maximum value of j is k, k is equal to T / 2 or T / 2-1, etc., then part of the data of the n groups of data to be processed can be stored in a circular manner after the n×Tth storage unit in the cache unit, reducing the amount of data stored in the cache unit and saving cache resources. If the values ​​of j and i in the same group of data to be processed are the same, they can represent the same element.

[0059] Continuing with the above example, the 9th to 10th storage units of the cache unit (n=2, T=4, j=0) can store elements c1 and d1 with sequence number j being 0. The 11th to 12th storage units of the cache unit (n=2, T=4, j=1) can store elements c2 and d2 with sequence number j being 1. And so on.

[0060] In one embodiment, the method further includes: in a group of register areas corresponding to the n groups of data to be processed, elements with the same sequence number in the first register area are adjacent and correspondingly store the n groups of data to be processed in order of group numbers.

[0061] For example, one group of data to be processed is {c1, c2, c3, c4}, and another group of data to be processed is {d1, d2, d3, d4}. If the elements with the same sequence number are adjacent and in the order of the group number, c1 and d1 with sequence number 0 are stored first, and then c2 and d2 with sequence number 1. And so on, the data stored in the first register area is {c1, d1, c2, d2, c3, d3, c4, d4}.

[0062] In one implementation, in a group of register areas corresponding to the n groups of data to be processed, the 1st storage unit to the n×Tth storage unit in the first register area stores data from the 1st storage unit to the n×Tth storage unit in the cache unit.

[0063] For example, the VLD instruction of VDSP can be used to load the data from the 1st storage unit to the n×Tth storage unit in the cache unit (the element sequence number is 0, 1, 2...T-1) into the first register area. Then, the data in the cache unit can be continuously loaded into the second register area to perform vector multiplication and accumulation operations.

[0064] Figure 4 is a flow chart of a data processing method 400 according to another embodiment of the present disclosure. The method may optionally adopt Figure 1 The VDSP shown is executed, but is not limited thereto. The method may include one or more features of the above data processing method. In one embodiment, a group of register areas includes a first register area and R second register areas corresponding to the first register area.

[0065] In one implementation, S202 controls each group of register regions corresponding to the N groups of data to be processed to perform vector multiplication and accumulation operations to obtain processing results of the N groups of data to be processed, including:

[0066] S401, controlling the first register area and / or the R second register areas in a group of register areas corresponding to the n groups of data to be processed to perform a vector multiplication operation to obtain an autocorrelation matrix corresponding to each group of data to be processed in the n groups of data to be processed; wherein R is a positive integer.

[0067] In an embodiment of the present application, a group of register areas may include a first register area and R second register areas, where R is the number of second register areas. The value of R may be determined based on the length T of a group of data to be processed. For example, a group of data to be processed includes T elements. R may be T / 2 or T / 2+1. Assuming T=8, R may be 4 or 5.

[0068] When R is T / 2, the first register region can be controlled to be multiplied by itself first, and then controlled to be multiplied by the R second register regions respectively. When R is T / 2+1, the first register region can be controlled to be directly multiplied by the R second register regions respectively.

[0069] In a group of register areas corresponding to n groups of data to be processed, a vector multiplication operation of a first register area with itself and R second register areas, or a vector multiplication operation of the first register area with R second register areas, can obtain an autocorrelation matrix corresponding to the n groups of data to be processed.

[0070] In one implementation, part of the upper triangular elements and part of the lower triangular elements in the autocorrelation matrix are obtained through a vector multiplication operation.

[0071] In the embodiment of the present application, partial elements of the autocorrelation matrix can be calculated through vector multiplication operations of the first register region with itself and R second register regions, or vector multiplication operations of the first register region with R second register regions. Then, based on the partial elements of the autocorrelation matrix and the fact that the autocorrelation matrix is ​​a conjugate matrix, all elements of the autocorrelation matrix can be derived.

[0072] For example, based on the above vector operation, some upper triangular elements and some lower triangular elements of the autocorrelation matrix are first calculated. The number of elements of some upper triangular elements and some lower triangular elements can be equal to the number of elements of the upper triangular matrix or the lower triangular matrix of the autocorrelation matrix. Figure 5a As shown, some upper triangular elements may include elements from the upper right corner to a first oblique line parallel to the diagonal line, where the first oblique line is above the diagonal line. Some lower triangular elements may include elements from the diagonal line to a second oblique line parallel to the diagonal line, where the second oblique line is below the diagonal line. Figure 5bAs shown, some upper triangular elements may include elements from a diagonal line to a first oblique line parallel to the diagonal line, the first oblique line being above the diagonal line. Some lower triangular elements may include elements from a second oblique line parallel to the diagonal line to a lower left corner, the second oblique line being below the diagonal line.

[0073] Other elements of the autocorrelation matrix can be derived based on some upper triangular elements and some lower triangular elements. In this way, all elements can be derived after calculating some elements of the autocorrelation matrix, without calculating all elements, which can reduce the chip calculation amount and improve calculation efficiency.

[0074] In the embodiment of the present application, after calculating some upper triangular elements and some lower triangular elements in the autocorrelation matrix corresponding to the n groups of data to be processed, other elements of the autocorrelation matrix corresponding to the n groups of data to be processed may not be derived first. Instead, after waiting for the subsequent addition operation to be completed, other elements of the autocorrelation matrix corresponding to the N groups of data to be processed are derived based on some upper triangular elements and some lower triangular elements in the autocorrelation matrix corresponding to the N groups of data to be processed.

[0075] In one embodiment, Figure 4 As shown, S202 controls each group of register areas corresponding to the N groups of data to be processed to perform vector multiplication and accumulation operations to obtain processing results of the N groups of data to be processed, and also includes: S402, when the N groups of data to be processed include multiple groups of register areas, controls the autocorrelation matrix corresponding to each group of register areas included in the N groups of data to be processed to perform vector addition operations to obtain processing results of the N groups of data to be processed.

[0076] In the embodiment of the present application, the vector multiplication operation and the vector addition operation can be controlled by the vector multiplication and accumulation instruction of the VDSP. For example, if a VMAC instruction of the VDSP can process 32 complex conjugate multiplication and accumulation operations, a VMAC instruction can be used to control the multiplication of 32 data in a first register area in a group of register areas with 32 data in R second register areas, and then control the accumulation of calculation results in different groups of register areas.

[0077] For example, N groups of data to be processed are divided into K groups of data to be processed. The first group of data to be processed corresponds to the first group of autocorrelation matrix, the second group of data to be processed corresponds to the second group of autocorrelation matrix, and ... the Kth group of data to be processed corresponds to the Kth group of autocorrelation matrix. Wherein, K = ceil (N / n). The VMAC instruction can instruct the first group of autocorrelation matrix to be accumulated with the second group of autocorrelation matrix, and then continue to accumulate with the third group of autocorrelation matrix... until the Kth group of autocorrelation matrix is ​​completed, and the n groups of autocorrelation matrices corresponding to the N groups of data to be processed are obtained, that is, the results of the N groups of data to be processed. After the N groups of data are processed, the n groups of autocorrelation matrices corresponding to the N groups of data to be processed can also be controlled by a separate addition instruction to add again, for example, to control the elements inside the VR to perform a horizontal accumulation operation in pairs, and finally obtain 1 autocorrelation matrix.

[0078] The embodiments of the present application can process multiple elements of multiple groups of data to be processed in parallel through vector multiplication and accumulation instructions, thereby improving computing efficiency and reducing the number of instructions.

[0079] In one embodiment, in situation one, S401 controls the first register area and / or the R second register areas in a group of register areas corresponding to the n groups of data to be processed to perform a vector multiplication operation, including: controlling the first register area and the R second register areas corresponding to the first register area to perform vector multiplication operations respectively.

[0080] For example, a group of data to be processed is {d1, d2, d3, d4}, the first register area is {d1, d2, d3, d4}, and the data of the three second register areas corresponding to the first register area are {d1, d2, d3, d4}, {d2, d3, d4, d1}, {d3, d4, d1, d2}. The first register area performs vector multiplication operations with the three second register areas respectively, and the following can be obtained: {d11, d22, d33, d44}, {d12, d23, d34, d41}, {d13, d24, d31, d42}, where d11 = d1 × d1, d12 = d1 × d2, and so on. The result of the vector multiplication operation can be stored in other register areas.

[0081] For another example, a group of data to be processed is {c1, c2, c3, c4}, and another group of data to be processed is {d1, d2, d3, d4}. The data in the first register area is {c1, d1, c2, d2, c3, d3, c4, d4}, and the data in the three second register areas corresponding to the first register area are {c1, d1, c2, d2, c3, d3, c4, d4}, {c2, d2, c3, d3, c4, d4, c1, d1}, and {c3, d3, c4, d4, c1, d1, c2, d2}. The first register area performs vector multiplication operations with the three second register areas respectively, and we can get: {c11, d11, c22, d22, c33, d33, c44, d44}, {c12, d12, c23, d23, c34, d34, c41, d41}, {c13, d13, c24, d24, c31, d31, c42, d42}, where c12 = c1 × c1, d12 = d1 × d2, and so on. The result of the vector multiplication operation can be stored in other register areas. Then, the vector addition operation can also be performed on the result of the vector multiplication operation in the register area. For example, c11 + d11, c22 + d22, c33 + d33, c44 + d44.

[0082] In one implementation, in case 1, the data arrangement in the first second register area of ​​the R second register areas is the same as the arrangement of the n groups of to-be-processed data in the first register area.

[0083] For example, the data in the first register area is {c1, d1, c2, d2, c3, d3, c4, d4}, and the data in the second register area is {c1, d1, c2, d2, c3, d3, c4, d4}, which is the same as the first register area.

[0084] In one implementation, in case one, the 1st storage unit to the n×Tth storage unit in the r+1th second register area of ​​the R second register areas correspond to storing data from the n×r+1th storage unit to the n×(r+T)th storage unit in the cache unit; the R is an integer greater than 1, and the r is an integer from 0 to R.

[0085] For example, the VLD instruction of VDSP can be used to load the data from the first storage unit to the n×Tth storage unit in the cache unit (the element number is 0, 1, 2...T-1) into the first register area. Assuming r is 0, the VLD instruction of VDSP can also be used to load the data from the first storage unit to the n×Tth storage unit in the cache unit into the first second register area corresponding to the first register area.

[0086] For another example, assuming that r is 1, the VLD instruction is used to load the data from the n+1th storage unit to the n×(1+T)th storage unit in the cache unit (element numbers are from 1, 2...T-1, 0) into the second register area corresponding to the first register area.

[0087] For another example, assuming r is 2, the VLD instruction is used to load the data from the 2n+1th storage unit to the n×(2+T)th storage unit in the cache unit (element numbers are from 2…T-1, 0, 1) into the third second register area corresponding to the first register area.

[0088] In case one, the first register area may be multiplied with the R second register areas respectively.

[0089] In one embodiment, in situation two, S401 controls the first register area and / or the second register area in a group of register areas corresponding to the n groups of data to be processed to perform a vector multiplication operation, including: controlling the first register area to perform a vector multiplication operation with itself, and the R second register areas corresponding to the first register area respectively perform a vector multiplication operation.

[0090] For example, a group of data to be processed is {d1, d2, d3, d4}, the data of the first register area is {d1, d2, d3, d4}, and the data of the two second register areas corresponding to the first register area are {d2, d3, d4, d1}, {d3, d4, d1, d2}. The first register area performs vector multiplication operation with itself, and can obtain: {d11, d22, d33, d44}; the first register area performs vector multiplication operation with the two second register areas, and can obtain: {d12, d23, d34, d41}, {d13, d24, d31, d42}, where d11 = d1 × d1, d12 = d1 × d2, and so on. The result of the vector multiplication operation can be stored in other register areas.

[0091] In one implementation, in the second scenario, the data arrangement in the first of the R second register regions is the same as the data arrangement in the first n storage units in the first register region after circular shift.

[0092] In the embodiment of the present application, the circular shift effect can be achieved by loading elements at different positions in the cache unit. For example, assuming r is 1, the data from the n+1th storage unit to the n×(1+T)th storage unit in the cache unit (the element sequence number is from 1, 2...T-1, 0) is loaded into the first second register area corresponding to the first register area by using the VLD instruction of VDSP. In this way, the data arrangement in the first second register area can be the same as the arrangement of the data in the first n storage units in the first register area after circular shift.

[0093] For example, the data in the first register area is {c1, d1, c2, d2, c3, d3, c4, d4}, and the data in the second register area is {c2, d2, c3, d3, c4, d4, c1, d1}, which is the same as the element {c1, d1} in the first register area after cyclic shifting the first element.

[0094] In one embodiment, in situation two, the 1st storage unit to the n×Tth storage unit in the rth second register area of ​​the R second register areas correspond to storing data from the n×r+1th storage unit to the n×(r+T)th storage unit in the cache unit; R is an integer greater than 1, and r is an integer from 1 to R.

[0095] For another example, assuming that r is 2, the VLD instruction is used to load the data (element numbers from 2...T-1, 0, 1) from the 2n+1th storage unit to the n×(2+T)th storage unit in the cache unit into the second second register area corresponding to the first register area. In this way, the data arrangement in the second second register area can be the same as the data arrangement in the first second register area after data circular shift. The data loading methods of other second register areas can be deduced in the same way.

[0096] For example, the data in the second second register area is {c3, d3, c4, d4, c1, d1, c2, d2}, which is the same as the data in the first second register area {c2, d2, c3, d3, c4, d4, c1, d1} after cyclically shifting the first element {c2, d2} to the end.

[0097] In case 2, the first register area may be multiplied by itself and by the R second register areas respectively.

[0098] In one implementation, in case 1 or case 2, the data arrangement in one of the R second register areas is the same as the data arrangement in the first n storage units in the previous second register area after circular shift.

[0099] For example, in case 1, the data in the second second register area is {c2, d2, c3, d3, c4, d4, c1, d1}, which is arranged in the same manner as the data in the first second register area {c1, d1, c2, d2, c3, d3, c4, d4} after circular shift.

[0100] For example, in case 2, the data in the second second register area is {c3, d3, c4, d4, c1, d1, c2, d2}, which is arranged in the same manner as the data in the first second register area {c2, d2, c3, d3, c4, d4, c1, d1} after circular shift.

[0101] Figure 6 is a schematic diagram of the structure of a signal processor 600 according to an embodiment of the present disclosure. The signal processor may include:

[0102] A plurality of register areas 601;

[0103] A storage control unit 602, configured to store n groups of data to be processed among the N groups of data to be processed into a group of register areas according to a set arrangement, wherein the N groups of data to be processed correspond to at least one group of register areas;

[0104] A vector operation unit 603, used for controlling each group of register regions corresponding to the N groups of data to be processed to perform vector multiplication and accumulation operations to obtain processing results of the N groups of data to be processed;

[0105] Wherein, N and n are positive integers.

[0106] In one implementation, a group of register regions includes a first register region and R second register regions corresponding to the first register region.

[0107] In one embodiment, the vector operation unit 603 is used to control the first register area and / or the R second register areas in a group of register areas corresponding to the n groups of data to be processed to perform vector multiplication operations to obtain an autocorrelation matrix corresponding to each group of data to be processed in the n groups of data to be processed; wherein R is a positive integer.

[0108] In one implementation, part of the upper triangular elements and part of the lower triangular elements in the autocorrelation matrix are obtained through a vector multiplication operation.

[0109] In one embodiment, the vector operation unit 603 is also used to control the autocorrelation matrix corresponding to each group of register areas included in the N groups of data to be processed to perform vector addition operations to obtain the processing results of the N groups of data to be processed when the N groups of data to be processed include multiple groups of register areas. Further, the vector operation unit 603 can also control the processing results of the N groups of data to be processed, such as the n groups of autocorrelation matrices corresponding to the N groups of data to be processed, to be horizontally accumulated, so as to obtain 1 autocorrelation matrix corresponding to the N groups of data to be processed.

[0110] In one implementation, the vector operation unit 603 is further used to control the first register area and the R second register areas corresponding to the first register area to perform vector multiplication operations respectively.

[0111] In one implementation, the data arrangement in the first second register area of ​​the R second register areas is the same as the arrangement of the n groups of to-be-processed data in the first register area.

[0112] In one implementation, the 1st storage unit to the n×Tth storage unit in the r+1th second register area of ​​the R second register areas correspond to storing data from the n×r+1th storage unit to the n×(r+T)th storage unit in the cache unit; R is an integer greater than 1, and r is an integer from 0 to R.

[0113] In one implementation, the vector operation unit 603 is further used to control the first register region to perform a vector multiplication operation with itself, and the R second register regions corresponding to the first register region perform vector multiplication operations respectively.

[0114] In one implementation, the data arrangement in the first second register area of ​​the R second register areas is the same as the data arrangement in the first n storage units in the first register area after circular shift.

[0115] In one implementation, the 1st storage unit to the n×Tth storage unit in the rth second register area of ​​the R second register areas correspond to storing data from the n×r+1th storage unit to the n×(r+T)th storage unit in the cache unit; R is an integer greater than 1, and r is an integer from 1 to R.

[0116] In one implementation, the data arrangement in one of the R second register areas is the same as the arrangement of the data in the first n storage units in the previous second register area after circular shift.

[0117] In one implementation, in a group of register areas corresponding to the n groups of data to be processed, elements with the same sequence number in the first register area are adjacent and the n groups of data to be processed are stored correspondingly in the order of group numbers.

[0118] In one implementation, in a group of register areas corresponding to the n groups of data to be processed, the 1st storage unit to the n×Tth storage unit in the first register area stores data from the 1st storage unit to the n×Tth storage unit in the cache unit.

[0119] In one embodiment, Figure 7 As shown, the signal processor 700 also includes:

[0120] The cache unit 701 is used for extended storage of the N groups of data to be processed; wherein the elements of the n groups with the same sequence number in the N groups of data to be processed are adjacent and extendedly stored in the order of group numbers.

[0121] In one implementation, the storage control unit 602 is further configured to load the data in the cache unit 702 into a first register area and R second register areas of a group of register areas in a certain arrangement order. The storage control unit 602 may also be referred to as a vector loading unit, which may load the data in the cache unit into the register area in a certain arrangement manner.

[0122] In one embodiment, T is the length of a group of data to be processed, i is the element number in the group of data to be processed, and the n×i+1th storage unit to the n×(i+1)th storage unit in the cache unit stores the element with sequence number i of the n groups of data to be processed in the order of group numbers; wherein i is an integer from 0 to T-1.

[0123] In one embodiment, j is the element serial number in a group of data to be processed, and the n×(T+j)+1th storage unit to the n×(T+j+1)th storage unit in the cache unit stores the elements with serial number j of the n groups of data to be processed in order of group numbers, and j is an integer from 0 to less than or equal to T-1.

[0124] In an application scenario, when estimating the delay spread in the frequency domain, the minimum mean square error (MMSE) scheme can be used. In this case, the mean square error (MSE) can be calculated based on the channel frequency domain autocorrelation matrix (which can be referred to as the Rhh matrix). The Rhh matrix is ​​the channel frequency domain autocorrelation matrix after the least squares (LS) estimation, and the dimension can be T*T (T is the Wiener filter order). In order to improve the accuracy of MSE, N Rhhs can be calculated, and the corresponding position elements of the N Rhh matrices can be accumulated to finally obtain an Rhh matrix. Among them, the value of N can be determined by the simulation performance.

[0125] An example of a calculation formula for Rhh is:

[0126] Rhh k =[r ij ],r ij =h i *conj(h j ) Formula 1

[0127] Where i = 0: (T-1), j = 0: (T-1), h i 、h j They are all channel estimation results of LS estimation, which are complex numbers.

[0128] Rhh final =∑Rhh k Formula 2

[0129] Among them, Rhh k Represents the Rhh matrix with serial number k, k=0:(N-1).

[0130] In order to quickly calculate N Rhh matrices and accumulate the corresponding matrix elements of the N Rhh matrices, take N=300 and T=8 as an example.

[0131] Thanks to Rhh k It is a conjugate (hermit) matrix, that is, it has conjugate symmetry, and only the upper triangle or the lower triangle of the matrix can be calculated. Figure 8 and Fig. 9 The shaded squares in the figure represent the matrix elements that need to be calculated. For example, each square represents Rhh k An element of a matrix.

[0132] If each Rhh kThe number of elements that need to be calculated in the matrix is ​​(8*8-8) / 2+8=36. The amount of complex multiplication operations required to calculate all matrices is 300*36=10800, and the amount of complex addition operations required is (300-1)*36=10764. A vector digital signal processing (VDSP) multiplication instruction Vector Multiplication (VMULT) can handle 32 complex conjugate multiplications. A VDSP addition instruction Vector Addition (VADD) can handle 32 complex additions. A VDSP multiplication-accumulation instruction VMAC can handle 32 complex conjugate multiplication-accumulation operations. So for VDSP to calculate Rhh final , the theoretical number of instructions required is ceil(10800 / 32)=338, where Ceil() means rounding up.

[0133] However, calculating the upper triangular matrix or the lower triangular matrix is ​​not friendly to VDSP. Let's take the upper triangular matrix as an example: For VDSP, it is necessary to load the h sequence arranged in sequence in the memory (or cache) into the register vector register (VR). For example, two different arrangements are formed in the register VR to obtain h i and h j , then h i and h j Perform complex multiplication and conjugate accumulation operations to obtain r ij For example, Fig.10 As shown in the figure, a set of data h includes 8 elements {h0, h1, h2, h3, h4, h5, h6, h7}. The h in the memory is arranged as {h0, h1, h2, h3, h4, h5, h6, h7}. The h required in the register i The arrangement is {h0, h0, h0, h0, h0, h0, h0, h0, h1, h1, h1, h1, h1, h1, h2, h2, h2, h2, h2, h3, h3, h3, h3, h4, h4, h4, h5, h5, h5, h6, h6, h7}, and the number of identical elements in this arrangement decreases. The number of h required in the register j The arrangement is {h0, h1, h2, h3, h4, h5, h6, h7, h1, h2, h3, h4, h5, h6, h7, h2, h3, h4, h5, h6, h7, h3, h4, h5, h6, h7, h4, h5, h6, h7, h5, h6, h7, h6, h7, h7}, and the number of all elements in this arrangement decreases. ij =h i ×h j . r ijThe arrangement is {r00, r01, r02, r03, r04, r05, r06, r07, r11, r12, r13, r14, r15, r16, r17, r22, r23, r24, r25, r26, r27, r33, r34, r35, r36, r37, r44, r45, r46, r47, r55, r56, r57, r66, r67, r77}.

[0134] However, h i and h j It cannot be implemented by the parallel load data (VLD) instruction, and requires two additional instructions (such as h i Format conversion instructions and h j VLD and vector multiply-accumulate (VMAC) can be executed in parallel, so we can only calculate the number of VMAC instructions. Adding the number of extra instructions, 3 instructions are needed to implement 32 complex multiply-accumulate operations. final Calculation shows that the actual number of instructions required is ceil(10800 / 32)*3=1014, where Ceil() means rounding up. final ,The actual number of instructions required by VDSP is three times of the theoretical number of instructions, and the efficiency is very low.

[0135] The data processing method of the embodiment of the present application can be a fast vector implementation method of the autocorrelation matrix, which can reduce the number of VDSP instructions, is an efficient and fast method, and can improve the VDSP calculation efficiency. In an example, the method may include the following:

[0136] 1.Use Rhh k To take advantage of the characteristics of conjugate symmetric matrices, reconsider the elements of the matrix that need to be calculated. For example, the elements of the matrix that need to be calculated may not be the complete upper triangle or the complete lower triangle, but some upper triangle elements and some lower triangle elements. The matrix element r that needs to be calculated ij like Fig.11a Alternatively, you can Fig.11b The form shown.

[0137] 2. Using the characteristics of the loop buffer, 5 VLD instructions can be used to complete h j and 4 hours j Load from memory to register VR (where h i With h j The arrangement of 1 is exactly the same, only one load is required), which means 5 VLD instructions are required. In addition, calculate r ijRequires 5 VMAC instructions. Because of the parallelism of VLD and VMAC, only 5 VMAC instructions need to be counted.

[0138] In one example, h is stored i With h j The register of arrangement mode 1 can be the first register area, storing h j The registers of arrangement 2 to 5 may be four second register areas. In another example, the storage h i The register can be the first register area, storing h j The registers of arrangement modes 1 to 5 may be 5 second register areas. In these two examples, the length of data stored in the first register area and the second register area is equal to the length of a group of data to be processed.

[0139] like Fig.12 The following is a schematic diagram of the arrangement of a set of data h and r sequences in a register. A set of data h includes 8 elements {h0, h1, h2, h3, h4, h5, h6, h7}. i The arrangement is {h0, h0, h0, h1, h2, h3, h4, h5, h6, h7}, which is the same as the original arrangement of a set of data h. j Arrangement 1 is {h0, h1, h2, h3, h4, h5, h6, h7}, which is the same as h i The arrangement is the same; the h required in the register j Arrangement 2 is {h1, h2, h3, h4, h5, h6, h7, h0}, which is equivalent to the circular shift of the first bit of arrangement 1. j Arrangement 3 is {h2, h3, h4, h5, h6, h7, h0, h1}, which is equivalent to the circular shift of the first bit of arrangement 2. j Arrangement 4 is {h3, h4, h5, h6, h7, h0, h1, h2}, which is equivalent to the circular shift of the first bit of arrangement 3; the h required in the register j Arrangement 5 is {h4, h5, h6, h7, h0, h1, h2, h3}, which is equivalent to the cyclic shift of the first bit of arrangement 4. ij =h i ×h j . r ijThe arrangement can include 5 rows, namely {r00, r11, r22, r33, r44, r55, r66, r77}, {r01, r12, r23, r34, r45, r56, r67, r70}, {r02, r13, r24, r35, r46, r57, r60, r71}, {r03, r14, r25, r36, r47, r50, r61, r72}, {r04, r15, r26, r37, r40, r51, r62, r73}.

[0140] In the above example, the calculated r of a set of data ij The number of elements is 40, which is slightly larger than 36. This is equivalent to calculating 4 more numbers such as r40, r51, r62, and r73, but it has no effect on the overall calculation function.

[0141] Fig.12 Only one Rhh is drawn k The matrix calculation method uses only 25% of each VR. In actual calculation, multiple, for example, four Rhh can be calculated in parallel. k Matrix, so VR utilization can reach nearly 100%. Fig.13 As shown in Figure 1, it is a schematic diagram of the arrangement of the h and r sequences of multiple sets of data in the register. k As an example, the parallel scheme of the matrix, h0 of different colors represents four Rhh k The data required by each element is numbered 0, and the h1 of different colors represents the four Rhh k The element whose serial number is 1 is the data required by each, and so on. Fig.13 The arrangement of h in the memory can be obtained by the previous module, such as the LS estimation module. For example, the Vector Store withStride (VSTS) instruction can be used to store the result without additional processing.

[0142] Because 4 Rhh are calculated in parallel k Matrix, finally need to put these 4 Rhh k The matrix is ​​accumulated again. The additional amount of operations can be calculated as 10 instructions by the formula ceil(n / 2)*R=ceil(4 / 2)*5=10. These 10 instructions can be separate addition instructions, indicating the horizontal accumulation operation of two elements in VR.

[0143] Take N=300 and T=8 as an example. Fig.10 In the solution, the actual number of instructions is three times the theoretical number of instructions. This solution greatly improves the execution efficiency of VDSP. For example, Fig.13The solution requires ceil(300 / 4)*5+10=385 instructions, where Ceil() means rounding up. The actual number of instructions is 385 / 338=1.13 times the theoretical number of instructions.

[0144] In the present application, combined with Rhh k Due to the characteristics of conjugate symmetric matrices, only some upper triangular elements and some lower triangular elements need to be calculated, which reduces the calculation of matrix elements. By utilizing the characteristics of circular buffer, it avoids consuming extra instructions for data arrangement, thus improving the execution efficiency of VDSP.

[0145] Please refer to Fig.14 , which shows a structural block diagram of an electronic device shown in an exemplary embodiment of the present application. The electronic device can be a terminal device with communication functions such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., or it can be an access network device or a network side device, such as a base station.

[0146] The electronic device 1400 includes a VDSP 1401 and a main control CPU 1402, wherein the VDSP 1401 is connected to the main control CPU 1402. The VDSP 1401 may be any of the VDSPs in the above embodiments, and the VDSP 1401 and the main control CPU 1402 implement the methods shown in the above embodiments when running.

[0147] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

[0148] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A data processing method, comprising: storing n groups of data to be processed among N groups of data to be processed in a group of register areas according to a set arrangement, wherein the N groups of data to be processed correspond to at least one group of register areas; Controlling each group of register regions corresponding to the N groups of data to be processed to perform vector multiplication and accumulation operations to obtain processing results of the N groups of data to be processed; Wherein, N and n are positive integers.

2. The method according to claim 1, wherein: A group of register regions includes a first register region and R second register regions corresponding to the first register region; controlling each group of register regions corresponding to the N groups of data to be processed to perform vector multiplication and accumulation operations to obtain processing results of the N groups of data to be processed, including: Controlling the first register area and / or the R second register areas in a group of register areas corresponding to the n groups of data to be processed to perform a vector multiplication operation to obtain an autocorrelation matrix corresponding to each group of data to be processed in the n groups of data to be processed; Wherein, R is a positive integer.

3. The method according to claim 2, wherein: Part of the upper triangular elements and part of the lower triangular elements in the autocorrelation matrix of each group of data to be processed are obtained through vector multiplication operation.

4. The method according to claim 2 or 3, wherein: Controlling each group of register regions corresponding to the N groups of data to be processed to perform vector multiplication and accumulation operations to obtain processing results of the N groups of data to be processed, further comprising: In the case that the N groups of data to be processed include multiple groups of register areas, the autocorrelation matrix corresponding to each group of register areas included in the N groups of data to be processed is controlled to perform a vector addition operation to obtain the processing results of the N groups of data to be processed.

5. The method according to any one of claims 2 to 4, wherein: Controlling the first register area and / or the R second register areas in a group of register areas corresponding to the n groups of data to be processed to perform a vector multiplication operation, comprising: The first register area and the R second register areas corresponding to the first register area are controlled to perform vector multiplication operations respectively.

6. The method according to claim 5, wherein: The data arrangement manner in the first second register area of ​​the R second register areas is the same as the arrangement manner of the n groups of to-be-processed data in the first register area.

7. The method according to claim 5, wherein: The 1st storage unit to the n×Tth storage unit in the r+1th second register area of ​​the R second register areas correspond to the data of the n×r+1th storage unit to the n×(r+T)th storage unit in the storage cache unit; R is an integer greater than 1, and r is an integer from 0 to R, where T is the length of a group of data to be processed.

8. The method according to any one of claims 2 to 4, wherein: Controlling the first register area and / or the second register area in a group of register areas corresponding to the n groups of data to be processed to perform a vector multiplication operation, comprising: The first register region is controlled to perform a vector multiplication operation with itself, and the R second register regions corresponding to the first register region respectively perform a vector multiplication operation.

9. The method according to claim 8, wherein: The data arrangement in the first of the R second register areas is the same as the data arrangement in the first n storage units in the first register area after circular shift.

10. The method according to claim 8, wherein: The 1st storage unit to the n×Tth storage unit in the rth second register area of ​​the R second register areas correspond to the data of the n×r+1th storage unit to the n×(r+T)th storage unit in the storage cache unit; R is an integer greater than 1, and r is an integer from 1 to R.

11. The method according to any one of claims 2 to 10, wherein: The data arrangement mode of one of the R second register regions is the same as the data arrangement mode of the first n storage units in the previous second register region after circular shift.

12. The method according to any one of claims 2 to 11, wherein: The method further comprises: In a group of register areas corresponding to the n groups of data to be processed, elements with the same sequence number in the first register area are adjacent and the n groups of data to be processed are stored correspondingly in the order of group numbers.

13. The method according to claim 12, wherein: In a group of register areas corresponding to the n groups of data to be processed, the first storage unit to the n×Tth storage unit in the first register area corresponds to the data of the first storage unit to the n×Tth storage unit in the storage cache unit.

14. The method according to any one of claims 1 to 13, wherein: The method further comprises: The N groups of data to be processed are stored in a cache unit in an extended manner; wherein the elements of the n groups of data to be processed in the N groups of data to be processed that have the same sequence number are adjacent and are stored in an extended manner in the order of the group numbers.

15. The method according to claim 14, wherein: T is the length of a group of data to be processed, i is the element number in a group of data to be processed, and the n×i+1th storage unit to the n×(i+1)th storage unit in the cache unit stores the element with the sequence number i of the n groups of data to be processed in the order of the group numbers; Here, i is an integer from 0 to T-1.

16. The method according to claim 15, wherein: j is the element serial number in a group of data to be processed, and the n×(T+j)+1th storage unit to the n×(T+j+1)th storage unit in the cache unit stores the elements with serial number j of the n groups of data to be processed in the order of group numbers, and j is an integer from 0 to less than or equal to T-1.

17. The method according to any one of claims 1 to 16, wherein: The first register area and the plurality of second register areas in the group of register areas are storage units of vector registers VR in the vector digital signal processor VDSP.

18. A signal processor comprising: Multiple register areas; A storage control unit, used for storing n groups of data to be processed among N groups of data to be processed in a group of register areas according to a set arrangement, wherein the N groups of data to be processed correspond to at least one group of register areas; A vector operation unit, used for controlling each group of register regions corresponding to the N groups of data to be processed to perform vector multiplication and accumulation operations to obtain processing results of the N groups of data to be processed; Wherein, N and n are positive integers.

19. A chip, wherein: The chip is provided with the signal processor as claimed in claim 18.

20. An electronic device, wherein: The electronic device is provided with the signal processor according to claim 18.