0% found this document useful (0 votes)
4 views

PSpice - Sub-Circuits

Uploaded by

nassy.true4
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

PSpice - Sub-Circuits

Uploaded by

nassy.true4
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

How to Create Sub-Circuits in PSpice

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

Figure 1: AM Signal Generator as Sub-Circuit

Let’s create a MOSFET Common-Source Amplifier as shown in figure 2

R1
25k RD
6k
C3 C5 Vout

10u 10uF VDD


RL
Vin
C1 M1 10V
33K
10uF
M2N7000

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

10u 10uF VDD


RL
VMOS_out
Vin
C1 M1 10V
33K
10uF
VMOS_in M2N7000

R2
8.2k
R3 C4
900 10u

0
0
0 0 0

Figure 3: MOSFET Common-Source Amplifier with Hierarchical Ports

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.

Figure 4: Place Hierarchical Block Dialogue Window


Once you submit, your mouse will change into a cross hair. Drag your mouse with left mouse
button pressed, you will see a rectangle. Choose a suitable size for rectangle and release your
mouse button. Your sub-circuit is ready!
MOSFET CS Amp

VMOS_in VMOS_out

MOSFET_Amp

Figure 5: MOSFET Amplifier Sub-Circuit

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

Figure 7: Input (blue) and Output (red) Waveforms

You might also like