A reconfigurable hardware acceleration system for extended Kalman filtering

By designing a reconfigurable hardware acceleration system and optimizing the matrix operations in the extended Kalman filter algorithm, the problem of low acceleration efficiency of matrix multiplication in the existing technology is solved, efficient computing acceleration and resource utilization are achieved, and the computing speed is significantly improved. Speed ​​and hardware efficiency.

CN114860649BActive Publication Date: 2024-10-22HUAZHONG UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210409461.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-19
Publication Date
2024-10-22
Estimated Expiration
2042-04-19

AI Technical Summary

Technical Problem

Existing technology fails to effectively implement reconfigurable hardware acceleration for all complex matrix operations in the extended Kalman filter algorithm, especially matrix multiplication acceleration, resulting in high computational resource overhead and low acceleration efficiency.

Method used

A reconfigurable hardware acceleration system for extended Kalman filtering is designed, including a reconfigurable matrix multiplication accelerator, matrix inversion module, matrix addition and subtraction module, partial derivative function module, matrix splicing module and prediction function module. Using Data symmetry and sparsity are optimized, and efficient multiplexing of matrix data and calculation acceleration are achieved through FIFO and multiple data flow control flows.

Benefits of technology

It realizes the acceleration of all matrix multiplications in the EKF algorithm, reduces computing energy consumption and storage overhead, improves computing speed and hardware utilization, reduces the matrix multiplication calculation amount by 27.4% and the calculation time by 17.7%, and improves the throughput rate. to 1 times, and the hardware utilization reaches 99.89%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114860649B_ABST
    Figure CN114860649B_ABST
Patent Text Reader

Abstract

The present invention discloses a reconfigurable hardware acceleration system for an extended Kalman filter, and belongs to the field of hardware acceleration design of algorithms. Based on the analysis of data equivalence between matrix multiplications in an EKF algorithm, the present invention designs a matrix data buffer. When a reconfigurable PE array performs a current matrix multiplication calculation, the matrix data buffer provides the matrix data of a previous matrix multiplication calculation, thereby fully realizing the reusability of the matrix data, reducing the data movement between off-chip and on-chip, realizing the acceleration of all matrix multiplication operations in the EKF algorithm, and reducing energy consumption. The present invention further improves the calculation speed by making full use of the data symmetry and data sparsity in the EKF algorithm, quickly realizing trigonometric functions and square root calculations, equipping the reconfigurable PE array with FIFO, and realizing data interaction between modules on-chip.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of electric machines, and more specifically, relates to a reconfigurable hardware acceleration system of an extended Kalman filter. Background Art

[0002] The Kalman filter algorithm is an algorithm that uses the state equation and observation equation of a linear system to optimize the estimation of the system state. For nonlinear systems, the Kalman filter algorithm is no longer applicable. The extended Kalman filter algorithm (EKF) achieves the optimal estimation of nonlinear systems by approximating linear processing of nonlinear problems. The EKF algorithm is widely used in simultaneous localization and mapping (SLAM) algorithms due to its superiority in digital filtering, such as Mono SLAM, VSLAM, etc.

[0003] The EKF algorithm is mainly divided into two steps, namely the prediction step and the update step. The prediction step mainly predicts the position vector and covariance at the next moment by calculating the motion equation at the current moment. The update step obtains the current observation data based on the observation equation at the current moment, and corrects / updates the position vector and covariance predicted in the prediction step to obtain the optimal position vector and covariance at the current moment. The motion equation is the equation for obtaining the current position vector based on the observation data at the current moment and the position vector at the previous moment, and the observation equation is the equation for obtaining the observation data at the current moment based on the position vector at the current moment.

[0004] The prediction step formula is:

[0005]

[0006]

[0007]

[0008] The update step formula is:

[0009]

[0010]

[0011] in:

[0012]

[0013]

[0014]

[0015]

[0016]

[0017]

[0018]

[0019]

[0020]

[0021]

[0022]

[0023] in, is the predicted value of the sensor position vector, α is the prediction equation, is the covariance matrix corresponding to the sensor position vector at the current moment, is the covariance matrix corresponding to the current sensor position vector and other feature point position vectors, F (t) is the Jacobian matrix of the sensor position vector change, G (t) μ is the Jacobian matrix between sensor noise and position vector change, and Q is the motion noise. (t) is the updated position vector of the sensor and other feature points, is the position vector of the sensor and other feature points predicted in the prediction step, is the total covariance matrix of the forecast step, v (t) is the measurement error, W (t) is the filter gain, S (t) is the new information covariance matrix. γ is the measurement equation, which calculates the feature point position vector predicted at the current moment through the sensor's current position vector and the feature point position vector at the previous moment. R is the measurement noise. H (t) is the measured Jacobian matrix, which indicates the degree to which the position vector of the feature point changes with the sensor position vector and the feature point position vector. v And the Jacobian matrix H of the feature point position vector f H v Indicates the degree to which the position vector measured by the feature point changes with the sensor position vector, H f It indicates the degree of change of the position vector measured by other feature points with the position vector measured by a specific feature point. Both are obtained by taking the partial derivative of the corresponding variable of the observation equation (15-16).

[0024] Reconfigurable computing can flexibly switch within a certain range of application sets to reduce the number of repeated designs, and can also inherit the data flow execution method deployed by dedicated integrated circuits to realize the conversion of batch operations to circuits (including spatial and temporal mapping), thereby achieving high utilization of computing resources, high performance, high energy efficiency, and other benefits originally obtained through customized circuits.

[0025] According to formulas (1)-(16), it can be found that in the EKF algorithm, matrix multiplication occupies the vast majority of the computation, so hardware acceleration of the EKF algorithm should mainly focus on hardware acceleration of the matrix multiplication in the EKF. Considering that the EKF algorithm involves a large number of matrix multiplications with different matrix scales, it is necessary to adopt reconfigurable hardware acceleration design technology.

[0026] In the existing domestic and foreign patent literature, there is no related design for reconfigurable hardware acceleration of all ten matrix multiplications in the EKF algorithm. The EKF accelerator published by DTTertei et al. at the International Conference on Reconfigurable Computing and FPGA in 2014 only supports floating-point calculation acceleration of one matrix multiplication. Compared with fixed-point design, floating-point calculation has higher precision, but it greatly increases the computing resource overhead. Accelerating only one matrix multiplication also greatly reduces the area efficiency of the accelerator. In 2016, DTTertei et al. published an EKF fixed-point hardware accelerator that can accelerate two matrix multiplications in the ELSEVIER Journal of Computer and Electronic Engineering, but it still cannot complete the calculation acceleration of all matrix multiplications in EKF through reconfigurable design and using the same computing hardware. Summary of the invention

[0027] In view of the above defects or improvement needs of the prior art, the present invention provides a reconfigurable hardware acceleration system for an extended Kalman filter, which aims to perform hardware acceleration design for all complex matrix operations in the EKF algorithm.

[0028] To achieve the above object, the present invention provides a reconfigurable hardware acceleration system for an extended Kalman filter, comprising:

[0029] A reconfigurable matrix multiplication accelerator; the reconfigurable matrix multiplication accelerator is equipped with a reconfigurable PE array and at least four matrix data buffers; each matrix data buffer is equipped with max (L, S) storage stripes; L and S are the number of rows and columns of the reconfigurable PE array respectively;

[0030] Among them, the three matrix data buffers are respectively used to store the first input matrix A, the second input matrix B and the output matrix C when the reconfigurable PE array performs the current matrix multiplication calculation; C = A*B; the remaining matrix data buffer is used to store the input or output matrix data when the reconfigurable PE array performs the previous matrix multiplication calculation, and reuse it as the input matrix data when the reconfigurable PE array performs the subsequent matrix multiplication calculation;

[0031] The reconfigurable PE array has multiple data flows and control flows, which are used to accelerate the calculation of matrix multiplications of various scales in EKF.

[0032] Furthermore, the system also includes a matrix inversion module, a matrix addition and subtraction module, a partial derivative function module, a matrix splicing module and a prediction function module.

[0033] Furthermore, the matrix data buffer stores and performs address decoding on only half of the data on the main diagonal of the symmetric covariance matrix data in the EKF algorithm.

[0034] Furthermore, the reconfigurable PE array only calculates half of the data on the main diagonal of the symmetric covariance matrix data in the EKF algorithm.

[0035] Furthermore, the matrix data buffer stores and decodes addresses of only non-zero data in the sparse matrix data in the EKF algorithm.

[0036] Furthermore, the reconfigurable PE array only calculates non-zero data in the sparse matrix data in the EKF algorithm.

[0037] Furthermore, the partial derivative function module implements trigonometric function calculation and square root calculation through a fast CORDIC circuit.

[0038] Furthermore, the reconfigurable PE array is equipped with a FIFO for multiplexing the row and column data of the input matrix and caching the partial sums generated during the operation.

[0039] In general, compared with the prior art, the above technical solution conceived by the present invention can achieve the following beneficial effects.

[0040] (1) Based on the analysis of data equivalence between matrix multiplications in the EKF algorithm, the present invention designs a matrix data buffer. When the reconfigurable PE array performs the current matrix multiplication calculation, the matrix data buffer provides it with the matrix data of the previous matrix multiplication calculation, thereby fully realizing the reusability of the matrix data, reducing the data movement between the off-chip and on-chip, realizing the acceleration of all matrix multiplication operations in the EKF algorithm, and reducing energy consumption.

[0041] (2) The present invention is designed with a matrix inversion module, a matrix addition and subtraction module, a partial derivative function module, a matrix splicing module and a prediction measurement function module for coordinated acceleration operations with a reconfigurable matrix multiplication accelerator. Data interaction between modules can be achieved on-chip, without the need for off-chip and on-chip data movement, and without the need for a CPU to participate in the calculation, thereby further improving the calculation speed and reducing the calculation energy consumption.

[0042] (3) The present invention makes full use of the data symmetry in the EKF algorithm. For symmetrical matrix data, the present invention only calculates and stores half of the data on the main diagonal, which reduces the amount of calculation and time consumption, further improves the calculation speed, and reduces storage overhead and computing energy consumption.

[0043] (4) The present invention makes full use of the data sparsity in the EKF algorithm. The present invention stores, decodes addresses and calculates only the non-zero data in the sparse matrix data, which reduces the amount of calculation and the time consumption, further improves the calculation speed, and reduces the storage overhead and computing energy consumption.

[0044] (5) The partial derivative function module in the present invention implements trigonometric function calculation and square root calculation through a fast CORDIC circuit, which can reduce the calculation time, further improve the calculation speed, and improve the calculation accuracy.

[0045] (6) The present invention equips the reconfigurable PE array with FIFO, thereby reducing the data movement during the current matrix multiplication calculation, further improving the calculation speed, and reducing the calculation energy consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 This is the architecture diagram of the EKF reconfigurable hardware acceleration system;

[0047] Figure 2 Algorithm flow chart for matrix operations of EKF reconfigurable hardware acceleration system;

[0048] Figure 3 The hardware architecture diagram of the reconfigurable matrix multiplication accelerator;

[0049] Figure 4 The memory organization form of the reconfigurable matrix multiplication accelerator;

[0050] Figure 5 The memory scheduling rules for computing the first matrix multiplication in the prediction step of the EKF algorithm;

[0051] Figure 6 The memory scheduling rules for computing the second matrix multiplication in the prediction step of the EKF algorithm;

[0052] Figure 7The memory scheduling rule for computing the third matrix multiplication in the prediction step of the EKF algorithm;

[0053] Figure 8 The memory scheduling rule for computing the fourth matrix multiplication in the prediction step of the EKF algorithm;

[0054] Fig. 9 The memory scheduling rule for computing the fifth matrix multiplication in the prediction step of the EKF algorithm;

[0055] Fig.10 The memory scheduling rule for computing the sixth matrix multiplication in an update step of the EKF algorithm;

[0056] Fig.11 The memory scheduling rule for computing the seventh matrix multiplication in an update step of the EKF algorithm;

[0057] Fig.12 The memory scheduling rule for computing the eighth matrix multiplication in an update step of the EKF algorithm;

[0058] Fig.13 The memory scheduling rule for computing the ninth matrix multiplication in an update step of the EKF algorithm;

[0059] Fig.14 Memory scheduling rule for computing the tenth matrix multiplication in an update step of the EKF algorithm. DETAILED DESCRIPTION

[0060] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0061] refer to Figure 1 , the structure diagram of the EKF reconfigurable hardware acceleration system proposed in the present invention, the core structure is a reconfigurable matrix multiplication accelerator, the reconfigurable matrix multiplication accelerator is equipped with a reconfigurable PE array and at least four matrix data buffers; each matrix data buffer is equipped with max(L,S) storage strips, where L and S are the number of rows and columns of the reconfigurable PE array respectively;

[0062] Among them, the three matrix data buffers are respectively used to store the first input matrix A, the second input matrix B and the output matrix C when the reconfigurable PE array performs the current matrix multiplication calculation; C = A*B; the remaining matrix data buffer is used to store the input or output matrix data when the reconfigurable PE array performs the previous matrix multiplication calculation, and reuse it as the input matrix data when the reconfigurable PE array performs the subsequent matrix multiplication calculation;

[0063] The reconfigurable PE array has multiple data flows and control flows by configuring the interconnection between PE units, which is used to realize the accelerated calculation of matrix multiplication of various scales in EKF.

[0064] In order to coordinate acceleration with the reconfigurable matrix multiplication accelerator, the system of the present invention is also provided with a matrix inversion module, a matrix addition and subtraction module, a partial derivative function module, a matrix splicing module, and a prediction function module, which are respectively responsible for the calculations related to matrix inversion, matrix addition and subtraction, partial derivative, matrix splicing, and prediction function in the EKF algorithm process.

[0065] The calculation process of the EKF algorithm is as follows Figure 2 As shown in Figure 1, the calculation process has the characteristics of sequential execution. Figure 2 The data direction indicated by the arrow in the middle is used for the next calculation.

[0066] After analyzing the EKF-SLAM algorithm shown in formulas (1)-(16), based on the consideration of matrix data equivalence, the EKF algorithm is decomposed into Figure 2 The basic idea of ​​splitting the algorithm calculation process is to make full use of the data equivalence of matrix calculations and reuse the previous calculation data when performing the current calculation to reduce the data movement between the chip and the on-chip, improve the calculation speed and reduce power consumption. Specifically, the first step of the algorithm flow is to call Figure 1 The partial derivative function module in F (t) With the input matrix data, the second step is to call Figure 1 The reconfigurable matrix multiplication acceleration module in calculates the first matrix multiplication And use the result as the second matrix multiplication The third step is to call the partial derivative function module again to calculate G (t) , two reconfigurable matrix multiplication acceleration modules calculate the third matrix multiplication G (t) Q and the fourth matrix multiplication G (t) Q.G (t)T The fourth step is to use the result of the second and fourth matrix multiplication as the first matrix addition. The two input matrices are called Figure 1 The fifth step is the last calculation step of the EKF prediction step, that is, the fifth matrix multiplication The calculation is still to call Figure 1 It is worth noting that the input matrix F of the fifth matrix multiplication is (t) The first matrix multiplication input matrix is ​​reused, and the calculation result of the fifth matrix multiplication is also used as Figure 1 The input matrix of the matrix concatenation module in is calculated. The next step is to calculate the two formulas (4) and (5) of the EKF update step. The sixth step is to calculate the matrix S (t) and W (t) According to formulas (11) and (12), we can get is to calculate S (t) and W (t) The seventh step is to reuse the output matrix of the sixth matrix multiplication to calculate the seventh matrix multiplication. The calculation results are given to Figure 1 The matrix addition and subtraction module in the calculation of the second matrix addition Get S (t) The eighth step is to call Figure 1 The matrix inversion module in the second matrix addition inverts the output matrix to obtain S (t)-1 In the ninth step, in addition to reusing the output matrix of the sixth matrix multiplication, the output matrix of the matrix inversion is also reused to calculate the eighth matrix multiplication. Get the matrix W (t) The tenth step is to call according to formulas (9) and (10) Figure 1 The prediction / measurement function module and matrix addition and subtraction module in the calculation matrix v (t) The eleventh step is to use the result of the matrix subtraction as the ninth matrix multiplication W (t) ·v (t) The twelfth step is to complete the calculation of formula (4) based on the calculation of the third matrix addition. The thirteenth step is to perform matrix concatenation. The fourteenth step is to reuse the output matrix of the sixth matrix multiplication to calculate the tenth matrix multiplication. And give the calculation results to Figure 1 The matrix addition and subtraction module in completes the calculation of formula (5) and finally obtains the corresponding covariance matrix.

[0067] For the matrix multiplication with the largest amount of computation in EKF, the architecture of the proposed reconfigurable matrix multiplication accelerator is as follows: Figure 3As shown, it includes a data buffer FIFO, a reconfigurable matrix multiplication controller FSM, a storage controller BRAM Controller, an address decoder Address Decoder, a data memory BRAM and a reconfigurable operation array PE Array.

[0068] After the input data to be matrix multiplication enters the reconfigurable matrix multiplication accelerator through the bus, it is cached through the FIFO and then stored in the BRAM. According to the characteristics of the matrix multiplication required, the finite state machine (FSM) inside the accelerator will generate corresponding configuration signals to control the BRAM controller (BRAM Controller) and the address decoder (AddressDecoder) to generate corresponding control signals, and configure the reconfigurable PE array for corresponding interconnection. Subsequently, the data in the BRAM enters the reconfigurable PE array according to certain rules under the control of the BRAM controller (BRAM Controller) and the address decoder (Address Decoder) to perform efficient matrix multiplication calculations.

[0069] Figure 4 The design scheme of the memory in the proposed reconfigurable matrix multiplication accelerator is demonstrated. For the ten matrix multiplications involved in the EKF algorithm, in order to make full use of the data reusability and reduce the data movement, the reconfigurable matrix multiplication accelerator proposed in the present invention is equipped with four matrix buffer memories for flexibly storing the input matrix, output matrix and matrix data that need to be reused repeatedly of the matrix multiplication, and they are named Matrix_buffer1, Matrix_buffer2, Matrix_buffer3 and Matrix_buffer4 respectively. The roles of the four matrix buffer memories are selected through the switch network, and data is exchanged with the reconfigurable PE array. Each matrix buffer memory is equipped with max (L, S) banks, where L and S are the number of rows and columns of the reconfigurable PE array respectively. At the same time, in the present invention, a local FIFO is equipped for the reconfigurable PE array to cache the input data or partial sum that needs to be reused during the operation process, thereby greatly reducing the data movement, improving the operation efficiency and reducing the power consumption. At the same time, S FIFOs are configured to match the number of columns of the reconfigurable PE array.

[0070] With respect to the ten matrix multiplications involved in the entire EKF algorithm, the workflow of the reconfigurable matrix multiplication accelerator proposed in the present invention and the memory scheduling rules are introduced below: by reasonably allocating four data memories, when calculating different matrix multiplications, they can be used as the data memory of input matrix A, the data memory of input matrix B, the data memory of output matrix C, and the data memory to be reused for subsequent matrix multiplication calculations as needed, so as to reduce the data movement between off-chip and on-chip, improve the calculation speed, and reduce the power consumption.

[0071] First, when calculating the first matrix multiplication, such as Figure 5 As shown, Matrix_buffer 1 is used to store the first input matrix of the PE array, Matrix_buffer 2 is used to store the second input matrix of the PE array, and Matrix_buffer 3 is used to store the output matrix of the PE array.

[0072] Figure 6 This shows the memory scheduling rules for computing the second matrix multiplication. The first matrix multiplication has already been stored. Matrix_buffer 3 is used as the first input matrix of the reconfigurable PE array when calculating the second matrix multiplication. When the data in Matrix_buffer 1 is read out, the address decoder reads out the data according to the transposition rule, thereby realizing the reading of the transposed matrix and serving as the second input matrix of the reconfigurable PE array. At this time, Matrix_buffer 2 is used to store the output matrix of the reconfigurable PE array.

[0073] Figure 7 It is shown that when calculating the third matrix multiplication, Matrix_buffer 4 is used to store the first input matrix of the reconfigurable PE array, Matrix_buffer 2 is used to store the second input matrix of the reconfigurable PE array, and Matrix_buffer 3 is used to store the output matrix of the reconfigurable PE array.

[0074] Figure 8 This is the memory scheduling rule when calculating the fourth matrix multiplication. Matrix_buffer 3, which has stored GQ when calculating the third matrix multiplication, is used as the first input matrix of the reconfigurable PE array when calculating the fourth matrix multiplication. When reading out the data in Matrix_buffer 4, the address decoder reads out the data according to the transposition rule, thereby realizing the reading of the transposed matrix and serving as the second input matrix of the reconfigurable PE array. At this time, Matrix_buffer 2 is used to store the output matrix of the reconfigurable PE array.

[0075] Fig. 9To calculate the memory scheduling rules when calculating the fifth matrix multiplication, the matrix F stored in Matrix_buffer 1 when calculating the first matrix multiplication continues to be used as the first input matrix of the reconfigurable PE array when calculating the fifth matrix multiplication, Matrix_buffer 2 is used to store the second input matrix of the reconfigurable PE array, and Matrix_buffer3 is used to store the output matrix of the reconfigurable PE array.

[0076] The memory scheduling rules for calculating the sixth matrix multiplication are as follows: Fig.10 As shown, Matrix_buffer 1 is used to store the first input matrix of the reconfigurable PE array, Matrix_buffer 2 is used to store the second input matrix of the reconfigurable PE array, and the output matrix of the reconfigurable PE array is stored in Matrix_buffer 3. Note: Consider the matrix H′ (t) The sparsity of , then the sixth matrix multiplication and H (t)T Take only the corresponding columns and rows respectively, such as Fig.10 shown.

[0077] Fig.11 In order to calculate the memory scheduling rules for the seventh matrix multiplication, the data in Matrix_buffer 2 is read out by the address decoder according to the transposition rule, thereby realizing the reading of the transposed matrix and serving as the first input matrix of the reconfigurable PE array. Matrix_buffer 3 is used as the second input matrix of the reconfigurable PE array when calculating the seventh matrix multiplication. At this time, Matrix_buffer 1 is used to store the output matrix of the reconfigurable PE array. Note: Consider the matrix H′ (t) The sparsity of , then H in the sixth matrix multiplication (t) and Take only the corresponding columns and rows respectively, such as Fig.11 shown.

[0078] Fig.12 The memory scheduling rule for calculating the eighth matrix multiplication is that the memory has been stored when calculating the sixth matrix multiplication. Matrix_buffer 3 is used as the first input matrix of the reconfigurable PE array when calculating the eighth matrix multiplication. Matrix_buffer 2 is used to store the second input matrix of the reconfigurable PE array. At this time, Matrix_buffer 1 is used to store the output matrix of the reconfigurable PE array.

[0079] Fig.13For the memory scheduling rule when calculating the ninth matrix multiplication, Matrix_buffer 1, which has stored W when calculating the eighth matrix multiplication, is used as the first input matrix of the reconfigurable PE array when calculating the ninth matrix multiplication. Matrix_buffer 2 is used to store the second input matrix of the reconfigurable PE array. At this time, Matrix_buffer 4 is used to store the output matrix of the reconfigurable PE array.

[0080] Fig.14 The memory scheduling rules for calculating the tenth matrix multiplication are as follows: As the first input matrix of the reconfigurable PE array. When calculating the eighth matrix multiplication, Matrix_buffer 1, which has stored W, is read out according to the transposition rule through the address decoder to realize the reading of the transposed matrix and serve as the second input matrix of the reconfigurable PE array. At this time, Matrix_buffer 2 is used to store the output matrix of the reconfigurable PE array. Note: Since the output matrix at this time is a symmetric matrix, only the data on the upper diagonal of the output matrix needs to be stored. When reading the data to the matrix subtraction unit, it can be decoded by the address decoder. At this point, all the matrix multiplications involved in a prediction step and an update step are calculated. In the next update process, the sixth to tenth matrix multiplications are repeated, and the scheduling rules of the memory are consistent with the above.

[0081] Compared with the work in the most advanced literature, the work of the present invention reduces the amount of matrix multiplication calculations by 27.4%, thereby reducing the computing time by 17.7%, reducing the storage overhead by 86.7%, increasing the throughput by 1 times, and achieving a hardware utilization rate of up to 99.89%.

[0082] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A reconfigurable hardware acceleration system for an extended Kalman filter, characterized in that: include: A reconfigurable matrix multiplication accelerator; the reconfigurable matrix multiplication accelerator is equipped with a reconfigurable PE array and at least four matrix data buffers; Each matrix data buffer is equipped with max(L,S) memory stripes; L and S are the number of rows and columns of the reconfigurable PE array, respectively; Among them, the three matrix data buffers are respectively used to store the first input matrix A, the second input matrix B and the output matrix C when the reconfigurable PE array performs the current matrix multiplication calculation; C=A*B; the remaining matrix data buffer is used to store the input or output matrix data when the reconfigurable PE array performs the previous matrix multiplication calculation, and reuse it as the input matrix data when the reconfigurable PE array performs the subsequent matrix multiplication calculation; The reconfigurable PE array has multiple data flows and control flows, which are used to realize the accelerated calculation of matrix multiplication of various scales in EKF; The system also includes a matrix inversion module, a matrix addition and subtraction module, a partial derivative function module, a matrix splicing module and a prediction function module; The matrix data buffer stores and decodes only half of the data on the main diagonal of the symmetrical covariance matrix data in the EKF algorithm; The reconfigurable PE array only calculates half of the data on the main diagonal of the symmetric covariance matrix data in the EKF algorithm; The matrix data buffer stores and decodes only the non-zero data in the sparse matrix data in the EKF algorithm; The reconfigurable PE array only calculates non-zero data in the sparse matrix data in the EKF algorithm; The partial derivative function module realizes trigonometric function calculation and square root calculation through a fast CORDIC circuit; The reconfigurable PE array is equipped with a FIFO for multiplexing the row and column data of the input matrix and caching the partial sums generated during the operation.