Computer and Information Science
CIS 314
Introduction to Digital Logic
- Prof. Michel A. Kinsy
CIS 314 Introduction to Digital Logic Prof. Michel A. Kinsy - - PowerPoint PPT Presentation
CIS 314 Introduction to Digital Logic Prof. Michel A. Kinsy Computer and Information Science Systems & Computing Systems A system is a set of related components that works as a whole to achieve a goal A system contains: Inputs
Computer and Information Science
Computer Architecture and Embedded Systems Laboratory (CAES Lab)
works as a whole to achieve a goal
Behavior inputs
: :
Computer Architecture and Embedded Systems Laboratory (CAES Lab)
digital, and mixed signal
+5
Computer Architecture and Embedded Systems Laboratory (CAES Lab)
analog, and mixed signal
number if discrete values
+5
V 1 1 Time
Computer Architecture and Embedded Systems Laboratory (CAES Lab)
gate, and source
the source terminal then a conducting path will be established between the drain and source terminals
G S D G S D n-channel p-channel
Computer Architecture and Embedded Systems Laboratory (CAES Lab)
components of ICs
made up of transistors (these days billions) and other electronic components
computers (CPU, bus interface, memory management unit)
O I Vss Vdd
Computer Architecture and Embedded Systems Laboratory (CAES Lab)
Architecture Transistor Count Year Maker Technolog y Size Intel 4004 2,300 1971 Intel 10μm Intel 8008 3,500 1972 Intel 10μm Quad-core 2,000,000,000 2010 Intel 65nm 61-core Xeon Phi 5,000,000,000 2012 Intel 22nm Xbox One 5,000,000,000 2013 Microsoft/AM D 28nm 18-core Xeon Haswell-E5 5,560,000,000 2014 Intel 22nm
Computer Architecture and Embedded Systems Laboratory (CAES Lab)
computer logic design
algebra in modern computer systems
Computer Architecture and Embedded Systems Laboratory (CAES Lab)
x 1 1 y 1 1 F 1 x 1 1 y 1 1 F 1 1 1 x 1 F 1 x y F OR F x y AND 1 y x x y F 1 F x F x N O T Symbol/Gate Truth table Transistor circuit 1 x y F y x
Computer Architecture and Embedded Systems Laboratory (CAES Lab)
X = (A + B)’
Name Symbol Function Truth Table
AND 0 0 0 0 1 0 1 0 0 1 1 1 0 0 0 0 1 1 1 0 1 1 1 1 OR NOT X = A’ NAND X = (AB)’ NOR XOR Exclusive OR X = A B Or X = A’B + AB’ X = (A B)’
X = A’B’+ AB XNOR Exclusive NOR
A B X
A B X 0 1 1 0 A X 0 0 1 0 1 1 1 0 1 1 1 0 A B X 0 0 1 0 1 0 1 0 0 1 1 0 A B X 0 0 0 0 1 1 1 0 1 1 1 0 A B X 0 0 1 0 1 0 1 0 0 1 1 1 A B X X = A • B
X = AB A B X A B X X = A + B A X A B X A B X A B X A B X
Computer Architecture and Embedded Systems Laboratory (CAES Lab)
1 0 0 1 0 1 0 1 Sum 1 1 1 0 Carry 0 0 0 1 A B Cin Sum Cout
0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 1 1 0 1 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 1 1 1 1 1
Computer Architecture and Embedded Systems Laboratory (CAES Lab)
A B Cin Sum Cout
0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 1 1 0 1 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 1 1 1 1 1
Sum = Cin . A’ . B’ + B . Cin’ . A’ + A . Cin’ . B’ + A . B . Cin Cout = A’ . B . Cin + A . B’ . Cin + A . Cin’ . B + B . Cin . A = A . B + A . Cin + B . Cin
Computer Architecture and Embedded Systems Laboratory (CAES Lab)
Sum = Cin . A’ . B’ + B . Cin’ . A’ + A . Cin’ . B’ + A . B . Cin
A B Cin Sum
Computer Architecture and Embedded Systems Laboratory (CAES Lab)
Cout = A’ . B . Cin + A . B’ . Cin + A . Cin’ . B + B . Cin . A = A . B + A . Cin + B . Cin
A B Cin Cout
Computer Architecture and Embedded Systems Laboratory (CAES Lab)
values of the inputs
input signals but on the sequence of past inputs
Combinational Circuits inputs x
Computer Architecture and Embedded Systems Laboratory (CAES Lab)
input signals but on the sequence of past inputs
Combinational Circuits inputs x
Memory next state present state
Computer Architecture and Embedded Systems Laboratory (CAES Lab)
feedback through memory
memory
Combinational Circuits inputs x
Memory next state present state
Computer Architecture and Embedded Systems Laboratory (CAES Lab)
CLOCK
Combinational Circuits inputs x
Memory next state present state
Computer Architecture and Embedded Systems Laboratory (CAES Lab)
to a clock
duration between two consecutive rising or falling edges
Cycle time Rising clock edge Falling clock edge 4 GHz = clock speed = 1 = 1 cycle time 250 ps
Computer Architecture and Embedded Systems Laboratory (CAES Lab)
(0,1), until directed by an input signal to switch state
Computer Architecture and Embedded Systems Laboratory (CAES Lab)
(0,1), until directed by an input signal to switch state
circuits
Computer Architecture and Embedded Systems Laboratory (CAES Lab)
S’R’ Latch SR Latch SR Latch with Clock D Latch
Computer Architecture and Embedded Systems Laboratory (CAES Lab)
master-slave configuration
latch
active at any given time
are latched
activated to generate the outputs
Computer Architecture and Embedded Systems Laboratory (CAES Lab)
Clk D Q En ff Q D Clk En
Sel O A0 A1 An-1 Mux
. . .
lg(n)
Sel
O0 O1 On-1
A Demux
. . .
lg(n)
A Decoder
. . .
O0 O1 On-1
lg(n)
OpSelect
Result Comp? A B
ALU
Computer Architecture and Embedded Systems Laboratory (CAES Lab)
cycle
stable at the clock edge
MAGIC RAM ReadData WriteData Address WriteEnable Clock
Computer Architecture and Embedded Systems Laboratory (CAES Lab)
Computer Architecture and Embedded Systems Laboratory (CAES Lab)