Computer Architecture: Intro Beginnings J. Schmalzel S. Mandayam.

Slides:



Advertisements
Similar presentations
Chapter 2 Logic Circuits.
Advertisements

التصميم المنطقي Second Course
Digital systems. Course Details Lecturer - Ido Bergman TA - Yehuda Arav Telephone Silverman : Ross: Course.
Computer Organization Boolean Logic and the CPU i206 Fall 2010 John Chuang Some slides adapted from Marti Hearst, Brian Hayes, or Glenn Brookshear.
Computer Architecture: Intro Lecture 8- The Control Path J. Schmalzel S. Mandayam.
Chapter 4 Gates and Circuits.
CSC 110 – Intro to Computing Lecture 14: Midterm Review.
Digital Circuits. Analog and Digital Signals Noise margins in Logic Circuits VMVM.
SUPLEMENTARY CHAPTER 1: An Introduction to Digital Logic The Architecture of Computer Hardware and Systems Software: An Information Technology Approach.
Computer ArchitectureFall 2008 © August 20 th, Introduction to Computer Architecture Lecture 2 – Digital Logic Design.
Propositional Calculus Math Foundations of Computer Science.
Chapter 12 Digital Logic Circuit Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
+ CS 325: CS Hardware and Software Organization and Architecture Exam 1: Study Guide.
CS 105 Digital Logic Design
Introduction to Digital Logic Design Appendix A of CO&A Dr. Farag
Chapter 4 Gates and Circuits.
2-6 Other Logic Operations For two variables one can achieve sixteen operations Only eight are useful for computers Boolean algebra built on AND, OR and.
Quiz # 2 Chapters 4, 5, & 6.
1 CHAPTER 4: PART I ARITHMETIC FOR COMPUTERS. 2 The MIPS ALU We’ll be working with the MIPS instruction set architecture –similar to other architectures.
Binary Numbers.
Systems Architecture I1 Propositional Calculus Objective: To provide students with the concepts and techniques from propositional calculus so that they.
Chapter 4 Gates and Circuits.
Chap 3. Chap 3. Combinational Logic Design. Chap Combinational Circuits l logic circuits for digital systems: combinational vs sequential l Combinational.
1 Modified from  Modified from 1998 Morgan Kaufmann Publishers Chapter Three: Arithmetic for Computers citation and following credit line is included:
Combinational Circuit – Arithmetic Circuit
Digital Electronics. Introduction to Number Systems & Codes Digital & Analog systems, Numerical representation, Digital number systems, Binary to Decimal.
SUPLEMENTARY CHAPTER 1: An Introduction to Digital Logic The Architecture of Computer Hardware and Systems Software: An Information Technology Approach.
Logic Design Computer Architecture and Design Lecture 1.
CPS120: Introduction to Computer Science
Computer Fundamentals ELEC 330 Digital Systems Engineering Dr. Ron Hayne.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Logic Design Dr. Yosry A. Azzam. Binary systems Chapter 1.
Combinational Logic. Digital Circuits Introduction Logic circuits for digital systems may be combinational or sequential. A combinational circuit.
Fall 2012: FCM 708 Foundation I Lecture 2 Prof. Shamik Sengupta
Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.
Course contents Chapter 1 - section 1.6 Chapter 2 - all sections Chapter – 4.7, and 4.12 Chapter , Chapter 6 - all sections.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Chapter 7 Logic Circuits 1.State the advantages of digital technology compared to analog technology. 2. Understand the terminology of digital circuits.
1 Lecture 6 BOOLEAN ALGEBRA and GATES Building a 32 bit processor PH 3: B.1-B.5.
Digital Circuits Text Book –M. M. Mano, "Digital Design," 3rd Ed., Prentice Hall Inc., Reference –class notes Grade –quizzes:15% –mid-term:27.5%
Chapter 0 - reVieW Combinational Logic Circuit, Combinational Logic Circuit, Propagation Delay, Propagation Delay, Programmable Logic. Programmable Logic.
CS/COE0447 Computer Organization & Assembly Language
Logic Design CS221 1 st Term combinational circuits Cairo University Faculty of Computers and Information.
Apr. 3, 2000Systems Architecture I1 Introduction to VHDL (CS 570) Jeremy R. Johnson Wed. Nov. 8, 2000.
Logic Design EE-2121 Manesh T. Digital Systems  Introduction  Binary Quantities and Variables  Logic Gates  Boolean Algebra  Combinational Logic.
May 9, 2001Systems Architecture I1 Systems Architecture I (CS ) Lab 5: Introduction to VHDL Jeremy R. Johnson May 9, 2001.
ELECTRICAL ENGINEERING: PRINCIPLES AND APPLICATIONS, Third Edition, by Allan R. Hambley, ©2005 Pearson Education, Inc. Chapter 7 Logic Circuits.
1 CS 352 Introduction to Logic Design Lecture 1 Ahmed Ezzat Number Systems and Boolean Algebra, Ch-1 + Ch-2.
1 CS/COE0447 Computer Organization & Assembly Language Logic Design Appendix C.
Digital Circuits Design Chin-Sung Lin Eleanor Roosevelt High School.
Computer Architecture: Intro Anatomy of a CPU J. Schmalzel S. Mandayam.
Chap 3. Combinational Logic Design
Logic Gates & Boolean Algebra
Computer Architecture: Intro Beginnings, cont.
Systems Architecture Lab: Introduction to VHDL
DIGITAL LOGIC CIRCUITS
VLSI Testing Lecture 5: Logic Simulation
Fundamentals & Ethics of Information Systems IS 201
University of Gujrat Department of Computer Science
ECE 434 Advanced Digital System L03
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Schematics 201 Lecture Topic: Electrical Symbols
ELL100: INTRODUCTION TO ELECTRICAL ENGG.
COSC 2021: Computer Organization Instructor: Dr. Amir Asif
Chapter 2 Introduction to Logic Circuits
Part I Background and Motivation
Logic Circuits I Lecture 3.
Overview of Digital Electronics
CSE 370 – Winter Number syst.; Logic functions- 1
Presentation transcript:

Computer Architecture: Intro Beginnings J. Schmalzel S. Mandayam

Course §Introduction §Overview §Content launch: Module 1

Structure & Conduct of the Course §Discussion v. Lecturing §Interaction: Question/Comment Ticket §Team-learning §In-class labs §Out-of-class labs, readings, problems

Introduction §Instructors: J. Schmalzel, S. Mandayam §Course l Digital Foundations l Introduction to Embedded Processors l The Embedded Development Environment l Interfacing to the Physical World l Hardware and Software Trade-Offs

Course Goal §Goal: Impart knowledge of computer architecture to support informed decisions about the hardware, software, and the hardware/software trade-offs that underlie the computing paradigm.

Objectives, 1  Describe major functional elements of CISC, RISC architectures  Perform detailed analysis and synthesis of combinatorial and sequential subsystems using schematic and/or behavioral design capture w/ sim  Describe principles and applications of the three basic computing elements: CPU, MEM, I/O  Use an embedded system that includes diverse architectural features

Objectives, 2  Apply analytic and simulation techniques to predict and verify performance metrics  Design an example architecture using SOTA tools  Identify opportunities for hardware and software trade-offs  (Insert your objectives here…)  ( …and here)

Digital Foundations §The basic model of a computer system: CPUMEM I/O

Central Processing Unit (CPU) §Controls §Executes §Computes (Fixed- and/or Floating- Point)

Memory §Program store §Data storage §High-speed  Low-speed §Volatile, Non-volatile l RAM, ROM, FLASH (EEPROM) §Fast  Slow

Input/Output (I/O) §Communication between CPU and outside world §Fast  Slow §Standardized (e.g., IEEE b) §Parallel (IEEE 1184)  Serial (USB 2.0)

Hierarchical View of EP and Digital Systems CPUMEM I/O Gates Boolean Algebra Design Techniques MSI Functions State Machines Interface Method Computer Architecture Operating System HLLs

Number Systems l Binary l Hexadecimal l Octal

For an n-bit binary number : Base notation. For a k-bit binary number with n-bits to the left of the radix point and m-bits to the right of the radix point. For example, = ______________ 10 = ( ). ( ) = Similarly, for hex:

Conversions  ____________(10) (Fast way: = 255)  _____________ (10) (AA.4 16 = 10* = ) AB6C.D  _________________________ (2)  ___________(10) ( ; 10* * * /16 = 43, )

Coding Binary system must be used to accomplish many functions such as arithmetic and data transmission. A code defines the mapping between binary digits and the intended application.

Example Codes §Gray code: Only one bit change between adjacent codes (000  010  110  100  101  111  011  001  000…) §Binary-Coded Decimal (BCD): Direct (but inefficient) coding of decimal numbers using 4 bits

2’s Complement Need: A method to represent negative numbers. Can use a sign bit + magnitude; e.g., +5: 0 101, -5: 1 101, but there are better codes. The 2’s Complement is one. 1’s Complement: Complement each bit. 1’s Complement of is ’s complement: 1’s complement + 1 Example: Find 2’s complement of  _______________ ( ) To check, sum of the positive and negative codes should sum to zero (ignore overflow out of msb). (“By inspection” trick: Working from right to left, write down all zeros until the first 1. Write it down, too, then complement every bit after that.)

Boolean Algebra §True/False l High/Low l On/Off l +5 Vdc / 0 Vdc (+3.3 Vdc / 0 Vdc) §Notation l Variable by itself is assumed “true” l Variable with a symbol denotes complementation: ¯ ~ * /

Boolean Identities §X  0=0 §X  1=X §X  X=X §X  X*=0 §X+0=X §X+1=1 §X+X=X §X+X*=1 §X**=X §Commutative Laws: X+Y=Y+X XY=YX §Associative Laws: X+(Y+Z)=(X+Y)+Z X(YZ)=(XY)Z §Distributive Laws: X(Y+Z)=XY+XZ §DeMorgan’s Theorems: (X  Y)*=X*+Y* (X+Y)*=X*  Y*

Gates (p. 63 M&K) AND ( ^ & C: & ) OR (  + C: | ) NOT {Inverter} ( ¯ ~ * / C: ~ ) XOR (  C:  ) NAND NOR XNOR

Combinatorial Design Process §Problem statement §Truth table and describing Boolean Algebra §Simplification §Implementation §Verification

Design Examples §Full Adder (Step 1: Design a device that performs binary addition, including carry input.) FA A B Ci S Co

Full Adder Truth Table (Step 2) Ci A BS Co Sum-of-Product Boolean expressions for S and Co: S = Ci*A*B + Ci*AB* + CiA*B* + CiAB Co = Ci*AB + CiA*B + CiAB* + CiAB

Graphical Simplification (Step 3) Co Ci AB BCi AB ACi Co = AB + ACi + BCi A Karnaugh-Map organizes truth table entries as a gray code--only one variable changes between adjacent cells. This lets you use the identities X+X*=1 and X*1=X to simplify by inspection. For example, the AB subcube: ABCi* + ABCi = AB(Ci*+Ci) = AB(1) = AB

Other Simplification Methods §Quine-McCluskey algorithm “Espresso” (C. Staley; Find it on download.com)

Espresso Demo Simplify So and Co for FA

Implementation (Step 3) Translate the simplified BA to a network of gates: & & & + Ci A B A B Co

Verification (Step 4) Verify the proper behavior of the design. Use simulation techniques to present test vectors and compare responses to predictions. Exhaustivev.Statistical (Monte Carlo)

Combinatorial Function Blocks §Decoders §Multiplexers

Digital Foundations, cont. §The basic model of a computer system: CPUMEM I/O

Real Gates §Logic levels are voltage levels §Finite current drive §Timing diagrams §Finite switching speed §Propagation delays §Noise

Logic Levels are Voltage Levels Vdd Vss High Low V OH min V OL max V IL max V IH min V OH typ V OL typ

Finite Current Levels V OH ’/V OL ’ + RSRS V OH /V OL The electrical circuit model for a digital output (or input) includes a series impedance. This helps explain why a gate can’t source/sink unlimited amounts of current (mA v. A).

Finite Switching Speeds Example: Switching speed of an inverter. A timing diagram shows behavior as it develops with time. Input (Ideal) Output trtr tftf

Finite Propagation Delays Example: Switching speed of an inverter. Input (Ideal) Output t PD LH t PD HL

Noise How well logic is able to reject noise is described by its Noise Immunity. The Noise Margin (NM) is the predicted ability of a device to handle noise on its inputs and still reliably determine the correct logic levels. NM L = V OLmax - V ILmax NM H = V OHmin - V IHmin

Logic Levels/Voltage Levels for 74HC138 w/ VCC=5 Vdc Vdd Vss High Low V OH min V OL max V IL max V IH min V OH typ V OL typ 3.5 V (0.7*5.0) 1.5 V (0.3*5.0) 4.9 V ( ) OH = -20  A 0.1 V ( ) OL = +20  A

Variation in V OH and V OL V OH or V OL I OH I OL This is reference direction--that’s why I OH is negative. Ideal V OH or V OL + RsRs What is a typical Rs?

Calculation of Rs at I OL of 4 mA V OH or V OL I OH I OL This is reference direction--that’s why I OH is negative. Ideal V OH or V OL + RsRs Use 6 Vdc values: 0.26V/.004A = 65 

Propagation delay (6 Vdc) §From A, B, or C to any Y output: Max 38 ns §From Enable to any Y output: Max 33 ns

Questions, Comments, Discussion