Logic Gates. Transistors as Switches ¡V BB voltage controls whether the transistor conducts in a common base configuration. ¡Logic circuits can be built.

Slides:



Advertisements
Similar presentations
Abdullah Said Alkalbani University of Buraimi
Advertisements

Date of Birth Design Problem
Looking Inside the Black Box
CSE 370 Sample Final Exam Questions. 1) Logic Minimization CD AB F = Σm(0,6,7,8,9,11,15) + d(1,13)
Register Transfer and Microoperations Part2
Principles & Applications
Logic Making decisions
Binary Numbers.
Binary Numbers.
Binary Numbers.
8 October 2013Birkbeck College, U. London1 Introduction to Computer Systems Lecturer: Steve Maybank Department of Computer Science and Information Systems.
15 October 2013Birkbeck College, U. London1 Introduction to Computer Systems Lecturer: Steve Maybank Department of Computer Science and Information Systems.
1 Floating Point Representation and Arithmetic (see Patterson Chapter 4)
A Simple ALU Binary Logic.
B261 Systems Architecture
The other way to represent Integers.
Number Systems. Common Number Systems SystemBaseSymbols Used by humans? Used in computers? Decimal100, 1, … 9YesNo Binary20, 1NoYes Octal80, 1, … 7No.
Monika Gope Lecturer IICT, KUET
Princess Sumaya University
Truth Tables & Logic Expressions
Logic Circuits Basic Building Blocks Dr John Cowell
Chapter 4 Gates and Circuits.
Introduction to Computer Engineering ECE/CS 252, Fall 2010 Prof. Mikko Lipasti Department of Electrical and Computer Engineering University of Wisconsin.
Chapter 3 Digital Logic Structures
Chapter 4 Gates and Circuits.
ENGIN112 L7: More Logic Functions September 17, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 7 More Logic Functions: NAND, NOR,
Discrete Mathematical Structures: Theory and Applications
Digital Systems Introduction Binary Quantities and Variables
Digital Logical Structures
Department of Computer and Information Science, School of Science, IUPUI CSCI 240 Digital Logic.
Gates and Circuits Nell Dale & John Lewis (adaptation by Erin Chambers and Michael Goldwasser)
Lecture 6 More Logic Functions: NAND, NOR, XOR and XNOR
Logic Gates Flip-Flops Registers Adders
Binary Values Chapter 2. Why Binary? Electrical devices are most reliable when they are built with 2 states that are hard to confuse: gate open / gate.
(CSC 102) Discrete Structures Lecture 5.
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Module 3 Combinational and Sequential Logic Circuit By: Cesar Mendoza.
Chapter 3 Digital Logic Structures
Chapter 4 Gates and Circuits.
Karnaugh Map Adjacent Squares
Basic Electronics Ninth Edition Basic Electronics Ninth Edition ©2002 The McGraw-Hill Companies Grob Schultz.
topics Logic gates Gates types Universal gates
Chapter 4 Gates and Circuits.
Binary Values and Number Systems
Number Systems  binary, octal, and hexadecimal numbers  why used  conversions, including to/from decimal  negative binary numbers  floating point.
Binary Number Systems.
CS 121 Digital Logic Design
Number Systems Digital Logic By: Safwan Mawlood
Nat 4/5 Computing Science Lesson 1: Binary
Binary Lesson 4 Hexadecimal and Binary Practice. Counting to 15 Base Base Base 16 Base Base Base 16 Two Ten (Hex) Two Ten (Hex)
Binary Lesson 3 Hexadecimal. Counting to 15 Base Base Base 16 Base Base Base 16 Two Ten (Hex) Two Ten (Hex)
Binary Lesson 3 Hexadecimal. Counting to 15 Base Base Base 16 Base Base Base 16 Two Ten (Hex) Two Ten (Hex)
Princess Sumaya University
Combinational Circuits
Digital Logic & Design Lecture No. 3. Number System Conversion Conversion between binary and octal can be carried out by inspection.  Each octal digit.
Datorteknik IntegerAddSub bild 1 Integer arithmetic Depends what you mean by "integer" Assume at 3-bit string. –Then we define zero = 000 one = 001 Use.
Number Systems Different number systems Representation of numbers in binary Conversion between decimal and binary, Conversion between binary and hexadecimal.
NUMBER SYSTEMS The BASE of a number system Determines the number of digits available In our number system we use 10 digits: 0-9 The base in our system.
Binary, Hexadecimal, and Base 10.
1/15/2015 Slide # 1 Binary, Octal and Hex Numbers Copyright Thaddeus Konar Introduction to Binary, Octal and Hexadecimal Numbers Thaddeus Konar.
Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue.
The Logic of Compound Statements
Binary Numbers.
Logic Gates. Transistors as Switches ¡EB voltage controls whether the transistor conducts in a common base configuraiton. ¡Logic circuits can be built.
Fundamentals & Ethics of Information Systems IS 201
Number Systems Decimal (base 10) { }
Logic Gates.
Boolean Algebra.
Logic Gates.
Presentation transcript:

Logic Gates

Transistors as Switches ¡V BB voltage controls whether the transistor conducts in a common base configuration. ¡Logic circuits can be built

AND ¡In order for current to flow, both switches must be closed ¤Logic notation A B = C (Sometimes AB = C) ABC

OR ¡Current flows if either switch is closed ¤Logic notation A + B = C ABC

Properties of AND and OR ¡Commutation ¤A + B = B + A ¤A B = B A Same as

Properties of AND and OR ¡Associative Property ¤A + (B + C) = (A + B) + C ¤A (B C) = (A B) C =

Properties of AND and OR ¡Distributive Property ¤A + B C = (A + B) (A + C) ¤A + B C ABCQ

Distributive Property ¡(A + B) (A + C) ABCQ

Binary Addition ABSC(arry) Notice that the carry results are the same as AND C = A B

Inversion (NOT) AQ Logic:

Exclusive OR (XOR) Either A or B, but not both This is sometimes called the inequality detector, because the result will be 0 when the inputs are the same and 1 when they are different. The truth table is the same as for S on Binary Addition. S = A B ABS

Getting the XOR ABS Two ways of getting S = 1

Circuit for XOR Accumulating our results: Binary addition is the result of XOR plus AND

Half Adder Called a half adder because we havent allowed for any carry bit on input. In elementary addition of numbers, we always need to allow for a carry from one column to the next (plus a carry)

Full Adder INPUTSOUTPUTS ABC IN C OUT S

Full Adder Circuit

Chaining the Full Adder Possible to use the same scheme for subtraction by noting that A – B = A + (-B)

Binary Counting Use 1 for ON Use 0 for OFF = Binary Counter So our example has = = 43

Counting in Binary

NAND (NOT AND) ABQ

NOR (NOT OR) ABQ

Exclusive NOR ABQ Equality Detector

Summary Summary for all 2-input gates InputsOutput of each gate A B ANDNAND OR NORXORXNOR

Number Systems ¡Decimal (base 10) { } ¤Place value gives a logarithmic representation of the number ¤Ex means ۞ 4 X 10 3 = 4000 ۞ 3 X 10 2 = 300 ۞ 7 X 10 1 = 70 ۞ 8 X 10 0 = 8 ¤The place also gives the exponent of the base

Example ¡432, Powers of ten: 10 0 = = = = = =

Binary (base 2) {0 1} BinaryDecimal

Example

Decimal Equivalent ¡ X 2 7 = X 2 6 = X 2 5 = X 2 4 = X 2 3 = X 2 2 = X 2 1 = X 2 0 = Notice how powers of two stand out: 2 0 = = = = 1000

Decimal to Binary Conversion ¡Ex. 575 ¤Find the largest power of two less than the number ۞ 2 9 = 512 ¤Subtract that power of two from the number ۞ 575 – 512 = 63 ¤Repeat steps 1 and 2 for the new result until you reach zero. ۞ 2 5 = – 32 = 31 ۞ 2 4 = – 16 = 15 ۞ 2 3 = 8 15 – 8 = 7 ۞ 2 2 = 4 7 – 4 = 3 ۞ 2 1 = 2 3 – 2 = 1 ۞ 2 0 = 1 1 – 1 = 0 ¤Construct the number ۞

Another Example ¡144 ¤2 7 = – 128 = 16 ¤2 4 = – 16 = 0 ¡Result

Hexadecimal (base 16) ¡ { A B C D E F} ¡ Assignments DecHexDecHex A 3311B 4412C 5513D 6614E 7715F

Example B 6 E 3 X 16 3 = X 16 2 = X 16 1 = X 16 0 =

Hexadecimal is Convenient for Binary Conversion BinaryHexBinaryHex A B C D E F Nibble

Binary to Hex Conversion ¡ Group binary number by fours (nibbles) ¤ ¡Convert each nibble into hex equivalent ¤ D 9 6

Decimal to Hex Conversion ¡ Ex. 284 ¤16 2 = – 256 = 28 ¤16 1 = = 12 (Hex C) ¤Result 1 1 C

Another Example with an Extension ¡ 1054 ¤16 2 = 256 ۞ But we have several multiples of 256 in 1054 –1054/256 = 4.12 take integer part –This eliminates 4*256 = 1024 ۞ 1054 – 1024 = 30 ¤16 1 = – 16 = 14 (Hex E) ¤Result 4 1 E