The invention discloses Beidou and GPS (Global Positioning System) dual-mode timing embedded time synchronization equipment and a software design method. The Beidou and GPS (Global Positioning System) dual-mode timing embedded time synchronization equipment takes a programmable logic device, a Beidou receiver, a GPS receiver and an embedded microcontroller as a core, and is also provided with an external hardware circuit integrated serial port, an IRIG-B (Inter-Range Instrumentation Group) code input isolation module, an IRIG-B (DC(Direct Current)) code differential output module, an IRIG-B (AC(Alternating Current)) code hardware output module and an IRIG-B (AC) code input decoding module, wherein the embedded microcontroller is connected with an embedded key and a liquid crystal display; an IRIG-B code system is designed by utilizing the programmable logic device and the embodied microcontroller; the current modes, the current time information and the mode states of the five modes, namely, GPS, Beidou, DC code decoding, AC code decoding and time keeping are integrated into a code stream, is transmitted to the embedded microcontroller, is subjected to serial port processing, and is displayed on the liquid crystal display; the requirement on integrating the functions of multi-satellite timing, high-precision time synchronous code encoding outputting and inputting decoding, as well as real-time time information display and mode switching is met.