Connections

The Connections tab allows you to tell XJTAG that specific pins or devices are connected together, updating the circuit representation in your project and allowing tests to be run through the connections. This both allows you to test your entire system once it has been assembled and allows you to test any external connectors by using loopbacks.

Figure 2: Connections tab

The connections which have been added to the project will be shown on the Connections tab, along with information about whether they're enabled and the user-created description. This Note is entirely cosmetic, however we recommend that you add one as it will make it much easier for you to tell why a connection was made when you return to the project later.

Connections between devices or boards are shown in the Circuit Connections list. Connections between the UUT and the XJLink are shown under XJLink Connections. For more details on the latter, see the XJLink connections section.

XJTAG has two ways to define a connection, either device-to-device or pin-to-pin. When connecting two boards together, this will typically use a device-to-device connection, allowing all the pins on one connector to be connected to all the pins on another, connecting pin 1 of the first device to pin 1 of the second, pin 2 to pin 2 and so on. If the devices have differing numbers of pins then connections are only made for the matching pin numbers, and a warning is added to the project. When describing a wire mod, a pin-to-pin connection would be used to link specific pins on the two devices.

Adding and Editing Connections

The final row in each connection list will always be an empty row, even if there are no connections currently defined. To add a new connection to a list simply complete this empty row. Click the relevant entry or cell within the row to begin editing; pin or device reference designators must be entered for both the From and To column cells. Existing connections may also be edited in the same manner. The enabled state of any connection may be changed using the check boxes in the Enabled column, or alternatively the Set Enabled State option from the bottom toolstrip may be used to set the Enabled state for multiple connections at once. Both pin-to-pin and device-to-device connections may be entered and edit this way; the list will display the entry as invalid when attempting to connect a pin to a device. While adding connections in this fashion the system will inspect the preceding connections to generate suggestions for the From and To entries as you add each new connection, as shown in figure 3.

Figure 3: Suggested pins for the new connection following in ascending order from the previous connection.

If a pin could not be suggested then a partial suggestion may be provided, with the pin section of the reference designator left for the user to complete, as shown in figure 4. This suggestion feature is useful when adding connections between devices where the standard device-to-device connections 1-1 mapping does not apply.

Figure 4: Partial suggestion where only the device is provided, and the pin number is left for the user to complete.

When editing the lists the Tab will accept the edit in the current cell and move to the next cell in the row, or the first cell in the next row. Enter accepts the current edit and moves to the next cell below in the same column. Ctrl + Enter will accept the current edit without changing the selected cell.

XJLink Connections

XJLink connections specify a connection between the JTAG controller and the board(s). Defining this connectivity will allow the system to check the pin mapping definition against the circuit and highlight any JTAG connectivity issues. It also allows any pins which aren't used for the JTAG signals to be used as additional points of access to your board. These extra connections can be used automatically as required by both the connection test and any device tests, extending test coverage.

When using XJLink pins as additional points of non-JTAG access, they must first be configured in the Pin Mapping screen. Select the pin you wish to use and then set its type to PIO. This tells XJTAG that this is a Programmable I/O pin and so can be used to set or read the state of nets on the board. The PIO Name should also be set – this is entirely cosmetic, but allows you to identify the pin more easily wherever it's used.

Figure 5: Setting a pin to be Programmable I/O

You can then use the Connections screen to define the connectivity between the XJLink and the circuit as detailed below.

  • Adding any connection from the XJLink will cause all PIO pins to be used during the connection test, so ensure all pin connections are correctly defined.

A connection to a PIO pin will be visible in Explorer with the label NJTE (non-JTAG test equipment), which allows you to confirm that the connection has been made properly inside the software.

  • When connecting to the JTAG header, we recommend using a ribbon cable if possible. See Setting up the JTAG Chain for more information.

When adding XJLink connections the pin or connector reference designator on the XJLink must be defined in the From column. The toolstrip at the top of the XJLink connections list provides an XJLink Type filter, which allows you to display connectors for a particular type of controller, or to view connections from All controllers. With a controller type selected, the Show Unconnected options is available and ticked by default. With this option enabled any pins for the selected type of controller that are currently unconnected are also included in the list. These are displayed with an auto-generated Note taken from the pin mapping, and the To cell is highlighted, displaying Enter. This feature makes adding XJLink pins connections far simpler; the user only needs to complete the To cells with the relevant circuit pin reference designators. These unconnected pins may be hidden by disabling the Show Unconnected option.

Figure 6: Displaying the unconnected pins for the XJLink2 JTAG controller

Exporting and Importing connections

Connection Export and Import options are available for both the circuit and XJLink connection lists. These allow for connections to be exported to, or imported from .CSV files. These connection files may be edited or generated in an external text editor or spreadsheet application, and then imported into the system. These two features can very useful when handling more complicated scenarios, such as connections containing many non-sequential pin groups, where entering each connection manually may be more time consuming than generating the connections in an external file.

The connection export structures the generated CSV with seven columns. The first three hold the board name, device reference and pin for the From entry, the next three contain board, device and pin for the To entry and the final column holds the notes. The pin entries are left blank for device connections. The full list of connections or the currently selected connections may be exported by selecting the Export to CSV option from the toolstrip at the bottom of the relevant list.

The Import feature requires the order of the fields in the CSV file to match one of two distinct formats for the pins or devices. The first option defines each reference designator in a single column; the second splits the reference designators into three columns for the board name, device reference and pin number. For both of these the first reference maps to the From entry, and the second maps to the To entry. Both may include an optional column for the Enabled state entry at the start, and an optional column for the Note entry at the end. For example entries for these two formats may look like:

True,Board.P1.1,Board.P2.1,"connection note"

Board.P1,Board.P2,"connection note"

Or:

False,Board,P1,1,Board,P2,1,"connection note"

Board,P1,,Board,P2,

Note that for device-to-device connections the pin entries in the second format should be left empty, as shown above. For XJLink connections an XJLink pin or connector must be given as the From entry, any circuit pin or device reference designators will be treated as invalid. Likewise, for circuit connections XJLink pin or connector reference designators will be treated as invalid.

To import connections click the Import... button at the bottom of the relevant list to bring up the Import Connections dialog box:

Figure 7: The Import Connections dialog

From here the required CSV file may be selected by clicking the Browse...... button. Once a file has been selected any valid connections parsed from the file are displayed in the table at the bottom of the dialog box. If any duplicates, or invalid rows were found in the file then a pop-up dialog with a list of errors will be displayed. Note that rows will be treated as invalid if either of the pins or devices given for the connection could not be found in the current project.

The valid connections may be appended to the existing list, or they may replace the existing list with the required behaviour being selected using the Add Mode selection option. By default Add to Existing is selected to append the connections, clicking the selector will toggle the mode to Replace all Existing. If Add to Existing is selected then any valid connections from the CSV file that match existing connections in the project are displayed in grey. These connections will not be imported.

Click the OK button to complete the import process.

Alternative methods for adding and editing connections

Connections may also be added by either clicking the Add Connection... at the end of the appropriate list, or clicking the Add... button at the bottom of the tab. This will bring up the Add Connection dialog box:

Figure 8: Add Connection dialog

From here, select Pin to Pin to add a pin-to-pin connection, or Device to Device to add a device-to-device connection.

  • If a connection is made between two pins on the same device (e.g. as a loopback) the system will show a warning. Loopback connections using a single device are usually represented better with a passive device file.

To create this connection, either start typing the reference designator of the device or pin in the From: box, then select from the list which appears, or click on the Select... button to open a list of all devices or pins in your project (see figure 9). Repeat this with the To device, optionally add a descriptive Note in the bottom box, and then click OK to save it. For device-to-device connections where the two devices have different numbers of pins, a warning will be displayed at the bottom of the dialog box, but the connection will still be made for all matching pin numbers.

  • We recommend adding notes to connections to help the understandability and maintainability of the project.

Figure 9: Selecting a specific pin

 

For XJLink connections this dialog behaves slightly differently. In the From section of the dialog, select the type of XJLink you are using and the connector from which to make the connection. If you are using an XJLink2, PINS will be automatically selected as there is only one connector. If you have Pin to Pin selected then you will be able to select a specific XJLink pin from the dropdown. The pin type or PIO Name will show after the pin number to help find the correct pin:

Figure 10: Connecting from XJLink2

  • Typically, the connection to the XJLink will use pin-to-pin because the board is unlikely to have connectors that exactly match the connectors on the XJLink.

Now select the location on your board that this pin is connected to in the To field. XJDeveloper will handle the rest, including working out improved access, test patterns and coverage. As before, click OK to save the new entry.

Add Range

The Add Range... button in the Connections tab allows you to add multiple connections on sequential pins in a single step. Whilst a device-to-device connection allows you to link two devices with pin 1 to 1, 2 to 2, etc, Add Range... allows you to use any series of pins, incrementing or decrementing by one each time, without the pin numbers having to match. For example, either of the following sets of connections are possible between two devices P1 and P2:

P1 P2
1 to 7
2 to 8
3 to 9
4 to 10
P1 P2
3 to 5
4 to 4
5 to 3
6 to 2

Figure 11: Adding Connections to a range of pins

As before, select the devices that you want to link From and To, then select the pin range. The number of pins in each range must match, or an error will be displayed. Add a note for future reference and then click OK to save. Each pair of connected pins will be displayed separately in the table – Add Range... allows you to create a number of entries quickly and easily as a single action, but they will be saved and displayed as individual connections, unlike device-to-device connections.

If you need to create a more complex pattern than the Add Range of Pin Connections dialog supports, such as many non-sequential pin groups, it is recommend that you use the import connections feature previously mentioned.