The invention relates to an automatic layout wiring generation method based on sparse grids. The method comprises the following steps: 1, initialization setting; 2, acquiring wiring information; 3, dividing grids; 4, marking a grid state; 5, wiring; and 6, inquiring whether components to be wired exist or not, and if yes, repeating the step (2) until wiring of all layouts is completed. According to the invention, design requirements can be met according to different devices and layouts; according to the method and the system, the wiring grids are adaptively and reasonably divided to obtain thedata of the related grids, and then the grids are explored by adopting the algorithm, so that the defect of large storage space caused by uniform grid division can be greatly reduced, the space effectiveness is favorably reduced, and the space use efficiency is improved.