Академический Документы
Профессиональный Документы
Культура Документы
Introduction
Logic Gates
Flip Flops
Registers
Counters
Multiplexer/
Demultiplexer
Decoder/ Encoder
Introduction
Digital Computer
A computer that stores data in terms of digits
(numbers) and proceeds in discrete steps
fromdigits
one state to the next
Binary
The states of a digital computer typically
involve binary digits. A binary digit is called a
bit
RAM
CPU
I/P
Device
IOP
O/P
Device
Logic Gates
Name
AND
OR
Symbol
Function
A
X
B
X =A B
or
X = AB
A
X
X = A+ B
X=A
Buffer
X=A
NAND
A
X
X = (AB)
NOR
A
X
X = (A + B)
X=A B
or
X = AB + AB
X = (A B)
or
X = AB+ AB
XOR
Exclusive OR
XNOR
Exclusive NOR
or Equivalence
A
B
A
B
Truth Table
A B
0 0
0 1
1 0
1 1
A B
0 0
0 1
1 0
1 A1
0
1
A
0
1
A B
0 0
0 1
1 0
1 1
A B
0 0
0 1
1 0
1 1
A B
0 0
0 1
1 0
1 1
A B
0 0
0 1
1 0
1 1
X
0
0
0
1
X
0
1
1
1
X
1
0
X
0
1
X
1
1
1
0
X
1
0
0
0
X
0
1
1
0
X
1
0
0
1
Boolean Algebra
Boolean variable: Takes only two values either true (1) or false (0).
They are used as basic units of formal logic.
Karnaugh Maps
B01
A
0 0 1 F=AB +AB
11 0
B01
A
0 0 1 F=AB +AB +AB
1 1 1 F=A+B
BC
00 01 11 10
A
00 1 0 1
1 1 1 1 1 F=A+B C +BC
F=ABC +AB C +ABC +ABC + ABC + ABC
Karnaugh
maps
Numbering scheme based on Graycode
e.g., 00, 01, 11, 10
Only a single bit changes in code for adjacent map cells
This is necessary to observe the variable transitions
C
00
G(A,B,C) = A
C 1
B
B
A
C
11
01
A
C
AB
F(A,B,C) =
m(0,4,5,7) = AC + BC
10
0 1
0 0 1
1 0 1
f=a
Examples
ab
c
00 01 11 10
0 0 0 1 0
1 0 1 1 1
0 1
0 1 1
1 0 0
g = b'
ab
c
00 01 11 10
0 0 0 1 1
1 0 0 1 1
cout = ab + bc + ac
f=a
exercise
F(A,B,C) = (3,4,6,7)
F(A,B,C) = (0,2,4,5,6)
F(A,B,C,D)=(0,1,2,6,8,9,10)
CIRCUITS
Combinational circuit
Circuits in which there are no feedback path from outputs to inputs
and there is no memory.
The input values explicitly determine the output
Designing
Combinational Circuits
In general we have to do following
steps:
1. Problem description
2. Input/output of the circuit
3. Define truth table
4. Simplification for each output
5. Draw the circuit
Flip Flops
Characteristics
- 2 stable states
- Memory capability
- Operation is specified by a Characteristic Table
memory.
The output is a function of the input
values and the existing state of the circuit
c
R
c
R
operates when
clock is high
operates when
clock is low
Flip Flops
Flip Flop
SR (Set
Reset)
GraphicalSymbol
c
R
Characteristic
Table
S
0
0
1
1
R
0
1
0
1
Q(t+1)
Q(t)
0
1
indeterminate
(forbidden)
D (Data)
D
C
Q
Q`
D
0
1
Q(t+1)
0
1
Flip Flops
Flip Flop
GraphicalSymbol
Characteristic
Table
J-K
J
J
cC
K
R
Q' Q
S
Q(t+1)
J KR Q(t+1)
0 0
Q(t)
0 1
0
1 0
1
1 1 indeterminate
Q(t)
(forbidden)
T (Toggle)
T
c
T
0
1
Q(t+1)
Q(t)
Q(t)