Categorising the Remaining Devices

Suggested Diodes

The Suggested Diodes group in the Uncategorised Devices panel contains eight devices, D1-D8. Rather than being simple diodes, these devices are the red LEDs on the XJDemo board. There is another LED – D9 – but that is a tri-colour LED and does not get included in the Suggested Diodes list because it has more than two pins.

When it comes to categorising LEDs using the XJEase library, the definition to use depends on which of the pins of the LED is going to be actively driven during testing. So we will first use the Explorer tool to look at how the LED is driven and then select the appropriate model.

  • Expand the Suggested Diodes group in the Uncategorised Devices list.
  • Right-click device D1 in the expanded list, and select Show in Explorer.
  • The properties of device D1 show that it has two pins. Note that pin 1 has no access but pin 2 is shown as having Read/Write access.
  • Close the Explorer window.

All eight of the red LEDs on the XJDemo board are configured like this – pin 2 is connected to a JTAG device and pin 1 to the power rail via a current-limiting resistor.

In the XJEase library there are several models for LEDs, named after the pin which is controlled during testing. In this case the controllable pin is pin 2.

  • Click Suggested Diodes in the Uncategorised Devices list.
  • Click Test in the Categories section of the Assign As panel.
  • In the Assign Devices as Test dialog select LED (pin 2) (the second row) to set the correct device model.
  • Click OK to assign the devices.
  • Click Yes if asked to add tests for these devices to the XJRunner test list.

All Components

The All Components group contains all of the accessible devices. However, as you have already categorised most of these devices on the XJDemo board, the ones that are left are those devices for which XJDeveloper has not managed to suggest a category.

The LED D9 can be classed as a Test Device and added to the LED tests as follows:

  • Expand the All Components list and then click D9.
  • Click Test in the Categories section of the Assign As panel.
  • In the Assign Device as Test dialog click Browse Library....
  • Type LED into the Search box.
  • Click Switches & Indicators in the list of the available categories on the left side of the dialog. This will show a list of matching files.
  • Double-click 3-colour-LED.xje to choose that file.
  • Click OK in the Assign Device as Test dialog.
  • If prompted to add tests to the XJRunner Test List, click Yes.

Categorise the push-button SW1 as a Test Device as follows:

  • Select SW1 from the All Components list.
  • Click Test in the Categories section of the Assign As panel.
  • In the Assign Device as Test dialog click Browse Library....
  • Type button into the Search box.
  • Double-click Pushbutton.xje to choose that file.
  • Click OK in the Assign Device as Test dialog.
  • If prompted to add tests to the XJRunner Test List, click Yes.

Finally, categorise the oscillator X1:

  • Select X1 from the All Components list.
  • Click Test in the Categories section of the Assign As panel.
  • In the Assign Devices as Test dialog click Browse Library....
  • Type Oscillator into the Search box.
  • Click Clocks, Oscillators & Crystals in the list of the available categories on the left side of the dialog.
  • Double click XTAL_OSC.xje to choose that file.
  • Click OK in the Assign Devices as Test dialog.
  • If prompted to add tests to the XJRunner Test List, click Yes.
  • Click Save on the main XJDeveloper toolbar.

Reviewing Test Coverage

  • Review the test coverage in the Test Coverage screen now that you have categorised all of the accessible devices. You can see that the number of pins that will be tested has increased from 210 to 367.
Updated test coverage

The Test Coverage tutorial exercise shows you how to analyse the full set of statistics available in order to understand how to increase the overall test coverage.