LECTURE 6: State machines - PowerPoint PPT Presentation

About This Presentation
Title:

LECTURE 6: State machines

Description:

Boolean Equations. relation ::= relation LOGIC relation | NOT relation | ( relation ) ... Rising-Edge Flip-flop logic diagram. CWRU EECS 318. Synchronous ... – PowerPoint PPT presentation

Number of Views:46
Avg rating:3.0/5.0
Slides: 23
Provided by: francis55
Learn more at: http://bear.ces.cwru.edu
Category:

less

Transcript and Presenter's Notes

Title: LECTURE 6: State machines


1
LECTURE 6 State machines
EECS 318 CADComputer Aided Design
Instructor Francis G. Wolff wolff_at_eecs.cwru.edu
Case Western Reserve University This
presentation uses powerpoint animation please
viewshow
2
VHDL Component, Entity, and Architecture
for-generate if generate
Component Instance
Component Declaration
Entity
Architecturei
ConcurrentWith-Select-WhenWhen-Else
OtherConcurrentComponents
ConcurrentBoolean Equations
3
VHDL Components
Component Declaration
Optional repeat
COMPONENT component_entity_name GENERIC (
identifier type initial_value )
PORT ( identifier mode type ) END
Component Instance
identifier component_entity_name GENERIC
MAP ( identifier ,identifier ) PORT
MAP ( identifier ,identifier )
mode IN OUT INOUT
type std_logic std_logic_vector(n downto 0)
bit
4
VHDL Concurrent Statements
Example y lt NOT ( NOT (a) AND NOT (b) )
Example 2 to 1 multiplexor WITH s SELECT y lt a
WHEN 0, b WHEN OTHERS
5
VHDL Concurrent Statements
Conditionial signal assignment
signal lt signal_value1 WHEN condition1
ELSE signal_valuen WHEN
conditionn ELSE signal_valuen1
Example Priority Encoder y lt a WHEN s0 ELSE
b
6
SR Flip-Flop (Latch)
Q lt R NOR NQNQ lt S NOR Q
Q lt R NAND NQNQ lt S NAND Q
7
SR Flip-Flop (Latch)
Example R lt 1, 0 after 10ns, 1 after
30ns S lt 1
8
Gated-Clock SR Flip-Flop (Latch Enable)
Q lt (S NAND LE) NAND NQ
S
NQ lt (R NAND LE) NAND Q
Q
LE
Synchronous Set and Reset
Q
R
Asynchronous Preset and Clear
Latches require that during the gated-clock the
data must also be stable (i.e. S and R) at the
same time
Suppose each gate was 5ns how long does the
clock have to be enabled to latch the data?
Answer 15ns
9
Rising-Edge Flip-flop
10
Rising-Edge Flip-flop logic diagram
11
Synchronous Sequential Circuit
12
Abstraction Finite State Machine
13
FSM Representations
14
Simple Design Example
15
State Encoding
16
Logic Implementations
17
FSM Observations
18
Coke Machine Example
19
Coke Machine State Diagram
20
Coke Machine Diagram II
21
Moore Machines
22
Mealy Machines
Write a Comment
User Comments (0)
About PowerShow.com