Computer Systems Architecture

Similar documents
Computer Organization

CS Part 1 1 Dr. Rajesh Subramanyan, 2005

Basics Of Digital Logic And Data Representation

Logic. Andrew Mark Allen March 4, 2012

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of

1. Convert the decimal number to binary, octal, and hexadecimal.

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

B. Sc. III Semester (Electronics) - ( ) Digital Electronics-II) BE-301 MODEL ANSWER (AS-2791)

COMP2611: Computer Organization. Introduction to Digital Logic

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS

NORTHWESTERN UNIVERSITY TECHNOLOGICAL INSTITUTE

DIGITAL CIRCUIT COMBINATORIAL LOGIC

Chapter Contents. Appendix A: Digital Logic. Some Definitions

The word digital implies information in computers is represented by variables that take a limited number of discrete values.

Principles of Computer Architecture. Appendix A: Digital Logic

Asynchronous (Ripple) Counters

Physics 323. Experiment # 10 - Digital Circuits

TRAINING KITS ON DIGITAL ELECTRONIC EXPERIMENTS. Verify Truth table for TTL IC s AND, NOT, & NAND GATES

1.b. Realize a 5-input NOR function using 2-input NOR gates only.

Computer Architecture and Organization

CSE115: Digital Design Lecture 23: Latches & Flip-Flops

Counter dan Register

Topics. Microelectronics Revolution. Digital Circuits Part 1 Logic Gates. Introductory Medical Device Prototyping

CSE 352 Laboratory Assignment 3

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

FPGA Design. Part I - Hardware Components. Thomas Lenzi

Sequential logic circuits

MODULAR DIGITAL ELECTRONICS TRAINING SYSTEM

MODULE 3. Combinational & Sequential logic

WINTER 14 EXAMINATION

COE328 Course Outline. Fall 2007

WINTER 15 EXAMINATION Model Answer

THE KENYA POLYTECHNIC

CPS311 Lecture: Sequential Circuits

WELCOME. ECE 2030: Introduction to Computer Engineering* Richard M. Dansereau Copyright by R.M. Dansereau,

Lecture 8: Sequential Logic

Computer Organization & Architecture Lecture #5

6.3 Sequential Circuits (plus a few Combinational)

First Name Last Name November 10, 2009 CS-343 Exam 2

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

REPEAT EXAMINATIONS 2002

Counters

Logic Design II (17.342) Spring Lecture Outline

TYPICAL QUESTIONS & ANSWERS

BCN1043. By Dr. Mritha Ramalingam. Faculty of Computer Systems & Software Engineering

Introduction. Serial In - Serial Out Shift Registers (SISO)

Digital Circuits I and II Nov. 17, 1999

We are here. Assembly Language. Processors Arithmetic Logic Units. Finite State Machines. Circuits Gates. Transistors

Combinational vs Sequential

Chapter 5 Sequential Circuits

CPSC 121: Models of Computation Lab #5: Flip-Flops and Frequency Division

Sequential Logic. Introduction to Computer Yung-Yu Chuang

1. a) For the circuit shown in figure 1.1, draw a truth table showing the output Q for all combinations of inputs A, B and C. [4] Figure 1.

55:131 Introduction to VLSI Design Project #1 -- Fall 2009 Counter built from NAND gates, timing Due Date: Friday October 9, 2009.

CPSC 121: Models of Computation Lab #5: Flip-Flops and Frequency Division

16 Stage Bi-Directional LED Sequencer

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 3 Logistics

Digital Circuits. Innovation Fellows Program

University of Victoria. Department of Electrical and Computer Engineering. CENG 290 Digital Design I Lab Manual

EXPERIMENT #6 DIGITAL BASICS

Logic Devices for Interfacing, The 8085 MPU Lecture 4

EE292: Fundamentals of ECE

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

Contents Circuits... 1

CHAPTER 4: Logic Circuits

COMP sequential logic 1 Jan. 25, 2016

CHAPTER 4: Logic Circuits

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

EE 367 Lab Part 1: Sequential Logic

Digital Circuits Part 1 Logic Gates

Introduction to Digital Electronics

Logic Design Viva Question Bank Compiled By Channveer Patil

(Refer Slide Time: 1:45)

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) WINTER 2018 EXAMINATION MODEL ANSWER

(CSC-3501) Lecture 7 (07 Feb 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

Figure 30.1a Timing diagram of the divide by 60 minutes/seconds counter

Chapter 3. Boolean Algebra and Digital Logic

FLIP-FLOPS AND RELATED DEVICES

TEST-3 (DIGITAL ELECTRONICS)-(EECTRONIC)

CS3350B Computer Architecture Winter 2015

Analogue Versus Digital [5 M]

Microprocessor Design

CS 261 Fall Mike Lam, Professor. Sequential Circuits

DIGITAL CIRCUIT LOGIC UNIT 9: MULTIPLEXERS, DECODERS, AND PROGRAMMABLE LOGIC DEVICES

Rensselaer Polytechnic Institute Computer Hardware Design ECSE Report. Lab Three Xilinx Richards Controller and Logic Analyzer Laboratory

Chapter. Synchronous Sequential Circuits

AIM: To study and verify the truth table of logic gates

Registers and Counters

12-bit Wallace Tree Multiplier CMPEN 411 Final Report Matthew Poremba 5/1/2009

CS61C : Machine Structures

Bachelor Level/ First Year/ Second Semester/ Science Full Marks: 60 Computer Science and Information Technology (CSc. 151) Pass Marks: 24

Review C program: foo.c Compiler Assembly program: foo.s Assembler Object(mach lang module): foo.o. Lecture #14

Logic Design. Flip Flops, Registers and Counters

ME 515 Mechatronics. Introduction to Digital Electronics

CS 110 Computer Architecture. Finite State Machines, Functional Units. Instructor: Sören Schwertfeger.

DepartmentofElectronicEngineering NEDUniversity ofengineering &Technology LABORATORY WORKBOOK DIGITAL LOGIC DESIGN (TC-201)

PHY 351/651 LABORATORY 9 Digital Electronics The Basics

[2 credit course- 3 hours per week]

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it,

Transcription:

Computer Systems Architecture Fundamentals Of Digital Logic 1 Our Goal Understand Fundamentals and basics Concepts How computers work at the lowest level Avoid whenever possible Complexity Implementation details Engineering design rules 2 1

Electrical Terminology Voltage Quantifiable property of electricity Measure of potential force Unit of measure: volt Current Quantifiable property of electricity Measure of electron flow along a path Unit of measure: ampere (amp) 3 Analog For Electricity Voltage is analogous to water pressure Current is analogous to flow of water Can have High pressure with little flow Large flow with little pressure 4 2

Voltage Device used to measure called voltmeter Can only be measured as difference between two points To measure voltage Assume one point represents zero volts (known as ground) Express voltage of second point wrt ground 5 In Practice Typical digital circuit operates on five volts Two wires connect each chip to power supply Ground (zero volts) Power (five volts) Digital logic diagrams do not usually show power and ground connections 6 3

Transistor Basic building block of digital circuits Operates on electrical current Acts like a miniature switch small input current controls flow of large current Three external connections Emitter Base (control) Collector Current between base and emitter controls current between collector and emitter 7 Illustration Of A Transistor 8 4

Boolean Logic Mathematical basis for digital circuits Three basic functions: and, or, and not 9 Digital Logic Can implement Boolean functions with transistors Five volts represents Boolean 1 Zero volts represents Boolean 0 10 5

Transistor Implementing Boolean Not When input is zero volts, output is five volts When input is five volts, output is zero volts 11 Logic Gate Hardware component Consists of integrated circuit Implements an individual Boolean function To reduce complexity, provide inverse of Boolean functions Nand gate implements not and Nor gate implements not or Inverter implements not 12 6

Truth Tables For Nand and Nor Gates Symbols Used In Schematic Diagrams 13 Example Of Internal Gate Structure (Nor Gate) Solid dot indicates electrical connection 14 7

Technology For Logic gates Most popular technology known as Transistor-Transistor Logic (TTL) Allows direct interconnection (a wire can connect output from one gate to input of another) Single output can connect to multiple inputs Called fanout Limited to a small number 15 Example Interconnection Of TTL Gates Two logic gates needed to form logical and Output from nand gate connected to input of inverter 16 8

Consider The Following Circuit What does the circuit implement? 17 Describing a circuit with Boolean algebra Value at point A is not Y Value at B is: Z nor (not Y) Output is: X and (Z nor (not Y)) Alternatively, Output is: X and not (Z or (not Y)) 18 9

Describing A Circuit With A Truth Table Table lists all possible inputs and output for each Can also state values for intermediate points 19 Avoiding Nand / Nor Operations Circuits use nand and nor gates Sometimes easier for humans to use and and or operations Example circuit or truth table output can be described by Boolean expression: X and Y and (not Z)) 20 10

In Practice Only a few connections needed per gate Chip has many pins for external connections Result: can package multiple gates placed on each chip 21 Example Of Logic Gates 7400 family of chips Package is about one-half inch long Implement TTL logic Powered by five volts Contain multiple gates per chip 22 11

Examples Of Gates On 7400-Series Chips Pins 7 and 14 connect to ground and power 23 Circuits That Maintain State More sophisticated than combinatorial circuits Output depends on history of previous input as well as values on input lines 24 12

Example Of Circuit That Maintains State Basic flip-flop Analogous to push-button power switch Each new 1 received as input causes output to reverse First input pulse to causes flip-flop to turn on Second pulse causes flip-flop to turn off 25 Output of a Flip-Flop Note: output only changes when input makes a transition from zero to one 26 13

Flip-Flop Action Plotted As Transition Diagram Output changes on leading edge of input Also called rising edge 27 Binary Counter Counts input pulses Output is binary value Includes reset line to start count at zero Example: 4-bit counter available as single integrated circuit 28 14

Illustration Of Counter Counts 29 Clock Electronic circuit that pulses regularly Measured in cycles per second (Hz) Digital output of clock is sequence of 0 1 0 1... Permits active circuits 30 15

Multiplexers Multiplexers: - J Connects multiple inputs to a single output J At any one time, one of the inputs is selected to be passed to the output D 0 D 1 D 2 D 2 4 to 1 MUX F Input A B Control lines 31 Multiplexers Multiplexers: - Truth Table and Implementation 32 16

Multiplexers Multiplexers: - Applications (will reappear later on in the course) J Control signal and data routing J e.g. loading Program Counter (PC) Counter IR ALU 4 to 1 MUX (PC) A B 33 Demultiplexor Takes binary value as input Uses input to select one output 34 17

Decoder Decoders: - takes n inputs, and select exactly one of the 2 n outputs Example: 3-8 decoder 35 Address Decoder Decoders: - Address Decoder (will be revisited) 36 18

Adder Adders: - an essential part of the CPU J Half Adder Truth Table Circuit A B Sum Carry-Out 37 Adder Adders: - an essential part of the CPU J Full Adder Truth Table A B Carry-In Sum Carry-Out 38 19

Adder Adders: - n-bit adder 39 Example Circuit That Executes A Sequence Of Steps Desired sequence Test the battery Power on and test the memory Start the disk spinning Power up CRT Read boot sector from disk into memory Start CPU 40 20

Circuit To Execute Sequence 41 Feedback Output of circuit used as an input Allows more control Example: stop sequence when output F becomes active Boolean algebra CLOCK and (not F) 42 21

Illustration Of Feedback For Termination Note additional input needed to restart sequence 43 Practical Engineering Concerns Power consumption (wiring must carry sufficient power) Heat dissipation (chips must be kept cool) Timing (gates take time to settle after input changes) Clock synchronization (clock signal must reach all chips simultaneously) 44 22

Summary Computer systems are constructed of digital logic circuits Fundamental building block is gate Digital circuit can be described by Boolean algebra (most useful when designing) Truth table (most useful when debugging) Clock allows active circuit to perform sequence of operations Feedback allows output to control processing Practical engineering concerns include Power consumption and heat dissipation Clock skew and synchronization 45 23