1 Intro to CS: Part 2 Lecture 1 Ata Kaban School of Computer Science The University of Birmingham [adapted from B Bordbar and M Kwiatkowska]

Slides:



Advertisements
Similar presentations
Chapter 2 Data Manipulation Dr. Farzana Rahman Assistant Professor Department of Computer Science James Madison University 1 Some sldes are adapted from.
Advertisements

Chapter 2 Machine Language.
Computer Organization and Architecture
Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
Computer Organization and Architecture
Room: E-3-31 Phone: Dr Masri Ayob TK 2123 COMPUTER ORGANISATION & ARCHITECTURE Lecture 5: CPU and Memory.
COMP3221: Microprocessors and Embedded Systems Lecture 2: Instruction Set Architecture (ISA) Lecturer: Hui Wu Session.
Chapter 0 Introduction to Computing
Stored Program Concept: The Hardware View
GCSE Computing - The CPU
Computer Architecture
1 TK6123: COMPUTER ORGANISATION & ARCHITECTURE Prepared By: Associate Prof. Dr Masri Ayob Lecture 6: CPU and Memory (1)
Processor Types And Instruction Sets Barak Perelman CS147 Prof. Lee.
Computers Central Processor Unit. Basic Computer System MAIN MEMORY ALUCNTL..... BUS CONTROLLER Processor I/O moduleInterconnections BUS Memory.
CEG 320/520: Computer Organization and Assembly Language Programming1 CEG 320/520 Computer Organization and Assembly Language Programming.
Computer Architecture Lecture 01 Fasih ur Rehman.
Part 1.  Intel x86/Pentium family  32-bit CISC processor  SUN SPARC and UltraSPARC  32- and 64-bit RISC processors  Java  C  C++  Java  Why Java?
Computer Systems 1 Fundamentals of Computing The CPU & Von Neumann.
Computer Fundamentals Northern College Diploma Philip Bird.
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
CPU Computer Hardware Organization (How does the computer look from inside?) Register file ALU PC System bus Memory bus Main memory Bus interface I/O bridge.
Computer Architecture and Organization Introduction.
COMPUTER ORGANIZATIONS CSNB123 May 2014Systems and Networking1.
Computer Fundamentals ELEC 330 Digital Systems Engineering Dr. Ron Hayne.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Computer Science 210 Computer Organization The von Neumann Architecture.
Computer Systems Organization CS 1428 Foundations of Computer Science.
Computers organization & Assembly Language Chapter 0 INTRODUCTION TO COMPUTING Basic Concepts.
Advanced Computer Architecture 0 Lecture # 1 Introduction by Husnain Sherazi.
Part 1.  Intel x86/Pentium family  32-bit CISC processor  SUN SPARC and UltraSPARC  32- and 64-bit RISC processors  Java  C  C++  Java  Why Java?
Von Neumann Machine Objectives: Explain Von Neumann architecture:  Memory –Organization –Decoding memory addresses, MAR & MDR  ALU and Control Unit –Executing.
ECE 456 Computer Architecture
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
Ch. 2 Data Manipulation 4 The central processing unit. 4 The stored-program concept. 4 Program execution. 4 Other architectures. 4 Arithmetic/logic instructions.
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 Science 101 Computer Systems Organization.
Indira Gandhi National Open University presents. A Video Lecture Course: Computer Platforms.
I/O Memory Reg File ALU Program Counter Instruction Register Control Interconnect Control 1)PC contains mem address of Instruction, 2)From memory, instr.
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.
Computer Organization Instructors Course By: Lecturer: Shimaa Ibrahim Hassan TA: Eng: Moufeda Hussien Lecture: 9:45 Address:
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
20 October 2015Birkbeck College, U. London1 Introduction to Computer Systems Lecturer: Steve Maybank Department of Computer Science and Information Systems.
Processor Structure and Function Chapter8:. CPU Structure  CPU must:  Fetch instructions –Read instruction from memory  Interpret instructions –Instruction.
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.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
Computer Architecture
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
BASIC COMPUTER ARCHITECTURE HOW COMPUTER SYSTEMS WORK.
CPIT Program Execution. Today, general-purpose computers use a set of instructions called a program to process data. A computer executes the.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
GCSE Computing - The CPU
Computer Science 210 Computer Organization
Chapter 2 – Computer hardware
Microprocessor and Assembly Language
Teaching Computing to GCSE
Number Representations and Basic Processor Architecture
Computer Science 210 Computer Organization
COMS 161 Introduction to Computing
Computer Architecture
Computer Architecture
GCSE Computing - The CPU
A Top-Level View Of Computer Function And Interconnection
Information Representation: Machine Instructions
Presentation transcript:

1 Intro to CS: Part 2 Lecture 1 Ata Kaban School of Computer Science The University of Birmingham [adapted from B Bordbar and M Kwiatkowska]

2 Part 2: Module Aims Introduce the main hardware components of a computer and their function. Explain the role of an operating system and system software. Note: this is introductory, not exhaustive! For further reading see the classic: Tanenbaum, Structured Computer Organisation, Prentice-Hall, As far as this module is concerned, only the material taught in lectures is examinable!

3 Topics Covered  Computer architecture  The van Neumann computer [this lecture] I/O devices and networks Digital logic Microprogramming Machine code Operating system Compilers and interpreters

4 Some historical notes Read about the history of the development of computer architectures from Tanenbaum, for interest 1943: electronic computer (COLOSSUS), British Govt, 1949: stored program computer (EDSAC), Wilkes 1960: minicomputer (PDP-1), DEC; 50 sold 1965: mass-market (PDP-8), DEC; 50,000 sold 1978: 32bit superminicomputer (VAX), DEC 1981: personal computer (IBM PC), IBM; millions sold 1987: RISC workstation (Sun), SPARC

5 The von Neumann computer Designed by John von Neumann, Princeton, in 1940s. Used in EDSAC, by M Wilkes, built in Cambridge in Breakthrough: digital (bits, 0 or 1) and stored program. Still prevailing today.

6 Memory Has cells (words) Each cell has address (number) and contains n bits In von Neumann computer – –4096 word memory, 40 bit word Typical computer has 16 or 32 bit word and lots more memory! cell address

7 Von Neumann’s main ideas Represent data as sequences of bits (0 or 1) integer 1 as (on 12 bits) Memory has 4096 cells, with 40 bits word Represent instructions as sequences of bits code (8 bits), address of argument (12 bits) Store data and program instructions in memory –2 instructions per word Instructions –use argument from memory, add to accumulator no reals

8 Simple modern computer Essentially von Neumann design. Difference: connected by a bus (parallel wires for data transfer). Several registers. Just two I/O devices. PC register (address of next instruction) IR register (instruction being executed)

9 How it works Main memory: stores data and program Bus: transfer of data, addresses and control signals from/to memory and devices CPU (Central Processing Unit): –control unit: fetches instructions and executes them –ALU (Arithmetic Logic Unit): performs operations (add, subtract, etc) –registers (fast memory): store temporary results and control information (address of next instruction) I/O devices (Input/Output): user communication

10 How ALU works Example A contains 10 B contains 2 ALU calculates 10+2, sends result back to register

11 How the computer executes Fetch instruction into IR Increment PC to point to next instruction Determine type of instruction If contains address, fetch contents into register Execute instruction Repeat from beginning

12 Representing Data... As sequences of bits Characters usually 8 bits (=byte) –ASCII code (7 bits) – –can be packed into words

13 Representing Integers Positive integers 150 = 1x x10 + 0x1powers of 10: 10 2, 10 1, = 1x4 + 1x2 + 0x1powers of 2: 2 2, 2 1, 2 0 Negative integers: two’s complement, sign info on the most significant bit x(-8) + 1x4 + 1x2 + 0x x(-8) + 1x4 + 1x2 + 1x x8 + 0x4 + 0x2 + 0x x8 + 0x4 + 0x2 + 1x x8 + 0x4 + 1x2 + 0x1 Most significant bit

14 Representing Real Numbers Using floating-point representation mantissaexponent = 1003x10 -3 = 1,003 Can have single/double precision (stored in one word or two)

15 Representing Trees and Lists Addresses can be stored in memory to represent pointers 1000: : 1003 Root 1002: : : -1 Left Child 1005: : : 1009 Right Child 1008:

16 Summary The world of computers –50 years of history –ever faster, ever smaller, ever larger memory –Moore’s law fundamental ideas of von Neumann computer still prevail –digital (binary), stored program –conceptual organisation Flexibility due to (re)programming