The application discloses a time-domain-based analog Softmax and Top-K calculation circuit, and belongs to the technical field of integrated circuits and
artificial intelligence accelerator. N The circuit comprises one parallel analog channel and a global module. The analog channel comprises a
voltage-controlled oscillation unit, an edge
pulse shaper, a state latch and an output
control switch, and is used for converting an input analog
voltage into an extremely narrow
pulse stream with a corresponding frequency; the global module comprises normalization logic, Top-K logic and global
control logic, and is used for counting the total number of global pulses and the winning state of the channel, and jointly issuing a channel enable
bus; through the analog channel and the global module, exponential normalization and
feature screening are originally completed in the analog
time domain, and high-precision analog-to-digital
converters and digital divider trees required by each channel are completely saved; moreover, through a pulse competition screening Top-K mechanism, the
processing of redundant data and dynamic
power consumption overhead are completely eliminated, and the energy efficiency ratio of an AI
chip is improved.