Testbench

Every SCL program must contain one and only one testbench. Testbenches contain processes, variables, constants etc. It can also be empty, though there is little reason to do so.

Here is an empty testbench to show the basic syntax:

testbench for PIC32MX360F512L is
   // processes, variables, etc. go here
end testbench;

In earlier versions of MPLAB IDE the device name had to match the device of the project the SCL code was ran against. But in MPLAB X the device name is ignored and is decorative only.