A finished version of the model you build in this tutorial
along with any files required to complete the tutorials are available from the Demo
Browser: Tutorial Models > Integration and Collaboration > Simulating a guitar amplifier signal or at this location:
<installation_directory>/Tutorial
Models/Integration and Collaboration/Simulating a guitar amplifier
signal.
This tutorial shows you how to address the amplification problem by performing both a
transient and AC simulation inside of Twin Activate given the following:
Circuit model: opamp_model.scm
Circuit model: opamp_model_AC.scm
Spice Library: opamp
The opamp Spice library contains the following block
definition and schematic used in the circuit
models.
Opamp.cir:
*
.SUBCKT OPAMP1 1 2 6
* @ACTPO: 3
* INPUT IMPEDANCE
RIN 1 2 10MEG
* GAIN BW PRODUCT = 10MHZ
* DC GAIN (100K) AND POLE 1 (100HZ)
EGAIN 3 0 1 2 100K
RP1 3 4 1K
CP1 4 0 1.5915UF
* OUTPUT BUFFER AND RESISTANCE
EBUFFER 5 0 4 0 1
ROUT 5 6 10
.ENDS
OPAMP1.svg:
Import the Opamp Block
Copy
<installation_directory>/Tutorial Models/amplifier
into a working directory.
In the OML Command Window, enter the following:
vssImportSpiceLibrary command; path to the opamp folder;
and path to a designated folder that the import command will use to generate
files for the library: