1 CMSC 250 Circuits. 2 CMSC 250 Find Boolean formula for: p, q & r are the variables. pqroutput

Slides:



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

Digital Circuits. Review – Getting the truth table The first step in designing a digital circuit usually is to get the truth table. That is, for every.
Digital Circuits.
CSE-221 Digital Logic Design (DLD)
08/07/041 CSE-221 Digital Logic Design (DLD) Lecture-8:
CSC 110 – Intro to Computing Lecture 14: Midterm Review.
Digital Circuits. Analog and Digital Signals Noise margins in Logic Circuits VMVM.
Chapter 3 Combinational Logic 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,
CS 105 Digital Logic Design
ReVieW Combinational & Sequential Logic Circuit EKT 221 / 4 DIGITAL ELECTRONICS II.
Morgan Kaufmann Publishers
Combinational Logic Design
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.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
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.
1 CMSC 250 Chapter 1, con't., Combinatorial circuits.
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)
Basic Arithmetic (adding and subtracting)
Digital Circuits. Review – Getting the truth table The first step in designing a digital circuit usually is to get the truth table. That is, for every.
Quiz What are the results of the following 4-bit bitwise logical operations? NOT OR NOR AND
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
Lecture 9 Topics: –Combinational circuits Basic concepts Examples of typical combinational circuits –Half-adder –Full-adder –Ripple-Carry adder –Decoder.
CHAPTER 4 Combinational Logic
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Computer Science 101 Circuit Design - Examples. Sum of Products Algorithm Identify each row of the output that has a 1. Identify each row of the output.
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.
Arithmetic Circuits. Half Adder ABSumCarry
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.
Universal college of engineering & technology. .By Harsh Patel)
1 Ethics of Computing MONT 113G, Spring 2012 Session 5 Binary Addition.
Logic and computers 2/6/12. Binary Arithmetic /6/ Only two digits: the bits 0 and 1 (Think: 0 = F, 1.
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.
Logic Design CS221 1 st Term combinational circuits Cairo University Faculty of Computers and Information.
Number Systems and Circuits for Addition – Binary Adders Lecture 6 Section 1.5 Fri, Jan 26, 2007.
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits
1 Ethics of Computing MONT 113G, Spring 2012 Session 4 Binary Addition.
How does a Computer Add ? Logic Gates within chips: AND Gate A B Output OR Gate A B Output A B A B
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.
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.
Gunjeet Kaur Dronacharya Group of Institutions. Binary Adder-Subtractor A combinational circuit that performs the addition of two bits is called a half.
Chapter 12. Chapter Summary Boolean Functions Representing Boolean Functions Logic Gates Minimization of Circuits (not currently included in overheads)
Chap 3. Combinational Logic Design
DIGITAL LOGIC CIRCUITS
Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables, logic gates,
Computer Architecture CST 250
Fundamentals & Ethics of Information Systems IS 201
University of Gujrat Department of Computer Science
Number Systems and Circuits for Addition
There are 10 types of people of people in this world…
CMSC250 Fall 2018 Circuits 1 1.
Copyright © Cengage Learning. All rights reserved.
XOR Function Logic Symbol  Description  Truth Table 
Remember the 10 types of people of people in this world…
Adder Circuits By: Asst Lec. Basma Nazar
Digital Circuits.
Half & Full Subtractor Half Subtractor Full Subtractor.
Half & Full Subtractor Half Subtractor Full Subtractor.
Digital Circuits.
Presentation transcript:

1 CMSC 250 Circuits

2 CMSC 250 Find Boolean formula for: p, q & r are the variables. pqroutput

3 CMSC 250 Find Boolean Formula For each row with output 1 obtain “mini-formula” which is 1 exactly on that row. OR together all of the mini-formulas 111, 110, and 100 all output 1 p^q^r, p^q^~r, p^~q^~r (p^q^r)  (p^q^~r)  (p^~q^~r)

4 CMSC 250 Basic logic gates AND gate: OR gate: NOT gate:

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

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

7 CMSC 250 Number conversions 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 Conversions from anything to base 10 –use the definition of the number system Conversions from base 10 to anything –use repeated integer division

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

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

10 CMSC 250 Two's complement 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 Write as a logic expression 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) p, q, and r are binary digits 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 Chain these half adders and full adders together for multi-bit addition A 3 A 2 A 1 A 0 + B 3 B 2 B 1 B 0 = S 3 S 2 S 1 S 0 X3X3 Y3Y3 X2X2 Y2Y2 X1X1 Y1Y1

15 CMSC 250 Draw a circuit for abcoutput

16 CMSC 250 Topic not covered Simplifying circuits: there are techniques that exist (which are complex).