


















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
Logic Design Fundamentals, Digital Signals ,Computing with Logic Gates, Combinational Circuits, Bit Equality, Word Equality, Bit Level Multiplexor ,Word-Level Multiplexor, Arithmetic Logic unit , 10Bit Latch , Registers, Random-Access Memory
Typology: Slides
1 / 26
This page cannot be seen from the preview
Don't miss anything!



















CS:APP2e
Overview of Logic Design
Fundamental Hardware Requirements
Communication
Computation
Storage
Bits are Our Friends
Everything expressed in terms of values 0 and 1
Communication
Computation
Storage
Computing with Logic Gates
Outputs are Boolean functions of inputs
Respond continuously to changes in inputs
a
b
out
a
b
out a^ out
out = a && b out = a || b out = !a
And Or Not
Rising Delay Falling Delay
Combinational Circuits
Acyclic Network of Logic Gates
Continously responds to changes on primary inputs
Primary outputs become (after some delay) Boolean
functions of primary inputs
Word Equality
32-bit word size
HCL representation
b 31
Bit equal
a 31
eq 31
b 30
Bit equal
a 30
eq 30
b 1
Bit equal
a 1
eq 1
b 0
Bit equal
a 0
eq 0
Eq
=
Bit-Level Multiplexor
Control signal s
Data signals a and b
Output a when s=1, b when s=
b
s
a
out
HCL Word-Level Examples
B MIN3^ Min
Out
s
s
MUX
OF
ZF
CF
OF
ZF
CF
OF
ZF
CF
OF
ZF
CF
Arithmetic Logic Unit
Combinational logic
Control signal selects function computed
Also computes values for condition codes
A
B
A
B
A
B
A
B
0
1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Vin
V
V
0
1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Vin
Vin
V
Storing 1 Bit (cont.)
q
!q
q = 0 or 1
in
1
2
in
1
2
in
2
Physical Analogy
0
1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Vin
V
V
0
1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Vin
Vin
V
Stable left Stable right
Metastable
1-Bit Latch
Data
Clock
Q+
Q–
R
S
D
C
Q+
Q–
R
S
D
C
d !d !d !d d
d d !d
Q+
Q–
R
S
D
C
Q+
Q–
R
S
D
C
d !d q
!q
!q
q 0
Transparent 1-Bit Latch
When in latching mode, combinational propogation from D
to Q+ and Q–
Value latched depends on value of D as C falls
Q+
Q–
R
S
D
C
Q+
Q–
R
S
D
C
d !d !d !d d
d d !d
Time
Registers
Stores word of data
Collection of edge-triggered latches
Loads input on rising edge of clock
D
C
Q+
D
C
Q+
D
C
Q+
D
C
Q+
D
C
Q+
D
C
Q+
D
C
Q+
D
C
Q+
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
Register Operation
Stores data bits
For most of time acts as barrier between input and output
As clock rises, loads input
x
y