











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
In the course of the Design Techniques for Digital Systems, we study the key concept regarding the digital system. The major points in these lecture slides are:Complement Number System, Two Carry Bits, Overflow Flag, Carry Look Ahead Adder, Nand Gate Network, Longest Path, Ripple-Carry Adder, Subtracter Inputs, Boolean Expression, Function of Variables, Schematic Diagram
Typology: Slides
1 / 19
This page cannot be seen from the preview
Don't miss anything!












n
n-
n-
n-
Adding two numbers with different signs
never overflow
n-
n-
n
n-
n-
n
n-
n
n-
n-
n-
n
n-
n-
n-
n-
n
n-
n
n-
st
nd
st
st
rd
Carry Look Ahead (CLA) Adder
1
0
0
0
2
1
1
1
1
1
0 +
1
0
0
3
2
2
2
2
2
1 +
2
1
0 +
2
1
0
0
4
3
3
3
3
3
2 +
3
2
1 +
3
2
1
0 +
3
2
1
0
0
i
i
i
i
i
i
a
3
b
3
g
3
p
3
a
2
b
2
g
2
p
2
a
1
b
1
g
1
p
1
a
0
b
0
g
0
p
0
c
1
c
2
c
3
c
0
CLA block
30
30
3,
3,
c
4
6
i
i
0
i
i
i
0
15
3,
3,
c
16
c
0
7,
7,
11,
11,
c
12
c
8
c
4
15,
15,
Docsity.com
i
i+
i
i
i
i
i
i
i
i+
i
i
i
i
i
i
Step1: generate g1, g0 and p1, p0 in parallel.
xi
yi pi
gi
Step2: generate b1 and b2 in parallel.
p
g
p
g
b
b
b
x
y
b
d
x
y
b
d
modulo-16 counters
, draw the logic
diagram to show the following designs
6.5.1 Design a module-200 counter with a repeated output
Count through 0 to 199(199)
10
2
reset
enable
clk
reset
enable
clk
Reset the counter after it counts to 199
en
9-cycle sequence
count from 0 to 8 and then reset
Need to map the counter output to the number sequence
reset
enable
clk
Mapping logic O3 O2 O
en
15
8
7
7
6
6
10
5
9
4
8
3
2
2
1
1
0
0
O
Q
Mapping logic
Design a counter with a repeated output sequence 0, 1, 2,4, 5, 6, 3, with a modulo-8 counter and a minimal AND-OR-NOT network
7-cycle sequence
count from 0 to 6 and then reset
Need to map the counter output to the number sequence
reset
enable
clk
Mapping logic
en
3
6
6
5
5
4
4
3
2
2
1
1
0
0
O
Q
Mapping logic
Alg(X, Y, Z, start, U, done);
Input X[7 : 0], Y [7 : 0], Z[7 : 0], start;
Output U[7 : 0], done;
Local-object A[7 : 0], B[7 : 0], C[7 : 0];
S1: If start’ goto S1;
S2: done <= 0 || A <= X || B <= Y || C <= Z;
S3: A <= Add(A;B);
S4: If B’[7] goto S3 || B <= Inc(B);
S5: If C’[7] goto S3 || C <= Inc(C);
S6: U <= A || done <= 1 || goto S1;
End Alg
0
1
2
3
4
5
ld
ld
ld
adder
s
1
0
Ct
3
Ct
0
Ct
1
Ct
2
inc
Ct
4
inc
Ct
5
A
ld
B
ld
C
ld
adder
MUX
X
Y
Z
s
1
0
Ct
3
Ct
0
Ct
1
Ct
2
inc
Ct
4
inc
Ct
5
State
State
State
A<=XB<=YC<=Z
A<=A+B
B’[7]
State
B[7]
State
C’[7]
B<=B+
C<=C+
State
C[7]
U<=A
Ct0 = 1Ct1 = 1Ct2 = 1
Ct3 = 1
Ct4 = 1
Ct5 = 1
0 0 0 0 0 0 0
state
0 0 0 0 1 0 Ct
0 0 0 0 0 0
state
0 0 1 0 0 Ct
1
0
0
0
0
state
0
0
0
0
0
state
0
0
0
0
0
state
0
1
0
0
0
state
0
0
1
1
1
state
done
Ct
Ct
Ct
Ct
Docsity.com