Abstract.A new QKD implementation scheme of BB84 protocol is introduced based on FPGA. Firstly, the overall design method and the functional division are described in detail. Then, the logic design of the sub-module are significantly studied, including random data module, laser source drive module, error correcting module, receiver/transmitter interface module, extracting original key module and error rate estimation module. Finally, the partial simulation results are given to verify the correctness of the design function. The set-up advantage is the small size, high bitrates, flexible configuration, and convenient algorithm update.