Combining the theories of B code's encoding and decoding with the bei-dou/GPS dual-mode and the precision, stability and other problems of B code time terminal system, this paper puts forward a kind of designed method using the programmable gate array(FPGA)to get data from mode timing clock and time terminal. The result shows that the second head from receiver and B code can be controlled in the ns level so as to achieve the effect of time synchronization.