Computer Organization and Components

Similar documents
Computer Hardware Engineering (IS1200) Computer Organization and Components (IS1500) Fall 2017 Lecture 7: Combinational Logic

Combinational Logic Design CH002

Logic Symbols with Truth Tables INVERTER A B NAND A B C NOR C A B A B C XNOR A B C A B Digital Logic 1

Combinational Circuits: Multiplexers, Decoders, Programmable Logic Devices

Satish Chandra, Assistant Professor, P P N College, Kanpur 1

Chapter # 1: Introduction

Chapter # 1: Introduction

Digital Logic. Software. Digital Logic. Boolean value (bit): 0 or 1. Transistors (more in lab) 1/26/16. Program, Application. Programming Language

(CSC-3501) Lecture 6 (31 Jan 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

Digital Circuits Introduction

DIGITAL ELECTRONICS: LOGIC AND CLOCKS

Lecture 14: Datapath Functional Units Adders

Function Table of an Odd-Parity Generator Circuit

EE40 Lecture 35. Prof. Chang-Hasnain. 12/5/07 Reading: Ch 7, Supplementary Reader

2 Logic Gates THE INVERTER. A logic gate is an electronic circuit which makes logic decisions. It has one output and one or more inputs.

Chapter 1: Digital logic

Gates and Circuits 1

Chapter 3 Digital Logic Structures

Objective Questions. (a) Light (b) Temperature (c) Sound (d) all of these

(a) (b) (c) (d) (e) (a) (b) (c) (d) (e)

Gates and and Circuits

EEE 301 Digital Electronics

CS302 - Digital Logic Design Glossary By

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Chapter 4 Logic Functions and Gates

A High Speed Low Power Adder in Multi Output Domino Logic

8.1. Unit 8. Fundamental Digital Building Blocks: Decoders & Multiplexers

COMPUTER ORGANIZATION & ARCHITECTURE DIGITAL LOGIC CSCD211- DEPARTMENT OF COMPUTER SCIENCE, UNIVERSITY OF GHANA

Lab Report: Digital Logic

Name: Class: Date: 1. As more electronic systems have been designed using digital technology, devices have become smaller and less powerful.

QUIZ. What do these bits represent?

Data output signals May or may not be same a input signals

Chapter 3 Digital Logic Structures

Odd-Prime Number Detector The table of minterms is represented. Table 13.1

Chapter 3 Describing Logic Circuits Dr. Xu

EE100Su08 Lecture #16 (August 1 st 2008)

Combinational logic. ! Regular logic: multiplexers, decoders, LUTs and FPGAs. ! Switches, basic logic and truth tables, logic functions

DELD UNIT 3. Question Option A Option B Option C Option D Correct Option A B C

VLSI Design I; A. Milenkovic 1

Digital Logic Design ELCT 201

Chapter 4 Combinational Logic Circuits

EXPERIMENT 12: DIGITAL LOGIC CIRCUITS

Combinational Logic Circuits. Combinational Logic

Chapter 3. H/w s/w interface. hardware software Vijaykumar ECE495K Lecture Notes: Chapter 3 1

EE141-Spring 2007 Digital Integrated Circuits

Electronics. Digital Electronics

ECE/CoE 0132: FETs and Gates

Chapter 4 Combinational Logic Circuits

Combinational Circuits DC-IV (Part I) Notes

EXPERIMENT #5 COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

This Figure here illustrates the operation for a 2-input OR gate for all four possible input combinations.

VLSI Design I; A. Milenkovic 1

Digital Electronics 8. Multiplexer & Demultiplexer

Number system: the system used to count discrete units is called number. Decimal system: the number system that contains 10 distinguished

Abstract. 2. MUX Vs XOR-XNOR. 1. Introduction.

EE 330 Lecture 5. Improved Device Models Propagation Delay in Logic Circuits

Module 4: Design and Analysis of Combinational Circuits 1. Module-4. Design and Analysis of Combinational Circuits

CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam

Synthesis of Combinational Logic

Digital Systems Principles and Applications TWELFTH EDITION. 3-3 OR Operation With OR Gates. 3-4 AND Operations with AND gates

Computer Architecture and Organization:

I/O Design EE141. Announcements. EE141-Fall 2006 Digital Integrated Circuits. Class Material. Pads + ESD Protection.

Adder (electronics) - Wikipedia, the free encyclopedia

Subtractor Logic Schematic

Introduction. BME208 Logic Circuits Yalçın İŞLER

PREVIEW COPY. Digital Logic Systems. Table of Contents. Digital Logic Fundamentals...3. Logic Building Blocks Medium- and Large-Scale ICs...

SRV ENGINEERING COLLEGE SEMBODAI RUKMANI VARATHARAJAN ENGINEERING COLLEGE SEMBODAI

Lecture 15 Analysis of Combinational Circuits

*************************************************************************

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Sciences. Homework #9 Solution

Logic diagram: a graphical representation of a circuit

DIGITAL ELECTRONICS. Methods & diagrams : 1 Graph plotting : - Tables & analysis : - Questions & discussion : 6 Performance : 3

De Morgan s second theorem: The complement of a product is equal to the sum of the complements.

Topic Notes: Digital Logic


Lecture 3: Logic circuit. Combinational circuit and sequential circuit

Subject: Analog and Digital Electronics Code:15CS32

Lecture 2: Digital Logic Basis

DO NOT COPY DO NOT COPY

A Highly Efficient Carry Select Adder

SYNTHESIS OF COMBINATIONAL CIRCUITS

I. Computational Logic and the Five Basic Logic Gates 1

1. The decimal number 62 is represented in hexadecimal (base 16) and binary (base 2) respectively as

6.1 In this section, you will design (but NOT build) a circuit with 4 inputs,

Digital Fundamentals 8/29/2016. Summary. Summary. Floyd. Chapter 3 A X. The Inverter

3.1 There are three basic logic functions from which all circuits can be designed: NOT (invert), OR, and

05/11/2006. Lecture What does a computer do? Logic Manipulation. Data manipulation

Digital Fundamentals

Logic Design I (17.341) Fall Lecture Outline

University of Technology

Digital Logic Circuits

ECE380 Digital Logic

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) SUMMER-16 EXAMINATION Model Answer

Course Overview. Course Overview

Lecture Summary Module 1 Switching Algebra and CMOS Logic Gates

B.E. SEMESTER III (ELECTRICAL) SUBJECT CODE: X30902 Subject Name: Analog & Digital Electronics

The book has excellent descrip/ons of this topic. Please read the book before watching this lecture. The reading assignment is on the website.

Department of Electronics and Communication Engineering

DEPARTMENT OF ELETRONICS AND COMMUNICATION ENGINEERING COURSE NOTES FACULTY NAME/DESIGNATION: SUGAPRIYAA.THA / LECTURER

Programmable Logic Arrays (PLAs)

Transcription:

Computer Organization and Components I5, fall 25 Lecture 7: Combinational Logic ssociate Professor, KTH Royal Institute of Technology ssistant Research ngineer, University of California, erkeley lides version. 2 Course tructure Module : C and ssembly Programming L L2 L3 X L Module 4: Processor Design L9 L 2 L5 L4 L2 Module 2: I/O ystems L5 L6 X2 L3 Module 5: Memory Hierarchy L X4 L6 Module 3: Logic Design L7 L8 X3 L4 Module 6: Parallel Processors and Programs L2 L3 X5 3 Proj. xpo L4 oolean lgebra Decoders, and dders

3 bstractions in Computer ystems Computer ystem pplication oftware Operating ystem Instruction et rchitecture etworked ystems and ystems of ystems oftware Hardware/oftware Interface Microarchitecture Logic and uilding locks Digital Hardware Design Digital Circuits nalog Circuits Devices and Physics nalog Design and Physics oolean lgebra Decoders, and dders 4 genda oolean lgebra Decoders, and dders oolean lgebra Decoders, and dders

5 oolean lgebra oolean lgebra Decoders, and dders Logic Gates (/3) D, OR, OT, and UF 6 D OR OT The small circle (called a bubble) inverse the signal. OT is also called an inverter. UF Looks like not, but has no circle. uffer. Logically the same as a wire. Relevant from an analog point of view. oolean lgebra Decoders, and dders

Logic Gates (2/3) D, OR, XOR, and XOR H 7 D OT D. ote the mall bubble at the end. OR OT OR. XOR xclusive OR, pronounced ex-or. XOR xclusive OT OR. oolean lgebra Decoders, and dders Logic Gates (3/3) Multi-Input Logic Gates 8 Gates can be generalized to have more than two inputs. For instance: D3 D gate with 3 inputs. OR5 OT OR gate with 5 inputs. XOR3 C xclusive OR gate with 3 inputs. n -input XOR gate is also called a parity gate. It outputs when odd number of inputs are. C oolean lgebra Decoders, and dders

Combinational Circuit H 9 = = C = = = C = = = This circuit is combinational because its outputs depend only on its inputs. The circuit is memoryless, that is, it has no memory. We will introduce memory in Lecture 8 Observe that this (rather useless) circuit always outputs. s a logic formula, this is called a tautology. oolean lgebra Decoders, and dders Problematic Circuits Unstable circuit. Q What is the value of Q? nswer: it oscillates. This circuit is called a ring oscillator. Illegal value (X) = = Q What is the value of Q? nswer: Q = X, called an unknown or illegal value. For example, when a wire is driven to both and at the same time. This situation is called contention. oolean lgebra Decoders, and dders

Floating Values and Tristate uffers tristate (or three-state) buffer has high impedance if the output enable signal is not active. Z Z Commonly used in buses when connecting multiple chips. If the buffers are not enabled at the same time, contention is avoided. When the enable signal is not active, the output is said to be floating (using symbol Z). oolean lgebra Decoders, and dders oolean lgebra (/4) Truth Tables and um-of-products Form 2 C truth table with random output (we have seen them before). We can create a boolean expression from the truth table The D of one or more variables is called a product. C + C + C The line over a variable is called the complement and is the inverse of the variable (OT). ometimes a prime is used instead. D can be written using no space or using a dot, e.g.!!c This form is called sum-of-products (surprise!) OR is written using the + symbol. oolean lgebra Decoders, and dders

3 oolean lgebra (2/4) ome Theorems H Theorem Dual ame! = + = Identity! = + = ull lement xercise: Derive the simplest form of expression! = + = Idempotency + + = Involution olution:! = + = Complements + +! =! + = + Commutativity = + + Commutativity (!)!C =!(!C) (+)+C = +(+C) ssociativity = (+) + Distributivity =! + Complements (dual) =+ Identity (!)+(!C)= (+)!(+C)= Distributivity +(!C)!(+C) Indempotency (dual) ote! ot as traditional algebra = oolean lgebra Decoders, and dders 4 oolean lgebra (3/4) De Morgan s Theorem Theorem Dual! 2! 3 = + 2 + 3 = ( + 2 + 3 ) (! 2! 3 ) ugustus De Morgan ritish mathematician and logician (86 87). The law shows that these gates are equivalent = = + = oolean lgebra + = = Important law. For CMO (Complementary metal oxide semiconductor), D and OR gates are preferred over D and OR gates. = ut how can we know that this theorem is true? Decoders, and dders

oolean lgebra (4/4) Proof by Perfect Induction 5 Perfect Induction = Proof by xhaustion = Proof by Cases Prove the De Morgan s Theorem for three variables ote that these two columns are equal C = + + C Proof by perfect induction. xhaustively show all cases in a truth table. C C + + C oolean lgebra Decoders, and dders 6 uilding locks: Multiplexers, Decoders, and dders oolean lgebra Decoders, and dders

7 bstractions in Computer ystems Computer ystem pplication oftware Operating ystem Instruction et rchitecture Microarchitecture Logic and uilding locks etworked ystems and ystems of ystems oftware Hardware/oftware Interface We can combine logic gates and form digital building Digital Hardware Design blocks Digital Circuits nalog Circuits Devices and Physics nalog Design and Physics oolean lgebra Decoders, and dders Combinational locks (/3) Multiplexers 8 What is this? It s a 2: Multiplexer. The control signal selects which input bit that is sent to the output. D D 2 bits for the data input D D D D output One possible implementation. Convince yourself of its correctness! oolean lgebra Decoders, and dders

Combinational locks (2/3) Multiplexers 9 multiplexer can be seen as a simple switch, selecting which signal that should pass through the block. 4: multiplexer can be defined hierarchically. D D D2 D3 D D D2 D3 4: multiplexer (4 inputs, output). What is the output signal for the 4: multiplexer with these inputs? D D D2 D3 D =, D =, D2=, D3=, =, = nswer: = oolean lgebra Decoders, and dders Combinational locks (3/3) Decoders 2 decoder has inputs and 2 outputs. sserts exactly one output. Decoder 2 3 3 2 2:4 decoder (2 inputs, 4 output). ote that only one signal is on each row. This is called one-hot. oolean lgebra Decoders, and dders

rithmetic Circuits and umbers (/7) Half and Full dders H 2 half adder has a carry out signal. C out + How can we add bigger numbers? Idea: Chain adders together oolean lgebra C out full adder has both carry out and carry in signals. C in C out Decoders, and dders + C out C in xercise: Complete the truth table rithmetic Circuits and umbers (2/7) Carry Propagate dders 22 n -bit carry propagate adder (CP) sums two -bit inputs. C out + C in ote the notation for a -bit bus. ee course book (advanced part) 32-bit ripple-carry adder Three common implementations of CPs are: Ripple-carry adder imple but slow. Carry-lookahead adder Faster, divides into blocks. Prefix adder ven faster. Used in modern computers. 3 3 3 3 C out + C 3 + C 29 C + C + 3 3 C in oolean lgebra Decoders, and dders

rithmetic Circuits and umbers (7/7) ubtract 23 ubtract is simple to implemented with a carry propagate adder (CP): Invert input signal and set C in =. We can easily create a circuit where = results in + and = results in - C out + C in = ote that setting carry in to adds to +. C out Coming up In lecture 9, we will generalize this idea into an rithmetic/logic Unit (LU), one of the main components of a processor. + oolean lgebra Decoders, and dders 24 oolean lgebra Decoders, and dders

25 Free graphical digital circuit simulator. Used in lab 4 and 5. Graphical Model Canvas oth for construction and simulation xplorer Pane uilding blocks and gates ttribute Table Configure different components oolean lgebra Decoders, and dders 26 ome Different otations in dder (different symbol than in text books) Dark green wire: bit signal with value. plitter of bits Constant umber 4: Multiplexer lue wire: bit floating signal bit input Decoder 2:4 right green wire: bit signal with value Orange write: Incorrect bit width bit output oolean lgebra Decoders, and dders

27 Hardware Description Languages is a simple graphical design and simulation environment for educational purposes. Professional hardware designers work in textual Hardware Description Languages (HDL). The two most commonly used HDLs in industry are: ystem Verilog. Used a lot in U. C-like syntax. VHDL. Used more in urope. da-like syntax. For those who are interested, see Harris & Harris (22), chapter 4. This is not part of the course. It also exist recent domain-specific languages (DLs) for hardware design. x. Chisel from UC erkeley (embedded in cala). oolean lgebra Decoders, and dders 28 Please do not fumble with the bags oolean lgebra Decoders, and dders

29 Reading Guidelines Module 3: Logic Design Lecture 7: Combinational Logic Design H&H Chapters.5, 2.-2.4, 2.6, 2.8-2.9 Lecture 8: equential Logic Design H&H Chapters 3.-3.3 (not 3.2.7), 3.4.-3.4.3, 5.2.-5.2.2, 5.5.5 Reading Guidelines ee the course webpage for more information. oolean lgebra Decoders, and dders 3 ummary ome key take away points: Combinational logic design: Output is directly dependent on input. There is no memory. Main components to remember: multiplexer, decoder, and adder. ext lecture is about sequential logic design; circuits with memory. Thanks for listening! oolean lgebra Decoders, and dders