Neural network circuit and neural network system
Патент · CN B
Полный текст
The application provides a neural network circuit which comprises a first sampling and holding circuit, a reference voltage generating circuit, a first comparison circuit, a first output circuit and a second output circuit, wherein the first sampling and holding circuit generates a first analog voltage according to a first output current output by a first neural network computing array, the reference voltage generating circuit generates a reference voltage according to a first control signal, the first control signal is determined according to first computing precision, the first comparison circuit is respectively connected with the first sampling and holding circuit and the reference voltage generating circuit and outputs a first level signal according to the first analog voltage and the reference voltage, the first output circuit samples the first level signal according to a second control signal and outputs a first computing result meeting the first computing precision, and the second control signal is used for controlling the frequency of sampling the first level signal. The sampling frequency of the first output circuit and the duration of the first level signal can be adjusted to meet the precision requirement of the neural network, so that the problems that the precision is low, the calculation precision cannot be met, or the power consumption is wasted due to high precision are avoided.