Based on Fresnel diffractive theory, a binary optical laser cavity is designed for a circle, flat topped fundamental mode. Instead of the traditional spherical mirrors for a laser cavity, the diffractive mode-selecting mirrors are used to optimize the amplitude and phase of the laser mode by simulated annealing algorithm. The computer simulation results show that the mode loss rate between TEM00 and TEM01 is 1:430 for a round trip in the cavity, and only the r...