brief introduction: JTAG(Joint Test Action Group;The Joint Test Working Group (JTWG) is an international standard test protocol (compatible with IEEE 1149.1) primarily used for in-chip testing.Now most advanced devices support JTAG protocol, such as DSP, FPGA devices, etc.The standard JTAG interface is four lines: TMS, TCK, TDI, and TDO, which are respectively mode selection, clock, data input, and data output lines.