Additional Code Files

Additional Code files and Test Device files are both written in the XJEase language. However, Additional Code files are entirely written in the XJEase scripting language whereas Test Device files also contain information about the device type, such as bus names, disable values, test coverage and configuration variables.

Additional Code files are often used when it is desired to make some functionality common across different Test Device files. For example, many devices use the I2C bus for communicating with the device, and this can be facilitated by adding the IIC.xje file from XJTAG's library as an Additional Code file to each device file that wishes to use the protocol.

Additional code files behave as if they are appended (in the order they are displayed) to each device file that uses them. The order of the additional code files can be important - for example, constants have to be defined before they are used and so the file containing the definition has to go above any that use the constant value.