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.

Slides:



Advertisements
Similar presentations
Digital System Design-II (CSEB312)
Advertisements

D Flip-Flop.
1 CSULB -- CECS 201 – A Primer for FSM’s © 2014 R.W. Allison.
VHDL Lecture 1 Megan Peck EECS 443 Spring 08.
Synchronous Counters with SSI Gates
Lecture #24 Page 1 EE 367 – Logic Design Lecture #24 Agenda 1.State Machines Review Announcements 1.n/a.
Sequential Logic in Verilog
Synchronous Sequential Logic
IN2305-II Embedded Programming Lecture 2: Digital Logic.
Registers and Counters. Register Register is built with gates, but has memory. The only type of flip-flop required in this class – the D flip-flop – Has.
Sequential Digital Circuits Dr. Costas Kyriacou and Dr. Konstantinos Tatas.
Digital Logic Design Brief introduction to Sequential Circuits and Latches.
Latches Module M10.1 Section 7.1. Sequential Logic Combinational Logic –Output depends only on current input Sequential Logic –Output depends not only.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
Latches Section 4-2 Mano & Kime. Sequential Logic Combinational Logic –Output depends only on current input Sequential Logic –Output depends not only.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
Fall 2007 L16: Memory Elements LECTURE 16: Clocks Sequential circuit design The basic memory element: a latch Flip Flops.
Sequential Circuit Introduction to Counter
ENG2410 Digital Design LAB #6 LAB #6 Sequential Logic Design (Flip Flops)
Flip Flops 3.1 Latches and Flip-Flops 3 ©Paul Godin Created September 2007 Last Edit Aug 2013.
SEQUENTIAL LOGIC By Tom Fitch. Types of Circuits Combinational: Gates Combinational: Gates Sequential: Flip-Flops Sequential: Flip-Flops.
CE1110: Digital Logic Design Sequential Circuits.
VHDL – Behavioral Modeling and Registered Elements ENGIN 341 – Advanced Digital Design University of Massachusetts Boston Department of Engineering Dr.
Chapter 6 – Digital Electronics – Part 1 1.D (Data) Flip Flops 2.RS (Set-Reset) Flip Flops 3.T Flip Flops 4.JK Flip Flops 5.JKMS Flip Flops Information.
A sequential logic circuit (a.k.a. state machine) consists of both combinational logic circuit(s) and memory devices (flip flops). The combinational circuits.
ECE 545—Digital System Design with VHDL Lecture 1
Flip Flops 3.1 Latches and Flip-Flops 3 ©Paul Godin Created September 2007 Last Edit Aug 2013.
ECE 301 – Digital Electronics Brief introduction to Sequential Circuits and Latches (Lecture #14)
ECE 331 – Digital System Design Introduction to Sequential Circuits and Latches (Lecture #16)
Counters and registers Eng.Maha Alqubali. Registers Registers are groups of flip-flops, where each flip- flop is capable of storing one bit of information.
Sequential Logic Circuit Design Eng.Maha Alqubali.
DIGITAL LOGIC CIRCUITS 조수경 DIGITAL LOGIC CIRCUITS.
Appendix C Basics of Logic Design. Appendix C — Logic Basic — 2 Logic Design Basics §4.2 Logic Design Conventions Objective: To understand how to build.
Computer Science 210 Computer Organization
Computer Architecture & Operations I
LAB #6 Sequential Logic Design (Flip Flops, Shift Registers)
Class Exercise 1B.
Computer Organization
Introduction to Advanced Digital Design (14 Marks)
Computer Architecture & Operations I
Clock in Digital Systems
Sequential Logic Counters and Registers
Flip-FLops and Latches
Flip Flops.
Digital Design Lecture 9
ECE 4110–5110 Digital System Design
INTRODUCTION Overview of Shift Registers
DR S. & S.S. GHANDHY ENGINEENRING COLLEGE
Flip Flop.
Computer Science 210 Computer Organization
D Flip-Flop.
Flip-FLops and Latches
Introduction to Sequential Logic Design
DIGITAL ELECTRONICS THEME 7: Register structures – with parallel input, with serial input. Shift registers – reversible, cycle. Register structures are.
Latches and Flip-flops
Flip-FLops and Latches
Sequential logic circuits
Jeremy R. Johnson Mon. Apr. 3, 2000
Computer Science 210 Computer Organization
Elec 2607 Digital Switching Circuits
Flip-FLops and Latches
Flip-FLops and Latches
CS341 Digital Logic and Computer Organization F2003
ECE 545—Digital System Design with VHDL Lecture 1
FLIP-FLOPS.
Sequential Logic.
Flip-FLops and Latches
Sequential Digital Circuits
FLIP-FLOP. The basic memory circuit is known as Flip-flop. OR It is a bistable sequential circuit which has two stable state (set & reset) and can be.
(Sequential-Circuit Building Blocks)
Presentation transcript:

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 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 it’s NOT the rising edge of the clock, Q doesn’t 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

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

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

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 <= is the output of a DFF and everything to the RIGHT is the input to a DFF

Processes The previous example described a DFF. Let’s describe something else. If rising_edge(clk) then a <= b; c <= a; end if; What does the hardware look like?

Processes

Let’s mix it up a bit If rising_edge(clk) then a <= b; c <= b; end if What does the hardware look like?

Processes

Let’s put some combinational logic between those registers! If rising_edge(clk) then a <= b and c; d <= a and b; end if; What does the logic look like?

Processes

Registers can also feed back on themselves Process (clk) if rising_edge(clk) then a <= b or c; d <= a xor d; end if; end process; What does this hardware look like?

Processes