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

Similar documents
Real Digital Problem Set #6

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

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

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

Experiment 7 Arithmetic Circuits Design and Implementation

Chapter 3: part 3 Binary Subtraction

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

Register Transfer Language and Microoperations (Part 2)

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

Binary Adders: Half Adders and Full Adders

5 Arithmetic Logic Unit

Parallel logic circuits

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

CS 31: Intro to Systems Digital Logic

Computer Architecture and Organization: L04: Micro-operations

11.1. Unit 11. Adders & Arithmetic Circuits

Chapter 3 Arithmetic for Computers

UNIT-III REGISTER TRANSFER LANGUAGE AND DESIGN OF CONTROL UNIT

Chapter 4 Arithmetic Functions


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

Chapter 4. Combinational Logic

Microcomputers. Outline. Number Systems and Digital Logic Review

REGISTER TRANSFER LANGUAGE

Department of Electrical and Computer Engineering University of Wisconsin - Madison. ECE/CS 352 Digital System Fundamentals.

Digital Logic Design (3)

ECE 2030D Computer Engineering Spring problems, 5 pages Exam Two 8 March 2012

60-265: Winter ANSWERS Exercise 4 Combinational Circuit Design

Number System. Introduction. Decimal Numbers

EXPERIMENT #8: BINARY ARITHMETIC OPERATIONS

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

Revision: January 28, Henley Court Pullman, WA (509) Voice and Fax

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

Computer Architecture Set Four. Arithmetic

EGC221: Digital Logic Lab

ECEN 468 Advanced Logic Design

Course Project Part 1

Fundamentals of Computer Systems

Week 6: Processor Components

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

Chapter 4 Arithmetic

Chapter 3 Part 2 Combinational Logic Design

CARLETON UNIVERSITY. Laboratory 2.0

Learning Outcomes. Spiral 2-2. Digital System Design DATAPATH COMPONENTS

Learning Outcomes. Spiral 2 2. Digital System Design DATAPATH COMPONENTS

Chapter 3 Part 2 Combinational Logic Design

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

CHAPTER 4: Register Transfer Language and Microoperations

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

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

Topics of this Slideset. CS429: Computer Organization and Architecture. Digital Signals. Truth Tables. Logic Design

Combinational Logic Circuits

REGISTER TRANSFER AND MICROOPERATIONS

Principles of Computer Architecture. Chapter 3: Arithmetic

Learning Outcomes. Spiral 2 2. Digital System Design DATAPATH COMPONENTS

Final Exam Solution Sunday, December 15, 10:05-12:05 PM

REGISTER TRANSFER AND MICROOPERATIONS

Chapter 4. Operations on Data

Arithmetic Logic Unit

Arithmetic Logic Unit (ALU)

Arithmetic Circuits. Design of Digital Circuits 2014 Srdjan Capkun Frank K. Gürkaynak.

II/IV B.Tech (Regular/Supplementary) DEGREE EXAMINATION. Answer ONE question from each unit.

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

T insn-mem T regfile T ALU T data-mem T regfile

CSE303 Logic Design II Laboratory 01

Basic Arithmetic (adding and subtracting)

EC2303-COMPUTER ARCHITECTURE AND ORGANIZATION

ECE331: Hardware Organization and Design

EXPERIMENT NUMBER 11 REGISTERED ALU DESIGN

ECE 2030B 1:00pm Computer Engineering Spring problems, 5 pages Exam Two 10 March 2010

This podcast will demonstrate a logical approach as to how a computer adds through logical gates.

Data Representation Type of Data Representation Integers Bits Unsigned 2 s Comp Excess 7 Excess 8

UNIT - V MEMORY P.VIDYA SAGAR ( ASSOCIATE PROFESSOR) Department of Electronics and Communication Engineering, VBIT

How a Digital Binary Adder Operates

ELEC 326: Class project

A Level Computing. Contents. For the Exam:

Lab Assignment 1. Developing and Using Testbenches

CO Computer Architecture and Programming Languages CAPL. Lecture 9

CS/COE0447: Computer Organization

KING FAHD UNIVERSITY OF PETROLEUM & MINERALS COMPUTER ENGINEERING DEPARTMENT

CS/COE0447: Computer Organization

CSC 220: Computer Organization Unit 10 Arithmetic-logic units

Arithmetic-logic units

Midterm Exam Review. CS 2420 :: Fall 2016 Molly O'Neil

Chapter 10 Binary Arithmetics

Computer Organization (Autonomous)

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

Combinational Logic II

CS Spring Combinational Examples - 1

Chapter 3: Arithmetic for Computers

11/22/1999 7pm - 9pm. Name: Login Name: Preceptor Name: Precept Number:

Number representations

We are quite familiar with adding two numbers in decimal

CAD4 The ALU Fall 2009 Assignment. Description

Combinational Circuit Design

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

MIPS Integer ALU Requirements

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

Advanced Computer Architecture-CS501

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

Transcription:

Exercise 7: Combinational rithmetic Circuits Revision: ugust 3, 29 25 E Main uite D Pullman, W 9963 (59) 334 636 Voice and Fax TUDENT I am submitting my own work, and I understand penalties will be assessed if I submit work for credit that is not my own. Print Name ign Name Estimated Work Hours ID Number Date 2 3 4 5 6 7 8 9 2 3 4 5 6 7 8 9 Overall Weight GRDER # Points core 3 2 3 3 4 4 3 5 4 6 4 7 6 8 4 9 5 5 3 2 6 3 4 4 4 5 3 6 3 7 4 8. Total core Weeks late djusted core djusted core: Deduct 2% from score for each week late Problem. ketch a block diagram for a magnitude comparator bit-slice circuit. Create K-maps to define the bit-slice circuit, and use them to find optimal logic equations. ketch the circuit. Contains material Digilent, Inc. 9 pages

Exercise #7: Combinational rithmetic Circuits Problem 2. Modify the block diagram and circuit of problem by removing the logic gates and signals that form the EQ output. ketch a circuit diagram for a 4-bit comparator that uses the modified bit slice blocks, and add a single gate to form the EQ output from the LT and GT outputs from the M (most significant bit). Comment on the differences in the new circuit (i.e., which circuit is more efficient? Which is easier to design and implement? Which might run faster? nything else?) Could you make the bit-slice modules even more efficient by leaving in the EQ logic and removing some other logic? Explain. Problem 3. Complete truth tables and K-maps for H and F circuits, using XOR patterns where appropriate. Loop minimum OP equations, and sketch the circuits (assume all inputs and outputs are active high). Half dder Cout = Cout = Cout

Exercise #7: Combinational rithmetic Circuits Full dder Cin Cout = Cout = Cout Problem 4. ketch a circuit for a full adder using two halfadder blocks and an OR gate. Problem 5. Complete the truth table and K-maps for a CL adder bit-slice module, and sketch a minimal OP circuit (be sure to use XOR s where appropriate!). Cin G P = G = G P = P

Exercise #7: Combinational rithmetic Circuits Problem 6. ketch a Carry-Propagate-Generate circuit that can form the carry-ins for a 4-bit CL. Problem 7. Design a full-subtractor bit-slice circuit. Label the inputs,, and in, and label the outputs D and out. tart by completing the subtraction examples, then complete the truth table and K-maps, and then sketch the circuit....... -............ -............ -............ -............ -............ -............ -............ -...... in D out in D = in out = D out

Exercise #7: Combinational rithmetic Circuits Problem 8: Complete the number conversions indicated. Note that all binary numbers are two s complement representations. -9 = = = - = Problem 9: Complete the four 2 s compliment arithmetic problems below, showing both the decimal and binary numbers in each case. 7 - -22 + 6-35 - 42 9 - -7 Is the above answer correct in 8 bits? Explain. Problem : ketch a circuit to convert a 4-bit binary number to its 2 s complement representation. (Hint: can you use only 3 XOR/XNOR gates and 2 ND or OR gates?).

Exercise #7: Combinational rithmetic Circuits Problem : Explain how the circuit structures of a ripple-carry adder circuit configured as a 2 s compliment subtractor and a ripple-borrow subtractor perform identical functions. Cin in D in D Cout out out Full dder Full ubtractor Full dder configured for subtract Problem 2: Examine several examples of addition overflow and subtraction underflow, and sketch a circuit below that can output a whenever an addition or subtraction result is incorrect due to underflow or overflow. (Hint: compare the carry in and carry out signals of the most-significant bit).

Exercise #7: Combinational rithmetic Circuits Problem 3. Fill in the squares below to show all signal values when and are multiplied. 2 3 P 3 P 22 P 3 P 2 P 2 P 2 P P 2 P P P P P P P P 2 P 2 P 3 P 3 P 23 P 32 P 3 P 3 P 2 P 2 P 22 P 32 2 3 P 3 P 3 P 23 P 33 P 33 3 3 2 2 R 7 R 6 R 5 R 4 R 3 R 2 R R Problem 4. ketch a block diagram for a 4-bit LU built from bit-slice LU circuits that can implement the functions shown in the table. Label all signals, and recall that inputs to the bit slices must come from the and input busses as well as from neighboring bit slices (and outputs must drive the F output bus as well as neighboring bit slices). To design the signals that communicate information between slices, you must understand the LU operations and the implications for information transfer (e.g., does the operation PLU require that information be transferred between slices? If so, what? Does the operation OR require that information be transferred?). Operation Code LU function PLU PLU MINU MINU XOR OR ND

Exercise #7: Combinational rithmetic Circuits Problem 5. In the LU example in the module it was stated that an 8: mux could be use for the F output and a 4: mux could be used for the Cout output. ketch the mux-based circuit. Problem 6. Transfer the LU operation table from the module has been reproduced below, but opcode 3 has been redefined as decrement. Complete the F and Cout table entries to define the decrement logic functions. Op Code Function F Cout PLU xor xor Cin ( and ) or (Cin and ( xor )) PLU xor Cin and Cin MINU xor xor Cin ( and ) or (Cin and ( xor ) ) MINU XOR xor OR or ND and

Exercise #7: Combinational rithmetic Circuits Problem 7. Write VHDL statements to define the LU's operation.