With the advantages of strong parallelism and mass information storage, DNA computing has become the hot spot in the field of computer science, mathematic, and nanoscience. Using DNA computing, lots of complex problems have been solved. Compared with the logic gates based on DNA strand displacement, we present an optimize strategy to introduce DNAzyme as a control. The output of this system depends on the fluorescent signals obtained by DNAzyme cutting. Additionally, we introduce the catalytic mechanism to speed up the reaction. Using this method, more complex structures could be built in the future research. Our strategy offers a new way to manipulate and control logic gates, demonstrating great potential application in computing field.