For each fault, there are two COSMOS commands given in the .src file. The first command inserts the fault site into the list of faults to simulate. The second command sets the gate of the fault transistor to the unfaulty state as given by the technology file.
This file can be executed once in COSMOS by entering the command:
> source inv.srcThis would instruct COSMOS to read in the list of commands in the file inv.src. This should be done as one of the first few instructions during the COSMOS simulation. Fault simulation on the circuit can now be done by setting the inputs to the circuit according to the test pattern and then executing the COSMOS cycle command.