Development and Optimization Design of Digital Logic device based on FPGA