Processor chip architecture scheme with on-chip full adder approximate substitution

By introducing a multiplication approximation module into the processor chip, the multiplication operation is replaced by addition and shift operations, which solves the hardware resource consumption and energy efficiency problems caused by the multiplication operation in the existing technology, achieves efficient computing and low energy consumption, and expands artificial intelligence Intelligent computing application scenarios.

CN118626047APending Publication Date: 2024-09-10JIANGSU UNIV OF TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410869242.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing processor chips consume large amounts of hardware resources during multiplication operations, resulting in reduced energy efficiency and increased complexity, making it difficult to effectively support artificial neural network calculations, especially in audio processing requirements.

Method used

Design a processor chip architecture that approximates the replacement of on-chip full adders. By introducing a multiplication approximation module in the calculation array, the multiplication operation is replaced by approximate addition and shift operations, and the adder and shift circuit are used to implement multiplication approximate calculations. .

Benefits of technology

It improves computing speed and resource utilization efficiency, reduces energy consumption and hardware complexity, achieves a faster and more efficient computing process, and expands artificial intelligence computing application scenarios in resource-constrained environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626047A
    Figure CN118626047A
Patent Text Reader

Abstract

The invention discloses a processor chip architecture scheme with on-chip full adder approximate substitution, and relates to the technical field of processor chip design, and the processor chip architecture scheme comprises the following steps: S1, calculation array construction: constructing a calculation array as a core of a processor chip according to design requirements and application requirements, the calculation array internally comprising a plurality of calculation units; s2, multiplication approximation module design: introducing a multiplication approximation module into each calculation unit of the calculation array; s3, approximate addition and shift operation: in the calculation unit, replacing the multiplication operation with the approximate addition and shift operation; by utilizing the design of the calculation array and the multiplication approximation module, efficient calculation operation can be realized, so that the calculation speed and the utilization efficiency of calculation resources are improved, the calculation complexity can be greatly reduced by addition and shift operations of multiplication approximation operation, the calculation process is accelerated, and the calculation efficiency is improved. And compared with accurate multiplication operation, the method is faster and consumes less energy, so that the energy consumption is reduced and the energy cost is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of processor chip design, and in particular to a processor chip architecture solution for approximate replacement of an on-chip full adder. Background Art

[0002] In the field of processor chip design technology, a computing array is a structure that contains multiple computing units inside a chip. It can be widely used in CPUs and DSPs for parallel computing, thereby improving computing performance. At the same time, computing arrays are also often used to support artificial neural network computing. Based on the RISC-V open source architecture and instruction set, when designing and developing CPU and DSP array cores and developing high-precision and low-latency audio processing algorithm libraries, computing arrays and artificial neural networks are used to perform complex calculations such as audio recognition, audio enhancement, audio compression, audio generation, audio classification, and audio resampling. These complex calculations can often be split into multiplication and addition operations.

[0003] Although the existing technology has made significant progress in processor chip design and implementation, there are still some shortcomings: in terms of chip energy efficiency, multiplication operations consume more hardware resources than addition operations, which may cause chip energy efficiency to decrease when performing large-scale calculations, and increase power consumption and heat dissipation requirements; in terms of hardware complexity, multiplication operations involve complex multiplier circuits, including multi-bit multiplication and accumulation operations, which are more complex in hardware implementation than addition operations, increasing the complexity and cost of chip design and manufacturing.

[0004] In summary, further research and improvement of the processor chip architecture is needed to support artificial neural network computing to meet the needs of audio processing. To this end, a processor chip architecture solution that approximates the replacement of an on-chip full adder is proposed. Summary of the invention

[0005] The purpose of the present invention is to solve the problems in the prior art and to propose a processor chip architecture solution that approximately replaces an on-chip full adder.

[0006] A processor chip architecture solution for approximate replacement of an on-chip full adder includes the following steps:

[0007] S1. Computing array construction: According to design requirements and application needs, a computing array is constructed as the core of the processor chip. The computing array contains multiple computing units.

[0008] S2, multiplication approximation module design: introduce a multiplication approximation module into each computing unit of the computing array;

[0009] S3, approximate addition and shift operations: In the computing unit, the multiplication operation is replaced by an approximate addition and shift operation;

[0010] S4, neural network computing task execution: the computing unit executes the corresponding artificial neural network computing task according to the input data and computing task type;

[0011] S5. Result output and feedback adjustment: output the calculation result to the subsequent processing unit or storage unit, and perform result feedback and adjustment.

[0012] Preferably, in step S1, the calculation array construction includes the following steps:

[0013] (1) Design requirements and application requirements: According to the specific application requirements and performance requirements, determine the design requirements of the computing array, including the scale of the computing array, the number and type of computing units, and the computing accuracy requirements. At the same time, select the appropriate artificial neural network type according to the application requirements;

[0014] (2) Computing unit design: Design the structure and function of the computing unit according to the design requirements. The computing unit includes input interface, computing module, activation function, pooling module and output interface, etc.

[0015] (3) Computing units form a computing array: The designed computing units are combined and arranged according to the scale and structure of the computing array to form a complete computing array.

[0016] Preferably, in step S2, the multiplication approximation module design includes the following steps:

[0017] (1) Input data preparation: Prepare the input data required for multiplication, including the multiplier and the multiplicand;

[0018] (2) Addition operation: Use an adder to add the multiplier and the multiplicand;

[0019] (3) Shift operation: Shift the addition result right or left to implement the multiplication operation in the multiplication approximation;

[0020] (4) Repeated addition and shift operations: According to the requirements of the multiplication approximation algorithm, the addition and shift operations need to be repeated multiple times to achieve the accuracy requirements of multiplication;

[0021] (5) Result output: The result of the multiplication approximation is output to the output interface or written into the memory for subsequent calculation or data processing.

[0022] Preferably, in step S3, the approximate addition and shift operation includes an approximate addition operation and an approximate shift operation, the approximate addition operation uses a simplified adder, and the approximate shift operation uses a simplified shift circuit.

[0023] Preferably, in step S4, the neural network computing task execution includes the following steps:

[0024] (1) Input data loading: Loading input data into the computing units in the computing array;

[0025] (2) Data processing: In the computing unit, the input data will undergo a preprocessing step to extract features from the input data;

[0026] (3) Approximate multiplication calculation: Calculation is performed based on the design and algorithm of the multiplication approximation module;

[0027] (4) Neural network calculation: The computing unit performs the calculation of the neural network to generate the output result of the neural network;

[0028] (5) Result transfer and processing: The output results generated by the computing unit are transferred to the subsequent computing unit or output layer for further processing and calculation.

[0029] Preferably, in step S5, the result output and feedback adjustment include the following steps:

[0030] (1) Output result acquisition: obtaining the output results generated by the computing units in the computing array;

[0031] (2) Feedback adjustment: Feedback adjustment is performed on the computing units in the computing array based on the obtained output results;

[0032] (3) Dynamic adjustment: Dynamically adjust the computing units in the computing array according to application needs and performance requirements;

[0033] (4) System performance evaluation: Evaluate multiple indicators of the output results to obtain the performance and optimization effect of the entire system.

[0034] Compared with the prior art, the present invention has the following advantages:

[0035] 1. The present invention can realize efficient computing operations by utilizing the design of computing array and multiplication approximation module, thereby improving the computing speed and utilization efficiency of computing resources. The addition and shift operations of multiplication approximation operations can greatly reduce the computing complexity, thereby accelerating the computing process. It is faster than the precise multiplication operation and consumes less energy, thereby reducing energy consumption and saving energy costs.

[0036] 2. The present invention can flexibly allocate computing resources according to application needs and performance requirements, thereby achieving better resource utilization and computing performance optimization, and can achieve efficient computing in resource-constrained environments such as embedded systems and edge computing, thereby expanding the application scenarios of artificial intelligence computing.

[0037] 3. The present invention can optimize and adjust the computing units in the computing array through the steps of outputting results and feedback adjustment, thereby improving the performance and accuracy of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION

[0039] In order to make the technical means, creative features, objectives and effects achieved by the present invention easy to understand, the present invention is further explained below in conjunction with specific implementation methods.

[0040] Reference Figure 1 As shown, a processor chip architecture solution for approximate replacement of an on-chip full adder includes the following steps:

[0041] S1. Computing array construction: According to design requirements and application needs, a computing array is constructed as the core of the processor chip. The computing array contains multiple computing units. Each computing unit can support computing tasks of different types of artificial neural networks, including CNN, DNN, SNN, RNN, FC, Transformer, etc. The computing tasks can be audio processing tasks.

[0042] S2. Design of multiplication approximation module: Introduce a multiplication approximation module into each computing unit of the computing array. The multiplication approximation module can use various approximation algorithms, such as shift operation, fixed-point conversion, table lookup, etc., and select and optimize them according to the design requirements and calculation accuracy requirements;

[0043] S3, approximate addition and shift operations: In the computing unit, the multiplication operation is replaced by approximate addition and shift operations, which can reduce the consumption of hardware resources by the multiplication operation and improve the computing efficiency and energy efficiency;

[0044] S4, neural network computing task execution: the computing unit executes the corresponding artificial neural network computing task according to the input data and computing task type;

[0045] S5. Result output and feedback adjustment: output the calculation result to the subsequent processing unit or storage unit, and perform result feedback and adjustment.

[0046] In step S1, the calculation array construction includes the following steps:

[0047] (1) Design requirements and application requirements: According to the specific application requirements and performance requirements, determine the design requirements of the computing array, including the scale of the computing array, the number and type of computing units, and the computing accuracy requirements. At the same time, select the appropriate artificial neural network type according to the application requirements;

[0048] (2) Computing unit design: Design the structure and function of the computing unit according to the design requirements. The computing unit includes input interface, computing module, activation function, pooling module and output interface. The computing module is the core of the computing unit and is responsible for executing various artificial neural network computing tasks.

[0049] (3) Computing units form a computing array: The designed computing units are combined and arranged according to the scale and structure of the computing array to form a complete computing array. The structure of the computing array can be two-dimensional or three-dimensional. The specific composition and arrangement can be optimized and adjusted according to the limitations of the computing tasks and hardware resources.

[0050] In step S2, the multiplication approximation module design includes the following steps:

[0051] (1) Input data preparation: Prepare the input data required for multiplication, including the multiplier and the multiplicand, which can be completed through the input interface or by reading data from the memory;

[0052] (2) Addition operation: Use an adder to add the multiplier and the multiplicand. The addition operation can be implemented in different ways, such as full adder, bit adder, parallel adder, etc., depending on the design requirements and performance requirements;

[0053] (3) Shift operation: Shift the addition result right or left to realize the multiplication operation in the multiplication approximation. The right shift operation realizes the division of the multiplier by 2, while the left shift operation realizes the multiplication of the multiplier by 2. The shift operation can be realized by means of shift registers, shift circuits, etc.

[0054] (4) Repeated addition and shift operations: According to the requirements of the multiplication approximation algorithm, the addition and shift operations need to be repeated multiple times to achieve the accuracy requirements of multiplication;

[0055] (5) Result output: The result of the multiplication approximation is output to the output interface or written into the memory for subsequent calculation or data processing.

[0056] In the step S3, the approximate addition and shift operation includes an approximate addition operation and an approximate shift operation. The approximate addition operation uses a simplified adder, such as a half adder or a half adder with carry, to replace the traditional full adder. The half adder only needs two input bits for XOR and AND gate operations, and outputs two result bits, one of which is used as the addition result and the other is used as the carry. Multiple half adders can be cascaded to achieve multi-bit addition operations, which can reduce the hardware consumption of the addition operation and improve the energy efficiency of the overall chip; the approximate shift operation uses a simplified shift circuit, such as a shift register or a shift gate circuit, to achieve the shift operation, which can reduce the hardware complexity and delay of the shift operation and improve the performance of the overall chip. For example, for the right shift operation in multiplication, it can be achieved by shifting the data to the right by one bit and then filling the highest bit with zero to approximately achieve the division by 2 operation. For the left shift operation in multiplication, it can be achieved by shifting the data to the left by one bit and setting the lowest bit to zero to approximately achieve the multiplication by 2 operation.

[0057] In step S4, the neural network computing task execution includes the following steps:

[0058] (1) Input data loading: Loading input data into the computing unit in the computing array. The input data may be audio data.

[0059] (2) Data processing: In the computing unit, the input data will undergo preprocessing steps to extract features from the input data, such as convolution, activation function, pooling, etc. These operations are usually the basic operations of the neural network model and are used to extract features from the input data;

[0060] (3) Approximate multiplication calculation: Calculation is performed based on the design and algorithm of the multiplication approximation module. The multiplication approximation module replaces the multiplication calculation with approximate addition and shift operations, thereby realizing full addition operations of the entire chip to improve hardware energy efficiency.

[0061] (4) Neural network calculation: The computing unit performs neural network calculations to generate the output results of the neural network, including weighting and bias calculations between neurons, application of activation functions, etc.

[0062] (5) Result transfer and processing: The output results generated by the computing unit are transferred to the subsequent computing unit or output layer for further processing and calculation. The output results can be processed by subsequent activation functions, pooling, normalization, etc., or they can be transferred to other computing units in the entire computing array for joint calculation and processing.

[0063] In step S5, the result output and feedback adjustment include the following steps:

[0064] (1) Obtaining output results: Obtaining output results generated by computing units in the computing array. The output results may be audio processing results implemented by an artificial neural network model, such as output of audio resampling results;

[0065] (2) Feedback adjustment: Based on the obtained output results, feedback adjustment is performed on the computing units in the computing array. For example, based on the error of the output results, the weights and biases in the computing units can be updated through the back propagation algorithm to optimize the performance of the model.

[0066] (3) Dynamic adjustment: Dynamically adjust the computing units in the computing array according to application needs and performance requirements. For example, the computing resource allocation of the computing units can be adjusted according to changes in workload to achieve flexible allocation and optimization of computing resources.

[0067] (4) System performance evaluation: Evaluate multiple indicators of the output results to obtain the performance and optimization effect of the entire system. The multiple indicators may include the accuracy of the output results, response time, energy efficiency, etc.

[0068] In summary, the technical solution of the present invention brings the following beneficial effects:

[0069] (1) Efficient computing: By utilizing the design of computing arrays and multiplication approximation modules, efficient computing operations can be achieved, thereby improving the computing speed and the utilization efficiency of computing resources. The addition and shift operations of multiplication approximation operations can greatly reduce the computational complexity, thereby accelerating the calculation process.

[0070] (2) Low energy consumption: Since multiplication approximation operations are generally faster and consume less energy than exact multiplication operations, the present invention may achieve lower energy consumption during the calculation process, thereby saving energy costs and reducing environmental impact.

[0071] (3) Flexibility: By building and dynamically adjusting computing arrays, computing resources can be flexibly allocated according to application needs and performance requirements, thereby achieving better resource utilization and computing performance optimization.

[0072] (4) Adaptability: The design of the multiplication approximation operation makes the present invention adaptable to a certain extent, and can achieve efficient computing in resource-constrained environments such as embedded systems and edge computing, thereby expanding the application scenarios of artificial intelligence computing.

[0073] (5) Optimizing performance: Through the steps of outputting results and feedback adjustment, the computing units in the computing array can be optimized and adjusted to improve the performance and accuracy of the model.

[0074] (6) Cost-effectiveness: Since the design of the multiplication approximation operation and the computing array can reduce the computing resource requirements and energy consumption, the present invention may have advantages in hardware design and deployment costs, thereby improving cost-effectiveness.

[0075] It is known from common technical knowledge that the present invention can be implemented by other embodiments that do not deviate from its spirit or essential features. Therefore, the above disclosed embodiments are only illustrative in all respects and are not exclusive. All changes within the scope of the present invention or within the scope equivalent to the present invention are included in the present invention.

Claims

1. A processor chip architecture solution for approximate replacement of an on-chip full adder, characterized in that: The following steps are involved: S1. Computing array construction: According to design requirements and application needs, a computing array is constructed as the core of the processor chip. The computing array contains multiple computing units. S2, multiplication approximation module design: introduce a multiplication approximation module into each computing unit of the computing array; S3, approximate addition and shift operations: In the computing unit, the multiplication operation is replaced by an approximate addition and shift operation; S4, neural network computing task execution: the computing unit executes the corresponding artificial neural network computing task according to the input data and computing task type; S5. Result output and feedback adjustment: output the calculation result to the subsequent processing unit or storage unit, and perform result feedback and adjustment.

2. The processor chip architecture solution of on-chip full adder approximation replacement according to claim 1, characterized in that: In step S1, the calculation array construction includes the following steps: (1) Design requirements and application requirements: According to the specific application requirements and performance requirements, determine the design requirements of the computing array, including the scale of the computing array, the number and type of computing units, and the computing accuracy requirements. At the same time, select the appropriate artificial neural network type according to the application requirements; (2) Computing unit design: Design the structure and function of the computing unit according to the design requirements. The computing unit includes input interface, computing module, activation function, pooling module and output interface, etc. (3) Computing units form a computing array: The designed computing units are combined and arranged according to the scale and structure of the computing array to form a complete computing array.

3. The processor chip architecture solution of on-chip full adder approximation replacement according to claim 1, characterized in that: In step S2, the multiplication approximation module design includes the following steps: (1) Input data preparation: Prepare the input data required for multiplication, including the multiplier and the multiplicand; (2) Addition operation: Use an adder to add the multiplier and the multiplicand; (3) Shift operation: Shift the addition result right or left to implement the multiplication operation in the multiplication approximation; (4) Repeated addition and shift operations: According to the requirements of the multiplication approximation algorithm, the addition and shift operations need to be repeated multiple times to achieve the accuracy requirements of multiplication; (5) Result output: The result of the multiplication approximation is output to the output interface or written into the memory for subsequent calculation or data processing.

4. The processor chip architecture solution of on-chip full adder approximation replacement according to claim 1, characterized in that: In step S3, the approximate addition and shift operation includes an approximate addition operation and an approximate shift operation. The approximate addition operation uses a simplified adder, and the approximate shift operation uses a simplified shift circuit.

5. The processor chip architecture solution of on-chip full adder approximation replacement according to claim 1, characterized in that: In step S4, the neural network computing task execution includes the following steps: (1) Input data loading: Loading input data into the computing units in the computing array; (2) Data processing: In the computing unit, the input data will undergo a preprocessing step to extract features from the input data; (3) Approximate multiplication calculation: Calculation is performed based on the design and algorithm of the multiplication approximation module; (4) Neural network calculation: The computing unit performs the calculation of the neural network to generate the output result of the neural network; (5) Result transfer and processing: The output results generated by the computing unit are transferred to the subsequent computing unit or output layer for further processing and calculation.

6. The processor chip architecture solution of on-chip full adder approximation replacement according to claim 1, characterized in that: In step S5, the result output and feedback adjustment include the following steps: (1) Output result acquisition: obtaining the output results generated by the computing units in the computing array; (2) Feedback adjustment: Feedback adjustment is performed on the computing units in the computing array based on the obtained output results; (3) Dynamic adjustment: Dynamically adjust the computing units in the computing array according to application needs and performance requirements; (4) System performance evaluation: Evaluate multiple indicators of the output results to obtain the performance and optimization effect of the entire system.

Citation Information

Cited By

  • Level-based multistage addition logic optimization method

    CN122713151A