Cpe358/Cs381 Switching Theory and Logical Design Class 13
Cpe358/Cs381 Switching Theory and Logical Design Class 13
www.UandiStar
1-452
Today
Fundamental concepts of digital systems (Mano Chapter 1) Binary codes, number systems, and arithmetic (Ch 1) Boolean algebra (Ch 2) Simplification of switching equations (Ch 3) Digital device characteristics (e.g., TTL, CMOS)/design considerations (Ch 10) Combinatoric logical design including LSI implementation (Chapter 4) Flip-flops and state memory elements (Ch 5) Sequential logic analysis and design (Ch 5) Counters, shift register circuits (Ch 6) Hazards, Races, and time related issues in digital design (Ch 9) Synchronous vs. asynchronous design (Ch 9) Memory and Programmable logic (Ch 7) Minimization of sequential systems Introduction to Finite Automata
www.UandiStar
1-453
Course Roadmap
Combinatorial Circuits
Sequential Circuits
www.UandiStar
1-454
Course Roadmap
Combinatorial Circuits
Logic Circuits with gates Logic Circuits with memory Clocked Memory Synchronous
Sequential Circuits
www.UandiStar
1-455
Course Roadmap
Combinatorial Circuits
Logic Circuits with gates Logic Circuits with memory Clocked Memory
Sequential Circuits
Asynchronous Synchronous
www.UandiStar
1-456
Mealy/Moore Models
Output is a function of state only = Moore Model
State
Outputs
Inputs
www.UandiStar
1-457
Mealy/Moore Models
Output is a function of state and inputs = Mealy Model, a more generic model
State
Inputs
Outputs
www.UandiStar
1-458
State
Inputs
Output Logic
Outputs
www.UandiStar
1-459
Output Logic
Outputs
State
Inputs
www.UandiStar
1-460
Inputs
Combinational Logic
Outputs
State
www.UandiStar
1-461
JJ G X
n inputs
Combinational Circuit
J G Z
m outputs
www.UandiStar
1-462
JJ G X
n inputs
J G y
Combinational Circuit
J G Z
m outputs
JG Y
k inputs Delay(s)
k outputs
www.UandiStar
1-463
JJ G X
n inputs
J G y
Combinational Circuit
J G Z
m outputs
JG Y
k outputs
www.UandiStar
1-464
JJ G X
n inputs
J G y
Combinational Circuit
J G Z
m outputs
JG Y
k outputs
1-465
Stability Condition
With no change in X input, Z output and Y states attain constant values
JJ G X
n inputs
J G y
Combinational Circuit
J G Z
m outputs
JG Y
k outputs
www.UandiStar
1-466
Stability Condition
With no change in X input, if Y states do not attain constant values, system is JJ G JJJ G JG J G unstable
X = CX
but Y y
JJ G X
n inputs
J G y
Combinational Circuit
J G Z
m outputs
JG Y
k outputs
www.UandiStar
1-467
Steady-State Condition
JJ G X
n inputs
J G y
Combinational Circuit
J G Z
m outputs
JG Y
k outputs
J G JG y =Y
In steady-state, delays become irrelevant
www.UandiStar
CpE358/CS381 Switching Theory and Logical Design Summer-1 2004 Copyright 2004 Stevens Institute of Technology All rights reserved 1-468
JJ G X
n inputs
D( X i )
Combinational Circuit
D( X i ) D( X j )
J G Z
m outputs
J G y
D( X j )
JG Y
k inputs
k outputs
D( y p )
Delay(s) Secondary variables
D( y q )Excitation
variables
D( y p ) D( y q )
www.UandiStar
CpE358/CS381 Switching Theory and Logical Design Summer-1 2004 Copyright 2004 Stevens Institute of Technology All rights reserved
1-469
www.UandiStar
1-470
www.UandiStar
1-471
y1 y2 x Y2 Y1
Write Boolean functions expressing excitation variables in terms of input and secondary variables:
Y1 = ( xy1 ) + ( x ' y 2 )
Y2 = ( xy '1 ) + ( x ' y 2 )
www.UandiStar
1-472
secondary variable(s)
01 11 10
Y1
Y2
www.UandiStar
1-473
Y1
Y2
Transition table
www.UandiStar
1-474
Y1
Y2
Transition table
www.UandiStar
1-475
Y1
Y2
Transition table
Consider the effect of a change in the input variable x=0, y1y2=00, stable state
Input, x 0 1 1 State y1y2 00 00 01 Y1Y2 00 01 01 Condition Stable State Transitory condition Stable State
www.UandiStar
1-476
Y2
Transition table
www.UandiStar
1-477
Y2
Transition table
Each line must contain present state for (at least) one of the input conditions to ensure stability
www.UandiStar
1-478
x2 Y1
Y2
www.UandiStar
1-479
x2 Y1
Y2
Excitation variables are given and feedback loops follow. Derive functions for excitation variables:
Y1
Y2
www.UandiStar
1-481
Y1 Create transition table from excitation variable map. And mark the stable conditions:
x1x2: 00 State 01 11 10 00 00 00 00 00 01 11 11 11 11 11 01 11 11 10 10 00 01 01 00
Y2
www.UandiStar
1-482
State table:
Present state 00 01 10 11 Next state, x1x2= 00 00 00 00 00 01 11 11 11 11 10 00 01 00 11 11 01 11 10 01
www.UandiStar
1-483
x1x2: a State b c d
00 a a a a
01 c c c c
11 b c c d
10 a b b a
www.UandiStar
1-484
Flow Tables
Problem 9.2:
x1x2: 00 y1y2 01 11 10 00 00 00 00 00 01 11 11 11 11 11 01 11 11 10 10 00 01 01 00
Previous example:
y1y2\x 00 01 11 10 0 00 11 11 00 1 01 01 10 10
x1x2: a State b c d
00 a a a a
01 c c c c
11 b c c d
10 a b b a
y1y2\x A B C D
0 A C C A
1 B B D D
1-485
Which occurs first? What effect does the order of change have on system operation?
www.UandiStar
1-486
www.UandiStar
1-487
System is in state 00 with input 00, a stable condition. Input is changed to 01, which should lead to state 11 But: which variable changes first: y1 or y2? And does it make any difference to the resulting state?
www.UandiStar
1-488
System is in state 00 with input 00, a stable condition. Input is changed to 01, which should lead to state 11 But: which variable changes first: y1 or y2? And does it make any difference to the resulting state? In this case, if either variable changes before the other, the system may briefly visit state 01 or 10, but the end result is the same the systems final state is 11 This is a noncritical race
www.UandiStar
CpE358/CS381 Switching Theory and Logical Design Summer-1 2004 Copyright 2004 Stevens Institute of Technology All rights reserved
1-489
System is in state 00 with input 0, a stable condition. Input is changed to 1, which should lead to state 11 But: which variable changes first: y1 or y2? And does it make any difference to the resulting state?
www.UandiStar
1-490
System is in state 00 with input 0, a stable condition. Input is changed to 1, which should lead to state 11 But: which variable changes first: y1 or y2? And does it make any difference to the resulting state? 0 0 1 0 1 1 If y1 changes first:
www.UandiStar
1-491
System is in state 00 with input 0, a stable condition. Input is changed to 1, which should lead to state 11 But: which variable changes first: y1 or y2? And does it make any difference to the resulting state? 0 0 1 0 1 1 If y1 changes first: If y2 changes first: 0 0 0 1 1 1
www.UandiStar
1-492
System is in state 00 with input 0, a stable condition. Input is changed to 1, which should lead to state 11 But: which variable changes first: y1 or y2? And does it make any difference to the resulting state? 0 0 1 0 1 1 If y1 changes first: If y2 changes first: 0 0 0 1 1 1 If y1 and y2 change simultaneously, system reaches correct state This is a critical race
www.UandiStar
CpE358/CS381 Switching Theory and Logical Design Summer-1 2004 Copyright 2004 Stevens Institute of Technology All rights reserved 1-493
x1x2: 00 y1y2 01 11 10
0 00
1 11 01 11 10
x1x2: 00 y1y2 01 11 10
0 00
1 01 11 11 10
x1x2: 00 y1y2 01 11 10
0 00
1 01 11 10 01
0 1
1 1
1 0
www.UandiStar
1-494
x1 Y
www.UandiStar
1-495
x1 Y
Y
www.UandiStar
1-496
x1 Y
N.O. N.C.
www.UandiStar
1-498
N.O. N.C. +V
N.O. N.C. +V
x y Some not-so-early asynchronous logic devices: Mechanical pinball machines Automatic transmissions (using fluid and hydraulic relays)
www.UandiStar
CpE358/CS381 Switching Theory and Logical Design Summer-1 2004 Copyright 2004 Stevens Institute of Technology All rights reserved
1-499
Q R
www.UandiStar
1-500
www.UandiStar
1-501
Y Q
Y = S '+ Ry if (S+R)=1
www.UandiStar
1-502
Summary
Fundamental concepts of digital systems (Mano Chapter 1) Binary codes, number systems, and arithmetic (Ch 1) Boolean algebra (Ch 2) Simplification of switching equations (Ch 3) Digital device characteristics (e.g., TTL, CMOS)/design considerations (Ch 10) Combinatoric logical design including LSI implementation (Chapter 4) Flip-flops and state memory elements (Ch 5) Sequential logic analysis and design (Ch 5) Counters, shift register circuits (Ch 6) Hazards, Races, and time related issues in digital design (Ch 9) Synchronous vs. asynchronous design (Ch 9) Memory and Programmable logic (Ch 7) Minimization of sequential systems Introduction to Finite Automata
www.UandiStar
1-503
www.UandiStar
1-504