Computer Aided Design EENG527 Lecture Notes 01
Computer Aided Design EENG527 Lecture Notes 01
DEPARTMENT
MODULE TITLE
MODULE CODE
MODULE LECTURER
CONTACTS
LECTURE HOURS/LAB.
PRACTICALS/CREDIT HOURS
ASSESSMENT
OBJECTIVES AND
OUTCOMES
1|Page
Examination will account for 70% of the overall grade whilst continuous
assessment will account for 30% of which 5% is allocated to class attendance.
Of the 70% allocated to examinations, 40% will be drawn from a Simulation
CAD examination and 60% from the CAD Theory examinations. Question sets
at the end of each lecture must be returned for grading one week after receipt
of lectures and will account for 10% of the continuous assessment grade.
This module aims at introducing students to the fundamentals of Computer
Aided Design theory and application as well as providing hands-on application
2|Page
SUGGESTED
READINGREFERENCE
TEXTS/MANUALS/WEBSITES
LECTURE NUMBER
LECTURE DURATION
(HOURS)
SPECIFIC INSTRUCTIONAL
OBJECTIVES AND LEARNING
OUTCOMES
1.0 INTRODUCTION:
Welcome to Module EENG527, Computer Aided Design, EENG 527
General description
3|Page
Computer Aided design provides a platform for simulating design exercises using a simulation software package.
These packages have a varying degree of sophistication in terms of their robustness, range of application, speed
of simulation and ease of use or user friendliness. Many of these packages come in different categories either as
educational or professional packages, with the latter having a more comprehensive portfolio of applications with
an attendant price margin.
Each package is constructed using mathematical models for circuit components based on their intrinsic
characteristics. The more accurate the model representation the more expensive and of course robust will be
the simulation.
The circuit theories encountered during the earlier years of the course will be called to bear as this module is
offered. Nodal and mesh analysis of circuits will be used in some of the analysis in transforming a given circuit
into the model for simulation. Knowledge of matrix manipulation will be assumed.
References have been made to a number of text books which are listed in the section for Further Reading, and
modifications made for a coherent and reader-friendly presentation with worked examples and assignments
provided.
Why simulate?
Baseline:
1. Very simple circuits with few unknowns often require lengthy and laborious analysis using simultaneous equations.
The more complicated the circuit the larger the number of unknowns encountered and hence the more complicated
and time consuming the process of solving the equation set.
2. Solution of matrices using well known methods can be quite demanding. Some of the methods include Cramers
Rule, the Runga-Kutta predictor-corrector Rule, Gaussian Elimination method, the Gauss-Jordan method and the
Newton Raphson method.
3. Certain responses of circuits, e.g. step and ramp responses are very difficult to solve manually especially when all
stray capacitances (non-linear) are considered.
The circuit contains multi-emitter transistors and standard transistors and diodes. The bipolar transistor can be
represented by its hybrid equivalent circuit model as shown in Fig. 1.2.
Fig 1.2.
5|Page
a. Bipolar transistor.
Furthermore the hybrid model of an amplifier is shown in Fig 1.3 including bias resistors. Considering the simple
TTL circuit it can readily be seen that the equivalent circuit of such a circuit will be complicated and difficult to
solve manually. If we now scale up this circuit to VLSI circuits consisting of millions of transistors, then using this
approach to circuit analysis will be impossible to solve manually.
i2
For the BC107 bipolar transistor for example
hre = 3 x 10-4.
hfe forward current gain 250
hoe = o/p admittance = 300S
Fig. 1.3. Hybrid equivalent circuit of an amplifier with hre (reverse voltage transfer ratio, and hoe (o/p admittance)
neglected
2.2.
The behaviour of circuit elements determine the category in which they can be placed, i.e. linear, non-linear, active,
passive, dissipative or storage, time varying or constant, etc. Let us now consider some of the basic elements that will be
used in our analysis.
1.3 Some basic elements
Table 1.0 shows the circuit elements to be used as well as the various categories of dependent or controlled sources.
Independent voltage and current sources will also be used.
Table 1.0. Elements and dependent sources
Circuit
Controlled (dependent)
elements
sources
Resistors
Voltage controlled voltage
6|Page
Inductors
Capacitors
source VCVS
Current controlled voltage
source CCVS
Voltage controlled current
source VCCS
Current controlled current
source - CCCS
7|Page
[ Y ][ V ] =[ I ]
4.1.
where
[ Y ] Node Admittance
[ V ] Vector of unknownvoltages
[ I ] Equivalent current source vector obtained independent sources
Let us now consider a simple passive circuit in Fig.1.5, and derive its nodal equations from 1 st principle (KCL)
8|Page
2
VCCS
Node B
V BV A V B
+ g m ( V AV C ) =0
R1
R2
Node C
9|Page
V C V A V C
+ + gm ( V A V C )=0
R4
R3
1 1
+
R1 R4
1
gm
R1
1
g m
R4
1
R1
1 1
+
R1 R2
0
1
R4
gm
1 1
+ g m
R 3 R4
[ ][]
VA
I1
VB = 0
0
VC
i.e.
[ Y ][ V ] =[ I ]
The derivation of these matrices uses an iterative numerical solution which lends itself to computer
programming and simulation.
Let us now return to our analysis circuit as shown.
The branches are labeled 1 to n
VCCS
5
11 | P a g e
Tabular description
Table 4.1. Circuit description
Branc N NCompone
+
h No.
nt type
1
2
1
3
2
2
R
G
3
4
5
6
3
2
0
1
0
0
1
3
R
R
I
R
Compone
nt Value
1000
2(in
mhos)
3000
4000
2
6000
Controlli
ng Node
NC+
1
Controlli
ng Node
NC3
1
R
Also for resistors connected between node N and Node 0 where N = N+ or N- we obtain
12 | P a g e
YNN = YNN +
1
R
4.
b. Off-diagonal entries
1
YN+N- = YN+N- - R
YN-N+ = YN-N+ -
1
R
3. Admittances generated by VCCSs connected between Nodes N+ and N- with controlling nodes NC+ and NCare obtained as follows:
a. YN+NC+ = YN+NC+ + G
7
YN+NC- = YN+NC- - G
8
YN-NC+ = YN-NC+ - G
9
YN-NC- = YN-NC- + G
10
4. There are no values returned for row and column entries where N+. N-, NC+ and NC- are zero.
5. The elements for the independent current vector where sources Is are connected between Nodes N+ and Nare obtained as follows:
a. IN+ = IN+ - Is
11
IN- = IN- + Is
12
For the case of N = 0, the row entry is zero as given by the theory.
Illustrative Exercises
A network is given in Fig. 4.7 consisting of passive elements and current generators. Determine the nodal
voltages using the iterative method.
7
13 | P a g e
2
1
v
1
O
Fig. 4.7. Network of resistors and current sources
Analysis
Table 4.4. Tabular description of Fig. 4.7, (NB. The controlling voltage v is given by V1 V0)
Branc
h No.
1
2
3
4
5
6
7
Nod Nod
e N+ e N0
1
0
0
1
2
2
1
0
2
3
2
3
3
Compone
nt type
Compone
nt Value
I
R
R
R
R
gm
R
6
5
3
2
1
0.1
2
Controlli
ng Node
NC+
1
-
Controlli
ng Node
NC0
-
Y22 = 0 + =
Row 5
Row 7
Row 2.
3 1 11
+ =
2 3 6
Row 3
Y33 = + = 1
Row 4
Y22 =
Off-diagonal elements
YN+N- = YN+N- -
1
R
YN-N+ = YN-N+ -
1
R
Thus we obtain :
YN+N- : Y12 = -1 = Y21
Y13 = 0
15 | P a g e
Y23 = -
Row 7
7.
8.
9.
10.
Hence we obtain
Y21 = -1 + 1/10 = -9/10
Y20 = 0
Y31 = -gm = -1/10
Y30 is omitted according to the rules of formulation above.
Current vector calculation
Here N+ = 0 and N- = 1
IN+ = IN+ IS = 0, i.e. IN+ = I0 is omitted.
IN- = IN- + IS = I1 = 6
Having obtained all the elements of the matrix we can then write the nodal voltage equation as
16 | P a g e
[ ]
6
5
9
10
1
10
1
11
6
1
2
[]
v1
6
1
v2 = 0
2
0
v3
1
13.
14
9
11
1
v + v v =0
10 1 6 2 2 3
15.
1
1
v 1 v +v 3 =0
10
2 2
16.
17 | P a g e
i
4
2 ( v 1v 2 )
=2 ( v 1v 2 ) .
1
Compone
nt Value
2
Controlli
ng Node
NC+
-
Controlli
ng Node
NC-
2
3
4
5
6
7
2
0
0
1
3
1
0
3
1
2
2
3
R
I
I
R
G
R
3
1A
7A
1
2
4
1
-
Y11 = 1
Row 7 :
Y11 = 1 + = 5/4
YN-NRow 5 :
Y22 = 1
Row 7 :
Y33 =
Row 2 :
Y12 = -1 = Y21.
Row 7 :
Y13 = - = Y31
2
-
Here the terminal nodes of the VCCS are N+ = 3, N- = 2. The controlling nodes are NC+ = 1, NC- = 2
Hence we can write
YN+NC+ = Y31 = - + 2 = 7/4
YN+NC- = Y32 = -G = -2
YN-NC+ = Y21 = -1 -2 = -3
YN-NC- = Y22 = 4/3 + G = 4/3 + 2 =
10
3
Current Vector
Branch 4.
Here IN- = I1 = 7 A
Branch 3.
IN- = I3 = 1 A
All the matrix elements have now been determined. The Nodal matrix equation then becomes :
[Y][V] = [I]
i.e.
20 | P a g e
[ ]
7
4
10
3
7
4
1
4
[]
v1
7
0 v 2 = 0
1
v3
1
4
17.
10
v =0
3 2
7
1
v 2 v 2 + v3 =1
4 1
4
18.
19
20
10
v
9 2
21.
21 | P a g e
22.
70
1
v 2 2 v 2+ v 3 =1
36
4
23.
v 2=9V
10
v =10 V
9 2
1
22 | P a g e
VCCS
5
23 | P a g e