goJTAG, a JTAG/Boundary Scan Tool

0
182

Wide adoption of standardised IEEE 1149.x test methods has called for the independent and non-commercial platform-based tools for JTAG test principles. goJTAG is a JTAG/boundary scan tool which offers a clear illustration of the standard test principles. Read this article to get an insight of how to start working with it

Pankaj V.


The well-established test technique boundary scan JTAG IEEE Std. 1149.x is a unique solution to many test requirements and provides information about the board without accessing the complete board. Therefore it is ideal for testing the complex boards which could not be tested otherwise due to lack of test access. Boundary scan systems have little hardware and their significant part is software.

C2D_Fig_1
Fig 1: Board
ZE2_Fig_2
Fig 2: Diagnostic results
97B_D71_Fig_3
Fig 3: GUI

Screen Shot 2016-04-16 at 8.50.00 pmgoJTAG is a part of an open source project which provides a full package for a JTAG newcomer including training material, slides and exercises. The software allows you to study boundary scan techniques, carry out your own experiments, perform diagnosis and much more. The software environment comes with a built-in example project, and you can create your own projects with descriptions of boards, chips, cluster logic and so on.

goJTAG includes a simulation component fully illustrating the underlying concepts of JTAG/boundary scan that allows you to directly step-wise control the test features of IEEE 1149.1-compliant devices and observe a system’s reaction in real time in an on-screen simulation environment.

Explore Circuits and Projects Explore Videos and Tutorials

Starting with goJTAG

AA6_Fig_4
Fig 4: Input scan values

After successful installation of the software, you can run it, which will open a GUI environment providing you with various options to control the test features of IEEE 1149.1-compliant devices.

Working modes. There are three working modes supported by goJTAG:
1. Project Mode allows you to view/organise your project items, create or import new files
2. Using Debug Mode, you can perform boundary scan operations such as select instructions, perform scan, define test vectors, observe diagnostic results, amongst others.
3. In Board Edit Mode, you can create/edit your own netlists.

READ
EDA Tools For Circuit Design
9B2_Fig_5
Fig 5: Opening netlist

For changing the mode, just select the appropriate mode from the dropdown Mode menu. Alternatively, you can select the corresponding special toolbar buttons at the top.

Note: You should start your work with Project Mode to choose the netlist first.

Opening netlist. After creating a new project from File→New→Project, you should first choose a netlist to work with. Expand the project tree from Project Explorer space to netlists group and choose one of the available netlists; Netlists are stored in files with .nl extension. To open any netlist file, just double click on it and you can see the boundary scan devices in the corresponding netlist in the Board panel.

8ZA_Fig_6
Fig 6: Signal watcher

Board. After opening a netlist, the boundary scan circuitry of board can be visualised on the Board panel. Now you can see boundary scan devices, boundary scan cells, instruction and bypass registers, IDCODE/USERCODE registers (if present), connections between chips, external input/output (I/O), etc. If the description of the internal logic is present in the board description, full simulation becomes available. The colours of signal lines represent the current signal values. The Info panel at the bottom shows the information about the corresponding netlist.

Boundary scan operations. To start performing boundary scan related operations, you need to switch to the Debug mode, which will open a Test Constructor panel in the left.

12Z_Fig_7
Fig 7: TAP State diagram

In this panel, you can specify instruction and test patterns for each boundary scan device. After specifying the instruction and the test patterns, press the Run button to start performing scan. Additionally, you can also perform scan IR and scan DR operations separately by pressing the corresponding buttons. The results of scans are displayed in the Diagnostic Results panel at the bottom.

Note: You can select the instructions and input scan values directly on the board by simple right clicks and selecting the desired register.

READ
How To Select The Right Wi-Fi And RF Modules

TAP controller. The software also allows you to control the TAP controller of a boundary scan device directly by visualising its state machine. Select Window→Tap State Diagram menu or press the Tap State Diagram button at the toolbar to display the TAP State Diagram.

You can click TDI and TMS buttons to change input signals. Pressing the TCK button, a clock cycle is generated and the TAP controller might change its state depending on the value of TMS. If you hold Shift key and then press the TCK, it will generate clock edges.

Also, you can speed up your work with TAP controller by clicking on the highlighted states. In this case, the software will generate the required sequence of TCK/TMS signals automatically. Signal Watcher panel at the bottom shows how signals and TAP states change.

Fault injection
The software features an option to inject a fault in your design and train yourself in identifying the fault by means of boundary scan. You can inject the following fault types:
1. Opens (stuck-at model)
2. Shorts (Wired-OR, Wired-AND or Dominant models)

685_Fig_8
Fig 8: Test constructor

To inject a fault, select Training→ Inject Fault… option. In the opened dialog box, you can select fault type and location or inject any random fault. Now, select Training→Check Fault option to check the injected fault using various combinations. If you want to remove the injected fault from the board, select Training→Remove Injected Fault option.

goJTAG is a very handy JTAG/boundary scan tool which has all the features to provide you with a clear illustration of JTAG test principles. The software gives you the option to connect a hardware and control it utilising a boundary scan controller. you can look inside the boundary scan cells, walk through TAP controller states, build your own programs and execute SVFs, import your boundary scan description language (BSDL) files and even create a representation of your own board designs and stimulate boundary scan on it.

READ
In-Target Test Automation and Test Quality Tools

Not only you can learn the concepts of JTAG/boundary scan but it also allows you to inject fault and observe its effect(s) on the design, fine-tuning your learning and understanding of the testing of boards.

Download software: click here


The author is a technical journalist at EFY

LEAVE A REPLY