Registers and Counters

Slides:



Advertisements
Similar presentations
Registers and Counters
Advertisements

CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Flip-Flops, Registers, Counters, and a Simple Processor
EE2420 – Digital Logic Summer II 2013
1 Sequential Circuits Dr. Pang. 2 Outline Introduction to sequential circuits Basic latch Gated SR latch and gated D latch D flip-flop, T flip-flop, JK.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Sequential Circuits A Basic sequential circuit is nothing but a combinational circuit with some feedback paths between its output and input terminals.
Half Adder Sum = X’Y+XY’ = X  Y Carry = XY YXYXYX  YYYX  XX XOR XNOR.
Digital Digital: Chapter 8. Sequential Logic Design Practices 1 Chapter 8. Sequential Logic Design Practices.
Logic and Computer Design Fundamentals Registers and Counters
Sequential PLD timing Registers Counters Shift registers
CS370 Counters. Overview °Counter: A register that goes through a prescribed series of states °Counters are important components in computers. °Counters.
COE 202: Digital Logic Design Sequential Circuits Part 4 KFUPM Courtesy of Dr. Ahmad Almulhem.
Digital Logic Design Lecture 24. Announcements Homework 8 due today Exam 3 on Tuesday, 11/25. – Topics for exam are up on the course webpage.
Sistemas Digitais I LESI - 2º ano Lesson 8 - Sequential Design Practices U NIVERSIDADE DO M INHO E SCOLA DE E NGENHARIA Prof. João Miguel Fernandes
Sequential Circuit Introduction to Counter
Introduction Flip-flops are synchronous bistable devices. The term synchronous means the output changes state only when the clock input is triggered. That.
Registers and Counters
Digital Fundamentals Floyd Chapter 9 Tenth Edition
Sequential Circuit  It is a type of logic circuit whose output depends not only on the present value of its input signals but on the past history of its.
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
Unit 12 Registers and Counters Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
A presentation on Counters
Registers and Counters
Chapter 1_4 Part II Counters
Flip-Flop Applications Registers.  a register is a collection of flip-flops  basic function is to hold information  a shift register is a register.
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
Flip Flops. Clock Signal Sequential logic circuits have memory Output is a function of input and present state Sequential circuits are synchronized by.
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
Test #2 Combinational Circuits – MUX Sequential Circuits – Latches – Flip-flops – Clocked Sequential Circuits – Registers/Shift Register – Counters – Memory.
ECE 301 – Digital Electronics Flip-Flops and Registers (Lecture #15)
Counters Clocked sequential circuit whose state diagram contains a single cycle. Modulus – number of states in the cycle. Counters with non-power of 2.
1 Shift Registers. –Definitions –I/O Types: serial, parallel, combinations –Direction: left, right, bidirectional –Applications –VHDL implementations.
Registers and Counters
EE24C Digital Electronics Projects
CHAPTER 12 REGISTERS AND COUNTERS
Registers & Counters M. Önder Efe
1 Registers and Counters A register consists of a group of flip-flops and gates that affect their transition. An n-bit register consists of n-bit flip-flops.
Rabie A. Ramadan Lecture 3
Digital Design: Principles and Practices
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
Registers and Counters Chapter 6. Digital Circuits 2 Clocked sequential circuits a group of flip-flops and combinational gates connected to form a feedback.
REGISTER A register is a group of flip-flops. Each flip- flop is capable of storing one bit of informa­ tion. An n-bit register consists of a group of.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Registers Page 1. Page 2 What is a Register?  A Register is a collection of flip-flops with some common function or characteristic  Control signals.
Sequential logic circuits
Registers and Counters
Digital Electronics Electronics Technology Landon Johnson Shift Registers.
Digital System Design using VHDL
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
DIGITAL COMPONENTS. MULTIPLEXERS A multiplexer is a combinational circuit that receives binary information from one of 2 n input data lines and directs.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Modular sequential logic Use latches, flip-flops and combinational logic –Flip-flops usually grouped to form a register Shift registers –n bits {x n …x.
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.
1 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers: parallel and.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
Prof. Hsien-Hsin Sean Lee
Sequential Logic Counters and Registers
Registers and Counters Register : A Group of Flip-Flops. N-Bit Register has N flip-flops. Each flip-flop stores 1-Bit Information. So N-Bit Register Stores.
COE 202: Digital Logic Design Sequential Circuits Part 4
29-Nov-18 Counters Chapter 5 (Sections ).
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Computer Architecture and Organization: L02: Logic design Review
Switching Theory and Logic Design Chapter 5:
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
14 Digital Systems.
Outline Registers Counters 5/11/2019.
Presentation transcript:

Registers and Counters EE 208 – Logic Design Chapter 6 Registers and Counters Sohaib Majzoub

Latches, Flip-flops and Registers A latch is an asynchronous memory device. Two kind of latches: SR-Latch and D-Latch. SR-Latch, Set/Reset Latch, 11 is an illegal state: D-Latch, Data Latch, eliminates the 11 state but reduces the number of inputs to one

Latches, Flip-flops and Registers A Flip-flop is a synchronous device with clock input. It combines two latches (whether SR or D) together using different configurations Four kinds of flip-flops: SR, D, JK, and T. SR: has some problems such as 00 and 11 cases, and pulse triggered and not edge triggered. SR stores last even while clock is high, in case of more than one event it records the last event.

Latches, Flip-flops and Registers DFF: eliminate the 00 and 11 cases, and uses edge triggered clock, a better event triggering method. DFF has one data input, might be limited for a certain applications. Master-Slave JK: uses SR as base flop, eliminating 00 and 11 cases but still plus triggered. Edge Triggered JK: uses DFF as base flop, eliminating the 00 and 11 cases and uses edge triggered.

Latches, Flip-flops and Registers JK, both Master/Slave and Edge Triggered, implements additional toggle state when both inputs are 1. T flip-flop, toggle flip-flop: uses DFF (QN used as a feedback to the input of DFF), or uses edge triggered JK with a fixed logic one at both inputs.

Latches, Flip-flops and Registers A register is a group of flip-flops along with control gates for holding binary information. Each flip-flop can hold a one bit of information. An n-bit binary information requires an n number of flip-flops. The control gates used to control the read and writing operation to the flip-flops.

DFF as Storing Device The simplest form of registers is a group of flip-flops with no external/control gates. At the rise of each clock signal a new binary information is stored in the flip-flops. May need to gate the clock ( and the input) if need to keep the same stored value over more than one cycle.

Registers (using DFF) DFF has one input => limitation, requires a feedback to implement load signal. Adding an enable (or load) control to a DFF uses the feedback signal to reload Q. When EN line is at logic 0 => previous output is load again at the input. When EN line is at logic 1 => a new input is stored in the Register

Registers (using SR) Using SR flip-flop might give a better control to keep the same stored data for more than one cycle. The data will be loaded into the register only if the load signal is activated. Pulse triggered and not edge triggered.

Registers (Using JK) Edge Triggered register need a JK and cannot be implemented using SR.

Shift Registers A shift register is an n-bit register with capability of shifting its stored data by one bit position at each clock cycle. One of the most important application of shift registers is: serial-in/parallel-out (serial-to-parallel conversion), parallel-in/serial-out (parallel-to-serial conversion).

Serial-In Parallel-Out Shift Register

Parallel-In Serial-Out Shift Register

Parallel-In Parallel-Out Shift Register

Princess Sumaya University 4241 - Digital Logic Design Serial Addition

Universal or Bidirectional Shift Register A CLR control to clear the register to zero. A CLK input for clock pulses to synchronize all operations. A shift-right control to enable the shift-right operation and the serial input and output lines associated with the shift right. A shift-left control to enable the shift-left operation and the serial input and output lines associated with the shift left. A parallel load control to enable a parallel transfer and the n input lines associated with the parallel transfer. n parallel output lines.

Universal Shift Register

Universal Shift Register

Serial-to-Parallel Conversion

Serial-to-Parallel Conversion

Counters The name counter is usually used for any clocked sequential system whose state diagram contains a single cycle. The modulus of the counter is the number of states in the cycle. An m-counter is a modulo m counter

Ripple Counter An n-bit binary counter uses n TFF that can produce 2n states. The counter will start counting starting from 0 upwards to 2n – 1: 0,1,2,…, 2n – 1, then it will restart to zero after reaching 2n – 1. This counter is called ripple because the clock ripple from the least significant bit to the most significant bit. Example: 4-bit ripple counter: 0000,0001,0010,0011,0100,0101,0110,0111,1000, 1001,1010,1011,1100,1101,1110,1111.

Ripple Counter

Synchronous Counters Ripple counter is very slow counter (clock ripples through all flops). A synchronous counter connects all of its flip-flop clock inputs to the same common CLK signal. (all the flip-flop outputs change at the same time). An enable line should be used, the output toggles only in EN is 1.

Synchronous Binary Counter Serial enabled counter Start counting when count EN is 1 (CNTEN=1) EN0 = CNTEN EN1 = Q0*CNTEN EN2 = Q1*EN1 EN3 = Q2*EN2

Synchronous Binary Counter Enable line signals are shifted because of gate delay

Synchronous Binary Counter Serial enabled counter Start counting when count EN is 1 (CNTEN=1) EN0 = CNTEN EN1 = Q0*CNTEN EN2 = Q1*Q0*CNTEN EN3 = Q2*Q1*Q0*CNTEN