A.Abhari CPS2131 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:

Slides:



Advertisements
Similar presentations
Registers and Counters
Advertisements

CENG 241 Digital Design 1 Lecture 11
A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
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.
Dr. ClincyLecture1 Appendix A – Part 2: Logic Circuits Current State or output of the device is affected by the previous states Circuit Flip Flops New.
Digital Logic Design Lecture 23. Announcements Homework 8 due Thursday, 11/20 Exam 3 coming up on Tuesday, 11/25.
Registers and Counters
Logic and Computer Design Fundamentals Registers and Counters
ENGIN112 L27: Counters November 5, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 27 Counters.
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.
Sequential Circuit Introduction to Counter
C HAPTER S IX R EGISTERS AND C OUNTERS 1. A clocked sequential circuit consists of a group of flip-flops and combinational gates connected to form a feedback.
REGISTER A Register is a group of binary storage cells suitable for holding binary information. A group of flip-flops constitutes a register, since each.
Registers and Counters
Counters  A counter is a device which stores (and sometimes displays) the number of times a particular event or process has occurred, often in relationship.
Counters.
Registers and Counters
Chapter 1_4 Part II Counters
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
Registers and Counters
Objectives: Given input logice levels, state the output of an RS NAND and RS NOR. Given a clock signal, determine the PGT and NGT. Define “Edge Triggered”
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.
Registers and Counters
Rabie A. Ramadan Lecture 3
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 by Dr. Amin Danial Asham. References  Digital Design 5 th Edition, Morris Mano.
7-6 단일 레지스터에서 Microoperation Multiplexer-Based Transfer  Register 가 서로 다른 시간에 둘 이상의 source 에서 data 를 받을 경우 If (K1=1) then (R0 ←R1) else if (K2=1) then.
1 Registers & Counters Logic and Digital System Design - CS 303 Erkay Savaş Sabancı University.
ENG241 Digital Design Week #8 Registers and Counters.
Registers and Counters Chapter 6. Digital Circuits 2 Clocked sequential circuits a group of flip-flops and combinational gates connected to form a feedback.
Chap 5. Registers and Counters. Chap Definition of Register and Counter l a clocked sequential circuit o consist of a group of flip-flops & combinational.
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
CHAPTER 6 Sequential Circuits’ Analysis CHAPTER 6 Sequential Circuits’ Analysis Sichuan University Software College.
Registers and Counters
C HAPTER S IX R EGISTERS AND C OUNTERS 1. A clocked sequential circuit consists of a group of flip-flops and combinational gates connected to form a feedback.
Digital Electronics.
COUNTERS Why do we need counters?
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Chap 5. Registers and Counters
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.
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.
Logic Design (CE1111 ) Lecture 6 (Chapter 6) Registers &Counters Prepared by Dr. Lamiaa Elshenawy 1.
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.
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
Registers and Counters
EKT 221 : Digital 2 COUNTERS.
Sequential Logic Counters and Registers
Dr. Clincy Professor of CS
Registers and Counters
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 ).
Computer Architecture and Organization: L02: Logic design Review
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
Outline Registers Counters 5/11/2019.
Counters.
Digital Electronics and Logic Design
Presentation transcript:

A.Abhari CPS2131 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 serial registers. They differ in the manner in which the binary data is loaded and retrieved from them

A.Abhari CPS Bit Register 4-bit register constructed with four positive edge-triggered D-type flip-flops with parallel load. Positive-edge-triggered D flip flop responses (i.e., value of D transfers to Q) only to the transition from 0 to 1 and nothing else The positive-edge-triggered D flip flop that is used in a 4-bit register has also additional direct reset input named CLEAR or RESET. When CLEAR is 0 the flip flop is resetting independent of clock and D values. It is useful because in digital systems when the power is turned on the state of flip-flops is unknown. Direct input CLEAR can bring all flip-flops to the known starting state prior to the clock operation. Next slid shows positive-edge-D flip flop with asynchronous reset.

A.Abhari CPS2135 Register with Parallel load If all bits of the register are loaded simultaneously with a common clock pulse, we say that the loading is done in parallel When we want some registers remain unchanged (even with clock changes) we can use a load control input (see the next slide) The load input determines whether the next pulse will accept new information or leave the information in the register intact.

A.Abhari CPS bit Parallel Register 4-bit parallel register can be implemented with negative-edge-triggered-DFF as well. Here is the review of the graphic symbols for positive and negative edge-triggered DFF

A.Abhari CPS2138 Writing in the 4-bit Parallel Register Circuit uses a series of negative-edge- triggered-DFF The clock input to all flip-flops are connected to active-low write line (WR) The flip flops are triggered when WR line changes to logic 0 See the figure presented in the class

A.Abhari CPS2139 Reading and Writing in 4-bit Parallel Register with tri-state output By adding active low read line (RD) the output of register can be read We can use tri-state buffers (enable with logic 0) connected to each output line to be able to put output on the bus when we need If RD is inactive (logic 1 state ) the outputs of registers are in high-impedance (Z) state and register can be load with input line so by changing WR to 0 the input written in register. When RD is active (logic 0 state) by keeping WR line inactive, buffers are active and output of FFs can be read. Can not R and W in the same time. See the figure presented in the class

A.Abhari CPS21310 Shift Register A register capable of shifting its binary information in one or both directions is called a shift register For example by connecting the output of each D flip-flop to the input of another D flip flop in its right, each clock pulse shifts the content of the register one bit position to the right. The serial input determines what goes into the leftmost flip flop during the shift. The serial output is taken from the output of the rightmost flip flop.

A.Abhari CPS21311

A.Abhari CPS21312 Serial Transfer The difference between serial transfer and parallel transfer is: In the parallel mode information is available from all bits of register and all bits can be transferred simultaneously during one clock pulse. In the serial mode, the registers have a single serial input and a single serial output. The information is transferred one bit at a time while registers are shifted in the same direction

A.Abhari CPS21313 Serial Transfer For example next slide shows the serial transfer from register A to register B by using shift register To prevent the loss of information stored in the source register the serial output of A is connected to its serial input The shift control input determines when and how many times the register are shift. Here each register has four bits and each rising edge of the pulse cause a one bit shift in each register. For a fixed time of four clock pulses the content of A is transferred into B, while the contents of A remains unchanged.

A.Abhari CPS21315 Ripple Counters A register goes through a prescribed sequence of states upon the application of input pulses is called counter An n bit binary counter consists of n flip- flops and can count 2 n – 1 Asynchronous counters don’t have common clock connected to their C input. Next slide shows Asynchronous 4-bit binary counter

A.Abhari CPS21317 Ripple Counters When using DFF for binary counter the complement output connected to D input to make sure D input is always the complement of the present state, therefore the next pulse will cause the FF to complement BCD ripple counter follows same sequence but returns to 0 after counting to 9. See next two slides

A.Abhari CPS21318

A.Abhari CPS21320 Counts from 0 to 999

A.Abhari CPS Bit Binary Counter In the synchronous counters clock pulses are applied to the input of all flip-flops For designing a 3-bit counter we can simply follow the design procedure for sequential circuits First we design state diagram and then by finding state table and flip-flop equations we design the circuit (see next three slides)

A.Abhari CPS21322

A.Abhari CPS21323 A2 A1A0

A.Abhari CPS21324

A.Abhari CPS21325 Synchronous Counter In synchronous binary counter, the flip-flop in the least significant position is complemented with every pulses. Also each FF is complemented when all FFs in the lower significant positions are equal to 1. For example in the next slide A0 is always complemented. A1 is complemented when the present state of A0 is 1. A2 is complemented when present state of A1A0=11. A3 is complemented when present state of A2A1A0=111. By using this pattern we can design 4 bit synchronous counter easier than going through the sequential design process. (see next slides)

A.Abhari CPS21327 Up-Down Binary Counter A synchronous count down binary counter goes through the binary states in the reverse order from 1111 down to 0000 and back to 1111 The least significant bit is always complemented. Each bit is complemented if all the lower bits are equal to 0 The two operations can be combined in one circuit to form a counter capable of counting either up or down When up and down inputs are 0, the circuit does not change state and when there are both 1, the circuit counts up.