This legacy NB2-based example design demonstrates the use of an external DelphiScript to perform automated testing tasks. The script essentially begins by:
- Opening the Devices view and running the Process Flow for this design project (Compile/Synthesize/Build)
- Downloading this design to the daughter board FPGA device plugged into the NB2
After downloading the programming file, the example is run. The design features two TSK165B processors, whose associated embedded code is set to output three constant values at each of the output ports RAO, RBO and RCO. These outputs are fed back into the port inputs, as well as to three channels of an associated 4x8-bit Digital IO instrument (IOB_4X8).
The script tests to see if the values output from a processor and stored in the respective Digital IO instrument are identical to those predefined in a separate file –
ValueList.txt.
A report file is created as well as progress being shown in a script-derived log window and the Altium Designer Output panel. The results will either state that the test has passed in each case, or failed, including a reason why.
Altium Designer projects included in this download:
- FPGA_165B_DigitalIO.PrjFpg
- DigitalIO.PrjEmb
- DigitalIO.PrjEmb