CSC 235 Computer Organization. Computer Organizaton ä Top_Level Structure ä The von-Neumann Machine ä Stack Machine ä Accumulator Machine ä Load/Store.

Slides:



Advertisements
Similar presentations
Chapter 2: Data Manipulation
Advertisements

The CPU The Central Presentation Unit What is the CPU?
Introduction to Computer Systems CCE INPUT Human/Machine Interface DATA Organisation Access Analysis Computation Synthesis PROCESSING Systems Programming.
Computer Architecture and the Fetch-Execute Cycle
Central Processing Unit
Chapter 2 Data Manipulation Dr. Farzana Rahman Assistant Professor Department of Computer Science James Madison University 1 Some sldes are adapted from.
CSC 3210 Computer Organization and Programming Introduction and Overview Dr. Anu Bourgeois.
CPS 101 Introduction to Computational Science Wensheng Shen Department of Computational Science SUNY Brockport.
Stored Program Concept: The Hardware View
The processor and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
Choice for the rest of the semester New Plan –assembler and machine language –Operating systems Process scheduling Memory management File system Optimization.
The central processing unit and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
Elements of the Computer (How a processor works)
Processor Types And Instruction Sets Barak Perelman CS147 Prof. Lee.
Lecture 13 - Introduction to the Central Processing Unit (CPU)
Computer Structure.
The Structure of the CPU
Computer Systems 1 Fundamentals of Computing The CPU & Von Neumann.
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
Computer Architecture and Organization Introduction.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Computer Systems Organization CS 1428 Foundations of Computer Science.
Introduction to Computing Systems from bits & gates to C & beyond The Von Neumann Model Basic components Instruction processing.
CSC 3210 Computer Organization and Programming Chapter 1 THE COMPUTER D.M. Rasanjalee Himali.
The CPU Central Processing Unit. 2 Reminder - how it fits together processor (CPU) memory I/O devices bus.
IAS By : Hajer Ahmed Mohammed. ENIAC - details Decimal (not binary) Its memory contained 20 accumulators of 10 digits. 10 vacuum tubes represented each.
Chapter 8: The Very Simple Computer
General Concepts of Computer Organization Overview of Microcomputer.
Computer Architecture And Organization UNIT-II General System Architecture.
Lecture 14 Today’s topics MARIE Architecture Registers Buses
Intro MIPS Computer Organization I 1 September 2009 © McQuain, Feng & Ribbens The Stored Program Computer 1945: John von Neumann – Wrote a.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Architecture 2 nd year (computer and Information Sc.)
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI N305 Information Representation: Machine Instructions.
September 26, 2001Systems Architecture I1 Systems Architecture I (CS ) Lecture 2: Implementation of a Simplified Computer Jeremy R. Johnson Wednesday,
© GCSE Computing Candidates should be able to:  describe the characteristics of an assembler Slide 1.
Computer Organization 1 Instruction Fetch and Execute.
Assessment Covering… Von Neuman architecture Registers – purpose and use, the fetch execute cycle.
Computer Organization CDA 3103 Dr. Hassan Foroosh Dept. of Computer Science UCF © Copyright Hassan Foroosh 2002.
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
Dale & Lewis Chapter 5 Computing components
Overview von Neumann Architecture Computer component Computer function
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
Simple ALU How to perform this C language integer operation in the computer C=A+B; ? The arithmetic/logic unit (ALU) of a processor performs integer arithmetic.
CMSC 104, Lecture 061 Stored Programs A look at how programs are executed.
1 Chapter 2 Computer Evolution and Performance by Sameer Akram.
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
Computer Architecture
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
Lec 4-2 Five operations of the machine cycle Fetch- fetch the next program instruction from memory. (PC+1); instruction to IR Decode- decode the instruction.
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
Computer Organization
The Stored Program Computer
Components of Computer
Computer Architecture and Organization
Data Representation – Instructions
The Processor and Machine Language
Komponen Dasar Sistem Komputer
Overview of Computer Architecture and Organization
Computer Architecture
MARIE: An Introduction to a Simple Computer
GCSE OCR 1 The CPU Computer Science J276 Unit 1
Computer Evolution and Performance
Information Representation: Machine Instructions
Objectives Describe common CPU components and their function: ALU Arithmetic Logic Unit), CU (Control Unit), Cache Explain the function of the CPU as.
Instruction execution and ALU
Presentation transcript:

CSC 235 Computer Organization

Computer Organizaton ä Top_Level Structure ä The von-Neumann Machine ä Stack Machine ä Accumulator Machine ä Load/Store Machine ä Assemblers

Top Level Structure ä Input/Output ä Main Memory ä Central Processing Unit (CPU) ä System Interconnection (Bus)

Structure - Top Level Computer Main Memory Input Output Systems Interconnection Peripherals Communication lines Central Processing Unit Computer

Structure - The CPU Computer Arithmetic and Login Unit Control Unit Internal CPU Interconnection Registers CPU I/O Memory System Bus CPU

The von Neumann Machine Stored Program concept Main memory storing programs and data ALU operating on binary data Control unit interpreting instructions from memory and executing Input and output equipment operated by control unit Princeton Institute for Advanced Studies – –IAS Completed 1952

Structure of von Neumann machine Main Memory Arithmetic and Logic Unit Program Control Unit Input Output Equipment

IAS - details 1000 x 40 bit words – –Binary number – –2 x 20 bit instructions Set of registers (storage in CPU) – –Memory Buffer Register – –Memory Address Register – –Instruction Register – –Instruction Buffer Register – –Program Counter – –Accumulator – –Multiplier Quotient

Structure of IAS - detail Main Memory Arithmetic and Logic Unit Program Control Unit Input Output Equipment MBR Arithmetic & Logic Circuits MQAccumulator MAR Control Circuits IBR IR PC Address Instructions & Data Central Processing Unit

The execution cycle ä PC = 0; // program counter initialized ä Do ä { INSTRUCTION = MEMORY[PC]; INSTRUCTION = MEMORY[PC];PC++;DECODE(INSTRUCTION);FETCH(OPERANDS);EXECUTE;STORE(RESULTS); } WHILE (INSTRUCTION != HALT)

The Stack Machine ä All operations use the top of Stack. ä Operands are on top of stack ä Operation pops its operands from the top of stack. ä Operation is performed ä The result is pushed back on the top of stack ä See figure 1.3 of text (next slide).

x = a + b; ä Push a;// fetch a from memory and push it onto stack ä Push b;// fetch b from memory and push it onto stack ä Add// pop top two values from top of stack, add them and top of stack, add them and push result onto stack push result onto stack ä Store x// pop top value off stack and put it in memory location of x

Accumulator Machines ä One operand is in the special register called the accumulator ä The other operand (if any) is found in memory ä The operation is performed and the result is left in the accumulator

x = a + b; Load a;// fetch a from memory and put in accumulator add b;// fetch b from memory and and add it to the accumulator leaving the answer in the accumulator Store x// copy accumulator to memory location of x

Load/Store Machines ä Each operand is in a register ä The operation is performed using the appropriate registers ä The result is put in a register

Load/Store Variations ä PDP-11 ä VAX 11 ä Motorola ä Intel 80x86 ä Sun Microsystems SPARC computers

PDP, VAX, Motorola x = a + b ä move a, r0// r0 = a ä move b, r1// r1 = b ä add r0, r1// r1 = r0 + r1 ä move r1, x// x = r1

Assemblers ä All code/data is in binary ä Hard for humans to understand ä Assemblers allow mnemonics to be used ä Assemblers allow names for memory locations ä Assemblers allow labels to used on instructions ä Different machines have different assemblers ä Same machines can have different assemblers

Setting Up for sa ä Make the directory bin in your home directory. Use emacs to add $home/bin to your path variable in your.login file. ä Make sure the directory /usr/ccs/bin is in your path variable in your.login file. If not, put it there, then save.login. ä Copy the program sa from the public directory /export/home/public/spiegel/csc235 to your bin directory. ä Give the command source.login to make the changes effective.

Testing sa ä Make a directory csc235 in your home directory. ä Copy the file addxy.m from the public directory to the csc235 directory. ä Give the command sa addxy to test the setup of sa. If it does not compile and run correctly, re- check the previous steps. If it still does not work, see a GA or your professor.