SCL allows the reading and writing of variables from the software running on the processor, by name. To access these variables, you have to tell SCL about the variables by declaring shared variables in the configuration section.
shared variable varName;
At this time, shared variables have to be global and static.
Here is an example.
configuration for "PIC16F877" isshared variable stateVar;end configuration;testbench for "PIC16F877" isbeginprocess isbeginif stateVar == 0 thenRD0 <= 1;elseRD1 <= 0;end if;end process;end testbench;