Deep pulse neural network hardware architecture based on multi-channel time division multiplexing
By adopting multi-channel time division multiplexing and optimized CORDIC algorithms in the deep spiking neural network hardware architecture, combined with the high parallelism of FPGA, the problem of low data transmission efficiency in the traditional computing model is solved, and an efficient and low-power spiking neural network is realized. Network computing improves computing efficiency and resource utilization.
Patent Information
- Application Number
- CN202411282720.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Frequent data transmission between high-speed computing units and low-speed storage units in traditional von Neumann computing models limits the computational throughput and efficiency of neural networks, making it difficult to achieve efficient intelligent computing.
A deep spiking neural network hardware architecture based on multi-channel time division multiplexing is designed. By optimizing the CORDIC algorithm and impulse response neuron model, combined with the high parallelism of FPGA, the parallelization, efficient calculation and low power of the spiking neural network are achieved. It adopts multi-channel parallel time-division multiplexing structure and floating-point number representation method to optimize hardware resource consumption and computing efficiency.
It realizes efficient computing and low-power computing of impulse neural networks, improves hardware resource utilization and computing efficiency, is suitable for resource-constrained environments and real-time processing, and promotes the widespread application of neural networks in various fields.
Smart Images

Figure CN118798281A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of brain-like computing technology, and in particular relates to a deep pulse neural network hardware architecture based on multi-channel time division multiplexing. Background Art
[0002] The biological brain, with its highly complex structure, achieves effective information transmission, conversion, and learning processes under the action of synaptic plasticity. Given the remarkable progress made in the fields of artificial intelligence and brain science, we need to explore the intersection of the two from a new perspective. Neuromorphic computing has emerged as a result. It aims to achieve efficient intelligent computing by simulating the structure and function of the biological nervous system to cope with complex challenges in the real world.
[0003] The traditional von Neumann computing model has limitations, the most prominent of which is that it separates storage and computing units and relies on serial computing. In this mode, the software implementation of artificial neural networks is limited by the data transmission of the system bus, especially the frequent data transmission between high-speed computing units and low-speed storage units, which greatly restricts the computing throughput and efficiency of the neural network.
[0004] In contrast, the hardware implementation of neuromorphic computing is closer to the operating principle of the biological brain. It achieves the synchronization of information storage and nonlinear complex computing through distributed parallel processing of neural networks. This architecture of distributed parallel computing units and integrated storage computing (In-memory Computing) not only improves computing efficiency, but also provides a practical solution for general brain-like computing.
[0005] Spiking neural network (SNN) successfully simulates the information processing mechanism of biological brain with its unique discrete neural pulse calculation method, thus showing higher energy efficiency. In order to solve complex problems, researchers cleverly combined the multi-layer structure of deep neural network (DNN) with the information processing capability of SNN, and innovatively proposed deep spiking neural network (DSNN). This innovative achievement has opened up a new path for brain-like computing research.
[0006] DSNN is naturally suitable for neuromorphic computing hardware systems due to its complex network structure. In order to further explore the potential of DSNN, researchers combined the high parallelism of field programmable gate arrays (FPGAs) and the information processing mode of DSNN to design and implement an efficient deep pulse neural network hardware architecture. This innovative architecture not only fully utilizes the advantages of FPGA such as short development cycle, reprogrammable, and high stability, but also can highly simulate the electrical signal transmission mechanism of the biological brain, providing strong support for the research of brain-like systems.
[0007] FPGAs maintain high-density computing characteristics while also showing a high degree of flexibility. This means that researchers can reprogram FPGAs according to specific needs to adapt to different types of brain-like computing tasks. This flexibility makes the combination of FPGAs and DSNNs an extremely attractive option, providing researchers with new possibilities for building efficient deep pulse neural network hardware architectures.
[0008] In the research of deep spiking neural network hardware architecture, time-division multiplexing architecture plays a pivotal role. It achieves efficient use of hardware resources by reusing neural network layers in time, thereby significantly reducing hardware scale and energy consumption. This design is not only suitable for resource-constrained environments, but also can meet the high requirements of real-time processing performance. The research on time-division multiplexing architecture provides an efficient and feasible solution for neural network applications on embedded systems and hardware platforms, which is expected to promote the widespread application of neural networks in various fields. Summary of the invention
[0009] Based on this, an embodiment of the present invention provides a deep pulse neural network hardware architecture based on multi-channel time division multiplexing to achieve parallelization, efficient computing and low power consumption of the pulse neural network model.
[0010] The embodiment of the present invention provides a deep pulse neural network hardware architecture based on multi-channel time division multiplexing, including analyzing the pulse response neuron model, designing and implementing the pulse response neuron FPGA digital circuit based on the CORDIC algorithm to realize the neuron model FPGA, and for the deep pulse neural network structure, combining the advantages and disadvantages of serial computing and parallel computing, designing a multi-channel parallel time division multiplexing structure of multiple neuron computing units to realize the pulse neuromorphic hardware; The FPGA implementation of the neuron model includes the digital circuit design of the impulse response neuron model, which represents the influence of the analog pulse signal on the membrane potential. At the same time, the CORDIC algorithm is optimized to reduce the consumption of hardware resources required for calculation. The pulse neuromorphic hardware implementation includes building an overall hardware architecture of a pulse neural network based on FPGA based on the digital circuit design of a pulse response neuron model, and realizing a time division multiplexing structure of neurons in each layer of the pulse neural network, using limited physical neurons to build virtual neurons and neuron parameters, synaptic weights and delay storage units required for each layer, and realizing real-time simulation of the pulse neural network.
[0011] Preferably, the optimized CORDIC algorithm includes an angle recoding mechanism and a residual angle mapping mechanism, which simplifies the implementation of the angle selection function in the CORDIC algorithm.
[0012] Preferably, the expression for optimizing the CORDIC algorithm is:
[0013]
[0014]
[0015] in, and Respectively represent the constant angles on both sides of the remaining angle after each rotation, m i Expressed as and The middle value of Expressed as the remaining angle range containing the desired constant angle, in each There is a constant angle , and each From the corresponding All are recent. X i Expressed as , Y i Expressed as , It is expressed as the size of the initial rotation angle, Z i Expressed as the remaining angle range containing the desired constant angle, σ i is the direction of the next rotation, expressed as , i represents the i-th iteration, and N represents the total number of iterations.
[0016] Preferably, a multi-channel parallel time-division multiplexing structure realizes a deep-structured pulse neural network with limited hardware resources. Each layer has a set of actual pulse neuron circuits, which are calculated in a time-division multiplexing mode with other virtual neurons in the same layer. The parameters of the pulse neurons and the synaptic connection weights are accessed and read in units of neural layers, thereby improving the processing efficiency of the pulse neuromorphic computing system and reducing the hardware resource occupancy.
[0017] Preferably, in the impulse response neuron FPGA digital circuit, in order to improve the data throughput per unit time and the capability of the hardware computing system, a floating point representation method is selected, and at least an accumulator, an adder and a multiplier are designed, wherein the expression of the designed floating point adder is:
[0018] The expression of the designed floating-point multiplier is:
[0019] when and When the multiplication result exceeds the representation range, the operation result is normalized and expressed as:
[0020] in, and They are represented as two floating point numbers, S1 and S2 are represented as two sign bits, E1 and E2 are represented as two exponents, M1 and M2 are represented as two mantissas, Q is represented as the result of formatting, n Indicates the normalization of the result of the multiplication operation, E Z It is represented as the order code, and Bias is represented as the offset. , m1 and m2 are represented as two parameters calculated according to the corresponding sign bit and mantissa respectively; In the process of designing the floating-point accumulator, in order to ensure the correctness of the accumulated results, a data selection module that filters the input data is used to access the results on the three-stage pipeline.
[0021] Preferably, the hardware design of the impulse response neuron model includes a refractory period calculation module, an impulse response calculation module, a real-time membrane potential calculation integration module, and a pulse emission judgment module; The refractory period calculation module is used for resetting the neuron membrane potential to ensure that the neuron can respond again after a preset time interval; The impulse response calculation module is used to process the calculation of input impulses and simulate the response of neurons to impulse signals; The real-time membrane potential calculation integration module is used to calculate and update the membrane potential of the neuron in real time according to all input pulses and their weights; The pulse emission judgment module is used to judge whether the threshold of pulse emission is reached according to the accumulation result of membrane potential, and generate an output pulse if it is judged that the threshold of pulse emission is reached.
[0022] Preferably, the architecture of the deep pulse neural network includes a deep pulse neural network implementation unit, a network control unit, a neuron calculation unit and a weight storage unit; The deep pulse neural network implementation unit is used to implement the distribution and connection of multiple layers of neurons, including input neurons, hidden neurons and output neurons, wherein the hidden neurons and the output neurons adopt an impulse response neuron model; The network control unit is used to control the calculation process of the deep pulse neural network, read the synaptic weights and store the neuron membrane potential; The neuron calculation unit is used for the calculation of neurons in the hidden layer and the output layer, including the accumulation and integration of pulses and the judgment of pulse emission; The weight storage unit is used to store synaptic weights.
[0023] Preferably, the hardware architecture of the deep pulse neural network includes a clock module, an input module, a weight storage module, a data selection module, a neural calculation module, a multi-channel time division multiplexing control module, an operation control and coordination module, and an output control module; The clock module is used to distribute the frequency division signal of the clock according to the timing requirements of each module; The input module is used to store the time series data required for calculation; The weight storage module is used to store synaptic weights; The data selection module is used to select and read the operation data; The neural computing module is used to perform core computing tasks; The multi-channel time division multiplexing control module is used to perform time division multiplexing control on the neural computing module according to the multiplexing structure; The operation control and coordination module is used to coordinate the overall operation timing and assign tasks to each module, and at the same time, integrate the calculation results and pass them to the output control module; The output control module is used to normalize the sequence corresponding to the output.
[0024] Preferably, in the training of the deep spiking neural network, a deep spiking neural network supervised learning algorithm based on a feedback alignment mechanism is used to train the network, and a supervised learning algorithm for the deep spiking neural network is derived; the calculated pulse sequence error E is directly transmitted back to each layer in the deep spiking neural network, and then the original weight matrix W in the network is adjusted through a fixed random matrix B; finally, the obtained synaptic weights are solidified on a neuromorphic chip with a multi-channel time-division multiplexing structure.
[0025] A deep pulse neural network hardware architecture based on multi-channel time division multiplexing provided in an embodiment of the present invention realizes the digital circuit hardware design of pulse response neurons by adopting an optimized CORDIC algorithm to optimize the calculation process of neurons and reduce the consumption of hardware resources. At the same time, a multi-channel time division multiplexing architecture is introduced to achieve efficient utilization of resources and maintain the flexibility and scalability of the network. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is an overall design block diagram of a deep pulse neural network hardware architecture based on multi-channel time division multiplexing according to an embodiment of the present invention; Figure 2A schematic diagram of a multi-channel time division multiplexing structure used in an embodiment of the present invention; Figure 3 A schematic diagram of the structure of an impulse response neuron used in an embodiment of the invention; Figure 4 Schematic diagram of a deep pulse neural network architecture in an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.
[0028] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.
[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0030] See also Figure 1 , which is an overall design block diagram of a deep pulse neural network hardware architecture based on multi-channel time division multiplexing according to an embodiment of the present invention. An embodiment of the present invention provides a deep pulse neural network hardware architecture based on multi-channel time division multiplexing, including designing and implementing a pulse response neuron FPGA digital circuit based on a CORDIC algorithm through analysis of a pulse response neuron model to implement a neuron model FPGA, and designing a multi-channel parallel time division multiplexing structure of multiple neuron computing units for a deep pulse neural network structure, combining the advantages and disadvantages of serial computing and parallel computing, to implement pulse neuromorphic hardware; The FPGA implementation of the neuron model includes the digital circuit design of the Spike Response Model (SRM). The Spike Response Model is used to represent the effect of the analog pulse signal on the membrane potential. At the same time, the CORDIC algorithm is optimized to reduce the consumption of hardware resources. The hardware implementation of spiking neuromorphism includes building an overall spiking neural network hardware architecture based on FPGA based on the digital circuit design of the pulse response neuron model, and realizing a time-division multiplexing structure for each layer of neurons in the spiking neural network. A limited number of physical neurons are used to build the virtual neurons and neuron parameters, synaptic weights and delay storage units required for each layer, so as to realize real-time simulation of the spiking neural network.
[0031] Preferably, the optimized CORDIC algorithm includes an angle recoding mechanism and a residual angle mapping mechanism, which simplifies the implementation of the angle selection function in the CORDIC algorithm.
[0032] It should be noted that implementing the angle selection function of the CORDIC algorithm in FPGA will take up too many resources and increase system latency. The optimized CORDIC algorithm reduces the number of rotations and increases the calculation speed by selecting the nearest angle, thereby quickly finding the constant angle closest to the total remaining angle in the shortest time.
[0033] Preferably, the expression for optimizing the CORDIC algorithm is:
[0034]
[0035]
[0036] in, and Respectively represent the constant angles on both sides of the remaining angle after each rotation, m i Expressed as and The middle value of Expressed as the remaining angle range containing the desired constant angle, in each There is a constant angle , and each From the corresponding are all recent. In the hyperbolic system, due to ,beg Just calculate and That is, among which X i Expressed as , It is expressed as the size of the initial rotation angle, Y i Expressed as , Z i Expressed as the remaining angle range containing the desired constant angle, σi is the direction of the next rotation, expressed as , i represents the i-th iteration, and N represents the total number of iterations.
[0037] Specifically, for any residual angle Z, its value will fall into or In order to determine the specific interval of the remaining angle, it is necessary to compare the remaining angle |Z| and m i The size of ,if , ;otherwise, , so as to obtain the angle used for the next rotation, as follows: .
[0038] It is very meaningful to establish an efficient hardware architecture for pulse neural networks. A multi-channel time-division multiplexing deep pulse neural network hardware architecture is constructed based on the digital circuit of the pulse response neuron model and implemented in FPGA. Preferably, the multi-channel parallel time-division multiplexing structure realizes the deep structure of the pulse neural network under limited hardware resources. Each layer has a set of actual pulse neuron circuits, which are calculated in a time-division multiplexing mode with other virtual neurons in the same layer. The parameters of the pulse neurons and the synaptic connection weights are accessed and read in units of neural layers, which improves the processing efficiency of the pulse neuromorphic computing system and reduces the hardware resource occupancy.
[0039] See also Figure 2 , is a schematic diagram of the multi-channel time division multiplexing structure used in the embodiment of the present invention, wherein the use of the multi-channel time division multiplexing structure to implement the deep pulse neural network hardware system can not only greatly improve the internal resource utilization of the FPGA, but also can show high performance in the system with loose calculation rate requirements. The parameter memory is mainly used to store the configuration information and weight parameters of the neurons, and the stored data is input into the pulse response neurons and the pulse generation controller at the specified time. In different multi-channel time division multiplexing structures, there can be only one or more pulse response neurons. After receiving the network connection information, the multi-channel time division multiplexing controller will time-division multiplex the pulse response neurons, and the pulse response neurons under different calculation dimensions will perform neural calculations under the action of specific configuration information and weights. The membrane potential value generated by each calculation will be updated to the pulse generation controller, and then the pulse generation controller will generate an output pulse sequence of a specified format under the control of the topological parameters. The data communication module is responsible for receiving the generated pulse signal and outputting the pulse to the pulse buffer. The calculation sequence of the entire network will be carried out under the control signal of the layer controller. Other parameters, variables and the final output pulse sequence used by the system in the calculation process will be placed in the memory.
[0040] See also Figure 3 , is a schematic diagram of the structure of the impulse response neuron used in the embodiment of the invention, wherein the calculation process is RTL mapped through the hardware description language to obtain the circuit structure diagram of the impulse response neuron. The calculation module will run multiple times within a complete pulse sequence. After processing a complete sequence, the result is added to the result of the refractory period to finally obtain the value of the membrane potential. The membrane potential register is used to store the intermediate data of the membrane potential during the calculation process. Before each calculation starts, the data at the specified address in the RAM is read, and detailed calculations are performed based on the specific data. The intermediate data is stored in the membrane potential register. After each complete sequence of data processing is completed, each membrane potential value must be compared with a fixed threshold to determine whether a pulse is emitted at the current moment, and updated to participate in the calculation of the next moment.
[0041] It should be noted that biological neurons calculate all the signals they receive in a very short time. If all the calculation processes are directly mapped to circuits, it will lead to excessive resource consumption. Therefore, it is proposed to realize large-scale deep-structure spiking neural networks through time division multiplexing under limited hardware resources.
[0042] In biological neural networks, neurons process a large number of input signals in a very short time. If this computational process is directly mapped to circuit design, it will undoubtedly lead to huge resource consumption, especially in scenarios with limited hardware resources. In order to solve this problem, it is proposed to use time division multiplexing to implement large-scale deep-structured spiking neural networks on limited hardware resources. Time division multiplexing technology allows different signals or computing tasks to be processed sequentially on the same hardware resources by dividing time. Neurons and synaptic connections are reused in different time slices to simulate the behavior of large-scale neural networks.
[0043] Furthermore, in the optimized design, an efficient time-division multiplexing strategy is adopted to ensure the deep structure of the pulse neural network can be realized under limited hardware resources. Specifically, each layer of the network is equipped with only one actual neuron circuit, while other neurons in the same layer exist in a virtual form and are calculated through time-division multiplexing technology. This strategy greatly improves the efficiency of resource utilization.
[0044] In order to further improve the processing power, a multichannel time-multiplexed architecture (MTMA) was introduced, which allows multiple actual pulse neuron circuits to be built at each layer. Each physical neuron circuit corresponds to a group of virtual neurons, which work together to complete the computing task. In this way, the maximum utilization of hardware resources is achieved while maintaining the flexibility and scalability of the network.
[0045] In each processing unit, there is an actual spiking neuronal processing unit (SNPU) and multiple virtual spiking neurons (VSN). These virtual neurons share the computing resources of physical neurons under the time division multiplexing mechanism. The number of virtual neurons in each layer can be flexibly set according to specific problems and network scale to meet the needs of different applications.
[0046] Furthermore, for the hardware implementation of deep spike neural network (DSNN), an efficient MTMA (multi-channel time division multiplexing architecture) hardware architecture is proposed. Figure 4 , is a schematic diagram of the deep pulse neural network architecture in the embodiment of the present invention, which is mainly composed of a deep pulse neural network implementation unit, a network control unit, a neuron calculation unit and a weight storage unit; the deep pulse neural network implementation unit is used to realize the distribution and connection of multi-layer neurons, including input neurons, hidden neurons and output neurons, wherein the hidden neurons and output neurons adopt the impulse response neuron model; the network control unit is used to control the deep pulse neural network calculation process, as well as the reading of synaptic weights and the storage control of neuron membrane potential; the neuron calculation unit is used for the calculation of hidden layer and output layer neurons, including the accumulation, integration and judgment of pulse emission of pulses; the weight storage unit is used to store synaptic weights. These four units work together to enable the MTMA architecture to realize high-performance deep pulse neural networks with limited hardware resources.
[0047] Finally, in order to optimize the convenience of the system hardware implementation, a modular mapping method was adopted to subdivide the entire system into multiple functional modules. These modules include clock module, input module, weight storage module, data selection module, neural computing module, multi-channel time division multiplexing control module, operation control and coordination module and output control module; the clock module is used to distribute the clock frequency division signal according to the timing requirements of each module; the input module is used to store the time series data required for calculation; the weight storage module is used to store synaptic weights; the data selection module is used to select and read the operation data; the neural computing module is used to perform core computing tasks; the multi-channel time division multiplexing control module is used to control the neural computing module according to the multiplexing structure; the operation control and coordination module is used to coordinate the overall operation timing and distribute the tasks of each module, and at the same time, the calculation results are integrated and passed to the output control module; the output control module is used to standardize the output corresponding sequence. This modular design greatly improves the flexibility and maintainability of the system, while ensuring efficient hardware implementation.
[0048] Preferably, in the impulse response neuron FPGA digital circuit, in order to improve the data throughput per unit time and the capability of the hardware computing system, a floating point representation method is selected, and at least an accumulator, an adder and a multiplier are designed, wherein a parallel adder design that meets the requirements of computing speed and hardware resources to a certain extent is adopted, and the expression of the designed floating point adder is:
[0049] The expression of the designed floating-point multiplier is:
[0050] when and When the multiplication result exceeds the representation range, the operation result is normalized and expressed as:
[0051] in, and They are represented as two floating point numbers, S1 and S2 are represented as two sign bits, E1 and E2 are represented as two exponents, M1 and M2 are represented as two mantissas, Q is represented as the result of formatting, n Indicates the normalization of the result of the multiplication operation, E Z It is represented as the order code, and Bias is represented as the offset. , m1 and m2 are represented as two parameters calculated according to the corresponding sign bit and mantissa respectively; In the process of designing the floating-point accumulator, in order to ensure the correctness of the accumulated results, a data selection module that filters the input data is used to access the results on the three-stage pipeline.
[0052] Preferably, the hardware design of the impulse response neuron model includes a refractory period calculation module, an impulse response calculation module, a real-time membrane potential calculation integration module, and a pulse emission judgment module; The refractory period calculation module is used to reset the neuron membrane potential, ensuring that the neuron can respond again after a preset time interval; The impulse response calculation module is used to process the calculation of input impulses and simulate the response of neurons to impulse signals; Real-time membrane potential calculation integration module, used to calculate and update the membrane potential of neurons in real time based on all input pulses and their weights; The pulse emission judgment module is used to judge whether the threshold for pulse emission is reached according to the accumulated result of membrane potential, and if it is judged that the threshold for pulse emission is reached, an output pulse is generated.
[0053] In the embodiment of the present invention, the processing flow of the pulse signal in the pulse response neuron is concise and efficient, covering four core links: weighting, aggregation, pulse response transformation and refractory period calculation. Among them, the pulse response transformation and refractory period calculation are the key steps of neuron calculation, corresponding to the execution of the pulse response function and the refractory period function respectively.
[0054] Furthermore, the specific process of the pulse response is divided into ten states in detail. Initial idle state: waiting for the arrival of the input pulse. Start state: receiving the input pulse and starting the response process. Comparison state: comparing the current membrane potential with the threshold. Pulse response function exponential calculation state: performing the exponential part calculation of the pulse response function. Pulse response function accumulation state: accumulating the responses of multiple pulses to obtain the total response. Membrane potential calculation state: updating the membrane potential by comprehensively considering factors such as the refractory period and pulse response. Pulse holding state: maintaining a high potential state for a period of time after the pulse is emitted. Output pulse comparison state: comparing the membrane potential with the threshold of the pulse emission to decide whether to output the pulse. Input and weight loading state: loading new input pulses and their corresponding weights. Clock cycle transfer state: at the end of each clock cycle, updating the state machine and preparing to enter the next state. Through this highly modular and stateful design, the pulse response neuron model can be efficiently and accurately implemented on the FPGA, providing strong hardware support for neuromorphic computing.
[0055] Preferably, in the training of the deep spiking neural network, a deep spiking neural network supervised learning algorithm based on a feedback alignment mechanism is used to train the network, and a supervised learning algorithm for the deep spiking neural network is derived; the calculated pulse sequence error E is directly transmitted back to each layer in the deep spiking neural network, and then the original weight matrix W in the network is adjusted through a fixed random matrix B; finally, the obtained synaptic weights are solidified on a neuromorphic chip with a multi-channel time-division multiplexing structure.
[0056] In some other embodiments of the present invention, the sample features of the data set are encoded into a pulse sequence, and then linear frequency encoding is used to encode the previously processed sample data into a non-random pulse sequence of a specified length. Secondly, the trained synaptic weights are solidified in the hardware system, the encoded pulse sequence is input into the constructed deep pulse neural network hardware system, and tested on the multi-channel time-division multiplexed deep pulse neural network hardware system.
[0057] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0058] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention patent shall be subject to the attached claims.
Claims
1. A deep pulse neural network hardware architecture based on multi-channel time division multiplexing, characterized in that: This includes analyzing the impulse response neuron model, designing and implementing an impulse response neuron FPGA digital circuit based on the CORDIC algorithm to realize the neuron model FPGA, and designing a multi-channel parallel time-division multiplexing structure of multiple neuron computing units for the deep impulse neural network structure, combining the advantages and disadvantages of serial computing and parallel computing, to realize the impulse neuromorphic hardware; The FPGA implementation of the neuron model includes the digital circuit design of the impulse response neuron model, which represents the influence of the analog pulse signal on the membrane potential. At the same time, the CORDIC algorithm is optimized to reduce the consumption of hardware resources required for calculation. The pulse neuromorphic hardware implementation includes building an overall hardware architecture of a pulse neural network based on FPGA based on the digital circuit design of a pulse response neuron model, and realizing a time division multiplexing structure of neurons in each layer of the pulse neural network, using limited physical neurons to build virtual neurons and neuron parameters, synaptic weights and delay storage units required for each layer, and realizing real-time simulation of the pulse neural network.
2. The deep pulse neural network hardware architecture based on multi-channel time division multiplexing according to claim 1 is characterized in that: The optimized CORDIC algorithm includes an angle recoding mechanism and a residual angle mapping mechanism, which simplifies the implementation of the angle selection function in the CORDIC algorithm.
3. The deep pulse neural network hardware architecture based on multi-channel time division multiplexing according to claim 2 is characterized in that: The expression for optimizing the CORDIC algorithm is: in, and Respectively represent the constant angles on both sides of the remaining angle after each rotation, m i Expressed as and The middle value of Expressed as the remaining angle range containing the desired constant angle, in each There is a constant angle , and each From the corresponding All are recent. X i Expressed as , Y i Expressed as , It is expressed as the size of the initial rotation angle, Z i Expressed as the remaining angle range containing the desired constant angle, σ i is the direction of the next rotation, expressed as , i represents the i-th iteration, and N represents the total number of iterations.
4. The deep pulse neural network hardware architecture based on multi-channel time division multiplexing according to claim 1 is characterized in that: The multi-channel parallel time-division multiplexing structure realizes the deep-structured spiking neural network with limited hardware resources. Each layer has a set of actual spiking neuron circuits, which are calculated in a time-division multiplexing mode with other virtual neurons in the same layer. The parameters of the spiking neurons and the synaptic connection weights are accessed and read in units of neural layers, which improves the processing efficiency of the spiking neuromorphic computing system and reduces the hardware resource occupancy.
5. The deep pulse neural network hardware architecture based on multi-channel time division multiplexing according to claim 1 is characterized in that: In the impulse response neuron FPGA digital circuit, in order to improve the data throughput per unit time and the capability of the hardware computing system, a floating point representation method is selected, and at least the accumulator, adder and multiplier are designed. The expression of the designed floating point adder is: The expression of the designed floating-point multiplier is: when and When the multiplication result exceeds the representation range, the operation result is normalized and expressed as: in, and They are represented as two floating point numbers, S1 and S2 are represented as two sign bits, E1 and E2 are represented as two exponents, M1 and M2 are represented as two mantissas, Q is represented as the result of formatting, n Indicates the normalization of the result of the multiplication operation, E Z It is represented as the order code, and Bias is represented as the offset. , m1 and m2 are represented as two parameters calculated according to the corresponding sign bit and mantissa respectively; In the process of designing the floating-point accumulator, in order to ensure the correctness of the accumulated results, a data selection module that filters the input data is used to access the results on the three-stage pipeline.
6. The deep pulse neural network hardware architecture based on multi-channel time division multiplexing according to claim 1 is characterized in that: The hardware design of the impulse response neuron model includes a refractory period calculation module, an impulse response calculation module, a real-time membrane potential calculation integration module, and a pulse release judgment module; The refractory period calculation module is used for resetting the neuron membrane potential to ensure that the neuron can respond again after a preset time interval; The impulse response calculation module is used to process the calculation of input impulses and simulate the response of neurons to impulse signals; The real-time membrane potential calculation integration module is used to calculate and update the membrane potential of the neuron in real time according to all input pulses and their weights; The pulse emission judgment module is used to judge whether the threshold of pulse emission is reached according to the accumulation result of membrane potential, and generate an output pulse if it is judged that the threshold of pulse emission is reached.
7. The deep pulse neural network hardware architecture based on multi-channel time division multiplexing according to claim 1 is characterized in that: The architecture of the deep pulse neural network includes a deep pulse neural network implementation unit, a network control unit, a neuron calculation unit and a weight storage unit; The deep pulse neural network implementation unit is used to implement the distribution and connection of multiple layers of neurons, including input neurons, hidden neurons and output neurons, wherein the hidden neurons and the output neurons adopt an impulse response neuron model; The network control unit is used to control the calculation process of the deep pulse neural network, read the synaptic weights and store the neuron membrane potential; The neuron calculation unit is used for the calculation of neurons in the hidden layer and the output layer, including the accumulation and integration of pulses and the judgment of pulse emission; The weight storage unit is used to store synaptic weights.
8. The deep pulse neural network hardware architecture based on multi-channel time division multiplexing according to claim 1 is characterized in that: The hardware architecture of the deep pulse neural network includes a clock module, an input module, a weight storage module, a data selection module, a neural calculation module, a multi-channel time division multiplexing control module, an operation control and coordination module, and an output control module; The clock module is used to distribute the frequency division signal of the clock according to the timing requirements of each module; The input module is used to store the time series data required for calculation; The weight storage module is used to store synaptic weights; The data selection module is used to select and read the operation data; The neural computing module is used to perform core computing tasks; The multi-channel time division multiplexing control module is used to perform time division multiplexing control on the neural computing module according to the multiplexing structure; The operation control and coordination module is used to coordinate the overall operation timing and assign tasks to each module, and at the same time, integrate the calculation results and pass them to the output control module; The output control module is used to normalize the sequence corresponding to the output.
9. The deep pulse neural network hardware architecture based on multi-channel time division multiplexing according to claim 1 is characterized in that: In the training of the deep spiking neural network, a deep spiking neural network supervised learning algorithm based on feedback alignment mechanism is used to train the network, and a supervised learning algorithm of the deep spiking neural network is derived; The calculated pulse sequence error E is directly transmitted back to each layer in the deep pulse neural network, and then the original weight matrix W in the network is adjusted through a fixed random matrix B; finally, the obtained synaptic weights are solidified on a neuromorphic chip with a multi-channel time-division multiplexing structure.
Citation Information
Patent Citations
A dual state circuit for energy efficient hardware implementation of spiking neural networks
CA3181449A1
Brain-like computing system based on multi-neural network fusion and execution method of instruction set
CN111325321A
CORDIC optimization method based on FPGA
CN111949934A
FPGA implementation method based on piecewise linear spiking neural network
CN112101517A
Hardware architecture and method of operation for spiking neural networks
CN114521264A
Cited By
Neural pulse on-chip detection circuit and equipment for electroencephalogram signals
CN119867785A
