Experiment 7 Arithmetic Circuits Design and Implementation

Similar documents
Labsheet6: Arithmetic Circuits Simulation

Real Digital Problem Set #6

Binary Addition. Add the binary numbers and and show the equivalent decimal addition.

Chapter 3: part 3 Binary Subtraction

Lecture Topics. Announcements. Today: Integer Arithmetic (P&H ) Next: continued. Consulting hours. Introduction to Sim. Milestone #1 (due 1/26)

Register Transfer Language and Microoperations (Part 2)

Chapter 4 Arithmetic Functions

Computer Architecture and Organization: L04: Micro-operations

Arithmetic Circuits. Nurul Hazlina Adder 2. Multiplier 3. Arithmetic Logic Unit (ALU) 4. HDL for Arithmetic Circuit

CO Computer Architecture and Programming Languages CAPL. Lecture 9

UNIT-III REGISTER TRANSFER LANGUAGE AND DESIGN OF CONTROL UNIT

EE 109 Unit 6 Binary Arithmetic

Basic Arithmetic (adding and subtracting)

Binary Adders: Half Adders and Full Adders

*Instruction Matters: Purdue Academic Course Transformation. Introduction to Digital System Design. Module 4 Arithmetic and Computer Logic Circuits

Digital Fundamentals. Lab 6 2 s Complement / Digital Calculator

Revision: August 31, E Main Suite D Pullman, WA (509) Voice and Fax

Chapter 3 Arithmetic for Computers

Date Performed: Marks Obtained: /10. Group Members (ID):. Experiment # 09 MULTIPLEXERS

Chapter 4. Combinational Logic

Semester Transition Point. EE 109 Unit 11 Binary Arithmetic. Binary Arithmetic ARITHMETIC

REGISTER TRANSFER LANGUAGE

ECEN 468 Advanced Logic Design

Principles of Computer Architecture. Chapter 3: Arithmetic

Number Systems. Readings: , Problem: Implement simple pocket calculator Need: Display, adders & subtractors, inputs

EXPERIMENT #8: BINARY ARITHMETIC OPERATIONS

Digital Circuit Design and Language. Datapath Design. Chang, Ik Joon Kyunghee University

DLD VIDYA SAGAR P. potharajuvidyasagar.wordpress.com. Vignana Bharathi Institute of Technology UNIT 3 DLD P VIDYA SAGAR

COMBINATIONAL LOGIC CIRCUITS

To design a 4-bit ALU To experimentally check the operation of the ALU

Chap.3 3. Chap reduces the complexity required to represent the schematic diagram of a circuit Library

Chapter 4 Arithmetic

Lecture 6: Signed Numbers & Arithmetic Circuits. BCD (Binary Coded Decimal) Points Addressed in this Lecture

Combinational Logic II

Introduction to Boole algebra. Binary algebra

EE 8351 Digital Logic Circuits Ms.J.Jayaudhaya, ASP/EEE

1. Mark the correct statement(s)

LOGIC CIRCUITS. Kirti P_Didital Design 1

Computer Architecture and Organization

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

INF2270 Spring Philipp Häfliger. Lecture 4: Signed Binaries and Arithmetic

Microcomputers. Outline. Number Systems and Digital Logic Review

R10. II B. Tech I Semester, Supplementary Examinations, May

How a Digital Binary Adder Operates

Engineering 303 Digital Logic Design Fall 2018

Let s put together a Manual Processor

Chapter 4. Combinational Logic. Dr. Abu-Arqoub

LAB 4: Seven Seg, Full Adder, Ripple Adder, Heirarchical Design

ECE468 Computer Organization & Architecture. The Design Process & ALU Design

Chapter 3 Part 2 Combinational Logic Design

CSE303 Logic Design II Laboratory 01

COMPUTER ARITHMETIC (Part 1)


Chapter 5 Design and Implementation of a Unified BCD/Binary Adder/Subtractor

ALU Design. 1-bit Full Adder 4-bit Arithmetic circuits. Arithmetic and Logic Unit Flags. Add/Subtract/Increament/Decrement Circuit

Combinational Circuits

Introduction to Digital Logic Missouri S&T University CPE 2210 Multipliers/Dividers

Combinational Logic Circuits

Computer Organization

EC2303-COMPUTER ARCHITECTURE AND ORGANIZATION

UNIT IV: DATA PATH DESIGN

Addition and multiplication

ECE331: Hardware Organization and Design

Arithmetic Logic Unit. Digital Computer Design

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Arithmetic (a) The four possible cases Carry (b) Truth table x y

Computer Architecture Set Four. Arithmetic

ELEC 326: Class project

Advanced Computer Architecture-CS501

CS/COE 0447 Example Problems for Exam 2 Spring 2011

Keywords: Soft Core Processor, Arithmetic and Logical Unit, Back End Implementation and Front End Implementation.

Injntu.com Injntu.com Injntu.com R16

ECE 30 Introduction to Computer Engineering

Lecture #21 March 31, 2004 Introduction to Gates and Circuits

We are quite familiar with adding two numbers in decimal

Parallel logic circuits

A B A+B

60-265: Winter ANSWERS Exercise 4 Combinational Circuit Design

Submitted by 1

BUILDING BLOCKS OF A BASIC MICROPROCESSOR. Part 1 PowerPoint Format of Lecture 3 of Book

Lec-6-HW-3-ALUarithmetic-SOLN

CS/COE0447: Computer Organization

CS/COE0447: Computer Organization

Digital Design with FPGAs. By Neeraj Kulkarni

CONTENTS CHAPTER 1: NUMBER SYSTEM. Foreword...(vii) Preface... (ix) Acknowledgement... (xi) About the Author...(xxiii)

Combinational and sequential circuits (learned in Chapters 1 and 2) can be used to create simple digital systems.


Combinational Logic. Prof. Wangrok Oh. Dept. of Information Communications Eng. Chungnam National University. Prof. Wangrok Oh(CNU) 1 / 93

CSE140 L. Instructor: Thomas Y. P. Lee January 18,2006. CSE140L Course Info

Computer Organization (Autonomous)

CARLETON UNIVERSITY. Laboratory 2.0

CHAPTER 4: Register Transfer Language and Microoperations

EMT1250 LABORATORY EXPERIMENT. EXPERIMENT # 10: Implementing Binary Adders. Name: Date:

MGU-BCA-205- Second Sem- Core VI- Fundamentals of Digital Systems- MCQ s. 2. Why the decimal number system is also called as positional number system?

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-II COMBINATIONAL CIRCUITS

Operations On Data CHAPTER 4. (Solutions to Odd-Numbered Problems) Review Questions

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-2700: Digital Logic Design Winter Notes - Unit 4. hundreds.

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-278: Digital Logic Design Fall Notes - Unit 4. hundreds.

COMPUTER ARCHITECTURE AND ORGANIZATION Register Transfer and Micro-operations 1. Introduction A digital system is an interconnection of digital

REGISTER TRANSFER AND MICROOPERATIONS

Chapter 4. Operations on Data

Transcription:

Experiment 7 Arithmetic Circuits Design and Implementation Introduction: Addition is just what you would expect in computers. Digits are added bit by bit from right to left, with carries passed to the next digit to the left, just as you would do by hand. Subtraction uses addition: the appropriate operand is simply negated before being added. Objectives: To understand the concept of Half and Full Adders. Design and build Ripple Carry Adder. Introduce 4-bit magnitude comparator. Design and implement binary multiplier Half Adder: Half adder is a combinational circuit that adds only two one bit numbers,since there are two inputs (x and y), only four possible combinations of inputs can applied. These four possibilities, and the resulting sums are shown in following truth table. Figure(1) Page 1 of 6

Full Adder: Full adder is a combinational circuit that adds three bits and generates a sum and carry.. ad outputs two one-bit binary numbers, a sum (S) and a carry (C1). From the truth table, we can obtain the Boolean expression of C & S outputs as follows : Using Map-simplification method, we can get the simplified forms as follows : Now, we can construct the full-adder circuit based on the simplified Boolean expression of S and C outputs Figure(2) Page 2 of 6

Ripple Adder Two binary numbers, each of n bits, can be added using a ripple adder, a cascade of n full adders; each full adder handles one bit. Each Cout of a full adder is connected to the Cin of the higher full adder. The Cin of the least significant full adder is set to 0. Adder-Subtractor circuit The subtraction of two binary numbers can be done by taking the 2 s complement of the subtrahend and adding it to the minued. The 2 s complement can be obtained by taking the 1 s complement and adding 1. To perform A - B, we complement the four bits of B, add them to the four bits of A, and add 1 to the input carry. We may use XOR gate as an inverter if placing a logic 1 at one of the inputs. This helps in getting the 1 s complement of the subtrahend; then we add 1 to get the 2 s complement; which in turn is added to the minued to get the final result of the subtraction. Figure below shows adder-subtractor circuit; the mode input M controls the operation; when M=0, the circuit is an adder. When M=1, the circuit becomes a subtractor. This circuit can be cascaded for any number of inputs. Figure(3) Page 3 of 6

Multiplier: If we want to multiply tow numbers(a,b),each of them is consist of two bit as follows: B = {B1 B0}, A = {A1 A0} Then we multiply by doing single-bit multiplications and shifts. Figure(4) Page 4 of 6

Comparator: The 74LS85 is a 4-Bit Magnitude Comparator which compares two 4-bit words (A, B), each word having four Parallel Inputs (A0 A3, B0 B3); A3, B3 being the most significant inputs. Three outputs are provided: 1- A greater than B (out A>B). 2- A less than B (out A<B). 3- A equal to B (out A=B). Three Expander Inputs, In A>B, In A<B, In A=B, allow cascading without external gates. - For proper compare operation, the Expander Inputs to the least significant position must be connected as follows: In A<B= In A>B = L, In A=B = H. - For serial (ripple) expansion (more than 4-bit), the out A>B, out A<B and out A=B from the least significant comparator (which considered to be the output of comparing 4 least significant bits) are connected respectively to the In A>B, In A<B, and In A=B Inputs of the next most significant comparator and so on. Figure(5) The truth table below describes the operation of this comparator under all possible logic conditions. The upper 8 lines describe the normal operation under all conditions that will occur in a single device or in a series expansion scheme. The lower five lines describe the operation under abnormal conditions on the cascading inputs. Page 5 of 6

Procedure: I. Use the following pin assignment for inputs and outputs when needed: In1: SW [1] (Pin_AB26) In2: SW [2] (Pin_AB25) In3: SW [3] (Pin_AC27) In4: SW [4] (Pin_AC26) In5: SW [5] (Pin_AC24) In6: SW [6] (Pin_AC23) In7: SW [7] (Pin_AD25) In8: SW [8] (Pin_AD24) Out0: LEDR [0] (Pin_AJ6) Out1: LEDR [1] (Pin_AK5) Out2: LEDR [2] (Pin_AJ5) Out3: LEDR [3] (Pin_AJ4) Out4: LEDR [4] (Pin_AK3) Out5: LEDR [5] (Pin_AH4) Part 1: Design and Implement Adder 1- Design the Full Adder circuit shown in Figure 1, and then implement it on Quatrus II (verilog). Figure 1 2- Use the design of Full adder in step1 to implement 3-Bit Ripple Carry Adder as shown in Figure 2 on Quatrus II (verilog). 3-Modify the circuit you built in step 2 to detect overflow and support subtraction operation. Part 2: Comparator 1- Use Quatrus II (schematic) to expand the 4-bit Magnitude Comparator IC 7485 to obtain 8 bit Magnitude Comparator and test it. Part 3: Design and Implement Multiplier 1- Design and implement a multi-bit Multiplier that will multiply (A1A0 B2B1B0) and produce the product (C4C3C2C1C0) using 4-bit parallel adder ( ICs 7483). Page 6 of 6