HOW TO SPECIFY THE CIRCUIT TOPOLOGY AND ANALYSIS?
A SPICE input file, called source file, consists of three parts. • Data statements: description of the components and the interconnections. • Control statements: tells SPICE what type of analysis to perform on the circuit. • Output statements: specifies what outputs are to be printed or plotted. Although these statements may appear in any order, it is recommended that they be given in the above sequence. Two other statements are required: the title statement and the end statement. The title statement is the first line and can contain any information, while the end statement is always .END. This statement must be a line be itself, followed by a carriage return! In addition, you can insert comment statements, which must begin with an asterisk (*) and are ignored by SPICE. TITLE STATEMENT ELEMENT STATEMENTS . . COMMAND (CONTROL) STATEMENTS OUTPUT STATEMENTS .END