Firmware Structure
The firmware has been partly developed using the Mentor Graphics HDL Designer tool, although it can be modified without the use of this software.
A block diagram of the software is shown here:
Data Structure
Triggers and edge-transitions on the inputs are time-stamped and read-out from the TLU. The data format is described here: http://link-here