Registers and Counters

Similar documents
Registers and Counters

Registers and Counters

Registers & Counters. Logic and Digital System Design - CS 303 Erkay Savaş Sabanci University

Chapter 6 Registers and Counters

Sequential Digital Design. Laboratory Manual. Experiment #7. Counters

Registers and Counters

Lecture 12. Amirali Baniasadi

CSC Computer Architecture and Organization

MC9211 Computer Organization

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

Experiment 8 Introduction to Latches and Flip-Flops and registers

EET2411 DIGITAL ELECTRONICS

Experiment # 9. Clock generator circuits & Counters. Digital Design LAB

Counter dan Register

Counters

Registers & Counters. BME208 Logic Circuits Yalçın İŞLER

Asynchronous (Ripple) Counters

Logic Design. Flip Flops, Registers and Counters

Vignana Bharathi Institute of Technology UNIT 4 DLD

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

CHAPTER1: Digital Logic Circuits

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

Registers and Counters

Chapter 3 Unit Combinational

Digital Fundamentals: A Systems Approach

Figure 30.1a Timing diagram of the divide by 60 minutes/seconds counter

Department of CSIT. Class: B.SC Semester: II Year: 2013 Paper Title: Introduction to logics of Computer Max Marks: 30

Sri Vidya College of Engineering And Technology. Virudhunagar Department of Electrical and Electronics Engineering

UNIVERSITI TEKNOLOGI MALAYSIA

Serial In/Serial Left/Serial Out Operation

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it,

Universal Asynchronous Receiver- Transmitter (UART)

Chapter 4. Logic Design

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

EKT 121/4 ELEKTRONIK DIGIT 1

CS T34-DIGITAL SYSTEM DESIGN Y2/S3

Other Flip-Flops. Lecture 27 1

CHAPTER 4: Logic Circuits

CHAPTER 4: Logic Circuits

Chapter 7 Counters and Registers

Module -5 Sequential Logic Design

RS flip-flop using NOR gate

Flip-Flops and Sequential Circuit Design

RS flip-flop using NOR gate

1. Convert the decimal number to binary, octal, and hexadecimal.

ECE 263 Digital Systems, Fall 2015

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) COUNTERS

Logic Design II (17.342) Spring Lecture Outline

IT T35 Digital system desigm y - ii /s - iii

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

Digital Logic Design ENEE x. Lecture 19

ECE 172 Digital Systems. Chapter 2.2 Review: Ring Counter, Johnson Counter. Herbert G. Mayer, PSU Status 7/14/2018

Flip Flop. S-R Flip Flop. Sequential Circuits. Block diagram. Prepared by:- Anwar Bari

Introduction. Serial In - Serial Out Shift Registers (SISO)

Scanned by CamScanner

Chapter 2. Digital Circuits

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

Computer Organization & Architecture Lecture #5

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

DIGITAL SYSTEM DESIGN UNIT I (2 MARKS)

ELE2120 Digital Circuits and Systems. Tutorial Note 8

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

Contents Circuits... 1

problem maximum score 1 28pts 2 10pts 3 10pts 4 15pts 5 14pts 6 12pts 7 11pts total 100pts

CHAPTER 6 COUNTERS & REGISTERS

2. Counter Stages or Bits output bits least significant bit (LSB) most significant bit (MSB) 3. Frequency Division 4. Asynchronous Counters

Bachelor Level/ First Year/ Second Semester/ Science Full Marks: 60 Computer Science and Information Technology (CSc. 151) Pass Marks: 24

Lecture 8: Sequential Logic

1 Hour Sample Test Papers: Sample Test Paper 1. Roll No.

ELCT201: DIGITAL LOGIC DESIGN

LSN 12 Shift Registers

Sequential Logic Counters and Registers

COE 202: Digital Logic Design Sequential Circuits Part 1. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

Digital Circuits ECS 371

CSE Latches and Flip-flops Dr. Izadi. NOR gate property: A B Z Cross coupled NOR gates: S M S R Q M

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

1. a) For the circuit shown in figure 1.1, draw a truth table showing the output Q for all combinations of inputs A, B and C. [4] Figure 1.

Final Exam review: chapter 4 and 5. Supplement 3 and 4

ASYNCHRONOUS COUNTER CIRCUITS

LATCHES & FLIP-FLOP. Chapter 7

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

Fall 2000 Chapter 5 Part 1

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

More on Flip-Flops Digital Design and Computer Architecture: ARM Edition 2015 Chapter 3 <98> 98

Sequential Logic. E&CE 223 Digital Circuits and Systems (A. Kennings) Page 1

Digital Design, Kyung Hee Univ. Chapter 5. Synchronous Sequential Logic

Chapter 5: Synchronous Sequential Logic

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

ELEN Electronique numérique

Switching Theory And Logic Design UNIT-IV SEQUENTIAL LOGIC CIRCUITS

MUHAMMAD NAEEM LATIF MCS 3 RD SEMESTER KHANEWAL

DIGITAL TECHNICS. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

R13 SET - 1 '' ''' '' ' '''' Code No: RT21053

D Latch (Transparent Latch)

Agenda. EE 260: Introduction to Digital Design Counters and Registers. Asynchronous (Ripple) Counters. Asynchronous (Ripple) Counters

Chapter 6 Digital Circuit 6-5 Department of Mechanical Engineering

Transcription:

Registers and Counters Clocked sequential circuit = F/Fs and combinational gates Register Group of flip-flops (share a common clock and capable of storing one bit of information) Consist of a group of flip-flops together with gates that affect their operation (data transfer) Counter A register that goes through a predetermined sequence of binary states To produce the prescribed sequence of states 4 bit register Loading or updating the register @ positive edge of clock Output can be sampled at any time Asynchronously reset by Clear_b 1

Register with Parallel Load Master clock Loading and updating the register If the contents of the register must be left unchanged Inputs must be held constant Clock must be inhibited from the circuit Advisable to control the operation of the register with the D inputs Two channel MUX 2

6.2 Shift Registers A register capable of shifting the binary information in a selected direction A chain of flip-flops in cascade with the output of one flip-flop connected to the input of the next flip-flop All F/Fs receive common clock Unidirectional Controlled through the D inputs of F/F rather than through clk FIGURE 6.3 Four bit shift register 3

Serial Transfer In serial mode, one bit information is transferred and manipulate at a time In parallel mode, all bits is transferred simultaneously during 1 clk FIGURE 6.4 Serial transfer from register A to register B 4

Serial Addition Serial adder: two binary numbers to be added serially Differences Parallel load Number of fulladder circuits Combinational vs. Sequential circuit 5

Sequential Circuit Design 6

FIGURE 6.6 Second form of serial adder 7

Universal Shift Register Shift register can provide the input and output terminals for parallel transfer Shift right and shift-left capabilities Universal shift register = shift and parallel-load A clear control A clock input Shift right Shift left Parallel load N parallel output Unchanged Unidirectional shift register Bidirectional shift register 8

FIGURE 6.7 Four bit universal shift register 9

6.3 Ripple Counters Counter: a register goes through a prescribed sequence of states upon the application of input pulses Input pulses: clock pulses or external source (at a fixed interval of time or at random) Sequence: binary number sequence or any other sequence of states N bit binary counter: n flip-flops, count in binary from 0 through 2 n -1 Ripple counters: F/F output transition serves as a source for triggering other F/F (C is not common clock pulse) Synchronous counters: C inputs of all F/F receive the common clock 10

Binary Ripple Counter A series connection of complementing F/Fs JK flip-flop (input tied) T flip-flop Receive the incoming count pulses at the least significant bit (0011 0100) Binary countdown counter Positive edge of clock 11

BCD Ripple Counter A sequence of 10 states and return to 0 (binary code with four bits) Asynchronous sequential circuit 12

Three-decade Decimal BCD Counter FIGURE 6.11 Block diagram of a three decade decimal BCD counter 13

6.4 Synchronous Counters A common clock triggers all flip-flops simultaneously In a synchronous binary counter Flip-flop in the least significant position is complemented with every pulse Flip-flop in any other positions is complemented when all the bits in the lower significant positions are equal to 1 Regular pattern constructed with complementing F/Fs and gates 14

Up-Down Binary Counter A synchronous countdown binary counter Flip-flop in any other positions is complemented when all the bits in the lower significant positions are equal to 0 Inputs to the AND gates must come from the complemented outputs instead of normal Up-Down Counter Up input = 1 up count Down input = 1 down count Up and down inputs = both 0 no change Up and down inputs = both 1 up count Up input has priority over the down input 15

BCD Counter Binary-coded decimal from 0000 to 1001 and back to 0000 When 1001, y=1: enable the count of the nexthigher significant decade 16

Binary Counter with Parallel Load Parallel-load capability for transferring an initial binary number into the counter prior to the count operation 17

BCD Counter using a Counter with Parallel Load 18

6.5 Other Counters Design to generate any desired sequence of states Use to generate timing signals to control the sequence of operations in a digital system Implemented by shift registers Divide-by-N counter (modulo-n counter) Nonbinary counters 19

Counter with Unused States Use fewer than the maximum possible number of states for N F/F (<2 n ) For unused states Treated as don t care conditions Assigned specific next states 20

Self-correcting after one or more clock pulses Additional logic to direct every unused state to a specific next state FIGURE 6.16 Counter with unused states 21

Ring Counter To produce the sequence of timing signals To generate 2 n timing signals 1. By a circular shift register with only one F/F being set at any particular time Initial value: 1000 Preset/Clear Flip-flops Shift register with 2 n flip-flops 2. By a counter with a decoder n-bit binary counter together with an n-to-2 n -line decoder 22

Johnson Counter For unused states, To generate the timing signals with a combination of a shift register and a decoder Switch-tail ring counter K-bit switch-tail ring counter with 2k decoding gates to provide outputs for 2k timing signals The number of F/Fs needs is one-half the number of timing signals The number of decoding gates is equal to the number of timing signals and only two-input gates are needed FIGURE 6.18 Construction of a Johnson counter 23