Registers and Counters

Slides:



Advertisements
Similar presentations
Lecture 23: Registers and Counters (2)
Advertisements

CSE 205: Digital Logic Design
Registers and Counters
CENG 241 Digital Design 1 Lecture 11
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.
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.
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.
A presentation on Counters
Counters.
Chapter 1_4 Part II Counters
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
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.
Registers and Counters
Rabie A. Ramadan Lecture 3
P. 4.1 Digital Technology and Computer Fundamentals Chapter 4 Digital Components.
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.
Chapter 6 Registers and Counters
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.
Sequential logic circuits
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?
ECE/CS 352 Digital System Fundamentals© T. Kaminski & C. Kime 1 ECE/CS 352 Digital Systems Fundamentals Fall 2000 Chapter 5 – Part 2 Tom Kaminski & Charles.
SYEN 3330 Digital SystemsJung H. Kim 1 SYEN 3330 Digital Systems Chapter 7 – Part 2.
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.
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.
Shift Register Counters
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
FIGURE 6.1 Four‐bit register
EKT 221 – Counters.
Prof. Hsien-Hsin Sean Lee
EKT 221 : Digital 2 COUNTERS.
Sequential Logic Counters and Registers
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
6. Registers and Counters
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.
Digital Electronics and Logic Design
Presentation transcript:

Registers and Counters Chapter 6 Registers and Counters

Registers Register and counter logic circuits contain flip-flops A “register” is a group of flip-flops , each one is capable of storing “1 bit” of information A n-bit register consists of a group of n flip-flops capable of storing n bits of binary information. A “counter” is a register that goes through a sequence of binary states

Registers- four bit register

Register - Four-bit register with parallel load Additional gates implement 2-channel mux Data is always transfer at positive clock pulse When “Load-input” is “1” ,the data from inputs transfer to registers When “Load-input” is “0” ,the flip-flop output (present state) transfer to register and implement “no change” condition

Register - Four-bit register with parallel load

Shift registers Shifting of binary information from one cell to its neighboring cell ,is called “shift register” The output of one flip-flop is connected to input of next flip-flop All flip-flop receive common clock pulses, which shift the data from one stage to the next

Shift registers The shift can be contro11ed with an input by connecting the CLK through an AND gate

Shift registers – serial transfer The “serial - mode”, transfer and manipulate one bit information at a time The “parallel – mode”, information is available from all bits of a register and all bits can be transferred simultaneously during one clock pulse

Shift registers – serial transfer

Shift registers – Example

Serial addition(D flip-flop) Parallel adder is a combinational circuit, while serial adder is a sequential one Note : Serial operations are slower compare to parallel operation

Serial addition(JK flip-flop)

Serial addition(JK flip-flop)

Universal Shift Registers The general shift registers have following capabilities: A clear control to clear the register to 0 A clock input to synchronize the operation A shift-right control to enable the shift-right operation A shift-left control to enable the shift-left operation A parallel-load control enable, n-input lines associated with the parallel transfer n parallel output lines A control state ,that leaves the information unchanged

Universal Shift Registers If the register has both shifts and parallel-load capabilities, it is referred to as a universal shift register

Ripple Counters A register that goes through sequence of states upon application of input pulses is called a “Counter” A counter that follows the binary number sequence is called a binary counter A n-bit binary counter consists of n flip-flops and counts from 0 through 2ⁿ -1 Counter are divided into two categories, Ripple counters Synchronous counters

Binary Ripple Counter A1 goes from 1 to 0, it complements A2 and so on for any other higher order A binary counter with a reverse count is called a binary “countdown counter” The true output goes from 0 to 1

BCD Ripple Counter A decimal counter is similar to a binary counter, except that the state after 1001 (the code for decimal digit 9) is 0000 (the code for decimal digit 0)

BCD Ripple Counter

SYNCHRONOUS COUNTERS Binary Counter If the enable input is 0,aII J and K inputs are equal to “0” and clk does not change the state of the Counter J and K inputs are equal to 1 if all previous least significant stages are equal to 1 and the count is enabled A synchronous countdown binary counter goes through the binary states in reverse order, 1 11 1 down to 0000 and back to 11 1 1 to repeat the count

Up-Down Binary Counter SYNCHRONOUS COUNTERS Up-Down Binary Counter When the up input is 1, the circuit counts up, since the T inputs receive their signals from the values of the previous normal outputs of the flip-flop When the down input is 1 and the up input is 0, the circuit counts down, since the complemented outputs of the previous flip-flops are applied to the T input When the up and down inputs are both 0, the circuit does not change state and remains in the same count When the up and down inputs are both I, the circuit counts up Note: The up input has priority over the down input.

Binary counter with parallel load

BCD counter with parallel load

Counter with unused states OTHER COUNTERS Counter with unused states

Ring Counter A ring counter is a circular shift register with only one flip-flop being set at any particular time; all others are cleared The single bit is shifted from one flip-flop to the next to produce the sequence of timing signals

Johnson counter It is possible to generate a timing signals with a combination of a shift register and a decoder. That way, the number of flip-flops is less than in a ring counter, and the decoder requires only two input gates. This combination is called a “Johnson Counter” In general, a k-bit switch-tail ring counter will go through a sequence of 2k states A Johnson counter is a k-bit switch-tail ring counter with 2k decoding gate to provide outputs for 2k timing signals

Johnson counter

Home work 6.2, 6.4, 6.6, 6.7,6.8, 6.9, 6.11, 6.12, 6.13, 6.14,6.16, 6.17, 6.18, 6.19, 6.20, 6.24, 6.25, 6.27, 6.28, 6.29, 6.30