This directory contains circuit files illustrating how to produce your own SPICE
subcircuit ('X' device).

Load the file 'AudioAmp' into SchemEd and run the analysis by pressing F11 or
by clicking on the BSpice tool icon and clicking 'Analyse' in the Analysis Setup
dialogue.
'Use Project Folders' is set, so the SPICE files will be created in the same
directory as the circuit file.

The SPICE rawfile in the 'raw' directory can be loaded into the SimProbe app and
the frequency response at the node 'output' plotted. The plot should be saved as
a SpicePlot file or as a DrawFile. It should show a response falling above about
3.5MHz.

Quit SimProbe and now load the file 'ModuleCct' into SchemEd. This contains the
bulk of the previous circuit with external stimluli and gain-setting components
removed. This will be what is contained in our subcircuit definition.
Note the use of NODENAME symbols to define the external connection nodes.

Click on the BSpice tool icon to show the Analysis Setup dialogue. You really
need to look at the SchemEd manual to understand the '.SUBCKT refs' specification
that has been entered.
Click on 'Extract' and drag the text icon to the circuit directory, from where
you can examine it in a text editor, and add comments or whatever.
You would now be able paste this into one of your SPICE library files ready to
be called under the name 'MyAmp'. In this case, it has already been pasted into
the SPICE library 'Subcircuit'.

The symbol created for 'MyAmp' can be found in component symbol library
'Subcircuits' - use SymLibEd to have a look at the symbol and how the pins and
text objects have been tailored to suit the definition we have created.

Now load the file 'FinalCct' into SchemEd - this is the ultimate test.
The external stimuli and gain-setting components have been reinstated to produce
what is effectively the same overall circuit as the original 'AudioAmp'.

Run the analysis as you did for AudioAmp and you should find that the two have
identical performance (comparing to the original plot that you saved earlier).

----------------------------------------------------------------------------------