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.

Slides:



Advertisements
Similar presentations
CSE 205: Digital Logic Design
Advertisements

Registers and Counters
CENG 241 Digital Design 1 Lecture 11
Sequential Circuits A Basic sequential circuit is nothing but a combinational circuit with some feedback paths between its output and input terminals.
RIPPLE COUNTERS A register that goes through a prescribed sequence of states upon the application of input pulses is called a counter. The input pulses.
Registers and Counters
Logic and Computer Design Fundamentals Registers and Counters
COE 202: Digital Logic Design Sequential Circuits Part 4 KFUPM Courtesy of Dr. Ahmad Almulhem.
C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.
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.
KU College of Engineering Elec 204: Digital Systems Design
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:
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.
Mantıksal Tasarım – BBM231 M. Önder Efe
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
CSI-2111 Computer Architecture Ipage Sequential circuits, 2nd part v Objectives: To recognize and know to use the principal types of sequential.
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
Chapter 6 Registers and Counter
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
Princess Sumaya Univ. Computer Engineering Dept. Chapter 6:
Registers and Counters by Dr. Amin Danial Asham. References  Digital Design 5 th Edition, Morris Mano.
Digital Design Lectures 11 & 12 Shift Registers and Counters.
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.
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
C HAPTER F IVE S YNCHRONOUS S EQUENTIAL L OGIC 1.
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.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
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.
EKT 221 – Counters.
EKT 221 : Digital 2 COUNTERS.
Digital System Design Review.
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 ).
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
Synchronous sequential
Digital Logic Department of CNET Chapter-6
Outline Registers Counters 5/11/2019.
Digital Electronics and Logic Design
Presentation transcript:

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 path. A circuit with flip-flops is considered a sequential circuit even in the absence of combinational gates. Circuits that include flip-flops are classified by the function they perform. Two such circuits are registers and counters. 2

A register is a group of flip-flops, each one of which is capable of storing one bit of information. An n-bit register consists of a group of n flip-flops. A register consists of a group of flip-flops together with gates that affect their operation. (they determine how the information is transferred into register). A counter is a special type of register that goes through a predetermined sequence of binary states. 3

4 Four-bit register

R EGISTER WITH PARALLEL LOAD The transfer of new information into a register is referred to as loading or updating the register. If all the bits of the register are loaded simultaneously with a common clock pulse, we say that the loading is done in parallel. 5 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.

6 Four-bit register with parallel load Two channel mux

S HIFT R EGISTERS A register capable of shifting the binary information held in each cell to its neighboring cell in a selected direction is called a shift register. It consists of a chain of flip-flops in cascade, with the output of one flip-flop connected to the input of the next flip-flop. All flip-flops receive common clock pulses, which activate the shift of data from one stage to the next. We can control the shift operation by connecting (shift control) with the clock through an AND gate 7

8 Four-bit shift register input1011 F.F #1 (0)F.F #2 (0)F.F #3 (0)F.F #4 (0)

S ERIAL T RANSFER A digital system is said to operate in serial mode when information is transferred and manipulated one bit at a time. Information is transferred one bit at a time by shifting the bits out of the source register into the destination register. The serial transfer of information from register A to register B is done with shift registers where the SO of register A is connected to the SI of register B. 9

10 Serial transfer from register A to register B

11

12 In the parallel mode, information is available from all bits of a 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 the registers are shifted in the same direction.

S ERIAL A DDITION 13

14

15

U NIVERSAL SHIFT REGISTER A register capable of shifting in one direction only is a unidirectional shift register. A register capable of shifting in both direction is a bidirectional shift register. If the register has both shifts and parallel-load capabilities, it is referred to as a universal shift register. 16

The most general shift register has the following capabilities:  A clear control to clear the register to 0.  A clock input to synchronize the operation.  A shift-right control and the serial input & output lines associated with it.  A shift-left control and the serial input & output lines associated with it.  A parallel-load control and the n input lines associated with the parallel transfer.  n parallel output lines.  A control state that leaves the information in the register unchanged in response to the clock. 17

18

19

R IPPLE COUNTERS (A SYNCHRONOUS ) A register that goes through a prescribed sequence of states upon the application of the clock pulses is called a counter. A counter that follows the binary number sequence is called a binary counter. An n -bit binary counter consists of n flip-flops and can count in binary from 0 to 2 n -1. Counters are available in two categories:  Ripple counters (Asynchronous)  Synchronous counters 20

B INARY RIPPLE COUNTER It consists of a series connection of complementing flip-flops ( T or D or JK ), with the output of each flip-flop connected to the C input of the next higher order flip-flop. The flip-flop holding the LSB receives the incoming count pulses. The T inputs of all the flip-flops are connected to logic 1, making each f-f complement if the clock input goes through a negative transition. For D f-f, the complemented output connected to the D input. 21

22

23

BCD R IPPLE COUNTER (D ECADE C OUNTER ) A decimal counter follows a sequence of 10 states and returns to 0 after the count of 9. The BCD counter is a decade counter, since it counts from 0 to 9. 24

26

To count in decimal from 0 to 99, we need a two- decade counter. To count in decimal from 0 to 999, we need a three-decade counter. 27

S YNCHRONOUS COUNTERS They are different from ripple counters in that clock pulses are applied to the input of all flip-flops. The decision whether a flip-flop is to be complemented is determined from the values of the data inputs. If T = 0 or J = K = 0, the flip-flop does not change state. If T = 1 or J = K = 1, the flip-flop complements. 28

29 A0A0 A1A1 A2A2 A3A3

30

31 F LIP -F LOPS T Flip-Flop D = TQ’ + T’Q = T  Q JQ QK T DQ Q T D = JQ’ + K’Q TQ Q

U P - DOWN B INARY COUNTER The LSB is complemented with each pulse. A bit in any other position is complemented if all lower significant bits are equal to Up i/pDown i/pOperation 00No change 01Count down 10Count up 11Count up (up has higher priorty over the down)

33

34 T Q1 = 1 T Q2 = Q’ 8 Q 1 T Q4 = Q 2 Q 1 T Q8 = Q 8 Q 1 + Q 4 Q 2 Q 1 Y = Q 8 Q 1 BCD C OUNTER

B INARY COUNTER WITH PARALLEL LOAD Counters in digital systems require a parallel- load capability for transferring an initial binary number into the counter prior to the count operation. 35

36 Asynchronous clear

37

Using this counter as BCD counter 38 Initially the counter is cleared to 0 then put clear = count =1

The problems are : 6.2, 6.4, 6.8, , 6.7, 6.11, 6.12, , 6.22, 6.27,