Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Logic design
What is design? Given a problem develop a solution using available resources to meet some specific design performance parameters Logic design? Converting application task inputs and outputs to specifications in terms of 0s and p p 1s. (encoding) several possible ways Establishing mathematical relationship and developing combination of basic elements to achieve the goal several possible ways Selection of optimum design
PRASANNA S GANDHI 2
Study how these are implemented in hardware and compose into computational structures
Encoding/Mapping
Physical world to binary
PRASANNA S GANDHI
Combinational vs sequential
Combinational :
Output values depend only on current input Logic gates we have been talking so far (AND, OR, NOT, NAND, NOR gates)
Seque t a Sequential:
Output values depend not only on current inputs but also on previous inputs Concept of Memory needs clock to keep track of sequence
PRASANNA S GANDHI 5
So the definitions of combinational or sequential are based on steady state observation. System has settled down Sequential circuits have memory even after the system is settled down or in steady state
PRASANNA S GANDHI 6
A B logic Circuit
Sequential logic
CLOCK
DIFFERENT
PRASANNA S GANDHI
Sequential logic
Fli flops, RS flip flop Flip fl fli fl Set-Rest flip-flop: Setflip Basic data storage device that holds data until RESET occurs
PRASANNA S GANDHI
clock S
RS f/f
Q
9
Sequential: Example
SetSet-Rest flip-flop: flip Timing diagram
R 0 1 0 1
S 1 0 0 1
Q 1 0 X Qn
Q 0 1 X Qn
PRASANNA S GANDHI
10
Given a month and a leap year flag as inputs, determine the number of days in month as output
Application: digital watch display
No of Days
PRASANNA S GANDHI
11
logic logi
No of Days
12
Month
d29 = 1 when month is 0010 AND leap flag is 1 l fl i d29 = m8m4m2m1 leap m8m4m2 d30 = (m8'm4m2'm1') + (m8'm4m2' (m8'm4m2 (m8'm4m2m1') + OR (m8m4'm2' (m8m4'm2'm1) + PRASANNA S GANDHI (m8m4'm2 (m8m4'm2m1)
15
PRASANNA S GANDHI
16
d28
d29
CMOS circuit
d29
PRASANNA S GANDHI
20
10