Sequential Logic - PowerPoint PPT Presentation

1 / 14
About This Presentation
Title:

Sequential Logic

Description:

Tutorial 2 Sequential Logic Registers A register is basically a D Flip-Flop A D Flip Flop has 3 basic ports. D, Q, and Clock Registers Registers are edge sensitive to ... – PowerPoint PPT presentation

Number of Views:128
Avg rating:3.0/5.0
Slides: 15
Provided by: Bry119
Category:
Tags: logic | sequential

less

Transcript and Presenter's Notes

Title: Sequential Logic


1
Tutorial 2
  • Sequential Logic

2
Registers
  • A register is basically a D Flip-Flop
  • A D Flip Flop has 3 basic ports. D, Q, and Clock

3
Registers
  • Registers are edge sensitive to the clock
  • On a rising edge of the clock, the output of the
    flip flop (Q) takes on the value of the input
    (D). This is known as clocking in.
  • When its NOT the rising edge of the clock, Q
    doesnt change even if D does
  • A register is often considered the most basic
    block of memory, because the value of D is stored
    in the register until the next clock cycle

4
Sequential Circuits
  • A sequential circuit is any digital design that
    has registers in it

5
Processes
  • In VHDL, sequential logic is described in a
    process
  • process(clk)
  • begin
  • if rising_edge(clk)
  • q lt d
  • end if
  • End process
  • The rising_edge (or falling_edge) statement is a
    key word. Anything assignments in this if block
    is registered.

6
Processes
  • In a process, inside an if rising_edge block,
    all assignments are registered
  • This means that on an assignment statement,
    everything to the LEFT of the lt is the output of
    a DFF and everything to the RIGHT is the input to
    a DFF

7
Processes
  • The previous example described a DFF. Lets
    describe something else.
  • If rising_edge(clk) then
  • a lt b
  • c lt a
  • end if
  • What does the hardware look like?

8
Processes
9
Processes
  • Lets mix it up a bit
  • If rising_edge(clk) then
  • a lt b
  • c lt b
  • end if
  • What does the hardware look like?

10
Processes
11
Processes
  • Lets put some combinational logic between those
    registers!
  • If rising_edge(clk) then
  • a lt b and c
  • d lt a and b
  • end if
  • What does the logic look like?

12
Processes
13
Processes
  • Registers can also feed back on themselves
  • Process (clk)
  • if rising_edge(clk) then
  • a lt b or c
  • d lt a xor d
  • end if
  • end process
  • What does this hardware look like?

14
Processes
Write a Comment
User Comments (0)
About PowerShow.com