PINS Section

The PINS section is used to give XJEase variable names to the pins and busses on the device. These variable names are then used in the XJEase file to reference the pins on the device and produce the required functionality (e.g. setting the pin high, low, etc.). Valid XJEase bus names are of the form:

[a-zA-Z_][a-zA-Z0-9_]*

In other words, the name must start with a letter or an underscore, and be followed by alphanumeric characters, underscores or hyphens.

For busses, the pins are specified most significant bit first. E.g.:

DEVICE NAME := "test"
  PINS
    ADDRESS := 3, 2, 1;
  END;
END;

TestCode()()
  // Set pin 1 = 1
  //     pin 2 = 0
  //     pin 3 = 0
  SET ADDRESS := 0b001;
END;