10-Sep-0194.201 - Fall 2001: copyright ©T. Pearce, D. Hutchinson, L. Marshall Sept. 20011 Recall Objective: understand computers at machine level interested.

Slides:



Advertisements
Similar presentations
Computer Organization. The Nature of Data Spreadsheets give us a way to create processes that manipulate data We can think of a piece of data as a quantity.
Advertisements

ICS103 Programming in C Lecture 1: Overview of Computers & Programming
INTRODUCTION OF COMPUTER
Lecture Objectives: 1)Explain the limitations of flash memory. 2)Define wear leveling. 3)Define the term IO Transaction 4)Define the terms synchronous.
Computer Architecture & Organization
Introduction Digital systems (logic design, digital logic, switching circuits) are employed in: computers data communication control systems many other.
Architectural Support for Operating Systems. Announcements Most office hours are finalized Assignments up every Wednesday, due next week CS 415 section.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
Computing Components 01/26/11. Announcements & Reminders Programs 1 due Friday, 9/2/11 What is my late policy? Proxy Codes for Labs  You should be able.
Basic Input/Output Operations
1  1998 Morgan Kaufmann Publishers Lectures for 2nd Edition Note: these lectures are often supplemented with other materials and also problems from the.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
1 Lecture-2 CS-120 Fall 2000 Revision of Lecture-1 Introducing Computer Architecture The FOUR Main Elements Fetch-Execute Cycle A Look Under the Hood.
0 What is a computer?  Simply put, a computer is a sophisticated electronic calculating machine that:  Accepts input information,  Processes the information.
CS 0008 Day 2 1. Today Hardware and Software How computers store data How a program works Operators, types, input Print function Running the debugger.
Introduction to computer: storing instructions and information.
The Study of Computer Science Chapter 0 Intro to Computer Science CS1510, Section 2.
How Computers Work. A computer is a machine f or the storage and processing of information. Computers consist of hardware (what you can touch) and software.
Computer Architecture Lecture 01 Fasih ur Rehman.
Aug CMSC 104, LECT-021 Machine Architecture and Number Systems Some material in this presentation is borrowed form Adrian Ilie From The UNIVERSITY.
Computer Organization
1 Computer Systems. 2 Introduction – What is a Computer? This course is all about how computers work What do computer and computer system mean to you?
INTRODUCTION TO COMPUTING
Computer Processing of Data
XP Practical PC, 3e Chapter 16 1 Looking “Under the Hood”
Configuration.
2007 Sept 06SYSC 2001* - Fall SYSC2001-Ch1.ppt1 Computer Architecture & Organization  Instruction set, number of bits used for data representation,
Basic Structure of Computer Computer Architecture Lecture – 2.
The Study of Computer Science Chapter 0 Intro to Computer Science CS1510.
Lesson 1b: Computer Systems and Program Development CPS118.
Input/ Output By Mohit Sehgal. What is Input/Output of a Computer? Connection with Machine Every machine has I/O (Like a function) In computing, input/output,
Computer Architecture Lecture 8 by Engineer A. Lecturer Aymen Hasan AlAwady 30/12/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
Interrupts and DMA CSCI The Role of the Operating System in Performing I/O Two main jobs of a computer are: –Processing –Performing I/O manage and.
Sogang University Advanced Computing System Chap 1. Computer Architecture Hyuk-Jun Lee, PhD Dept. of Computer Science and Engineering Sogang University.
10-Sep Fall 2001: copyright ©T. Pearce, D. Hutchinson, L. Marshall Sept Representing Information in Computers:  numbers: counting numbers,
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 2.
(More) Interfacing concepts. Introduction Overview of I/O operations Programmed I/O – Standard I/O – Memory Mapped I/O Device synchronization Readings:
20-Sep Fall 2001: copyright ©T. Pearce, D. Hutchinson, L. Marshall Sept lecture7-8-compstate 1 Machine Organization  Systems (including.
Advanced Computer Architecture 0 Lecture # 1 Introduction by Husnain Sherazi.
Introduction to programmable computing devices. What is a computer Computer: How was the computer developed/invented: A computer is a "reckoning" or computing.
School of Computer Science & Information Technology G6DICP Introduction to Computer Programming Milena Radenkovic.
COMPUTER ARCHITECTURE. Recommended Text 1Computer Organization and Architecture by William Stallings 2Structured Computer Organisation Andrew S. Tanenbaum.
Input/Output Computer component : Input/Output I/O Modules External Devices I/O Modules Function and Structure I/O Operation Techniques I/O Channels and.
Computer Architecture
Computer Architecture And Organization UNIT-II General System Architecture.
Aug CMSC 104, LECT-021 Machine Architecture Some material in this presentation is borrowed form Adrian Ilie From The UNIVERSITY of NORTH CAROLINA.
Computer System Internal components - The processor - Main memory - I / O controllers - Buses External components (peripherals). These include: - keyboard.
7. Peripherals 7.1 Introduction of peripheral devices Computer Studies (AL)
Fall 2000M.B. Ibáñez Lecture 25 I/O Systems. Fall 2000M.B. Ibáñez Categories of I/O Devices Human readable –used to communicate with the user –video display.
INTRODUCTION.  Upon completing this topic, you should be able to: Illustrate a basic elements of digital computer system and their functions, Depicts.
2008 Sept. 8SYSC Fall SYSC2001-Ch2and3.ppt1 ITBB – Structure ProcessorMemoryInput/Output Bus device Processorexecutes instructions Memorystores.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
CS 1428 Foundations of Computer Science I. Two Main Components  Hardware  Physical media that uses electrical current to process instructions.  Software.
Lecture on Central Process Unit (CPU)
IT3002 Computer Architecture
I/O Interface. INTRO TO I/O INTERFACE I/O instructions (IN, INS, OUT, and OUTS) are explained. Also isolated (direct or I/O mapped I/O) and memory-mapped.
9/20/6Lecture 2 - Prog Model1 MicroBaby A simple micro-controller encompassing all the basics Start this class by organizing into groups.
C HAPTER 4 OS: C OMPUTER O RGANIZATION TOPICS: The Von Neumann Architecture The CPU.
Copyright © 2007 by Curt Hill Interrupts How the system responds.
Von Neumann Machines. 3 The Von Neumann Architecture Model for designing and building computers, based on the following three characteristics: 1)The.
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages.
CS501 Advanced Computer Architecture
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
Chapter 7.2 Computer Architecture
Microprocessor Systems Design I
CS703 - Advanced Operating Systems
Computer Science I CSC 135.
Machine Architecture and Number Systems
The Study of Computer Science Chapter 0
Presentation transcript:

10-Sep Fall 2001: copyright ©T. Pearce, D. Hutchinson, L. Marshall Sept Recall Objective: understand computers at machine level interested in software perspective Problem: how can we discuss / explain something that is “unknown” ? One Approach: understand the real machine how do the millions of transistors in a computer support programs? impractical! (too complex) Understanding Computers

10-Sep Fall 2001: copyright ©T. Pearce, D. Hutchinson, L. Marshall Sept Alternate Approach: learn and understand an abstract model of the computer’s behaviour  emphasize only the important details/attributes  have you done this in other courses?  programmer’s model  abstract model appropriate for explaining software at the machine level  no transistor details!  widely used in industry  models computer as a system System: a set of components that interact to accomplish an objective Programmer’s Model

10-Sep Fall 2001: copyright ©T. Pearce, D. Hutchinson, L. Marshall Sept  what are the components?  how do they interact?  what are the objectives?  “A Computer System” Computer System Processor Memory I/O Bus Connected Devices keyboard mouse display printer disk drives communication links etc. Diagram of a Simple Computer System

10-Sep Fall 2001: copyright ©T. Pearce, D. Hutchinson, L. Marshall Sept  manipulates information located in components: (processor, memory, I/O) by executing instructions  information in processor held in registers  processor characterized by: register set: (more later) instruction set – includes addressing modes (more later) interrupt mechanism – lets other components notify processor when “events” happen (more in !) Processor

10-Sep Fall 2001: copyright ©T. Pearce, D. Hutchinson, L. Marshall Sept  holds information in cells (or “locations”)  each cell has: address: a name that identifies cell contents: the information “value” held in the cell  memory supports two operations: write(address, value): causes the cell identified by address to replace its contents with value (i.e. new information held in the cell = value) read(address): returns the value held as the contents of the cell identified by address (contents of the cell are not changed) Memory

10-Sep Fall 2001: copyright ©T. Pearce, D. Hutchinson, L. Marshall Sept  information exchange between computer and connected devices  independent I/O components associated with each connected device e.g. keyboard components are associated with the keyboard, mouse components with the mouse, etc. I/O = Input / Output

10-Sep Fall 2001: copyright ©T. Pearce, D. Hutchinson, L. Marshall Sept  ports exchange information between bus and I/O components  ports are identified by I/O addresses  port operations: read and/or write values (not necessarily both) Note: I/O ports  memory cells  control ports: write values to these – control behaviour of component/device  status ports: read values from these – find out about current state of component/device  data port: read and/or write values of these – exchange application information  (More on ports and I/O later!) Ports

10-Sep Fall 2001: copyright ©T. Pearce, D. Hutchinson, L. Marshall Sept Information plays a key role in all components in the computer system How does information exist in a computer system at the machine level? Topic for next few lectures. What sort of information needs encoding?  numbers: counting numbers, integers, reals  other numbers (fractions, complex, etc.)  characters, strings, text  graphics  days, months, years (Y2K bug?)  others? Information Inside Computer

10-Sep Fall 2001: copyright ©T. Pearce, D. Hutchinson, L. Marshall Sept There are hardware limitations   transistors are switched between two states (more in 257 & 267)  on / off or high / low or 0 / 1  information must be encoded in 2-state values!  one BInary digiT = one bit = one 2-state value  possible value of a bit = 0 or 1 Information Encoding

10-Sep Fall 2001: copyright ©T. Pearce, D. Hutchinson, L. Marshall Sept Further Complication:  registers, cells and ports are built using fixed numbers of transistors  values are encoded in a fixed number of bits!  e.g. value that is 8-bits wide = byte  finite limitations on range of values!  for n-bit width  2 n different values Information Encoding (contd)

10-Sep Fall 2001: copyright ©T. Pearce, D. Hutchinson, L. Marshall Sept How can information be represented as fixed length binary values ? Fixed length binary values Information mapping finite set! Information Encoding Problem

10-Sep Fall 2001: copyright ©T. Pearce, D. Hutchinson, L. Marshall Sept How can information be represented as fixed length binary values? information is abstract – invented by people binary values are held in fixed width registers, cells and ports computers do not “know” about information computers deal with binary values that have been encoded (by people) to represent information ! Information Encoding Problem (contd)

10-Sep Fall 2001: copyright ©T. Pearce, D. Hutchinson, L. Marshall Sept  suppose an application must deal with day-of-the- week information (e.g. a day-timer/scheduler)  must encode days of the week as binary values  how many bits are needed?  what values should be used? Encoding Example: Days of the Week

10-Sep Fall 2001: copyright ©T. Pearce, D. Hutchinson, L. Marshall Sept One Possible Day-Of-The-Week Encoding: Monday  000(binary) Tuesday  001 Wednesday  010  Sunday  110  is this the only possible encoding?  would the computer “care” if a different encoding was used?  who would care? Encoding Example (contd.)