Registers and Counters BINARY RIPPLE COUNTER

Similar documents
Systems I: Computer Organization and Architecture

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

ASYNCHRONOUS COUNTERS

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

Modeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: ext: Sequential Circuit

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.

Chapter 7. Registers & Register Transfers. J.J. Shann. J. J. Shann

Module 3: Floyd, Digital Fundamental

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )

(Refer Slide Time: 00:01:16 min)

BINARY CODED DECIMAL: B.C.D.

Counters and Decoders

Let s put together a Manual Processor

Digital Logic Design Sequential circuits

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

Asynchronous Counters. Asynchronous Counters

DEPARTMENT OF INFORMATION TECHNLOGY

Lecture-3 MEMORY: Development of Memory:

Contents COUNTER. Unit III- Counters

Cascaded Counters. Page 1 BYU

CHAPTER 11: Flip Flops

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.

The components. E3: Digital electronics. Goals:

Lecture 8: Synchronous Digital Systems

Counters. Present State Next State A B A B

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute 5. LECTURE: REGISTERS AND RELATED

Counters & Shift Registers Chapter 8 of R.P Jain

Chapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

Flip-Flops, Registers, Counters, and a Simple Processor

Binary Adders: Half Adders and Full Adders

ENEE 244 (01**). Spring Homework 5. Due back in class on Friday, April 28.

Master/Slave Flip Flops

Memory Elements. Combinational logic cannot remember

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

Lesson 12 Sequential Circuits: Flip-Flops

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute. 2nd (Spring) term 2012/2013

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Operating Manual Ver.1.1

Wiki Lab Book. This week is practice for wiki usage during the project.

Counters are sequential circuits which "count" through a specific state sequence.

LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

Flip-Flops and Sequential Circuit Design. ECE 152A Winter 2012

Flip-Flops and Sequential Circuit Design

Chapter 2 Logic Gates and Introduction to Computer Architecture

Chapter 9 Latches, Flip-Flops, and Timers

exclusive-or and Binary Adder R eouven Elbaz reouven@uwaterloo.ca Office room: DC3576

CHAPTER 11 LATCHES AND FLIP-FLOPS

Chapter 8. Sequential Circuits for Registers and Counters

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Theory of Logic Circuits. Laboratory manual. Exercise 3

Lab 1: Study of Gates & Flip-flops

CSE140 Homework #7 - Solution

Sequential Logic Design Principles.Latches and Flip-Flops

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

Lecture 7: Clocking of VLSI Systems

COMBINATIONAL CIRCUITS

A New Paradigm for Synchronous State Machine Design in Verilog

Fig1-1 2-bit asynchronous counter

EXPERIMENT 8. Flip-Flops and Sequential Circuits

CHAPTER 3 Boolean Algebra and Digital Logic

DM Segment Decoder/Driver/Latch with Constant Current Source Outputs

Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

Introduction to CMOS VLSI Design (E158) Lecture 8: Clocking of VLSI Systems

Latches, the D Flip-Flop & Counter Design. ECE 152A Winter 2012

Digital Fundamentals

SECTION C [short essay] [Not to exceed 120 words, Answer any SIX questions. Each question carries FOUR marks] 6 x 4=24 marks

Sequential Circuits. Combinational Circuits Outputs depend on the current inputs

Gates, Plexers, Decoders, Registers, Addition and Comparison

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

Copyright Peter R. Rony All rights reserved.

List of Experiment. 8. To study and verify the BCD to Seven Segments DECODER.(IC-7447).

Decimal Number (base 10) Binary Number (base 2)

(1) /30 (2) /30 (3) /40 TOTAL /100

Digital Electronics Detailed Outline

DATA SHEET. HEF40193B MSI 4-bit up/down binary counter. For a complete data sheet, please also download: INTEGRATED CIRCUITS

Digital Fundamentals. Lab 8 Asynchronous Counter Applications

Engr354: Digital Logic Circuits

CS311 Lecture: Sequential Circuits

Design Verification & Testing Design for Testability and Scan

Lecture 11: Sequential Circuit Design

Chapter 6: From Digital-to-Analog and Back Again

Lecture 10: Sequential Circuits

Systems I: Computer Organization and Architecture

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

Digital Controller for Pedestrian Crossing and Traffic Lights

I 2 S bus specification

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

Combinational Logic Design Process

Transcription:

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 capable of storing n bits of binary information. In addition to flip- flops, a register may have combinational gates that perform certain data processing tasks. A counter is essentially a register that goes through a pre-determined sequence of states. The gates in the counter are connected in such a way to produce the prescribed sequence of states. 1 BINARY RIPPLE COUNTER A binary ripple counter consists of a series connection of complementing flip-flops the output of each flip-flop is connected to the C input of the next higher-order flip-flop. 2 1

4-Bit Register The common clock input triggers all flip- flops on the positive edge of each pulse the binary data available at the 4 inputs are transferred into the register. The four outputs can be sampled to obtain the binary information stored in the register. When the clear input R goes to zero, all flip- flops are reset (register is cleared to 0 s). 3 Register with Parallel Load When load input = 1 data transferred into register with next clock edge. When load input = 0 outputs of Flip-Flops are connected to their inputs. Q: Why do we want to connect the outputs to the inputs when load input = 0? 4 2

Register with Parallel Load Example Design a register with parallel load based on the circuit in Fig 6-2 that operates according to the following function table: Load Clear D Operation 0 0 A No change 0 1 0 Clear to 0 1 X I 0 Load input clear 5 Shift Registers A Shift Register is a register that is capable of shifting its binary information in one or both directions. data_ On the leading edge of the first clock pulse, the signal on the data_in is latched in the first flip-flop. On the leading edge of the next clock pulse, the contents of the first flip-flop is stored in the second flip-flop, and the signal which is present at the data_in is stored is the first flip-flop, etc. 6 3

Serial Shift Registers Timing Diagram Q 0 Q 1 Q 2 Q 3 1 2 3 4 7 prevents loss of information Serial Transfer determines when and how many times the registers are shifted. Each rising edge of pulse causes a shift in both registers 8 4

Serial Transfer Example 1 Register A Register B Initial Value 1 0 1 1 0 0 1 0 After T 1?? After T 2?? After T 3?? After T 4?? 9 Serial Transfer Example 1 (contined) Register A Register B (b) (a) Initial Value 1 0 1 1 0 0 1 0 (c) After T 1 1 1 0 1 1 0 0 1 (c) After T 2 1 1 1 0 1 1 0 0 After T 3 0 1 1 1 0 1 1 0 After T 4 1 0 1 1 1 0 1 1 With the first pulse T 1, (a) the rightmost bit of A is shifted into the leftmost bit of B and (b) also circulated into the leftmost position of A. At the same time, (c) all bits of A and B are shifted one position to the right. 10 5

Serial Transfer Example 2 Example 2: The content of a 4-bit register is initially 1101. The register is shifted 4 times to the right with the serial input being 101101. What is the content of the register after four shifts? Ans: 1101 11 Serial/Parallel Computation Communication between a computer and a peripheral device is usually done serially, while computation in the computer itself is usually performed with parallel logic circuitry. Computations in the computer are done in parallel because this is a faster mode. Serial operations are slower but require less devices. 12 6

Serial Addition Initially, Reg. A holds the augend (# to which another # is added), B holds the addend (the # that is added). Shift control enables both Reg. s, and carry Flip- Flop, so that at the next, both Reg. s are shifted once to the right, the sum bit from S enters the leftmost Flip-Flop of A, a new carry is transferred to Q, and both registers are shifted once to the right. Thus, the sumis transferred 13 one at a time into Reg. A. Parallel Adder vs. Serial Adder 1. Parallel adder uses parallel loading, whereas the serial adder uses shift registers. 2. Number of full adder circuit in the parallel adder is equal to the number of bits in the binary numbers. Serial adder requires only one full adder and a carry Flip -Flop. 3. The parallel adder is a combinational circuit, whereas the serial adder is a sequential circuit that consists of a full adder and a Flip-Flop. 14 7

Universal Shift Register A universal shift register is a bidirectional shift register with parallel load capabilities. 15 Universal Shift Register Mode Control S 1 S 0 Register Operation 0 0 No change 0 1 Shift right 1 0 Shift left 1 1 Parallel load When S 1 S 0 = 11, the binary information on the parallel input lines is transferred into the register simultaneously at the next clock edge. When S 1 S 0 = 00, the present value of the register is applied to the D inputs of the FFs. This forms a conduction path from the output to the input of each FF. When S 1 S 0 = 01, terminal 1 of the multiplexer inputs has a path to the D inputs of the FFs, which causes a shift-right operation, with serial input transferred into FF A3. When S 1 S 0 = 10, a shift-left operation results with serial input going into FF A0. 16 8

Parallel vs. Serial Data Transmission Shift registers are often used to interface digital systems situated remotely from each other. Task: We want to transmit an n-bit quantity between two location that are far from each other. What are the options? 1. Use n lines to transmit n bits in parallel. Problem: Cost is expensive. 2. Use a single line to transmit the information serially, one bit at a time. Cost is less. 17 9