Serial Addition. Lecture 29 1

Similar documents
Computer Architecture: Part II. First Semester 2013 Department of Computer Science Faculty of Science Chiang Mai University

BCD Adder. Lecture 21 1

LOGIC DIAGRAM: HALF ADDER TRUTH TABLE: A B CARRY SUM. 2012/ODD/III/ECE/DE/LM Page No. 1

Module-20 Shift Registers

LIST OF EXPERIMENTS. KCTCET/ /Odd/3rd/ETE/CSE/LM

DIGITAL ELECTRONICS QUESTION BANK

Encoders. Lecture 23 5

CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam

SRV ENGINEERING COLLEGE SEMBODAI RUKMANI VARATHARAJAN ENGINEERING COLLEGE SEMBODAI

Spec. Instructor: Center

COMPUTER ORGANIZATION & ARCHITECTURE DIGITAL LOGIC CSCD211- DEPARTMENT OF COMPUTER SCIENCE, UNIVERSITY OF GHANA

Fan in: The number of inputs of a logic gate can handle.

Linear & Digital IC Applications (BRIDGE COURSE)

Department of Electronics and Communication Engineering

Practical Workbook Logic Design & Switching Theory

CS302 - Digital Logic Design Glossary By

Digital Electronics 8. Multiplexer & Demultiplexer

Brought to you by. Priti Srinivas Sajja. PS01CMCA02 Course Content. Tutorial Practice Material. Acknowldgement References. Website pritisajja.

Winter 14 EXAMINATION Subject Code: Model Answer P a g e 1/28

Digital Circuits Laboratory LAB no. 12. REGISTERS

UNIT II: Clocked Synchronous Sequential Circuits. CpE 411 Advanced Logic Circuits Design 1

Combinational Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

Module -18 Flip flops

DELD MODEL ANSWER DEC 2018

High Speed Binary Counters Based on Wallace Tree Multiplier in VHDL

Digital Logic Circuits

EXPERIMENT NO 1 TRUTH TABLE (1)

Computer Architecture and Organization:

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING SEMESTER TWO EXAMINATION 2017/2018

Lecture 20: Several Commercial Counters & Shift Register

Laboratory Manual CS (P) Digital Systems Lab

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) MODEL ANSWER

DEPARTMENT OF ELECTRICAL & ELECTRONICS ENGINEERING

Digital Logic and Design (Course Code: EE222) Lecture 14: Combinational Contd.. Decoders/Encoders

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) SUMMER-16 EXAMINATION Model Answer

Computer Systems and Networks. ECPE 170 Jeff Shafer University of the Pacific. Digital Logic

DIGITAL CIRCUITS AND SYSTEMS ASSIGNMENTS 1 SOLUTIONS

Number system: the system used to count discrete units is called number. Decimal system: the number system that contains 10 distinguished

Combinational Logic Circuits. Combinational Logic

HAZARDS AND PULSE MODE SEQUENTIAL CIRCUITS

4:Combinational logic circuits. 3 July

Written exam IE1204/5 Digital Design Friday 13/

Chapter 4: FLIP FLOPS. (Sequential Circuits) By: Siti Sabariah Hj. Salihin ELECTRICAL ENGINEERING DEPARTMENT EE 202 : DIGITAL ELECTRONICS 1

Chapter 5 Sequential Logic Circuits Part II Hiroaki Kobayashi 7/11/2011

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Digital Electronics Course Objectives

Classification of Digital Circuits

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Sciences. Homework #9 Solution

IES Digital Mock Test

Adder Comparator 7 segment display Decoder for 7 segment display D flip flop Analysis of sequential circuits. Sequence detector

COLLEGE OF ENGINEERING, NASIK

Dhanalakshmi College of Engineering

1 Q' 3. You are given a sequential circuit that has the following circuit to compute the next state:

An Analysis of Multipliers in a New Binary System

Design and Simulation of 32-Bit Carry-Ripple Adder using HSPICE and Mentor Graphics

EC O4 403 DIGITAL ELECTRONICS

B.E. SEMESTER III (ELECTRICAL) SUBJECT CODE: X30902 Subject Name: Analog & Digital Electronics

Chapter 3 Digital Logic Structures

GATE Online Free Material

Data transmission - Transmission modes

E2.11/ISE2.22 Digital Electronics II

Objective Questions. (a) Light (b) Temperature (c) Sound (d) all of these


Page 1. Last time we looked at: latches. flip-flop

First Name: Last Name: Lab Cover Page. Teaching Assistant to whom you are submitting

Electronics. Digital Electronics

Chapter 5 Sequential Logic Circuits Part II Hiroaki Kobayashi 6/30/2008

CHAPTER 5 DESIGN OF COMBINATIONAL LOGIC CIRCUITS IN QCA

SIMULATION DESIGN TOOL LABORATORY MANUAL

PERFORMANCE ANALYSIS OF DIFFERENT ADDERS USING FPGA

CONTENTS Sl. No. Experiment Page No

Digital Electronic Concepts

TABLE 3-2 Truth Table for Code Converter Example

Digital Integrated CircuitDesign

CHAPTER 16 SEQUENTIAL CIRCUIT DESIGN. Click the mouse to move to the next page. Use the ESC key to exit this chapter.

Lecture 02: Digital Logic Review

Lecture 3: Logic circuit. Combinational circuit and sequential circuit

Introduction to CMOS VLSI Design (E158) Lecture 5: Logic

CS61c: Introduction to Synchronous Digital Systems

Combinational Circuits DC-IV (Part I) Notes

AREA AND POWER EFFICIENT CARRY SELECT ADDER USING BRENT KUNG ARCHITECTURE

An Efficient Method for Implementation of Convolution

Working with Formulas and Functions

On Built-In Self-Test for Adders

Solutions. ICS 151 Final. Q1 Q2 Q3 Q4 Total Credit Score. Instructions: Student ID. (Last Name) (First Name) Signature

ICS 151 Final. (Last Name) (First Name)

DIGITAL INTEGRATED CIRCUITS A DESIGN PERSPECTIVE 2 N D E D I T I O N

will talk about Carry Look Ahead adder for speed improvement of multi-bit adder. Also, some people call it CLA Carry Look Ahead adder.

Design of Baugh Wooley Multiplier with Adaptive Hold Logic. M.Kavia, V.Meenakshi

ENHANCING SPEED AND REDUCING POWER OF SHIFT AND ADD MULTIPLIER

II. LITERATURE REVIEW

Digital Electronics Electronics Technology

Digital Applications (CETT 1415) Credit: 4 semester credit hours (3 hours lecture, 4 hours lab) Prerequisite: CETT 1403 & CETT 1405

ECE 261 CMOS VLSI Design Methodologies. Final Project Report. Vending Machine. Dec 13, 2007

DIGITAL DESIGN WITH SM CHARTS

An Efficient Low Power and High Speed carry select adder using D-Flip Flop

Aim. Lecture 1: Overview Digital Concepts. Objectives. 15 Lectures

International Journal of Engineering Research-Online A Peer Reviewed International Journal Articles available online

EXPERIMENT #5 COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

1. The decimal number 62 is represented in hexadecimal (base 16) and binary (base 2) respectively as

Transcription:

Serial Addition Operations in digital computers are usually done in parallel because that is a faster mode of operation. Serial operations are slower because a datapath operation takes several clock cycles, but serial operations have the advantage of requiring fewer hardware components. The two binary numbers to be added serially are stored in two shift registers. Beginning with the least significant pair of bits, the circuit adds one pair at a time through a single full adder (FA) circuit, as shown in the figure in the next slide. Lecture 29 1

The carry out of the full adder is transferred to a D flip flop, the output of which is then used as the carry input for the next pair of significant bits. The sum bit from the S output of the full adder could be transferred into a third shift register. Lecture 29 2

By shifting the sum into A while the bits of A are shifted out, it is possible to use one register for storing both the augend and the sum bits. The serial input of register B can be used to transfer a new binary number while the addend bits are shifted out during the addition. Lecture 29 3

The operation of the serial adder is as follows: Initially, register A holds the augend, register B holds the addend, and the carry flip flop is cleared to 0. The outputs ( SO ) of A and B provide a pair of significant bits for the full adder at x and y. Output Q of the flip flop provides the input carry at z. The shift control enables both registers and the carry flip flop, so at the next clock pulse, both registers are shifted once to the right, the sum bit from S enters the leftmost flip flop of A, and the output carry is transferred into flip flop Q Lecture 29 4

The shift control enables the registers for a number of clock pulses equal to the number of bits in the registers. For each succeeding clock pulse, a new sum bit is transferred to A, a new carry is transferred to Q, and both registers are shifted once to the right. This process continues until the shift control is disabled. Thus, the addition is accomplished by passing each pair of bits together with the previous carry through a single full adder circuit and transferring the sum, one bit at a time, into register A. Lecture 29 5

Initially, register A and the carry flip flop are cleared to 0, and then the first number is added from B. While B is shifted through the full adder, a second number is transferred to it through its serial input. The second number is then added to the contents of register A, while a third number is transferred serially into register B. This can be repeated to perform the addition of two, three, or more four bit numbers and accumulate their sum in register A. Lecture 29 6

Comparing the serial adder with the parallel adder, the parallel adder uses registers with a parallel load, whereas the serial adder uses shift registers. The number of full adder circuits in the parallel adder is equal to the number of bits in the binary numbers, whereas the serial adder requires only one full adder circuit and a carry flip flop. Excluding the registers, the parallel adder is a combinational circuit, whereas the serial adder is a sequential circuit which consists of a full adder and a flip flop that stores Lecture the 29 output carry. 7

This design is typical in serial operations because the result of a bit time operation may depend not only on the present inputs, but also on previous inputs that must be stored in flip flops. To show that serial operations can be designed by means of sequential circuit procedure, we will redesign the serial adder with the use of a state table. First, we assume that two shift registers are available to store the binary numbers to be added serially. The serial outputs from the registers are designated by x and Lecture y. 29 8

The sequential circuit to be designed will not include the shift registers, but they will be inserted later to show the complete circuit. The sequential circuit proper has the two inputs, x and y, that provide a pair of significant bits, an output S that generates the sum bit, and flip flop Q for storing the carry. The state table that specifies the sequential circuit is listed in the below table. Lecture 29 9

The present state of Q is the present value of the carry. The present carry in Q is added together with inputs x and y to produce the sum bit in output S. The next state of Q is equal to the output carry. Note that the state table entries are identical to the entries in a full adder truth table, except that the input carry is now the present state of Q and the output carry is now the next state of Q. Lecture 29 10

If a D flip flop is used for Q, the circuit reduces to the one shown in serial Adder. If a JK flipflop is used for Q, it is necessary to determine the values of inputs J and K by referring to the excitation table (JK ff). This is done in the last two columns of the table. The two flip flop input equations and the output equation can be simplified by means of maps to JQ = xy KQ = x y = (x + y) S = x y Q Lecture 29 11

The circuit diagram is shown below, the circuit consists of three gates and a JK flip flop. The two shift registers are included in the diagram to show the complete serial adder. Note that output S is a function not only of x and y, but also of the present state of Q. The next state of Q is a function of the present state of Q and of the values of x and y that come out of the serial outputs of the shift registers. Lecture 29 12

Universal Shift Register If the flip flop outputs of a shift register are accessible, then information entered serially by shifting can be taken out in parallel from the outputs of the flip flops. If a parallel load capability is added to a shift register, then data entered in parallel can be taken out in serial fashion by shifting the data stored in the register. Some shift registers provide the necessary input and output terminals for parallel transfer. They may also have both shift right and shift left capabilities. The most general shift register has the following capabilities: 1. A clear control to clear the register to 0. 2. A clock input to synchronize the operations. Lecture 29 13

3. A shift right control to enable the shift right operation and the serial input and output lines associated with the shift right. 4. A shift left control to enable the shift left operation and the serial input and output lines associated with the shift left. 5. A parallel load control to enable a parallel transfer and the n input lines associated with the parallel transfer. 6. n parallel output lines. 7. A control state that leaves the information in the register unchanged in response to the clock. Other shift registers may have only some of the preceding functions, with at least one shift operation. Lecture 29 14

A register capable of shifting in one direction only is a unidirectional shift register. One that can shift in both directions is a bidirectional shift register. If the register has both shifts and parallel load capabilities, it is referred to as a universal shift register. The block diagram symbol and the circuit diagram of a four bit universal shift register that has all the capabilities just listed are shown in the next slide. Lecture 29 15

The circuit consists of four D flip flops and four multiplexers. The four multiplexers have two common selection inputs s 1 and s 0. Input 0 in each multiplexer is selected when s 1 s 0 = 00, input 1 is selected when s 1 s 0 = 01, and similarly for the other two inputs. Lecture 29 16

The selection inputs control the mode of operation of the register according to the function entries in the table next slide. When s1s0 = 00, the present value of the register is applied to the D inputs of the flip flops. Lecture 29 17

This condition forms a path from the output of each flip flop into the input of the same flip flop, so that the output recirculates to the input in this mode of operation. The next clock edge transfers into each flip flop the binary value it held previously, and no change of state occurs. Lecture 29 18

When s 1 s 0 = 01, terminal 1 of the multiplexer inputs has a path to the D inputs of the flip flops. This causes a shift right operation, with the serial input transferred into flip flop A 3. When s 1 s 0 = 10, a shift left operation results, with the other serial input going into flip flop A0. Lecture 29 19

Finally, when s 1 s 0 = 11, the binary information on the parallel input lines is transferred into the register simultaneously during the next clock edge. Note that data enters MSB_in for a shift right operation and enters LSB_in for a shift left operation. Clear_b is an active low signal that clears all of the flip flops. Lecture 29 20

Shift registers are often used to interface digital systems situated remotely from each other. For example, suppose it is necessary to transmit an n bit quantity between two points. If the distance is far, it will be expensive to use n lines to transmit the n bits in parallel. It is more economical to use a single line and transmit the information serially, one bit at a time. The transmitter accepts the n bit data in parallel into a shift register and then transmits the data serially along the common line. The receiver accepts the data serially into a shift register. When all n bits are received, they can be taken from the outputs of the register in parallel. Thus, the transmitter performs a parallel to serial conversion of data and the receiver does a serial to parallel conversion. Lecture 29 21