1 CMSC 250 Chapter 1, con't., Combinatorial circuits.

Slides:



Advertisements
Similar presentations
(CSC 102) Discrete Structures Lecture 5.
Advertisements

ELEC353 S. al Zahir UBC Sign-Magnitude Representation High order bit is sign: 0 = positive (or zero), 1 = negative Low order bits represent the magnitude:
Arithmetic Operations and Circuits
CSC 110 – Intro to Computing Lecture 14: Midterm Review.
Homework Reading Machine Projects Labs
Digital Circuits. Analog and Digital Signals Noise margins in Logic Circuits VMVM.
Combinational Logic1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
ECE 331 – Digital System Design
Chapter 5 Arithmetic Logic Functions. Page 2 This Chapter..  We will be looking at multi-valued arithmetic and logic functions  Bitwise AND, OR, EXOR,
Chapter 7 Arithmetic Operations and Circuits Hexadecimal Arithmetic 4 binary bits represent a single hexadecimal digit Addition –Add the digits.
Arithmetic Operations and Circuits
Number Systems Lecture 02.
CS 105 Digital Logic Design
Simple Data Type Representation and conversion of numbers
Copyright © Cengage Learning. All rights reserved. CHAPTER 2 THE LOGIC OF COMPOUND STATEMENTS THE LOGIC OF COMPOUND STATEMENTS.
Logic Design CS221 1 st Term combinational circuits Cairo University Faculty of Computers and Information.
Binary Numbers.
1 Introduction to Abstract Mathematics Applications : Digital Logic Circuits 2.4 and Number Systems 2.5 Instructor: Hayk Melikya
Binary Addition CSC 103 September 17, 2007.
1 COMBINATIONAL LOGIC One or more digital signal inputs One or more digital signal outputs Outputs are only functions of current input values (ideal) plus.
Basic Arithmetic (adding and subtracting)
Computer Architecture I: Digital Design Dr. Robert D. Kent Logic Design Medium Scale Integration and Programmable Logic Devices Part I.
F = ∑m(1,4,5,6,7) F = A’B’C+ (AB’C’+AB’C) + (ABC’+ABC) Use X’ + X = 1.
CSI-2111 Computer Architecture Ipage Revision  Objective : To examine basic concepts of: –2.1 Numbering Systems –2.2 Binary Numbers –2.3 Boolean.
Topic: Arithmetic Circuits Course: Digital Systems Slide no. 1 Chapter # 5: Arithmetic Circuits.
Chapter 10 (Part 2): Boolean Algebra  Logic Gates (10.3) (cont.)  Minimization of Circuits (10.4)
CSE 241 Computer Organization Lecture # 9 Ch. 4 Computer Arithmetic Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering.
Basic Arithmetic (adding and subtracting)
Conversion between number systems Base 10 Decimal Our ordinal number system; a decimal number provides us a more accurate perception about its quantity.
46 Number Systems Problem: Implement simple pocket calculator Need: Display, adders & subtractors, inputs Display: Seven segment displays Inputs: Switches.
Lecture 4 Last Lecture –Positional Numbering Systems –Converting Between Bases Today’s Topics –Signed Integer Representation Signed magnitude One’s complement.
Engineering 1040: Mechanisms & Electric Circuits Spring 2014 Number Systems.
Lecture 9 Topics: –Combinational circuits Basic concepts Examples of typical combinational circuits –Half-adder –Full-adder –Ripple-Carry adder –Decoder.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Number Systems Binary to Decimal Octal to Decimal Hexadecimal to Decimal Binary to Octal Binary to Hexadecimal Two’s Complement.
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
Half Adder & Full Adder Patrick Marshall. Intro Adding binary digits Half adder Full adder Parallel adder (ripple carry) Arithmetic overflow.
Half-Adder: A combinational circuit which adds two one-bit binary numbers is called a half-adder. The sum column resembles like an output of the XOR gate.
Number Systems and Circuits for Addition Lecture 5 Section 1.5 Thu, Jan 26, 2006.
Universal college of engineering & technology. .By Harsh Patel)
1 Ethics of Computing MONT 113G, Spring 2012 Session 5 Binary Addition.
How computers calculate How binary operations yield complex capabilities.
Kavita Bala CS 3410, Spring 2014 Computer Science Cornell University.
Lecture 2 Binary Arithmetic Topics Terminology Fractions Base-r to decimal Unsigned Integers Signed magnitude Two’s complement August 26, 2003 CSCE 211.
69 Decimal (Base 10) Numbers n Positional system - each digit position has a value n 2534 = 2*1, * *10 + 4*1 n Alternate view: Digit position.
1. Computing Systems Lecture 3 Binary Representation & Boolean Logic Binary and Logic 2.
Logic Design CS221 1 st Term combinational circuits Cairo University Faculty of Computers and Information.
CS 151: Digital Design Chapter 4: Arithmetic Functions and Circuits
Number Systems and Circuits for Addition – Binary Adders Lecture 6 Section 1.5 Fri, Jan 26, 2007.
CEC 220 Digital Circuit Design
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits
1 Lecture 14 Binary Adders and Subtractors. 2 Overview °Addition and subtraction of binary data is fundamental Need to determine hardware implementation.
Number Representation (Part 2) Computer Architecture (Fall 2006)
1 Ethics of Computing MONT 113G, Spring 2012 Session 4 Binary Addition.
President UniversityErwin SitompulDigital Systems 7/1 Lecture 7 Digital Systems Dr.-Ing. Erwin Sitompul President University
Computing Systems Lecture 3 Binary Representation & Boolean Logic Binary and Logic 1.
Electrical Engineering Engineering the Future Digital Circuits Fundamentals Hands-on Full-Adder Simulation (afternoon)
Programming for GCSE Topic 9.2: Circuits for Adding T eaching L ondon C omputing William Marsh School of Electronic Engineering and Computer Science Queen.
Decoder Chapter 12 Subject: Digital System Year: 2009.
Lecture No. 14 Combinational Functional Devices. Digital Logic &Design Dr. Waseem Ikram Lecture 14.
1 Review of Boolean algebra Not is a horizontal bar above the number –0 = 1 –1 = 0 Or is a plus –0+0 = 0 –0+1 = 1 –1+0 = 1 –1+1 = 1 And is multiplication.
Half-Adder:  A combinational circuit which adds two one-bit binary numbers is called a half-adder. oThe sum column resembles like an output of the XOR.
1 CMSC 250 Circuits. 2 CMSC 250 Find Boolean formula for: p, q & r are the variables. pqroutput
Chapter 12. Chapter Summary Boolean Functions Representing Boolean Functions Logic Gates Minimization of Circuits (not currently included in overheads)
Fundamentals & Ethics of Information Systems IS 201
University of Gujrat Department of Computer Science
Number Systems and Circuits for Addition
CMSC250 Fall 2018 Circuits 1 1.
XOR Function Logic Symbol  Description  Truth Table 
Adder Circuits By: Asst Lec. Basma Nazar
Presentation transcript:

1 CMSC 250 Chapter 1, con't., Combinatorial circuits

2 CMSC 250 Basic logic gates l An and gate: l An or gate: l A not gate:

3 CMSC 250 Discrete Structures CMSC 250 Lecture 6

4 CMSC 250 Combining & determining I/O relationship l From a circuit to a Boolean formula: l p  ~(q ^ r) p q r

5 CMSC 250 Draw a circuit for: l p, q & r are inputs. l Simplify before building the circuit. pqroutput

6 CMSC 250 Number conversions l Different number system bases are used when convenient –some commonly-used bases are 10 (decimal), 2 (binary), 8 (octal), 16 (hexadecimal) –the base tells how many different numerals are used –the base also determines the value of each place l Conversions from anything to base 10 –use the definition of the number system l Conversions from base 10 to anything –use repeated integer division

7 CMSC 250 Addition of binary numbers l Carry if the number would be too large for the number system- if it is greater than

8 CMSC 250 Discrete Structures CMSC 250 Lecture 7

9 CMSC 250 Addition of octal and hexadecimal numbers l Carry if the number would be too large for the number system (larger than 7 or 15) ABC CDE 16 +ED 16

10 CMSC 250 Two's complement l To represent negative values in binary: 1.Find the binary equivalent of the absolute value. 2.Pad on the left to completely fill the bits in the specified bit width 3.Switch all of the 1's to 0's and 0's to 1's. 4.Add 1 to the result. Example: find the 8-bit two's complement representation of -43: = =

11 CMSC 250 Using a circuit for adding two bits l Write as a logic expression l Translate to circuits pqcarrysum inputoutput

12 CMSC 250 Half adder p and q are binary values (1 bit each) sum = (p  q) ^ ~(p ^ q) carry = (p ^ q) q p sum carry

13 CMSC 250 Full adder (for three bits) l p, q, and r are binary digits l p + q + r produces a sum value and a carry value half-adder #1 half-adder #2 p q r S1S1 C1C1 C S C2C2

14 CMSC 250 Parallel adders l Chain these half adders and full adders together for multi-bit addition l X 1 X 2 X 3 + Y 1 Y 2 Y 3 = CA 1 A 2 A 3 X3X3 Y3Y3 X2X2 Y2Y2 X1X1 Y1Y1 half-adder full-adder A3A3 carry A2A2 A1A1

15 CMSC 250 Discrete Structures CMSC 250 Lecture 8

16 CMSC 250 Draw a circuit for abcoutput

17 CMSC 250 Topic not covered Simplifying circuits- there are techniques which exist (which are complex).