21
JTAG Interface Nitesh Bhatia- 200501071 Shaik Khaja Ahmad - 200501074 Joint Test Action Group

JTAG Interface Joint Test Action Groupcourses.daiict.ac.in/.../content/0/presentation/pres_A_JTAG_Interface… · JTAG Interface Nitesh Bhatia- 200501071 Shaik Khaja Ahmad - 200501074

  • Upload
    others

  • View
    9

  • Download
    0

Embed Size (px)

Citation preview

Page 1: JTAG Interface Joint Test Action Groupcourses.daiict.ac.in/.../content/0/presentation/pres_A_JTAG_Interface… · JTAG Interface Nitesh Bhatia- 200501071 Shaik Khaja Ahmad - 200501074

JTAG Interface

Nitesh Bhatia- 200501071

Shaik Khaja Ahmad - 200501074

Joint Test Action Group

Page 2: JTAG Interface Joint Test Action Groupcourses.daiict.ac.in/.../content/0/presentation/pres_A_JTAG_Interface… · JTAG Interface Nitesh Bhatia- 200501071 Shaik Khaja Ahmad - 200501074

Outline

!! Background – need for JTAG

!! JTAG and Boundary Scan

!! Advantages

!! Atmel ICE mk-II and gdb

!! Real JTAG Applications

Page 3: JTAG Interface Joint Test Action Groupcourses.daiict.ac.in/.../content/0/presentation/pres_A_JTAG_Interface… · JTAG Interface Nitesh Bhatia- 200501071 Shaik Khaja Ahmad - 200501074

Bed of Nails fixture

!! PCB testing was done using Bed of Nails in circuit testing.

Page 4: JTAG Interface Joint Test Action Groupcourses.daiict.ac.in/.../content/0/presentation/pres_A_JTAG_Interface… · JTAG Interface Nitesh Bhatia- 200501071 Shaik Khaja Ahmad - 200501074

Past to Future – Testing

!! Miniaturization results in loss of test access

Yesterday Tomorrow Today

Page 5: JTAG Interface Joint Test Action Groupcourses.daiict.ac.in/.../content/0/presentation/pres_A_JTAG_Interface… · JTAG Interface Nitesh Bhatia- 200501071 Shaik Khaja Ahmad - 200501074

Circuit Complexity / Cost

!! Increasing integration at chip level complicates controllability.

Yesterday

Today

Page 6: JTAG Interface Joint Test Action Groupcourses.daiict.ac.in/.../content/0/presentation/pres_A_JTAG_Interface… · JTAG Interface Nitesh Bhatia- 200501071 Shaik Khaja Ahmad - 200501074

JTAG (1149.1 Standard)

!! IEEE 1149.1, a standard 5-pin serial protocol that established the details of access to any chip with JTAG port.

!! Features:

!! Boundary scan testing of ICs

!! Debug Embedded devices

!! System level debug capability

Page 7: JTAG Interface Joint Test Action Groupcourses.daiict.ac.in/.../content/0/presentation/pres_A_JTAG_Interface… · JTAG Interface Nitesh Bhatia- 200501071 Shaik Khaja Ahmad - 200501074

JTAG – Boundary Scan

!! Boundary scan is a methodology allowing complete controllability and observablity of the boundary pins of a JTAG compatible device via software control.

Page 8: JTAG Interface Joint Test Action Groupcourses.daiict.ac.in/.../content/0/presentation/pres_A_JTAG_Interface… · JTAG Interface Nitesh Bhatia- 200501071 Shaik Khaja Ahmad - 200501074

Boundary Scan Principle

The top level schematic of test logic defined by IEEE Std 1149.1 includes three key blocks:

!! The TAP Controller !! This responds to the control sequences supplied through the test access

port (TAP) and generates the clock and control signals required for correct operation of the circuit blocks

!! The Instruction Register !! This shift register-based circuit is serially loaded with the instructions

that selects an operation to be performed

!! The Data Registers !! These are a bank of shift register based circuits. The stimuli required by

an operation are serially loaded into the data registers selected by the current instruction. Following execution of the operation, results can be shifted out for examination.

Page 9: JTAG Interface Joint Test Action Groupcourses.daiict.ac.in/.../content/0/presentation/pres_A_JTAG_Interface… · JTAG Interface Nitesh Bhatia- 200501071 Shaik Khaja Ahmad - 200501074

What can it be used for

!! The standard defines instructions that can be used to perform

!! Functional Tests

!! Interconnect Tests

!! Built-in self test procedures

Page 10: JTAG Interface Joint Test Action Groupcourses.daiict.ac.in/.../content/0/presentation/pres_A_JTAG_Interface… · JTAG Interface Nitesh Bhatia- 200501071 Shaik Khaja Ahmad - 200501074

Advantages

!! Need for physical test points on board is eliminated => simpler board layouts

!! Cheap test fixtures

!! Reduced time on in-circuit test systems

!! Increased use of standard interfaces

!! Faster time-to-market

Page 11: JTAG Interface Joint Test Action Groupcourses.daiict.ac.in/.../content/0/presentation/pres_A_JTAG_Interface… · JTAG Interface Nitesh Bhatia- 200501071 Shaik Khaja Ahmad - 200501074

Widespread uses

!! A large proportion of high end embedded systems have a JTAG port.

!! The PCI bus connector standard contains optional JTAG

signals (pins 1-5); PCI-Express contains JTAG signals (pins 5-9). A special JTAG card can be used to re-flash a corrupt BIOS.

!! Almost all FPGAs and CPLDs used today can be programmed via the JTAG port.

Page 12: JTAG Interface Joint Test Action Groupcourses.daiict.ac.in/.../content/0/presentation/pres_A_JTAG_Interface… · JTAG Interface Nitesh Bhatia- 200501071 Shaik Khaja Ahmad - 200501074

JTAG Software

!! Open Source !! UrJTAG project supports many JTAG tools, processors, and boards.

!! OpenOCD project supports various inexpensive JTAG adapters including USB ones based on FT2232 chips, and is mostly used with ARM projects. It provides GDB and telnet interfaces, both from Linux and from MS-Windows.

!! Freeware !! Atmel provides AVR Studio on MS-Windows, for AVR8

microcontrollers, and a cross-platform AVR32studio product to support AVR32 systems.

!! Xilinx provides lower end FPGA development tools at no cost

!! HappyJTAG2 is embedded JTAG solution with FT2232 chip for AVR8 microcontrollers and Atmel AVR Studio on MS-Windows.

Page 13: JTAG Interface Joint Test Action Groupcourses.daiict.ac.in/.../content/0/presentation/pres_A_JTAG_Interface… · JTAG Interface Nitesh Bhatia- 200501071 Shaik Khaja Ahmad - 200501074

Working

Source: http://www.corelis.com/products/ScanExpressJET.htm

Page 14: JTAG Interface Joint Test Action Groupcourses.daiict.ac.in/.../content/0/presentation/pres_A_JTAG_Interface… · JTAG Interface Nitesh Bhatia- 200501071 Shaik Khaja Ahmad - 200501074

JTAG ICE mkII and gdb.

!! Functions -

!! Run

!! Stop

!! Step

!! Write to Registers and memory

!! Read from Registers and memory

!! Exchange parameters with the JTAG host

!! Display CPU status

Refer: http://www.youtube.com/watch?v=IwPWq9m0M6w

Page 15: JTAG Interface Joint Test Action Groupcourses.daiict.ac.in/.../content/0/presentation/pres_A_JTAG_Interface… · JTAG Interface Nitesh Bhatia- 200501071 Shaik Khaja Ahmad - 200501074

Real applications

!! Design Verification/Debug

!! Provides control and observation of system under test without need for physical access

!! Manufacturing Test

!! Provides test and diagnostic capabilities of in-circuit test without need/expense of physical access

!! System Configuration Maintenance

Page 16: JTAG Interface Joint Test Action Groupcourses.daiict.ac.in/.../content/0/presentation/pres_A_JTAG_Interface… · JTAG Interface Nitesh Bhatia- 200501071 Shaik Khaja Ahmad - 200501074

References

!! http://www.inaccessnetworks.com/ian/projects/ianjtag/jtag-intro/jtag-intro.html

!! http://www.embedded.com/story/OEG20021028S0049

!! http://www.corelis.com/products/ScanExpressJET.htm

!! http://www.ee.ic.ac.uk/pcheung/teaching/ee3_DSD/ti_jtag_seminar.pdf

Page 17: JTAG Interface Joint Test Action Groupcourses.daiict.ac.in/.../content/0/presentation/pres_A_JTAG_Interface… · JTAG Interface Nitesh Bhatia- 200501071 Shaik Khaja Ahmad - 200501074

Thankyou !

Page 18: JTAG Interface Joint Test Action Groupcourses.daiict.ac.in/.../content/0/presentation/pres_A_JTAG_Interface… · JTAG Interface Nitesh Bhatia- 200501071 Shaik Khaja Ahmad - 200501074

Extra Slides

Page 19: JTAG Interface Joint Test Action Groupcourses.daiict.ac.in/.../content/0/presentation/pres_A_JTAG_Interface… · JTAG Interface Nitesh Bhatia- 200501071 Shaik Khaja Ahmad - 200501074

Test Access Ports

!! The JTAG Test Access Port (TAP) contains four pins that drive the circuit blocks and control the operations specified. The TAP facilitates the serial loading and

unloading of instructions and data.

!! Four pins of TAP are:

!! TMS – Test mode Select

!! TCK – Test Clock

!! TDI – Test Data Input

!! TDO – Test Data Output

Page 20: JTAG Interface Joint Test Action Groupcourses.daiict.ac.in/.../content/0/presentation/pres_A_JTAG_Interface… · JTAG Interface Nitesh Bhatia- 200501071 Shaik Khaja Ahmad - 200501074

The function of each TAP pin is as follows:

!! TCK- this pin is the JTAG test clock. It sequences the TAP controller as well as all of the JTAG registers

!! TMS – this pin is the mode input signal to the TAP Controller. The stare of TMS at the rising if TCK determines the sequence of states for the TAP controller.

!! TDI – this pin is the serial data input to all JTAG instruction and data registers. TDI is sampled into the JTAG registers on the rising edge of TCK.

!! TDO - this pin is serial data output for all JTAG instruction and data registers. TDO changes state on the falling edge of TCK and only active during shifting of data through device. This pin is three-stated at all times.

Page 21: JTAG Interface Joint Test Action Groupcourses.daiict.ac.in/.../content/0/presentation/pres_A_JTAG_Interface… · JTAG Interface Nitesh Bhatia- 200501071 Shaik Khaja Ahmad - 200501074

SECONS JTAG TESTER

Source: http://www.jtagtest.com/images/jtagtest_linux.png