Computer Organization



Similar documents
Introduction to Computers, Anatomy of Computers, Input and Output Devices

1 PERSONAL COMPUTERS

Parts of a Computer. Preparation. Objectives. Standards. Materials Micron Technology Foundation, Inc. All Rights Reserved

Primary Memory. Input Units CPU (Central Processing Unit)

Management Challenge. Managing Hardware Assets. Central Processing Unit. What is a Computer System?

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

Obj: Sec 1.0, to describe the relationship between hardware and software HW: Read p.2 9. Do Now: Name 3 parts of the computer.

Chapter 3: Computer Hardware Components: CPU, Memory, and I/O

Topics. Introduction. Java History CS 146. Introduction to Programming and Algorithms Module 1. Module Objectives

Objectives. Chapter 2: Operating-System Structures. Operating System Services (Cont.) Operating System Services. Operating System Services (Cont.

CS 3530 Operating Systems. L02 OS Intro Part 1 Dr. Ken Hoganson

Outline. hardware components programming environments. installing Python executing Python code. decimal and binary notations running Sage

TEST CHAPTERS 1 & 2 OPERATING SYSTEMS

Basics of Computer 1.1 INTRODUCTION 1.2 OBJECTIVES

1.1 Electronic Computers Then and Now

An Introduction to Computer Science and Computer Organization Comp 150 Fall 2008

Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory.

Multimedia Systems Hardware & Software THETOPPERSWAY.COM

Python Programming: An Introduction to Computer Science

Overview of MIS Professor Merrill Warkentin

Outline: Operating Systems

Copyright 2012 Pearson Education, Inc. Chapter 1 INTRODUCTION TO COMPUTING AND ENGINEERING PROBLEM SOLVING

CHAPTER 1 ENGINEERING PROBLEM SOLVING. Copyright 2013 Pearson Education, Inc.

Chap-02, Hardware and Software. Hardware Model

Fall Lecture 1. Operating Systems: Configuration & Use CIS345. Introduction to Operating Systems. Mostafa Z. Ali. mzali@just.edu.

Montgomery College Course Designator/Course Number: CS 110 Course Title: Computer Literacy

Computer Hardware HARDWARE. Computer Hardware. Mainboard (Motherboard) Instructor Özgür ZEYDAN

Chapter 2 Basic Structure of Computers. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan

Upon completion of this chapter, you will able to answer the following questions:

Prof. Dr. M. H. Assal

VMWare Workstation 11 Installation MICROSOFT WINDOWS SERVER 2008 R2 STANDARD ENTERPRISE ED.

The computer's internal components

Operating Systems. and Windows

Module 1 Introduction to Information and Communication Technologies

Lesson 06: Basics of Software Development (W02D2

OPERATING SYSTEM SERVICES

TH2. Input devices, processing and output devices

Python Programming: An Introduction to Computer Science

Example of Standard API

1/20/2016 INTRODUCTION

MULTIPLE CHOICE FREE RESPONSE QUESTIONS

Chapter 6. Inside the System Unit. What You Will Learn... Computers Are Your Future. What You Will Learn... Describing Hardware Performance

Operating system Dr. Shroouq J.

CHAPTER 3: HARDWARE BASICS: PERIPHERALS

ASSEMBLY PROGRAMMING ON A VIRTUAL COMPUTER

CS3600 SYSTEMS AND NETWORKS

Chapter 8 Operating Systems and Utility Programs

OKLAHOMA SUBJECT AREA TESTS (OSAT )

Introduction to C++ Programming I. Ian Aitchison and Peter King

COMPUTER BASICS. Seema Sirpal Delhi University Computer Centre

CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX

Introduction to Computers and Programming

Today. Binary addition Representing negative numbers. Andrew H. Fagg: Embedded Real- Time Systems: Binary Arithmetic

Chapter 3: Operating-System Structures. System Components Operating System Services System Calls System Programs System Structure Virtual Machines

SPSS 12 Data Analysis Basics Linda E. Lucek, Ed.D

Chapter One Introduction to Computer

Chapter 1. The largest computers, used mainly for research, are called a. microcomputers. b. maxicomputers. c. supercomputers. d. mainframe computers.

MICROPROCESSOR AND MICROCOMPUTER BASICS

New Mexico Broadband Program. Basic Computer Skills. Module 1 Types of Personal Computers Computer Hardware and Software

Block diagram of typical laptop/desktop

THREE YEAR DEGREE (HONS.) COURSE BACHELOR OF COMPUTER APPLICATION (BCA) First Year Paper I Computer Fundamentals

Hardware: Input, Processing, and Output Devices. A PC in Every Home. Assembling a Computer System

Desktop Publishing 5N0785 Learning Outcome 2 Monaghan Institute Level 5 Module

Copyright 2006 TechSmith Corporation. All Rights Reserved.

Operating System Software

COMPUTER SCIENCE AND ENGINEERING - Basic Functions and Operational Units - Kevin Skadron, BASIC FUNCTIONS AND OPERATIONAL UNITS

A Real Time, Object Oriented Fieldbus Management System

Operating System Structures

Introduction To Computers: Hardware and Software

Practical Programming, 2nd Edition

Chapter 1 Computer System Overview

CPU Organisation and Operation

Stored Documents and the FileCabinet

Computer Literacy. Hardware & Software Classification

Central Processing Unit

Computer Hardware and Network Administration

EUROPEAN UNIVERSITY OF LEFKE MANAGEMENT INFORMATION SYSTEMS DEPARTMENT COURSE DESCRIPTION

Software: Systems and Application Software

Chapter 8 Types of Utility Programs and Operating Systems. Discovering Computers Your Interactive Guide to the Digital World

Review from last time. CS 537 Lecture 3 OS Structure. OS structure. What you should learn from this lecture

Understanding Operating System Configurations

Operating System Today s Operating Systems File Basics File Management Application Software

Multiple Choice Questions(Computer)

System Structures. Services Interface Structure

Click to view Web Link, click Chapter 8, Click Web Link from left navigation, then click BIOS below Chapter 8 p. 395 Fig. 8-4.

Chapter 8 Objectives. Chapter 8 Operating Systems and Utility Programs. Operating Systems. Operating Systems. Operating Systems.

SOFTWARE TECHNOLOGIES

5COMPUTER SCIENCE For Class IX (marks 55)

Building Applications Using Micro Focus COBOL

BTEC First Diploma for IT. Scheme of Work for Computer Systems unit 3 (10 credit unit)

Introduction. What is an Operating System?

COMPUTER HARDWARE. Input- Output and Communication Memory Systems

CPS221 Lecture: Operating System Structure; Virtual Machines

Instructor Özgür ZEYDAN BEU Dept. of Enve. Eng. CIV 112 Computer Programming Lecture Notes (1)

Nero MediaStreaming for MCE Manual

Here is a diagram of a simple computer system: (this diagram will be the one needed for exams) CPU. cache

13 Managing Devices. Your computer is an assembly of many components from different manufacturers. LESSON OBJECTIVES

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 2 Introducing Operating Systems

Computer Science 1301 Computer Literacy. Student Learning Outcomes

Transcription:

Basics Machine, software, and program design JPC and JWD 2002 McGraw-Hill, Inc. Computer Organization CPU - central processing unit Where decisions are made, computations are performed, and input/output requests are delegated Memory Stores information being processed by the CPU Input devices Allows people to supply information to computers Output devices Allows people to receive information from computers 1

Computer Organization Memory Input Devices Output Devices CPU CPU Brains of the computer Arithmetic calculations are performed using the Arithmetic/Logical Unit or ALU Control unit decodes and executes instructions Arithmetic operations are performed using binary number system 2

Control Unit The fetch/execute cycle is the steps the CPU takes to execute an instruction Performing the action specified by an instruction is known as executing the instruction The program counter (PC) holds the memory address of the next instruction Fetch the instruction to which the PC points Increment the PC Execute the fetched instruction Input and Output Devices Accessories that allow computer to perform specific tasks Receive information for processing Return the results of processing Store information Common input and output devices Speakers Mouse Scanner Printer Joystick CD-ROM Keyboard Microphone DVD Some devices are capable of both input and output Floppy drive Hard drive Magnetic tape units 3

Monitor Display device that operates like a television Also known as CRT (cathode ray tube) Controlled by an output device called a graphics card Displayable area Measured in dots per inch, dots are often referred to as pixels (short for picture element) Standard resolution is 640 by 480 Many cards support resolution of 1280 by 1024 or better 1280 pixels across screen Number of colors supported varies from 16 to billions 1024 pixels down screen Software Application software Programs designed to perform specific tasks that are transparent to the user System software Programs that support the execution and development of other programs Two major types Operating systems Translation systems 4

Application Software Application software is the software that has made using computers indispensable and popular Common application software Word processors Desktop publishing programs Spreadsheets Presentation managers Drawing programs Learning how to develop application software is our focus Operating System Examples Windows, UNIX, Mac OS X Controls and manages the computing resources Important services that an operating system provides File system Directories, folders, files Commands that allow for manipulation of the file system Sort, delete, copy Ability to perform input and output on a variety of devices Management of the running systems 5

Translation System Set of programs used to develop software A key component of a translation system is a translator Some types of translators Compiler Converts from one language to another Linker Examples Combines resources Microsoft Visual C++, CBuilder, g++, Code Warrior Performs compilation, linking, and other activities. Software Development Activities Editing Compiling Linking with precompiled files Object files Library modules Loading and executing Viewing the behavior of the program 6

Software Development Cycle Source Program Compile Edit Think Link Load Library routines Other object files Execute IDEs Integrated Development Environments or IDEs Supports the entire software development cycle E.g., MS Visual C++, Borland, Code Warrior Provides all the capabilities for developing software Editor Compiler Linker Loader Debugger Viewer 7

Engineering Software Software engineering Area of computer science concerned with building large software systems Challenge Tremendous advances in hardware have not been accompanied by comparable advances in software Complexity Trade-off System complexity tends to grow as the system becomes more user friendly High Complexity Total Software Complexity User Simplicity Low 8

Software Engineering Goals Reliability An unreliable life-critical system can be fatal Understandability Future development is difficult if software is hard to understand Cost Effectiveness Cost to develop and maintain should not exceed profit Adaptability System that is adaptive is easier to alter and expand Reusability Improves reliability, maintainability, and profitability Software Engineering Principles Abstraction Extract the relevant properties while ignoring inessentials Encapsulation Hide and protect essential information through a controlled interface Modularity Dividing an object into smaller modules so that it is easier to understand and manipulate Hierarchy Ranking or ordering of objects based on some relationship between them 9

Abstraction Extract the relevant object properties while ignoring inessentials Defines a view of the object Example - car Car dealer views a car from selling features standpoint Price, length of warranty, color, Mechanic views a car from systems maintenance standpoint Size of the oil filter, type of spark plugs, Price? Oil change? Encapsulation Steps Decompose an object into parts Hide and protect essential information Supply interface that allows information to be modified in a controlled and useful manner Internal representation can be changed without affecting other system parts Example - car radio Interface consists of controls and power and antenna connectors The details of how it works is hidden To install and use a radio Do not need to know anything about the radio s electronics 10

Modularity Dividing an object into smaller pieces or modules so that the object is easier to understand and manipulate Most complex systems are modular Example - Automobile can be decomposed into subsystems Cooling system Radiator Thermostat Water pump Ignition system Battery Starter Spark plugs Hierarchy Hierarchy Ranking or ordering of objects based on some relationship between them Help us understand complex systems Example - a company hierarchy helps employees understand the company and their positions within it For complex systems, a useful way of ordering similar abstractions is a taxonomy from least general to most general 11

Northern Timber Wolf Taxonomy Kingdom Animalia Phylum Chordata Class Mammalia Order Carnivora Family Caninae Genus Canis Species Canis lupus Subspecies Canis lupus occidentalis Northern Timber Wolf OO Design and Programming Object-oriented design and programming methodology supports good software engineering Promotes thinking in a way that models the way we think and interact with the real world Example - watching television The remote is a physical object with properties Weight, size, can send message to the television The television is also a physical object with various properties 12

Objects An object is almost anything with the following characteristics Name Properties The ability to act upon receiving a message Basic message types Directive to perform an action Request to change one of its properties Binary Arithmetic The individual digits of a binary number are referred to as bits Each bit represents a power of two 01011 = 0 2 4 + 1 2 3 + 0 2 2 + 1 2 1 + 1 2 0 = 11 00010 = 0 2 4 + 0 2 3 + 0 2 2 + 1 2 1 + 0 2 0 = 2 Binary addition 00010 + 01011 01101 2 + 11 13 Equivalent decimal addition 13

Binary Arithmetic Binary multiplication Equivalent decimal multiplication 0101 0011 0101 0101 0000 0000 0001111 5 3 15 Two s Complement Representation for signed binary numbers Leading bit is a sign bit Binary number with leading 0 is positive Binary number with leading 1 is negative Magnitude of positive numbers is just the binary representation Magnitude of negative numbers is found by Complement the bits Replace all the 1's with 0's, and all the 0's with 1's Add one to the complemented number The carry in the most significant bit position is thrown away when performing arithmetic 14

Two s Complement Performing two's complement on the decimal 7 to get -7 Using a five-bit representation 7 = 00111 Convert to binary 11000 Complement the bits 11000 Add 1 to the complement + 00001 11001 Result is -7 in two's complement Two's Complement Arithmetic Computing 8-7 using a two's complement representation with five-bit numbers 8-7 = 8 + (-7) = 1 01000 Two's complement of 8 Throw away the high-order carry as we are using a five bit representation 11001 Two's complement of -7 01000 Add 8 and -7 + 11001 100001 00001 Is the five-bit result 15