ECE/CS 250: Computer Architecture. Basics of Logic Design: Boolean Algebra, Logic Gates. Benjamin Lee
|
|
- Cory McBride
- 5 years ago
- Views:
Transcription
1 ECE/CS 250: Computer Architecture Basics of Logic Design: Boolean Algebra, Logic Gates Benjamin Lee Slides based on those from Alvin Lebeck, Daniel Sorin, Andrew Hilton, Amir Roth, Gershon Kedem
2 Admin Resource: Pragmatic Logic by William Eccles In Sakai Resources and linked off web page. Skim for what you need, way too much in there This material is covered in MUCH greater depth in ECE/CS 350 please take ECE/CS 350 if you want to learn enough digital design to build your own processor Download Logisim before Friday s recitation 2
3 What We ve Done, Where We re Going Top Down Application Operating System Software Compiler Firmware CPU Memory I/O system Digital Design Circuit Design Interface Between HW and SW Instruction Set Architecture, Memory, I/O Hardware (Almost) Bottom UP to CPU 3
4 Computer = Machine That Manipulates Bits Everything is in binary (bunches of 0s and 1s) Instructions, numbers, memory locations, etc. Computer is a machine that operates on bits Computers physically made of transistors Electrically controlled switches We can use transistors to build logic E.g., if this bit is a 0 and that bit is a 1, then set some other bit to be a 1 E.g., if the first 5 bits of the instruction are then set this other bit to 1 (to tell the adder to subtract instead of add) 4
5 How Many Transistors Are We Talking About? Pentium III Processor Core 9.5 Million Transistors Total: 28 Million Transistors Pentium 4 Total: 42 Million Transistors Core2 Duo (two processor cores) Total: 290 Million Transistors Core2 Duo Extreme (4 processor cores, 8MB cache) Total: 590 Million Transistors Core i7 with 6-cores Total: 2.27 Billion Transistors How do they design such a thing? Carefully! 5
6 Abstraction! Use of abstraction (key to design of any large system) Put a few (2-8) transistors into a logic gate (or, and, xor, ) Combine gates into logical functions (add, select,.) Combine adders, shifters, etc., together into modules Units with well-defined interfaces for large tasks: e.g., decode Combine a dozen of those into a core Stick 4 cores on a chip 6
7 You are here: Use of abstraction (key to design of any large system) Put a few (2-8) transistors into a logic gate Combine gates into logical functions (add, select,.) Combine adders, muxes, etc together into modules Units with well-defined interfaces for large tasks: e.g., decode Combine a dozen of those into a core Stick 4 cores on a chip 7
8 Boolean Algebra First step to logic: Boolean Algebra Formal apporoach for manipulating of True / False (1/0) After all: everything is just 1s and 0s Boolean Functions: Given inputs (variables): A, B, C, P, Q Compute outputs using logic operators, such as: NOT:!A (= ~A = A = A ) AND: A&B (= A B = A*B = AB = A B) = A&&B in C/Java OR: A B (= A+B = A B) = A B in C/Java XOR: A ^ B (= A B) NAND, NOR, XNOR, Etc. 8
9 Truth Tables Can represent as Truth Table: shows outputs for all inputs a NOT(a)
10 Truth Tables Can represent as truth table: shows outputs for all inputs a NOT(a) a b AND(a,b)
11 Truth Tables Can represent as truth table: shows outputs for all inputs a NOT(a) a b AND(a,b) a b OR(a,b)
12 Truth Tables Can represent as truth table: shows outputs for all inputs a NOT(a) a b AND(a,b) a b OR(a,b) a b XOR(a,b) a b XNOR(a,b) a b NOR(a,b)
13 Boolean Gates (More Later) Gates are electronic devices that implement simple Boolean functions (building blocks of hardware) Examples a b AND(a,b) a b OR(a,b) a NOT(a) a b XOR(a,b) a b NAND(a,b) a b NOR(a,b) a b XNOR(a,b) 13
14 Any Inputs, Any Outputs Can have any # of inputs, any # of outputs Can have arbitrary functions: a b c f 1 f
15 Let s Write a Truth Table for a Function Example: (A & B)!C Start with Empty TT Column Per Input Column Per Output A B C Output 15
16 Let s write a Truth Table for a function Example: (A & B)!C Start with Empty TT Column Per Input Column Per Output A B C Output Fill in Inputs Counting in Binary 16
17 Let s write a Truth Table for a function Example: (A & B)!C Start with Empty TT Column Per Input Column Per Output A B C Output Fill in Inputs Counting in Binary 17
18 Let s write a Truth Table for a function Example: (A & B)!C Start with Empty TT Column Per Input Column Per Output Fill in Inputs Row per set of input values Counting in Binary A B C Output
19 Let s write a Truth Table for a function Example: (A & B)!C Start with Empty TT Column Per Input Column Per Output Fill in Inputs Row per set of input values Counting in Binary Compute Output for reach row (0 & 0)!0 = 0 1 = 1 A B C Output
20 Let s write a Truth Table for a function Example: (A & B)!C Start with Empty TT Column Per Input Column Per Output Fill in Inputs Row per set of input values Counting in Binary Compute Output for each row (0 & 0)!1 = 0 0 = 0 A B C Output
21 Let s write a Truth Table for a function Example: (A & B)!C Start with Empty TT Column Per Input Column Per Output Fill in Inputs Row per set of input values Counting in Binary Compute Output for each row (0 & 1)!0 = 0 1 = 1 A B C Output
22 Let s write a Truth Table for a function Example: (A & B)!C Start with Empty TT Column Per Input Column Per Output Fill in Inputs Row per set of input values Counting in Binary Compute Output for each row A B C Output
23 You try one Try one yourself: (!A B) &!C 23
24 You try one Try one yourself: (!A B) &!C Answer: A B C Output
25 Suppose I turn it around Given a Truth Table, find the formula? Hmmm.. A B C Output
26 Suppose I turn it around Given a Truth Table, find the formula? Hmmm Could write down every true case Then OR together: (!A &!B &!C) (!A &!B & C) (!A & B &!C) (A & B &!C) (A & B & C) A B C Output
27 Suppose I turn it around Given a Truth Table, find the formula? Hmmm.. Could write down every true case Then OR together: (!A &!B &!C) (!A &!B & C) (!A & B &!C) (A & B &!C) (A & B &C) A B C Output
28 Suppose I turn it around Given a Truth Table, find the formula? Hmmm.. Could write down every true case Then OR together: (!A &!B &!C) (!A &!B & C) (!A & B &!C) (A & B &!C) (A & B &C) A B C Output
29 Suppose I turn it around This approach: sum of products Works every time Result is right But really ugly (!A &!B &!C) (!A &!B & C) (!A & B &!C) (A & B &!C) (A & B &C) A B C Output
30 Suppose I turn it around This approach: sum of products Works every time Result is right But really ugly (!A &!B &!C) (!A &!B & C) (!A & B &!C) (A & B &!C) (A & B &C) Could just be (A & B) here? A B C Output
31 Suppose I turn it around This approach: sum of products Works every time Result is right But really ugly (!A &!B &!C) (!A &!B & C) (!A & B &!C) (A&B) A B C Output
32 Suppose I turn it around This approach: sum of products Works every time Result is right But really ugly (!A &!B &!C) (!A &!B & C) (!A & B &!C) (A&B) Could just be (!A &!B) here A B C Output
33 Suppose I turn it around This approach: sum of products Works every time Result is right But really ugly (!A &!B) (!A & B &!C) (A&B) A B C Output
34 Suppose I turn it around This approach: sum of products Works every time Result is right But really ugly (!A &!B) (!A & B &!C) (A&B) Looks nicer Can we do better? A B C Output
35 Suppose I turn it around This approach: sum of products Works every time Result is right But really ugly (!A &!B) (!A & B &!C) (A&B) This has a lot in common:!a & (something) A B C Output
36 Suppose I turn it around This approach: sum of products Works every time Result is right But really ugly (!A &!(B & C)) (A & B) A B C Output
37 Just did some of these by intuition.. but Somewhat intuitive approach to simplifying This is math, so there are formal rules Just like regular algebra 37
38 Boolean Function Simplification Boolean expressions can be simplified by using the following rules (bitwise logical): A & A = A A & 0 = 0 A A = A A 0 = A A & 1 = A A 1 = 1 A &!A = 0 A!A = 1!!A = A & and are both commutative and associative & and can be distributed: A & (B C) = (A & B) (A & C) & and can be subsumed: A (A & B) = A 38
39 DeMorgan s Laws Two (less obvious) Laws of Boolean Algebra: Let s push negations inside, flipping & and!(a & B) = (!A) (!B)!(A B) = (!A) & (!B) You should try this at home build truth tables for both the left and right sides and see that they re the same 39
40 Suppose I turn it around One more simplification on early example: (!A &!(B & C)) (A & B) = (!A & (!B!C)) (A & B) A B C Output
41 Another Simplification Example! (!A!(A & (B C))) 41
42 Simplification Example:! (!A!(A & (B C))) DeMorgan s!!a &!! (A & (B C)) 42
43 Simplification Example:! (!A!(A & (B C))) DeMorgan s!!a &!! (A & (B C)) Double Negation Elimination A & (A & (B C)) 43
44 Simplification Example:! (!A!(A & (B C))) DeMorgan s!!a &!! (A & (B C)) Double Negation Elimination A & (A & (B C)) Associativity of & (A & A) & (B C) 44
45 Simplification Example:! (!A!(A & (B C))) DeMorgan s!!a &!! (A & (B C)) Double Negation Elimination A & (A & (B C)) Associativity of & (A & A) & (B C) A & (B C) A & A = A 45
46 You try this: Come up with a formula for this Truth Table Simplify as much as possible A B C Output
47 You try this: Come up with a formula for this Truth Table Simplify as much as possible Sum of Products: (!A &!B &!C) (!A & B &!C) (A &!B & C) (A & B & C) A B C Output
48 You try this: Simplify first two terms: (!A &!B &!C) (!A & B &!C) 48
49 You try this: Simplify: (!A &!B &!C) (!A & B &!C) Regroup (associative/commutative): ((!A &!C) &!B) ((!A &!C) & B) 49
50 You try this: Simplify: (!A &!B &!C) (!A & B &!C) Regroup (associative/commutative): ((!A &!C) &!B) ((!A &!C) & B) Un-distribute (pull out common factor): (!A &!C) & (!B B) 50
51 You try this: Simplify: (!A &!B &!C) (!A & B &!C) Regroup (associative/commutative): ((!A &!C) &!B) ((!A &!C) & B) Un-distribute: (!A &!C) & (!B B) OR identities: (!A &!C) & true = (!A &!C) 51
52 You try this: Come up with a formula for this Truth Table Simplify as much as possible Sum of Products: (!A &!C) (A &!B & C) (A & B & C) A B C Output
53 You try this: Come up with a formula for this Truth Table Simplify as much as possible Sum of Products: (!A &!C) (A & C) A B C Output
54 Applying the Theory Lots of good theory Can reason about complex Boolean expressions Can design software to minimize But why is this useful? 54
55 Boolean Gates Gates are electronic devices that implement simple Boolean functions (building blocks of hardware) Examples a b AND(a,b) a b OR(a,b) a NOT(a) a b XOR(a,b) a b NAND(a,b) a b NOR(a,b) a b XNOR(a,b) 55
56 Guide to Remembering your Gates This one looks like it just points its input where to go It just produces its input as its output Called a buffer a a 56
57 Guide to Remembering your Gates This one looks like it just points its input where to go It just produces its input as its output Called a buffer a a A circle always means negate a NOT(a) Circle = NOT 57
58 Brief Interlude: Building An Inverter a NOT(a) Vdd = power = 1 P-type: switch is on if input is 0 a NOT(a) N-type: switch is on if input is 1 ground= 0 58
59 Guide to Remembering Your Gates AND Gates have a straight edge, like an A (in AND) Straight like an A a b AND(a,b) OR Gates have a curved edge, like an O (in OR) a b OR(a,b) Curved, like an O 59
60 Guide to Remembering Your Gates If we stick a circle on them a b AND(a,b) a b NAND(a,b) Circle = NOT a b OR(a,b) a b NOR(a,b) We get NAND (NOT-AND) and NOR (NOT-OR) NAND(a,b) = NOT(AND(a,b)) 60
61 Guide to Remembering Your Gates XOR looks like OR (curved line) But has two lines (like an X does) a b XOR(a,b) Can put a dot for XNOR XNOR is 1-bit equals by the way a b XNOR(a,b) 61
62 Boolean Functions, Gates and Circuits Circuits are made from a network of gates. (!A &!C) (A & C) A C Out 62
63 A few more words about gates Gates have inputs and outputs If you try to hook up two outputs, bad things happen (your processor catches fire) a b c d BAD! If you don t hook up an input, it behaves kind of randomly (also not good, but not set-your-chip-on-fire bad) 63
64 Let s Make a Useful Circuit Pick between 2 inputs (called 2-to-1 MUX) Short for multiplexor What might we do first? 64
65 Let s Make a Useful Circuit Pick between 2 inputs (called 2-to-1 MUX) Short for multiplexor What might we do first? Make a truth table? S is selector: S=0, pick A S=1, pick B A B S Output
66 Let s Make a Useful Circuit Pick between 2 inputs (called 2-to-1 MUX) Short for multiplexor What might we do first? Make a truth table? S is selector: S=0, pick A S=1, pick B Next: sum-of-products (!A & B & S) (A &!B &!S) (A & B &!S ) (A & B & S) A B S Output
67 Let s Make a Useful Circuit Pick between 2 inputs (called 2-to-1 MUX) Short for multiplexor What might we do first? Make a truth table? S is selector: S=0, pick A S=1, pick B Next: sum-of-products Simplify (A &!S) (B & S) A B S Output
68 Circuit Example: 2x1 MUX Draw it in gates: A AND MUX(A, B, S) = (A &!S) (B & S) OR output B AND S So common, we give it its own symbol: a b output s 68
69 Example 4x1 MUX a b a 0 c d out b c d y 2 s 0 s 1 S The / 2 on the wire means 2 bits 69
70 Arithmetic and Logical Operations in ISA What operations are there? How do we implement them? Consider a 1-bit Adder 70
71 Summary Boolean Algebra & functions Logic gates (AND, OR, NOT, etc) Multiplexors Download Logisim for Recitation 71
ECE 250 / CPS 250 Computer Architecture. Basics of Logic Design Boolean Algebra, Logic Gates
ECE 250 / CPS 250 Computer Architecture Basics of Logic Design Boolean Algebra, Logic Gates Benjamin Lee Slides based on those from Andrew Hilton (Duke), Alvy Lebeck (Duke) Benjamin Lee (Duke), and Amir
More informationECE/CS 250 Computer Architecture
ECE/CS 250 Computer Architecture Basics of Logic Design: Boolean Algebra, Logic Gates (Combinational Logic) Tyler Bletsch Duke University Slides are derived from work by Daniel J. Sorin (Duke), Alvy Lebeck
More informationFloating Point Representation and Digital Logic. Lecture 11 CS301
Floating Point Representation and Digital Logic Lecture 11 CS301 Administrative Daily Review of today s lecture w Due tomorrow (10/4) at 8am Lab #3 due Friday (9/7) 1:29pm HW #5 assigned w Due Monday 10/8
More informationDigital Logic. CS211 Computer Architecture. l Topics. l Transistors (Design & Types) l Logic Gates. l Combinational Circuits.
CS211 Computer Architecture Digital Logic l Topics l Transistors (Design & Types) l Logic Gates l Combinational Circuits l K-Maps Figures & Tables borrowed from:! http://www.allaboutcircuits.com/vol_4/index.html!
More informationComputer organization
Computer organization Levels of abstraction Assembler Simulator Applications C C++ Java High-level language SOFTWARE add lw ori Assembly language Goal 0000 0001 0000 1001 0101 Machine instructions/data
More informationCS/COE0447: Computer Organization and Assembly Language
CS/COE0447: Computer Organization and Assembly Language Logic Design Introduction (Brief?) Appendix B: The Basics of Logic Design Dept. of Computer Science Logic design? Digital hardware is implemented
More informationUniversity of Technology
University of Technology Lecturer: Dr. Sinan Majid Course Title: microprocessors 4 th year معالجات دقيقة المرحلة الرابعة ھندسة الليزر والبصريات االلكترونية Lecture 3 & 4 Boolean Algebra and Logic Gates
More informationCHAPTER1: Digital Logic Circuits Combination Circuits
CS224: Computer Organization S.KHABET CHAPTER1: Digital Logic Circuits Combination Circuits 1 PRIMITIVE LOGIC GATES Each of our basic operations can be implemented in hardware using a primitive logic gate.
More informationBoolean Algebra and Digital Logic 2009, University of Colombo School of Computing
IT 204 Section 3.0 Boolean Algebra and Digital Logic Boolean Algebra 2 Logic Equations to Truth Tables X = A. B + A. B + AB A B X 0 0 0 0 3 Sum of Products The OR operation performed on the products of
More informationXI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.
2017-18 XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL HALF ADDER 1. The circuit that performs addition within the Arithmetic and Logic Unit of the CPU are called adders. 2. A unit that adds two
More informationBoolean Algebra & Logic Gates. By : Ali Mustafa
Boolean Algebra & Logic Gates By : Ali Mustafa Digital Logic Gates There are three fundamental logical operations, from which all other functions, no matter how complex, can be derived. These Basic functions
More informationDigital Logic: Boolean Algebra and Gates. Textbook Chapter 3
Digital Logic: Boolean Algebra and Gates Textbook Chapter 3 Basic Logic Gates XOR CMPE12 Summer 2009 02-2 Truth Table The most basic representation of a logic function Lists the output for all possible
More informationCMPE12 - Notes chapter 2. Digital Logic. (Textbook Chapters and 2.1)"
CMPE12 - Notes chapter 2 Digital Logic (Textbook Chapters 3.1-3.5 and 2.1)" Truth table" The most basic representation of a logic function." Brute force representation listing the output for all possible
More informationNumber System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary
Number System Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary BOOLEAN ALGEBRA BOOLEAN LOGIC OPERATIONS Logical AND Logical OR Logical COMPLEMENTATION
More informationUnit 8A Computer Organization. Boolean Logic and Gates
Unit 8A Computer Organization Boolean Logic and Gates Announcements Bring ear buds or headphones to lab! 15110 Principles of Computing, Carnegie Mellon University - CORTINA 2 Representing and Manipulating
More informationLecture 22 Chapters 3 Logic Circuits Part 1
Lecture 22 Chapters 3 Logic Circuits Part 1 LC-3 Data Path Revisited How are the components Seen here implemented? 5-2 Computing Layers Problems Algorithms Language Instruction Set Architecture Microarchitecture
More informationBoolean algebra. Examples of these individual laws of Boolean, rules and theorems for Boolean algebra are given in the following table.
The Laws of Boolean Boolean algebra As well as the logic symbols 0 and 1 being used to represent a digital input or output, we can also use them as constants for a permanently Open or Closed circuit or
More informationCS/COE0447: Computer Organization
CS/COE0447: Computer Organization and Assembly Language Logic Design Review Sangyeun Cho Dept. of Computer Science Logic design? Digital hardware is implemented by way of logic design Digital circuits
More informationCS61C : Machine Structures
CS 61C L15 Blocks (1) inst.eecs.berkeley.edu/~cs61c/su05 CS61C : Machine Structures Lecture #15: Combinational Logic Blocks Outline CL Blocks Latches & Flip Flops A Closer Look 2005-07-14 Andy Carle CS
More informationEEE130 Digital Electronics I Lecture #4
EEE130 Digital Electronics I Lecture #4 - Boolean Algebra and Logic Simplification - By Dr. Shahrel A. Suandi Topics to be discussed 4-1 Boolean Operations and Expressions 4-2 Laws and Rules of Boolean
More informationCS/COE1541: Introduction to Computer Architecture. Logic Design Review. Sangyeun Cho. Computer Science Department University of Pittsburgh
CS/COE54: Introduction to Computer Architecture Logic Design Review Sangyeun Cho Computer Science Department Logic design? Digital hardware is implemented by way of logic design Digital circuits process
More informationCSC9R6 Computer Design. Practical Digital Logic
CSC9R6 Computer Design Practical Digital Logic 1 References (for this part of CSC9R6) Hamacher et al: Computer Organization App A. In library Floyd: Digital Fundamentals Ch 1, 3-6, 8-10 web page: www.prenhall.com/floyd/
More informationIntro To Digital Logic
Intro To Digital Logic 1 Announcements... Project 2.2 out But delayed till after the midterm Midterm in a week Covers up to last lecture + next week's homework & lab Nick goes "H-Bomb of Justice" About
More informationCS61C : Machine Structures
inst.eecs.berkeley.edu/~cs61c/su05 CS61C : Machine Structures Lecture #15: Combinational Logic Blocks 2005-07-14 CS 61C L15 Blocks (1) Andy Carle Outline CL Blocks Latches & Flip Flops A Closer Look CS
More informationEE40 Lec 15. Logic Synthesis and Sequential Logic Circuits
EE40 Lec 15 Logic Synthesis and Sequential Logic Circuits Prof. Nathan Cheung 10/20/2009 Reading: Hambley Chapters 7.4-7.6 Karnaugh Maps: Read following before reading textbook http://www.facstaff.bucknell.edu/mastascu/elessonshtml/logic/logic3.html
More information211: Computer Architecture Summer 2016
211: Computer Architecture Summer 2016 Liu Liu Topic: Storage Project3 Digital Logic - Storage: Recap - Review: cache hit rate - Project3 - Digital Logic: - truth table => SOP - simplification: Boolean
More information1.10 (a) Function of AND, OR, NOT, NAND & NOR Logic gates and their input/output.
Chapter 1.10 Logic Gates 1.10 (a) Function of AND, OR, NOT, NAND & NOR Logic gates and their input/output. Microprocessors are the central hardware that runs computers. There are several components that
More informationLogic Design. Chapter 2: Introduction to Logic Circuits
Logic Design Chapter 2: Introduction to Logic Circuits Introduction Logic circuits perform operation on digital signal Digital signal: signal values are restricted to a few discrete values Binary logic
More informationCMPE12 - Notes chapter 1. Digital Logic. (Textbook Chapter 3)
CMPE12 - Notes chapter 1 Digital Logic (Textbook Chapter 3) Transistor: Building Block of Computers Microprocessors contain TONS of transistors Intel Montecito (2005): 1.72 billion Intel Pentium 4 (2000):
More informationCS/COE0447: Computer Organization
Logic design? CS/COE0447: Computer Organization and Assembly Language Logic Design Review Digital hardware is implemented by way of logic design Digital circuits process and produce two discrete values:
More informationComputer Organization: Boolean Logic
Computer Organization: Boolean Logic Representing and Manipulating Data Last Unit How to represent data as a sequence of bits How to interpret bit representations Use of levels of abstraction in representing
More informationComputer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Digital Logic
Computer Science 324 Computer Architecture Mount Holyoke College Fall 2007 Topic Notes: Digital Logic Our goal for the next few weeks is to paint a a reasonably complete picture of how we can go from transistor
More informationCombinational Logic Trainer Lab Manual
Combinational Logic Trainer Lab Manual Control Inputs Microprocessor Data Inputs ff Control Unit '0' Datapath MUX Nextstate Logic State Memory Register Output Logic Control Signals ALU ff Register Status
More informationWe are here. Assembly Language. Processors Arithmetic Logic Units. Finite State Machines. Circuits Gates. Transistors
CSC258 Week 3 1 Logistics If you cannot login to MarkUs, email me your UTORID and name. Check lab marks on MarkUs, if it s recorded wrong, contact Larry within a week after the lab. Quiz 1 average: 86%
More informationCS1800: Hex & Logic. Professor Kevin Gold
CS1800: Hex & Logic Professor Kevin Gold Reviewing Last Time: Binary Last time, we saw that arbitrary numbers can be represented in binary. Each place in a binary number stands for a different power of
More informationFundamentals of Digital Design
Fundamentals of Digital Design Digital Radiation Measurement and Spectroscopy NE/RHP 537 1 Binary Number System The binary numeral system, or base-2 number system, is a numeral system that represents numeric
More informationSlide Set 3. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary
Slide Set 3 for ENEL 353 Fall 2016 Steve Norman, PhD, PEng Electrical & Computer Engineering Schulich School of Engineering University of Calgary Fall Term, 2016 SN s ENEL 353 Fall 2016 Slide Set 3 slide
More informationLogic design? Transistor as a switch. Layered design approach. CS/COE1541: Introduction to Computer Architecture. Logic Design Review.
Logic design? CS/COE54: Introduction to Computer rchitecture Digital hardware is implemented by way of logic design Digital circuits process and produce two discrete values: and Example: -bit full adder
More informationLogic Gates and Boolean Algebra
Logic Gates and oolean lgebra The ridge etween Symbolic Logic nd Electronic Digital Computing Compiled y: Muzammil hmad Khan mukhan@ssuet.edu.pk asic Logic Functions and or nand nor xor xnor not 2 Logic
More informationBOOLEAN ALGEBRA. Introduction. 1854: Logical algebra was published by George Boole known today as Boolean Algebra
BOOLEAN ALGEBRA Introduction 1854: Logical algebra was published by George Boole known today as Boolean Algebra It s a convenient way and systematic way of expressing and analyzing the operation of logic
More informationS C F F F T T F T T S C B F F F F F T F T F F T T T F F T F T T T F T T T
EECS 270, Winter 2017, Lecture 1 Page 1 of 6 Use pencil! Say we live in the rather black and white world where things (variables) are either true (T) or false (F). So if S is Mark is going to the Store
More informationComputer Science. 19. Combinational Circuits. Computer Science COMPUTER SCIENCE. Section 6.1.
COMPUTER SCIENCE S E D G E W I C K / W A Y N E PA R T I I : A L G O R I T H M S, M A C H I N E S, a n d T H E O R Y Computer Science Computer Science An Interdisciplinary Approach Section 6.1 ROBERT SEDGEWICK
More informationBuilding a Computer Adder
Logic Gates are used to translate Boolean logic into circuits. In the abstract it is clear that we can build AND gates that perform the AND function and OR gates that perform the OR function and so on.
More informationBinary addition example worked out
Binary addition example worked out Some terms are given here Exercise: what are these numbers equivalent to in decimal? The initial carry in is implicitly 0 1 1 1 0 (Carries) 1 0 1 1 (Augend) + 1 1 1 0
More informationCOSC 243. Introduction to Logic And Combinatorial Logic. Lecture 4 - Introduction to Logic and Combinatorial Logic. COSC 243 (Computer Architecture)
COSC 243 Introduction to Logic And Combinatorial Logic 1 Overview This Lecture Introduction to Digital Logic Gates Boolean algebra Combinatorial Logic Source: Chapter 11 (10 th edition) Source: J.R. Gregg,
More informationEvery time has a value associated with it, not just some times. A variable can take on any value within a range
Digital Logic Circuits Binary Logic and Gates Logic Simulation Boolean Algebra NAND/NOR and XOR gates Decoder fundamentals Half Adder, Full Adder, Ripple Carry Adder Analog vs Digital Analog Continuous»
More informationCOS 140: Foundations of Computer Science
COS 140: Foundations of Computer Science Boolean Algebra Fall 2018 Introduction 3 Problem................................................................. 3 Boolean algebra...........................................................
More information1 Boolean Algebra Simplification
cs281: Computer Organization Lab3 Prelab Our objective in this prelab is to lay the groundwork for simplifying boolean expressions in order to minimize the complexity of the resultant digital logic circuit.
More informationLatches. October 13, 2003 Latches 1
Latches The second part of CS231 focuses on sequential circuits, where we add memory to the hardware that we ve already seen. Our schedule will be very similar to before: We first show how primitive memory
More informationCombinational Logic. By : Ali Mustafa
Combinational Logic By : Ali Mustafa Contents Adder Subtractor Multiplier Comparator Decoder Encoder Multiplexer How to Analyze any combinational circuit like this? Analysis Procedure To obtain the output
More informationHakim Weatherspoon CS 3410 Computer Science Cornell University
Hakim Weatherspoon CS 3410 Computer Science Cornell University The slides are the product of many rounds of teaching CS 3410 by Professors Weatherspoon, Bala, Bracy, and Sirer. memory inst 32 register
More informationXOR - XNOR Gates. The graphic symbol and truth table of XOR gate is shown in the figure.
XOR - XNOR Gates Lesson Objectives: In addition to AND, OR, NOT, NAND and NOR gates, exclusive-or (XOR) and exclusive-nor (XNOR) gates are also used in the design of digital circuits. These have special
More informationCSE370 HW3 Solutions (Winter 2010)
CSE370 HW3 Solutions (Winter 2010) 1. CL2e, 4.9 We are asked to implement the function f(a,,c,,e) = A + C + + + CE using the smallest possible multiplexer. We can t use any extra gates or the complement
More informationChapter 1: Logic systems
Chapter 1: Logic systems 1: Logic gates Learning Objectives: At the end of this topic you should be able to: identify the symbols and truth tables for the following logic gates: NOT AND NAND OR NOR XOR
More informationUNIT 8A Computer Circuitry: Layers of Abstraction. Boolean Logic & Truth Tables
UNIT 8 Computer Circuitry: Layers of bstraction 1 oolean Logic & Truth Tables Computer circuitry works based on oolean logic: operations on true (1) and false (0) values. ( ND ) (Ruby: && ) 0 0 0 0 0 1
More informationDesign of Sequential Circuits
Design of Sequential Circuits Seven Steps: Construct a state diagram (showing contents of flip flop and inputs with next state) Assign letter variables to each flip flop and each input and output variable
More informationUNIVERSITY OF WISCONSIN MADISON
CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON Prof. Gurindar Sohi TAs: Minsub Shin, Lisa Ossian, Sujith Surendran Midterm Examination 2 In Class (50 minutes) Friday,
More informationAppendix B. Review of Digital Logic. Baback Izadi Division of Engineering Programs
Appendix B Review of Digital Logic Baback Izadi Division of Engineering Programs bai@engr.newpaltz.edu Elect. & Comp. Eng. 2 DeMorgan Symbols NAND (A.B) = A +B NOR (A+B) = A.B AND A.B = A.B = (A +B ) OR
More informationEGC221: Digital Logic Lab
Division of Engineering Programs EGC221: Digital Logic Lab Experiment #1 Basic Logic Gate Simulation Student s Name: Student s Name: Reg. no.: Reg. no.: Semester: Fall 2016 Date: 07 September 2016 Assessment:
More information20. Combinational Circuits
Combinational circuits Q. What is a combinational circuit? A. A digital circuit (all signals are or ) with no feedback (no loops). analog circuit: signals vary continuously sequential circuit: loops allowed
More informationOverview. Multiplexor. cs281: Introduction to Computer Systems Lab02 Basic Combinational Circuits: The Mux and the Adder
cs281: Introduction to Computer Systems Lab02 Basic Combinational Circuits: The Mux and the Adder Overview The objective of this lab is to understand two basic combinational circuits the multiplexor and
More informationReview: Additional Boolean operations
Review: Additional Boolean operations Operation: NAND (NOT-AND) NOR (NOT-OR) XOR (exclusive OR) Expressions: (xy) = x + y (x + y) = x y x y = x y + xy Truth table: x y (xy) x y (x+y) x y x y 0 0 1 0 1
More informationImplementation of Boolean Logic by Digital Circuits
Implementation of Boolean Logic by Digital Circuits We now consider the use of electronic circuits to implement Boolean functions and arithmetic functions that can be derived from these Boolean functions.
More information10/14/2009. Reading: Hambley Chapters
EE40 Lec 14 Digital Signal and Boolean Algebra Prof. Nathan Cheung 10/14/2009 Reading: Hambley Chapters 7.1-7.4 7.4 Slide 1 Analog Signals Analog: signal amplitude is continuous with time. Amplitude Modulated
More informationCSE370: Introduction to Digital Design
CSE370: Introduction to Digital Design Course staff Gaetano Borriello, Brian DeRenzi, Firat Kiyak Course web www.cs.washington.edu/370/ Make sure to subscribe to class mailing list (cse370@cs) Course text
More informationUC Berkeley College of Engineering, EECS Department CS61C: Representations of Combinational Logic Circuits
2 Wawrzynek, Garcia 2004 c UCB UC Berkeley College of Engineering, EECS Department CS61C: Representations of Combinational Logic Circuits 1 Introduction Original document by J. Wawrzynek (2003-11-15) Revised
More informationMA 3260 Lecture 10 - Boolean Algebras (cont.) Friday, October 19, 2018.
MA 3260 Lecture 0 - Boolean Algebras (cont.) Friday, October 9, 208. Objectives: Boolean algebras on { 0, }. Before we move on, I wanted to give you a taste of what the connection between Boolean algebra
More informationDIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA
DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA 1 Learning Objectives Understand the basic operations and laws of Boolean algebra. Relate these operations and laws to circuits composed of AND gates, OR gates, INVERTERS
More informationCS 226: Digital Logic Design
CS 226: Digital Logic Design 0 1 1 I S 0 1 0 S Department of Computer Science and Engineering, Indian Institute of Technology Bombay. 1 of 29 Objectives In this lecture we will introduce: 1. Logic functions
More informationIntroduction to Computer Engineering. CS/ECE 252, Fall 2012 Prof. Guri Sohi Computer Sciences Department University of Wisconsin Madison
Introduction to Computer Engineering CS/ECE 252, Fall 2012 Prof. Guri Sohi Computer Sciences Department University of Wisconsin Madison Chapter 3 Digital Logic Structures Slides based on set prepared by
More informationAdditional Gates COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals
Additional Gates COE 202 Digital Logic Design Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals Presentation Outline Additional Gates and Symbols Universality of NAND and NOR gates NAND-NAND
More informationSAU1A FUNDAMENTALS OF DIGITAL COMPUTERS
SAU1A FUNDAMENTALS OF DIGITAL COMPUTERS Unit : I - V Unit : I Overview Fundamentals of Computers Characteristics of Computers Computer Language Operating Systems Generation of Computers 2 Definition of
More informationIntroduction to Computer Engineering. CS/ECE 252, Spring 2017 Rahul Nayar Computer Sciences Department University of Wisconsin Madison
Introduction to Computer Engineering CS/ECE 252, Spring 2017 Rahul Nayar Computer Sciences Department University of Wisconsin Madison Chapter 3 Digital Logic Structures Slides based on set prepared by
More informationReview for Test 1 : Ch1 5
Review for Test 1 : Ch1 5 October 5, 2006 Typeset by FoilTEX Positional Numbers 527.46 10 = (5 10 2 )+(2 10 1 )+(7 10 0 )+(4 10 1 )+(6 10 2 ) 527.46 8 = (5 8 2 ) + (2 8 1 ) + (7 8 0 ) + (4 8 1 ) + (6 8
More informationNumbers & Arithmetic. Hakim Weatherspoon CS 3410, Spring 2012 Computer Science Cornell University. See: P&H Chapter , 3.2, C.5 C.
Numbers & Arithmetic Hakim Weatherspoon CS 3410, Spring 2012 Computer Science Cornell University See: P&H Chapter 2.4-2.6, 3.2, C.5 C.6 Example: Big Picture Computer System Organization and Programming
More informationE40M. Binary Numbers. M. Horowitz, J. Plummer, R. Howe 1
E40M Binary Numbers M. Horowitz, J. Plummer, R. Howe 1 Reading Chapter 5 in the reader A&L 5.6 M. Horowitz, J. Plummer, R. Howe 2 Useless Box Lab Project #2 Adding a computer to the Useless Box alows us
More information4 Switching Algebra 4.1 Axioms; Signals and Switching Algebra
4 Switching Algebra 4.1 Axioms; Signals and Switching Algebra To design a digital circuit that will perform a required function, it is necessary to manipulate and combine the various input signals in certain
More informationEECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits)
EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) September 5, 2002 John Wawrzynek Fall 2002 EECS150 Lec4-bool1 Page 1, 9/5 9am Outline Review of
More informationECE 545 Digital System Design with VHDL Lecture 1A. Digital Logic Refresher Part A Combinational Logic Building Blocks
ECE 545 Digital System Design with VHDL Lecture A Digital Logic Refresher Part A Combinational Logic Building Blocks Lecture Roadmap Combinational Logic Basic Logic Review Basic Gates De Morgan s Laws
More informationCS61c: Representations of Combinational Logic Circuits
CS61c: Representations of Combinational Logic Circuits J. Wawrzynek March 5, 2003 1 Introduction Recall that synchronous systems are composed of two basic types of circuits, combination logic circuits,
More informationECE 545 Digital System Design with VHDL Lecture 1. Digital Logic Refresher Part A Combinational Logic Building Blocks
ECE 545 Digital System Design with VHDL Lecture Digital Logic Refresher Part A Combinational Logic Building Blocks Lecture Roadmap Combinational Logic Basic Logic Review Basic Gates De Morgan s Law Combinational
More informationOutline. EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) Combinational Logic (CL) Defined
EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) January 30, 2003 John Wawrzynek Outline Review of three representations for combinational logic:
More informationLogic and Boolean algebra
Computer Mathematics Week 7 Logic and Boolean algebra College of Information Science and Engineering Ritsumeikan University last week coding theory channel coding information theory concept Hamming distance
More informationCSE 20 DISCRETE MATH. Fall
CSE 20 DISCRETE MATH Fall 2017 http://cseweb.ucsd.edu/classes/fa17/cse20-ab/ Today's learning goals Describe and use algorithms for integer operations based on their expansions Relate algorithms for integer
More informationCprE 281: Digital Logic
CprE 28: Digital Logic Instructor: Alexander Stoytchev http://www.ece.iastate.edu/~alexs/classes/ Decoders and Encoders CprE 28: Digital Logic Iowa State University, Ames, IA Copyright Alexander Stoytchev
More informationComputer Science. 20. Combinational Circuits. Computer Science COMPUTER SCIENCE. Section
COMPUTER SCIENCE S E D G E W I C K / W A Y N E Computer Science 20. Combinational Circuits Computer Science An Interdisciplinary Approach Section 6.1 ROBERT SEDGEWICK K E V I N WAY N E http://introcs.cs.princeton.edu
More informationProve that if not fat and not triangle necessarily means not green then green must be fat or triangle (or both).
hapter : oolean lgebra.) Definition of oolean lgebra The oolean algebra is named after George ool who developed this algebra (854) in order to analyze logical problems. n example to such problem is: Prove
More informationLecture 2 Review on Digital Logic (Part 1)
Lecture 2 Review on Digital Logic (Part 1) Xuan Silvia Zhang Washington University in St. Louis http://classes.engineering.wustl.edu/ese461/ Grading Engagement 5% Review Quiz 10% Homework 10% Labs 40%
More informationCOMP2611: Computer Organization. Introduction to Digital Logic
1 OMP2611: omputer Organization ombinational Logic OMP2611 Fall 2015 asics of Logic ircuits 2 its are the basis for binary number representation in digital computers ombining bits into patterns following
More informationUniversity of Florida EEL 3701 Fall 1996 Dr. Eric M. Schwartz
Page 1/8 fpinstructions: Show all work on the front of the test papers. If you need more room, make a clearly indicated note on the front of the page, "MORE ON BACK", and use the back. The back of the
More informationLooking at a two binary digit sum shows what we need to extend addition to multiple binary digits.
A Full Adder The half-adder is extremely useful until you want to add more that one binary digit quantities. The slow way to develop a two binary digit adders would be to make a truth table and reduce
More informationCSE 311: Foundations of Computing. Lecture 3: Digital Circuits & Equivalence
CSE 311: Foundations of Computing Lecture 3: Digital Circuits & Equivalence Homework #1 You should have received An e-mail from [cse311a/cse311b] with information pointing you to look at Canvas to submit
More informationWEEK 2.1 BOOLEAN ALGEBRA
WEEK 2.1 BOOLEAN ALGEBRA 1 Boolean Algebra Boolean algebra was introduced in 1854 by George Boole and in 1938 was shown by C. E. Shannon to be useful for manipulating Boolean logic functions. The postulates
More informationSystems I: Computer Organization and Architecture
Systems I: Computer Organization and Architecture Lecture 6 - Combinational Logic Introduction A combinational circuit consists of input variables, logic gates, and output variables. The logic gates accept
More informationDigital Logic (2) Boolean Algebra
Digital Logic (2) Boolean Algebra Boolean algebra is the mathematics of digital systems. It was developed in 1850 s by George Boole. We will use Boolean algebra to minimize logic expressions. Karnaugh
More informationCMSC 313 Lecture 16 Announcement: no office hours today. Good-bye Assembly Language Programming Overview of second half on Digital Logic DigSim Demo
CMSC 33 Lecture 6 nnouncement: no office hours today. Good-bye ssembly Language Programming Overview of second half on Digital Logic DigSim Demo UMC, CMSC33, Richard Chang Good-bye ssembly
More informationT02 Tutorial Slides for Week 6
T02 Tutorial Slides for Week 6 ENEL 353: Digital Circuits Fall 2017 Term Steve Norman, PhD, PEng Electrical & Computer Engineering Schulich School of Engineering University of Calgary 17 October, 2017
More informationChapter 2 Combinational Logic Circuits
Logic and Computer Design Fundamentals Chapter 2 Combinational Logic Circuits Part 3 Additional Gates and Circuits Overview Part 1 Gate Circuits and Boolean Equations Binary Logic and Gates Boolean Algebra
More informationCMP 334: Seventh Class
CMP 334: Seventh Class Performance HW 5 solution Averages and weighted averages (review) Amdahl's law Ripple-carry adder circuits Binary addition Half-adder circuits Full-adder circuits Subtraction, negative
More informationALU A functional unit
ALU A functional unit that performs arithmetic operations such as ADD, SUB, MPY logical operations such as AND, OR, XOR, NOT on given data types: 8-,16-,32-, or 64-bit values A n-1 A n-2... A 1 A 0 B n-1
More information