CS470: Computer Architecture. AMD Quad Core

Similar documents
QUESTION BANK FOR TEST

Experiment 4 Boolean Functions Implementation

LSN 4 Boolean Algebra & Logic Simplification. ECT 224 Digital Computer Fundamentals. Department of Engineering Technology

Chapter 2. Boolean Expressions:

IT 201 Digital System Design Module II Notes

Module -7. Karnaugh Maps

Simplification of Boolean Functions

Injntu.com Injntu.com Injntu.com R16

Unit-IV Boolean Algebra

B.Tech II Year I Semester (R13) Regular Examinations December 2014 DIGITAL LOGIC DESIGN

Chapter 2: Combinational Systems

SYNERGY INSTITUTE OF ENGINEERING & TECHNOLOGY,DHENKANAL LECTURE NOTES ON DIGITAL ELECTRONICS CIRCUIT(SUBJECT CODE:PCEC4202)

2.6 BOOLEAN FUNCTIONS

Code No: 07A3EC03 Set No. 1

Combinational Logic Circuits

R.M.D. ENGINEERING COLLEGE R.S.M. Nagar, Kavaraipettai

Digital logic fundamentals. Question Bank. Unit I

CS8803: Advanced Digital Design for Embedded Hardware

CHAPTER-2 STRUCTURE OF BOOLEAN FUNCTION USING GATES, K-Map and Quine-McCluskey

Summary. Boolean Addition

Experiment 3: Logic Simplification

Combinational Circuits Digital Logic (Materials taken primarily from:

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

Introduction to Computer Architecture

Points Addressed in this Lecture. Standard form of Boolean Expressions. Lecture 4: Logic Simplication & Karnaugh Map

To write Boolean functions in their standard Min and Max terms format. To simplify Boolean expressions using Karnaugh Map.

Assignment (3-6) Boolean Algebra and Logic Simplification - General Questions

2008 The McGraw-Hill Companies, Inc. All rights reserved.

Code No: R Set No. 1

Computer Science. Unit-4: Introduction to Boolean Algebra

X Y Z F=X+Y+Z

Code No: R Set No. 1

DKT 122/3 DIGITAL SYSTEM 1

ELCT201: DIGITAL LOGIC DESIGN

BOOLEAN ALGEBRA. 1. State & Verify Laws by using :

Philadelphia University Faculty of Information Technology Department of Computer Science. Computer Logic Design. By Dareen Hamoudeh.

Menu. Algebraic Simplification - Boolean Algebra EEL3701 EEL3701. MSOP, MPOS, Simplification

Digital Logic Lecture 7 Gate Level Minimization

Combinational Logic & Circuits

A B AB CD Objectives:

ELCT201: DIGITAL LOGIC DESIGN


Combinational Logic Circuits

Combinational Circuits

EEE130 Digital Electronics I Lecture #4_1

R10. II B. Tech I Semester, Supplementary Examinations, May

Chapter 3. Gate-Level Minimization. Outlines

Code No: R Set No. 1

1. Mark the correct statement(s)

Gate-Level Minimization. BME208 Logic Circuits Yalçın İŞLER

Standard Forms of Expression. Minterms and Maxterms

SIDDHARTH GROUP OF INSTITUTIONS :: PUTTUR Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE)

Gate-Level Minimization. section instructor: Ufuk Çelikcan

Bawar Abid Abdalla. Assistant Lecturer Software Engineering Department Koya University

Digital Logic Design (CEN-120) (3+1)

SUBJECT CODE: IT T35 DIGITAL SYSTEM DESIGN YEAR / SEM : 2 / 3

Gate Level Minimization

Department of Electrical Engineering McGill University ECSE 221 Introduction to Computer Engineering Assignment 2 Combinational Logic

UNIT-4 BOOLEAN LOGIC. NOT Operator Operates on single variable. It gives the complement value of variable.

Variable, Complement, and Literal are terms used in Boolean Algebra.

Chapter 6. Logic Design Optimization Chapter 6

COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING QUESTION BANK SUBJECT CODE & NAME: EC 1312 DIGITAL LOGIC CIRCUITS UNIT I

Principles of Digital Techniques PDT (17320) Assignment No State advantages of digital system over analog system.

Recitation Session 6

DHANALAKSHMI SRINIVASAN COLLEGE OF ENGINEERING AND TECHNOLOGY

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING EC6302 DIGITAL ELECTRONICS

10EC33: DIGITAL ELECTRONICS QUESTION BANK

Combinational Logic Circuits Part III -Theoretical Foundations

Switching Circuits & Logic Design

R07

CprE 281: Digital Logic

Simplification of Boolean Functions

Question Total Possible Test Score Total 100

Propositional Calculus. Math Foundations of Computer Science

ENGINEERS ACADEMY. 7. Given Boolean theorem. (a) A B A C B C A B A C. (b) AB AC BC AB BC. (c) AB AC BC A B A C B C.

Objectives: 1- Bolean Algebra. Eng. Ayman Metwali

Gate Level Minimization Map Method

Programmable Logic Devices

DIGITAL CIRCUIT LOGIC UNIT 5: KARNAUGH MAPS (K-MAPS)

R a) Simplify the logic functions from binary to seven segment display code converter (8M) b) Simplify the following using Tabular method

R07. Code No: V0423. II B. Tech II Semester, Supplementary Examinations, April

1. Prove that if you have tri-state buffers and inverters, you can build any combinational logic circuit. [4]

Final Examination (Open Katz, asynchronous & test notes only, Calculators OK, 3 hours)

Chapter 3 Simplification of Boolean functions

Logic Design (Part 2) Combinational Logic Circuits (Chapter 3)

Circuit analysis summary

PART B. 3. Minimize the following function using K-map and also verify through tabulation method. F (A, B, C, D) = +d (0, 3, 6, 10).

Date Performed: Marks Obtained: /10. Group Members (ID):. Experiment # 04. Boolean Expression Simplification and Implementation

Lecture 4: Implementation AND, OR, NOT Gates and Complement

2. BOOLEAN ALGEBRA 2.1 INTRODUCTION

ENGIN 112. Intro to Electrical and Computer Engineering

VALLIAMMAI ENGINEERING COLLEGE

NODIA AND COMPANY. GATE SOLVED PAPER Computer Science Engineering Digital Logic. Copyright By NODIA & COMPANY

Chap-2 Boolean Algebra

4 KARNAUGH MAP MINIMIZATION

CS6201-DIGITAL PRINCIPLE AND SYSTEM DESIGN I YEAR/II SEM PART-B UNIT-I BOOLEAN ALGEBRA AND LOGIC GATES.

CMPE223/CMSE222 Digital Logic

BHARATHIDASAN ENGINEERING COLLEGE Degree / Branch : B.E./ECE Year / Sem : II/ III Sub.Code / Name : EC6302/DIGITAL ELECTRONICS

Chapter 2 Combinational

Definitions. 03 Logic networks Boolean algebra. Boolean set: B 0,

Transcription:

CS470: Computer Architecture Yashwant K. Malaiya, Professor malaiya@cs.colostate.edu AMD Quad Core 1

Architecture Layers Building blocks Gates, flip-flops Functional bocks: Combinational, Sequential Instruction set architecture Assembly/machine level Implementation using blocks Systems Processor + memory hierarchy 2

Optimization Objectives Reduce cost, complexity and power Combinational & sequential minimization Enhance performance Faster technology More Parallelism (of different types) Higher performance with lower cost Memory hierarchy Reliability Testing and verification Redundancy What else? 3

Combinational Circuits Gates & Boolean Algebra Functional blocks: Decoder, MUX, Adder Minimization Programmable logic Interlocking building blocks Propagation delays 4

Logic Design: Outline Gates, boolean algebra and truth tables Combinational logic and functional blocks (MUX, decoders, Adders, PLAs) Flip-flops, registers and memories Timing analysis Finite state machines Use of software packages for simulation 5

Basic hardware building blocks 6

OR and NOR A B OR 0 0 0 0 1 1 1 0 1 1 1 1 Inputs: 2 or more A B NOR 0 0 1 0 1 0 1 0 0 1 1 0 Output=A+B Output=A+B 7

AND and NAND A B AND 0 0 0 0 1 0 1 0 0 1 1 1 Inputs: 2 or more A B NAND 0 0 1 0 1 1 1 0 1 1 1 0 Output = A.B Output = A.B 8

Boolean Algebra x 0 0 x 1 x x x 0 x.0 = 0 x.1 = x x.x = 0 x 0 x x 1 1 x x 1 X+0 = x x+1 = 1 x+x = 1 9

Boolean Algebra (2) Commutative A+B = B+A Associative A+(B+C)=(A+B)+C A.(B.C)=(A.B).C Distributive A.(B+C)=A.B+A.C A+(B.C)=(A+B).(A+C) A.B = B.A 1/18/2017 Discrete math YKM 10

Boolean Algebra (3) DeMorgan s Law A.B = A+B A+B = A.B A B C = A B C A B A B AN D C 0 0 1 1 1 0 0 1 1 0 0 1 1 0 0 1 0 1 1 1 0 0 0 1 11

Some Useful Identities AB+AB = A AB+AB =A(B+B) =A A+AB = A A+AB =A(1+B) =A 12

Decoder A=0 B=1 0 1 0 0 Input Outputs A,B 00 1 0 0 0 01 0 1 0 0 10 0 0 1 0 11 0 0 0 1 13

MUX Multiplexer: selects one of the inputs and connects it to the output. A B A B A B C D S=1 S 1 1 1 1 2 S 1 0 B C 4 input MUX B 2-to-1 MUX 14

Tri-State Lines Tri-state: 0, 1 and high z (disconnected) Used for implementing buses Input A Control C Tri-state buffer Output Y = A if C = 1 High Z if C = 0 15

Boolean Functions A B C S 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 1 S=A.B.C + A.B.C + A.B.C + A.B.C A B C S 16

Simplification Some rules for simplification: A + A = A A A = A [Prove them] AB +AB = A [Use for joining or breaking] Proof: AB +AB = A(B +B) = A A+AB = A [Use for absorption] Proof: A+AB = A(1+B) = A 17

Karnaugh maps Objective: minimize literals. Based on set-theory Visual representation of algebraic functions Allow algorithmic minimization of boolean functions in sum-ofproducts form Note: ABC+ABC = AB(C+C )=AB Thus ABC and ABC are two pieces of AB. Minterms For n-variables, there are 2 n minterms, corresponding to each row of truth table. 1/18/2017 Discrete math YKM 18

Minterms A B C in C out 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 1 1 0 0 0 1 0 1 1 1 1 0 1 1 1 1 1 C out = A BC in + AB C in + ABC in + ABC in Involves four minterms 19

Combining Minterms Combining minterms F(a,b,c) = a b c +a b c+a bc +a bc minterms a b c +a b c combine to give a b minterms a bc +a bc combine to give a b Terms a b and a b combine to give a Two Adjacent terms: differ in only one variable, complemented in one, uncomplemented on the other. They combine to drop that variable. 1/18/2017 Discrete math YKM 20

Visualization of Boolean Functions Each box is a minterm. Adjacent minterms can be combined 2-variable maps X: lower half Y: right half 0 x y 0 1 x y 1 xy xy X 0 1 0 1 1 1 1 X Y = x+y Y 21

3-variable Kmaps B 00 01 11 10 0 1 1 1 1 1 1 A C F(A,B,C) = C +A B B 00 01 11 10 0 1 x 1 1 x 1 A C F(A,B,C) = AC +A B All 1 s must be covered. Don t cares (x) can be taken as either 0 or 1 Columns arranged so that adjacent terms are visually adjacent. Sometimes the solution is not unique 22

3-variable Kmaps B 00 01 11 10 0 1 1 1 1 1 1 1 A C B 00 01 11 10 0 1 1 1 1 1 1 1 A C F(A,B,C) = B C +A C+AB F(A,B,C) = A B +BC+AC 23

4-variable Kmaps / Design C 00 01 11 10 00 1 1 01 1 A 11 10 1 1 D F(A,B,C,D)=ABC +A C D+ A BC+ACD+? B F(A,B,C,D)=B D + C 00 01 11 10 00 1 01 1 1 1 A 11 1 1 1 10 1 B 1/18/2017 Discrete math YKM D 24

Combinational Logic Optimization Design steps: Get truth table Do minimization (K-map, Quine-McCluskey etc) as applicable Get Boolean expression Get logic diagram. Automated methods: computer based implementation. Example: http://electronics-course.com/karnaugh-map Multi-output circuits: Many functions have multiple outputs Often implemented as PLAs Objective: minimize product terms Adjacent product terms: with same output combinations 25

Full Adder A i B i C i C i+ S 1 i 0 0 0 0 0 0 0 1 0 1 0 1 0 0 1 0 1 1 1 0 1 0 0 0 1 1 0 1 1 0 1 1 0 1 0 1 1 1 1 1 A i B i C i C i+1 S 26

4-bit Adder A 3 B 3 A 2 B 2 A 1 B 1 A 0 B 0 Full Full Full Full 0 adder adder adder adder C 4 C C 2 3 C 1 S 3 S 2 S 1 S 0 Note that propagation delay add for each stage. 27

Two-level logic: SOP form A combinational functional can be implemented using a two-level implementation Sum-of-products (SOP)form F(A,B,C) = B C +A B AND-OR A B C F 0 0 0 1 0 0 1 0 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 0 B 00 01 11 10 0 1 1 1 1 1 A C 28

Two-level logic: POS form Product of Sums (POS) form: Step: 1. Minimize F (i.e. 0s) is SOP form. 2. Complement both sides 3. Use DeMorgan s for RHS F (A,B,C) = B C+AB F(A,B,C) = (B+C )(A +B ) OR-AND A B C F 0 0 0 1 0 0 1 0 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 0 B 00 01 11 10 0 1 0 1 1 1 1 0 0 0 A C 29