The invention relates to the technical field of computers, in particular to an intelligent processor-oriented circuit automatic generation method for solving a
sorting problem, which comprises the following steps of: determining three types of structures of TPU, LPU and NPU of a target intelligent processor; three sets of automatic design
modes for automatically designing and sequencing circuits are developed for TPU, LPU and NPU; determining index constraints of the target sorting module, including area,
power consumption, frequency, bandwidth, capacity,
throughput and a weight ratio among the index constraints; and automatically generating a
netlist of the circuit, actual parameters of each index and instructions of generated sequencing circuit module interfaces according to given constraints by utilizing an automatic design program. Aiming at TPU, a sorting structure taking a
systolic array sorter as a main body is adopted; aiming at the NPU, searching an optimal sorting structure by adopting
a search algorithm; for the LPU, an original LUT-based lookup tree is adopted to complete a partial sorting task, so that the
workload and financial cost of manual design are greatly reduced.