CSCI 211 Intro Computer Organization –Consists of gates for logic And Or Not –Processor –Memory –I/O interface.

Slides:



Advertisements
Similar presentations
Chapter 2: Data Manipulation
Advertisements

Machine cycle.
ARITHMETIC LOGIC SHIFT UNIT
Chapter 2.
Computer Organization. This module surveys the physical resources of a computer system. –Basic components CPUMemoryBus I/O devices –CPU structure Registers.
Computer Systems. Computer System Components Computer Networks.
MIPS Architecture CPSC 321 Computer Architecture Andreas Klappenecker.
CSCE 121, Sec 200, 507, 508 Fall 2010 Prof. Jennifer L. Welch.
Stored Program Concept: The Hardware View
The processor and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
Chapter 4 Processor Technology and Architecture. Chapter goals Describe CPU instruction and execution cycles Explain how primitive CPU instructions are.
Henry Hexmoor1 Chapter 10- Control units We introduced the basic structure of a control unit, and translated assembly instructions into a binary representation.
Computer ArchitectureFall 2007 © Sep 10 th, 2007 Majd F. Sakr CS-447– Computer Architecture.
Computer Systems CS208. Major Components of a Computer System Processor (CPU) Runs program instructions Main Memory Storage for running programs and current.
CSE378 MIPS ISA1 MIPS History MIPS is a computer family –R2000/R3000 (32-bit); R4000/4400 (64-bit); R8000; R10000 (64-bit) etc. MIPS originated as a Stanford.
Lecture 13 - Introduction to the Central Processing Unit (CPU)
Basic Operational Concepts of a Computer
Computer Organization Computer Organization & Assembly Language: Module 2.
An Introduction Chapter Chapter 1 Introduction2 Computer Systems  Programmable machines  Hardware + Software (program) HardwareProgram.
Some material taken from Assembly Language for x86 Processors by Kip Irvine © Pearson Education, 2010 Slides revised 2/2/2014 by Patrick Kelley.
The Computer Systems By : Prabir Nandi Computer Instructor KV Lumding.
CSCI-365 Computer Organization Lecture Note: Some slides and/or pictures in the following are adapted from: Computer Organization and Design, Patterson.
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 2.
COMP3221 lec04--prog-model.1 Saeid Nooshabadi COMP 3221 Microprocessors and Embedded Systems Lecture 4: Programmer’s Model of Microprocessors
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
General Concepts of Computer Organization Overview of Microcomputer.
Computer Architecture And Organization UNIT-II General System Architecture.
Intro MIPS Computer Organization I 1 September 2009 © McQuain, Feng & Ribbens The Stored Program Computer 1945: John von Neumann – Wrote a.
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
Computer Science 101 Computer Systems Organization ALU, Control Unit, Instruction Set.
Computer Organization 1 Instruction Fetch and Execute.
Dale & Lewis Chapter 5 Computing components
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
What is a program? A sequence of steps
CS61C L20 Datapath © UC Regents 1 Microprocessor James Tan Adapted from D. Patterson’s CS61C Copyright 2000.
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.
Copyright 2006 by Timothy J. McGuire, Ph.D. 1 MIPS Programming Model CS 333 Sam Houston State University Dr. Tim McGuire.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Copyright © 2005 – Curt Hill MicroProgramming Programming at a different level.
1 TM 1 Embedded Systems Lab./Honam University ARM Microprocessor Programming Model.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
Computer Architecture. Instruction Set “The collection of different instructions that the processor can execute it”. Usually represented by assembly codes,
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
Computer Organization Exam Review CS345 David Monismith.
Computers’ Basic Organization
Basic Computer Organization and Design
Control Unit Lecture 6.
Lecture 13 - Introduction to the Central Processing Unit (CPU)
Chapter 1: An Overview of Computers and Programming Languages
Instruction Format MIPS Instruction Set.
C++ Programming: From Problem Analysis to Program Design
Computer Architecture
CSCE Fall 2013 Prof. Jennifer L. Welch.
CSCE 121: Simple Computer Model Spring 2015
ECEG-3202 Computer Architecture and Organization
The Processor Lecture 3.1: Introduction & Logic Design Conventions
CSCE Fall 2012 Prof. Jennifer L. Welch.
What is Computer Architecture?
Instruction Format MIPS Instruction Set.
What is Computer Architecture?
What is Computer Architecture?
Computer Architecture
Chapter 6 Programming the basic computer
CPU Structure CPU must:
A Top-Level View Of Computer Function And Interconnection
Computer Systems An Introducton.
Computer Architecture Assembly Language
Presentation transcript:

CSCI 211 Intro Computer Organization –Consists of gates for logic And Or Not –Processor –Memory –I/O interface

Instructions Instructions are in memory –Fetch instruction, then execute it Fetch execute cycle –More detailed Fetch instruction Fetch operands Execute instruction Save result Determine next instruction

Processor Components Datapath –Hardware that electrons flow through to accomplish an instruction Control –Tells hardware what to do and when to do it. Registers –Small amount of memory (32 4-byte for MIPS) that can be operated upon.

What’s inside Everything in the computer is represented with 0’s and 1’s (on-off) –Integers –Characters –Boolean –Float –Instructions (machine language)

Languages Machine Language –Just 0’s and 1’s –Very hard to program Assembly –Symbolic for machine language –Easy to create a program to translate from assembly language to machine language (almost 1 to 1) –Keeps track of variables’ addresses

Why Learn Assembler Understand what the machine does –Helps you to be a better guesser Needed to write a compiler (431) Needed to build CPUs Faster to execute To determine timing Gives you the power to access anything Maintaining older systems

Why not USE assembly Tedious Error prone Slow to write Machine dependent Good compilers produce fast code already

MIPS CPU Used in many systems –SGI workstations –Sony PS2 –Dish Network set top box –Tivo DVR –Pioneer Plasma TV –HP Color laser printer –Many more

MIPS Layout Control Register file (32 registers with 32 bits each) ALU Program Counter (PC) Memory –32 bit address (2 32 bytes addressable = 4Gb) Instruction register (IR)

Control Unit Sends the proper control signals to each component to accomplish instruction Input to the control unit –Instruction –Cycle number – which step of the instruction

Register File A group of registers Input –Which register (5 bits) –Read or Write –32 bit value (for write) –Outputs a 32 bit value for read

Register Conventions $0 = 0 $1 – used by the assembler $2, $3 – function return values $4-$7 – Arguments to a function Etc.

Other components ALU –Performs arithmetic and logic (and, or, shift) PC –Program counter – address of next instruction Memory –32 bit address –Addresses a byte (8 bits) –Some instructions use word (4 bytes), halfword (2 bytes), or byte operands –All instructions are 4 bytes (on MIPS) PC=PC+4

Instruction Register IR –Holds the 32 bit instruction just fetched –Needed for control unit to determine what control signals to send

Instruction Format Opcode –First 6 bits 3 Formats –R type Opcode all 0’s Three 5-bit fields for registers (2 for operand, 1 for result) 5-bit shift amount (for shift instructions) 6-bit function code

Other formats I Type –Two 5-bit register numbers –16-bit value as the third operand J type –Jump instructions –26 bit address field (64M)