Princess Sumaya University

Slides:



Advertisements
Similar presentations
Counters and Registers
Advertisements

CSE 370 Sample Final Exam Questions. 1) Logic Minimization CD AB F = Σm(0,6,7,8,9,11,15) + d(1,13)
DIGITAL ELECTRONICS & it0203 Semester - 3
Register Transfer and Microoperations Part2
Adders Used to perform addition, subtraction, multiplication, and division (sometimes) Half-adder adds rightmost (least significant) bit Full-adder.
Advanced Piloting Cruise Plot.
Chapter 1 The Study of Body Function Image PowerPoint
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
REMOTE CONTROL OF DEVICES USING CELLPHONES
Lab 11 : Memory System Fundamentals :
Wednesday, June 11, 2014 ElE Fall into-4 decoder Gate-level diagram Block diagram In Block diagrams: Circles on the input indicate the logic.
Logic Gates Flip-Flops Registers Adders
Flip-Flops and Registers
Microprocessor & Interfacing
Binary Lesson 3 Hexadecimal. Counting to 15 Base Base Base 16 Base Base Base 16 Two Ten (Hex) Two Ten (Hex)
Functions of Combinational Logic
Random-Access Memory (RAM)
Combinational Circuits
25 seconds left…...
Lab 10 :Serial Data Transfer System:
We will resume in: 25 Minutes.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
©2004 Brooks/Cole FIGURES FOR CHAPTER 12 REGISTERS AND COUNTERS Click the mouse to move to the next page. Use the ESC key to exit this chapter. This chapter.
Lab 15 :BCD Counters and Frequency Division:
©2004 Brooks/Cole FIGURES FOR CHAPTER 11 LATCHES AND FLIP-FLOPS Click the mouse to move to the next page. Use the ESC key to exit this chapter. This chapter.
CS1104 – Computer Organization
Computer Architecture CS 215
KU College of Engineering Elec 204: Digital Systems Design
Princess Sumaya University
Lecture 23: Registers and Counters (2)
CENG 241 Digital Design 1 Lecture 11
Mantıksal Tasarım – BBM231 M. Önder Efe
Registers and Counters
Registers and Counters
Chapter 1_4 Part II Counters
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
ECE2030 Introduction to Computer Engineering Lecture 15: Registers, Toggle Cells, Counters Prof. Hsien-Hsin Sean Lee School of Electrical and Computer.
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
Princess Sumaya Univ. Computer Engineering Dept. Chapter 6:
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.
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 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 Fundamentals Tenth Edition Floyd Chapter 9.
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.
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
Digital Design: With an Introduction to the Verilog HDL, 5e M. Morris Mano Michael D. Ciletti Copyright ©2013 by Pearson Education, Inc. All rights reserved.
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
Registers and Counters
EKT 221 – Counters.
Prof. Hsien-Hsin Sean Lee
EKT 221 : Digital 2 COUNTERS.
Digital System Design Review.
Registers and Counters
COE 202: Digital Logic Design Sequential Circuits Part 4
29-Nov-18 Counters Chapter 5 (Sections ).
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.
Registers and Register Transfers
Presentation transcript:

Princess Sumaya University 4241 - Digital Logic Design Digital Logic Design Chapter 6: Registers and Counters Dr. Bassam Kahhaleh

Princess Sumaya University 4241 - Digital Logic Design Registers Group of D Flip-Flops Synchronized (Single Clock) Store Data D Q R Reset CLK I0 I1 I2 I3 A0 A1 A2 A3 Dr. Bassam Kahhaleh

Note: New data has to go in with every clock Registers CLK D Q R Reset CLK I0 I1 I2 I3 A0 A1 A2 A3 I3 I2 I1 I0 A3 A2 A1 A0 Note: New data has to go in with every clock

Registers with Parallel Load Control Loading the Register with New Data R E G I S T E R D7 D6 D5 D4 D3 D2 D1 D0 Q7 Q6 Q5 Q4 Q3 Q2 Q1 Q0 LD LD Q(t+1) Q(t) 1 D

Registers with Parallel Load Should we block the “Clock” to keep the “Data”? R E G I S T E R D7 D6 D5 D4 D3 D2 D1 D0 Q7 Q6 Q5 Q4 Q3 Q2 Q1 Q0 LD D Q CLK I0 A0 I1 A1 I2 A2 I3 A3 Load Delays the Clock

Registers with Parallel Load Circulate the “old data” MUX I0 I1 Y S D Q A0 I0 MUX I0 I1 Y S D Q A1 I1 MUX I0 I1 Y S D Q A2 I2 MUX I0 I1 Y S D Q A3 I3 Load CLK

Shift Registers 4-Bit Shift Register Serial Input D Q CLK SI SO Serial Output

Shift Registers Q3 Q2 Q1 Q0 D Q D Q D Q D Q SI SO CLK CLK SI Q3 Q2 Q1

Serial Transfer SI SO SI Shift Register A Shift Register B CLK CLK Clock Shift Control Clock Shift Control CLK

Serial Addition Shift Control SI Shift Register A FA x y z S C Shift Register B CLK Q D CLR Clear

Universal Shift Register Parallel-in Parallel-out Serial-in Serial-out Serial-in Parallel-out Parallel-in Serial-out D Q D Q D Q D Q

Universal Shift Register Q3 Q2 Q1 Q0 D Q CLR CLK S1 S0 MUX I3 I2 I1 I0 Y S1 S0 SI for SR SI for SL D3 D2 D1 D0

Universal Shift Register Q3 Q2 Q1 Q0 S1 CLR S0 USR SRin SLin D3 D2 D1 D0 Mode Control Register Operation S1 S0 No change 1 Shift right Shift left Parallel load

Ripple Counters Ripple ↔ Asynchronous T Q CLR Q3 Q2 Q1 Q0 CLK 1 CLK Q0

Ripple Counters Q3 Q2 Q1 Q0 D Q D Q D Q D Q CLK CLK Q0 Q1 Q2 Q3 1 2 3 1 2 3 4 5 6 7 8 9

BCD Ripple Counter J Q K CLK 1 Q3 Q2 Q1 Q0 0000 0001 0010 0011 0100 1001 1000 0111 0110 0101 J Q K CLK 1 Q3 Q2 Q1 Q0

Decades Counter Q3 Q2 Q1 Q0 Q3 Q2 Q1 Q0 Q3 Q2 Q1 Q0 BCD Counter (CLK) 100’s Digit 10’s Digit 1’s Digit

Synchronous Binary Counter Q3 Q2 Q1 Q0 Enable J Q K J Q K J Q K J Q K To Next Stage CLK

Up-Down Binary Counter Q3 Q2 Q1 Q0 T Q T Q T Q T Q CLK Up Down

BCD Counter 1 1 1 1 0000 0001 0010 0011 0100 1 1 1001 1000 0111 0110 0101 1 1 1 1 Q3 Q2 Q1 Q0 E

BCD Counter 1 1 1 1 0000 / 0 0001 / 0 0010 / 0 0011 / 0 0100 / 0 1 1 1001 / 1 1000 / 0 0111 / 0 0110 / 0 0101 / 0 1 1 1 1 Q3 Q2 Q1 Q0 y E

Binary Counter with Parallel Load Q3 CLR LD Count Q(t+1) x 1 Q(t) Q(t)+1 I I2 Q2 I1 Q1 I0 Q0 LD Count CLR Usually Asynchronous Clear

BCD Counter Example LD I3 Q3 A3 I2 Q2 A2 I1 Q1 A1 I0 Q0 A0 Count Count I3 Q3 A3 I2 Q2 A2 I1 Q1 A1 I0 Q0 A0 Count Count CLR 1 CLK

Ring Counter 2-bit counter 2-to-4 Decoder T3 T2 T1 T0 CLK T0 T1 T2 T3 0001 0010 0100 1000 2-bit counter 2-to-4 Decoder T3 T2 T1 T0 CLK T0 T1 T2 T3

Johnson Counter D Q CLK Q3 Q2 Q1 Q0 0000 0001 0011 0111 1000 1100 1110 1111 D Q CLK Q3 Q2 Q1 Q0

Homework Mano Chapter 6 6-2 6-3 6-4 6-13 6-14 6-16 6-18

Homework 6-2 Include a synchronous clear input to the “Register with Parallel Load”. The modified register will have a parallel load capability and a synchronous clear capability. The register is cleared synchronously when the clock goes through a positive transition and the clear input is equal to 1. 6-3 What is the difference between serial and parallel transfer? Explain how to convert serial data to parallel and parallel data to serial. What type of register is needed?

Homework 6-4 The content of a 4-bit register is initially 1101. The register is shifted six times to the right with the serial input being 101101. What is the content of the register after each shift? 6-13 Show that a BCD ripple counter can be constructed using a 4-bit binary ripple counter with asynchronous clear and a NAND gate that detects the occurrence of count 1010. 6-14 How many flip-flop will be complemented in a 10-bit binary ripple counter to reach the next count after the following count: (a) 1001100111 (b) 0011111111 (c) 1111111111

Homework 6-16 The BCD ripple counter has four flip-flops and 16 states, of which only 10 are used. Analyze the circuit and determine the next state for each of the other six unused states. What will happen if a noise signal sends the circuit to one of the unused states? 6-18 What operation is performed in the up-down counter when both the up and down inputs are enabled? Modify the circuit so that when both inputs are equal to 1, the counter does not change state, but remains in the same count.