Topics. Computer Organization CS Exam 2 Review. Infix Notation. Reverse Polish Notation (RPN)

Similar documents
Topics. Block Diagram of Mic-1 Microarchitecture. Review Sheet. Microarchitecture IJVM ISA

1DT157 Digitalteknik och datorarkitekt. Digital technology and computer architecture, 5p

The Microarchitecture Level

Topics. Computer Organization CS Mic-1 Microinstructions. Control Store (ROM) Programming Teams

Lecture1: introduction. Outline: History overview Central processing unite Register set Special purpose address registers Datapath Control unit

Computer Architecture Programming the Basic Computer

Class Notes. Dr.C.N.Zhang. Department of Computer Science. University of Regina. Regina, SK, Canada, S4S 0A2

Digital System Design Using Verilog. - Processing Unit Design

Computer Organization and Levels of Abstraction

Topics. Structured Computer Organization. Assembly language. IJVM instruction set. Mic-1 simulator programming

CS 31: Intro to Systems Digital Logic. Kevin Webb Swarthmore College February 2, 2016

Chapter 4. Micro-architecture Level PART I

Register Transfer and Micro-operations

CS 31: Intro to Systems Digital Logic. Kevin Webb Swarthmore College February 3, 2015

Chapter 05: Basic Processing Units Control Unit Design. Lesson 15: Microinstructions

Von Neumann Architecture

COSC 243. Computer Architecture 1. COSC 243 (Computer Architecture) Lecture 6 - Computer Architecture 1 1

ECE 341 Midterm Exam

Computer Organization and Levels of Abstraction

Combinational Circuits

COMPUTER ARCHITECTURE AND ORGANIZATION Register Transfer and Micro-operations 1. Introduction A digital system is an interconnection of digital

ECEN 468 Advanced Logic Design

UNIT-II. Part-2: CENTRAL PROCESSING UNIT

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Sciences. Spring 2010 May 10, 2010

REGISTER TRANSFER LANGUAGE

COMPUTER ARCHITECTURE AND PARALEL PROCESSING STUDY NOTES

4. MICROPROGRAMMED COMPUTERS

Lecture #21 March 31, 2004 Introduction to Gates and Circuits

CSE/EE 322: Computer Architecture II Spring The JAM machine Series

CS 2630 Computer Organization. Meeting 13: Faster arithmetic and more operations Brandon Myers University of Iowa

CPU Design John D. Carpinelli, All Rights Reserved 1

Prefix/Infix/Postfix Notation

PART A (22 Marks) 2. a) Briefly write about r's complement and (r-1)'s complement. [8] b) Explain any two ways of adding decimal numbers.

CHAPTER 8: Central Processing Unit (CPU)

Computer Organisation CS303

COMPUTER ORGANIZATION AND ARCHITECTURE

UPY14602-DIGITAL ELECTRONICS AND MICROPROCESSORS Lesson Plan

CS Computer Architecture

Many ways to build logic out of MOSFETs

Dec Hex Bin ORG ; ZERO. Introduction To Computing

CHAPTER 4: Register Transfer Language and Microoperations

REGISTER TRANSFER AND MICROOPERATIONS

DIGITAL ELECTRONICS. P41l 3 HOURS

PESIT Bangalore South Campus

Parallel logic circuits

Computer Architecture

1. Draw general diagram of computer showing different logical components (3)

Chapter 3. Boolean Algebra and Digital Logic

Topics Power tends to corrupt; absolute power corrupts absolutely. Computer Organization CS Data Representation

1. Fundamental Concepts

UNIT-III REGISTER TRANSFER LANGUAGE AND DESIGN OF CONTROL UNIT

Basic operators, Arithmetic, Relational, Bitwise, Logical, Assignment, Conditional operators. JAVA Standard Edition

Reference Sheet for C112 Hardware

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

ECE 2030B 1:00pm Computer Engineering Spring problems, 5 pages Exam Two 10 March 2010

Midterm Exam Review. CS 2420 :: Fall 2016 Molly O'Neil

Chapter 16. Control Unit Operation. Yonsei University

ASSEMBLY LANGUAGE MACHINE ORGANIZATION

Combinational and sequential circuits (learned in Chapters 1 and 2) can be used to create simple digital systems.

William Stallings Computer Organization and Architecture

REGISTER TRANSFER AND MICROOPERATIONS

6.1 Combinational Circuits. George Boole ( ) Claude Shannon ( )

2. (a) Compare the characteristics of a floppy disk and a hard disk. (b) Discuss in detail memory interleaving. [8+7]

UNIT - V MEMORY P.VIDYA SAGAR ( ASSOCIATE PROFESSOR) Department of Electronics and Communication Engineering, VBIT

History of Computing. Ahmed Sallam 11/28/2014 1

Lecture 21: Combinational Circuits. Integrated Circuits. Integrated Circuits, cont. Integrated Circuits Combinational Circuits

COMP2121: Microprocessors and Interfacing. Instruction Set Architecture (ISA)

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

Basic Processing Unit: Some Fundamental Concepts, Execution of a. Complete Instruction, Multiple Bus Organization, Hard-wired Control,

Course Syllabus [1/2]

Combinational Logic II

Assembly Language for Intel-Based Computers, 4 th Edition. Chapter 1: Basic Concepts. Chapter Overview. Welcome to Assembly Language

Computer Logic II CCE 2010

KING FAHD UNIVERSITY OF PETROLEUM & MINERALS COMPUTER ENGINEERING DEPARTMENT

Programmable machines

Controller Implementation--Part II

Digital Design Using Digilent FPGA Boards -- Verilog / Active-HDL Edition

MICROPROGRAMMED CONTROL

Basic Arithmetic (adding and subtracting)

09 STACK APPLICATION DATA STRUCTURES AND ALGORITHMS REVERSE POLISH NOTATION

COA. Prepared By: Dhaval R. Patel Page 1. Q.1 Define MBR.

Chapter 20 - Microprogrammed Control (9 th edition)

Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Review Topics. parameter passing, memory model)

BUILDING BLOCKS OF A BASIC MICROPROCESSOR. Part 1 PowerPoint Format of Lecture 3 of Book

Henry Lin, Department of Electrical and Computer Engineering, California State University, Bakersfield Lecture 7 (Digital Logic) July 24 th, 2012

QUESTION BANK FOR TEST

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Data Paths and Microprogramming

MARIE: An Introduction to a Simple Computer

CS 24: INTRODUCTION TO. Spring 2015 Lecture 2 COMPUTING SYSTEMS

JAVA OPERATORS GENERAL

Computer Systems. Binary Representation. Binary Representation. Logical Computation: Boolean Algebra

END-TERM EXAMINATION

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

STRUCTURE OF DESKTOP COMPUTERS

CS 2461: Computer Architecture I

Levels in Processor Design

Chapter 4. The Processor

CS 261 Fall Mike Lam, Professor. Combinational Circuits

Operators. Java operators are classified into three categories:

Chapter 4. MARIE: An Introduction to a Simple Computer. Chapter 4 Objectives. 4.1 Introduction. 4.2 CPU Basics

Transcription:

Computer Organization CS 231-01 Exam 2 Review Dr. William H. Robinson October 11, 2004 http://eecs.vanderbilt.edu/courses/cs231/ Topics Education is a progressive discovery of our own ignorance. Will Durant (1885-1981) Review, review, review Ask questions if you have them RPN and IJVM instructions Digital logic level Microarchitecture level Today s 50-minute review is NOT comprehensive 1 2 Infix Notation The tradition of mathematics c = a + b Requires algebraic precedence structure Parentheses Multiplication/division Addition/subtraction Does not map well to HW Reverse Polish Notation (RPN) Method to write arithmetic expressions Avoids the use of brackets to define priorities for evaluation of operators Devised by Jan Lucasiewicz Polish philosopher and mathematician In his notation, the operators preceded their arguments The reverse places operators after arguments (postfix) For more info http://www-stone.ch.cam.ac.uk/documentation/rrf/rpn.html http://en.wikipedia.org/wiki/reverse_polish_notation 3 4

Advantages of RPN Express formulas without parentheses Evaluate formulas on stack architectures Eliminates arbitrary precedence Structured Computer Organization Digital logic builds microarchitecture Microarchitecture implements the ISA ISA is in machine language Assembly language allows us to use ISA 5 6 IJVM Instruction Set (page 222) Java Bytecode (page 226) Subset of Java Virtual Machine (JVM) Only integer instructions Assume: i is varnum 1 j is varnum 2 k is varnum 3 7 8

Structured Computer Organization Boolean Algebra Defined Provides the operations and the rules for working with the binary set {0,1} Used in the study of electronic switches 0 represents off, low, or false 1 represents on, high, or true Boolean functions are represented using variables and operators 9 10 Boolean Product - AND Function Boolean Sum - OR Function Logic operation A B F Logic operation A B F Output is true when both inputs are true Equivalent to multiplication in base 2 F = A B Truth table for AND function A B F 0 0 0 0 1 0 1 0 0 1 1 1 Output is true when either input is true or when both inputs are true Avoid confusion with the addition operation in arithmetic F = A + B Truth table for OR function A B F 0 0 0 0 1 1 1 0 1 1 1 1 11 12

Boolean Exclusive Sum - XOR Function Complementary Functions Logic operation A B F NOT Complements a single input Output is true when either input is true but not both Corresponds to addition in base 2 F = A B Truth table for XOR function A B F 0 0 0 0 1 1 1 0 1 1 1 0 NAND Complement of AND NOR Complement of OR XNOR Complement of XOR 13 14 Multiplexers/Demultiplexers Decoders/Encoders MUX 2 n data inputs, 1 data output, n control signals Binary code on select determines which input is routed to output DEMUX 1 data input, 2 n data outputs, n control signals Binary code on select routes a single input signal to one of 2 n outputs Decoder Takes an n-bit number as input Selects (sets to 1 ) exactly 1 of 2 n outputs Encoder Input is a group of parallel bits Output is the binary code assigned to asserted input 15 16

Comparators and Shifters Comparator Determine if two input words are equal Based upon XOR gate Shifter Arithmetic shift maintains the sign 1-bit arithmetic shift left multiplies by 2 1-bit arithmetic shift right divides by 2 Logical shift fills empty bits with 0 Shift left logical 8 from the Mic-1 Half adder Inputs A, B Outputs C out, Sum Full adder Inputs A, B, C in Outputs C out, Sum Ripple-carry adder Carry-select adder Adders 17 18 Logic Unit with output enable ALU Bit Slice Output for all ALU functions Control Signals for ALU Functions 2:4 Decoder for enable signals Full Adder with output enable 19 20

Block Diagram of Microarchitecture (Mic-1) Datapath Part of CPU containing ALU, its inputs, and its outputs Purpose Implement the ISA level above it (macroarchitecture) Control Section Part of CPU containing the H/W necessary to direct the datapath 21 Fetch-Decode-Execute 1. Fetch the next instruction from memory into the instruction register. 2. Change the program counter to point to the following instruction. 3. Determine the type of instruction just fetched. 4. If the instruction uses a word in memory, determine where it is. 5. Fetch the word, if needed, into a CPU register. 6. Execute the instruction. 7. Start over and begin executing the following instruction. 22 Datapath Registers Memory Address Register Memory Data Register Program Counter Memory Buffer Register Stack Pointer Local Variable pointer Constant Pool Pointer Top Of Stack OPC Holding register Hold either an address or a data value 23 Memory Operation Memory Address Register Memory Data Register Program Counter Memory Buffer Register Registers driven by control signals WRITE, READ, FETCH Two ways to access memory 32-bit port (word addressable) (MAR, MDR) 8-bit read-only port (byte addressable) (PC, MBR) Actual memory is byte oriented 24

Parts of IJVM Memory Datapath Timing Has a finite propagation time Signals travel along wires, through transistors, etc. CPP, LV, and SP registers are pointers to words PC contains a byte address Implicit clock subcycles Set up control signals to drive datapath Register loaded onto B bus ALU and shifter operate Result propagates along C bus to registers 25 26 Timing Diagram for One Datapath Cycle Microinstruction Format Use two additional sets of signals 9 for address of next microinstruction 3 to determine how next microinstruction is selected (JAM) 27 Total of 36 control signals (bits) 28

Control Store (ROM) Block Diagram of Microarchitecture (Mic-1) Memory that holds the microprogram Contains 512 words, each a 36-bit microinstruction Each microinstruction specified its successor Not executed in order stored in control store Accessing the microprogram MicroProgram Counter similar to memory address register MicroInstruction Register similar to memory data register 29 Datapath Part of CPU containing ALU, its inputs, and its outputs Purpose Implement the ISA level above it (macroarchitecture) Control Section Part of CPU containing the H/W necessary to direct the datapath 30 Summary Computer Organization is still a GREAT class Dr. Robinson is still a GREAT professor Questions focus on material since Exam 1 Don t forget concepts from Chapters 1 & 2 Main ideas Digital logic structures Microarchitecture level components IJVM 31