PSpice - Sub-Circuits
PSpice - Sub-Circuits
If there is a circuit that is large and consists of many small circuits, each of the small circuit can
be converted into a sub-circuit as one-port network or two-port network, i.e. one set of
terminals to be connected to rest of the circuit, generally output ports, or two sets of terminals
to be connected to rest of the circuit, both input and output ports. Each of the sub-circuit can
be represented by just a rectangular box with set of terminals coming out of the box as shown
in figure 1,
AM_Circuit_2
Vam
AM Signal
R1
25k RD
6k
C3 C5 Vout
R2
8.2k
R3 C4
900 10u
0
0
0 0 0
Figure 2: MOSFET Common-Source Amplifier with Open Input and Output Terminals
From Place menu tab, choose Hierarchical Port. You can do the same by pressing Place Port
button from toolbar. Choose PORTLEFT-L/CAPSYM and connect it to Vout and PORTRIGHT-
R/CAPSYM and connect it to Vin, as shown in figure 3. Change Names of these ports to suitable
names according to your circuit. Re-name your schematic and page to some suitable name, e.g.
MOSFET_Amp
R1
25k RD
6k Vout
C3 C5
R2
8.2k
R3 C4
900 10u
0
0
0 0 0
Create a new schematic under the same project, make it root, and open a new page. Re-name
your schematic & page to a suitable name. From Place menu tab, choose Hierarchical Block.
Under Reference, choose a name for your block, under implementation type, choose Schematic
View and under implementation name, put down the actual name of the page that you have
given to the MOSFET amplifier page; in our case it is MOSFET_Amp.
VMOS_in VMOS_out
MOSFET_Amp
If you double-click your sub-circuit, it will open the actual circuit enclosed in it. This sub-circuit
can be used with any circuit as input and any circuit as output. Let’s connect a signal source at
the input and a resistor at the output to observe the amplification.
MOSFET_CS_Amp
VMOS_in VMOS_out
V1
VOFF = 0 V
VAMPL = 10m R1V
FREQ = 1KHz
AC = 100k
0
0
MOSFET_Amp
Figure 6: MOSFET Amplifier Sub-Circuit with Input Source and Output Load
Gain of the amplifier (vout/vin) is around 45 as can be seen from the following simulation.
10mV
0V
SEL>>
-10mV
V(V1:+)
500mV
0V
-500mV
0s 0.2ms 0.4ms 0.6ms 0.8ms 1.0ms 1.2ms 1.4ms 1.6ms 1.8ms 2.0ms 2.2ms 2.4ms 2.6ms 2.8ms 3.0ms
V(R1:2)
Time