Chapter 0 Introduction to Computing

Slides:



Advertisements
Similar presentations
The Central Processing Unit: What Goes on Inside the Computer.
Advertisements

 2002 Prentice Hall Hardware Basics: Inside The Box Chapter 2.
Processor System Architecture
Hardware Basics: Inside the Box 2  2001 Prentice Hall2.2 Chapter Outline “There is no invention – only discovery.” Thomas J. Watson, Sr. What Computers.
©Brooks/Cole, 2003 Chapter 5 Computer Organization.
The CPU - Outline. Components of CPU Englander p
Stored Program Concept: The Hardware View
The processor and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
The central processing unit and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
Computer Systems CS208. Major Components of a Computer System Processor (CPU) Runs program instructions Main Memory Storage for running programs and current.
6. The CPU and Memory Chapt. 7.
5.1 Chaper 4 Central Processing Unit Foundations of Computer Science  Cengage Learning.
What’s on the Motherboard? The two main parts of the CPU are the control unit and the arithmetic logic unit. The control unit retrieves instructions from.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Atmega32 Architectural Overview
Aug CMSC 104, LECT-021 Machine Architecture and Number Systems Some material in this presentation is borrowed form Adrian Ilie From The UNIVERSITY.
Your Interactive Guide to the Digital World Discovering Computers 2012.
Stuart Cunningham - Computer Platforms COMPUTER PLATFORMS Von Neumann Architecture & Terminology & Performance Week 3.
微處理機 Microprocessors 課本: The 8051 Microcontroller: A Systems Approach, M. A. Mazidi, J. G. Mazidi, R. D. McKinlay, Int‘l ed. Pearson Education, 2013 (
Lesson 3 — How a Computer Processes Data
Chapter 4 The System Unit: Processing and Memory Prepared by : Mrs. Sara salih.
Georgia Institute of Technology Introduction to Programming Part 2 Barb Ericson Georgia Institute of Technology May 2006.
The Computer Systems By : Prabir Nandi Computer Instructor KV Lumding.
Lecture 8 Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
Chapter Two Hardware Basics: Inside the Box. ©1999 Addison Wesley Longman2.2 Chapter Outline What Computers Do A Bit About Bits The Computer’s Core: CPU.
Lesson 2 — How Does A Computer Process Data?
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Computers organization & Assembly Language Chapter 0 INTRODUCTION TO COMPUTING Basic Concepts.
1 The 8051 Microcontroller and Embedded Systems CHAPTER 0 INTRODUCTION TO COMPUTING.
The Central Processing Unit: What Goes on Inside the Computer
1Copyright © Prentice Hall 2000 The Central Processing Unit Chapter 3 What Goes on Inside the Computer.
Introduction to Computer Architecture. What is binary? We use the decimal (base 10) number system Binary is the base 2 number system Ten different numbers.
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
Chapter 5 Computing Components. 5-2 Chapter Goals List the components and their function in a von Neumann machine Describe the fetch-decode-execute cycle.
General Concepts of Computer Organization Overview of Microcomputer.
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
CSCI-100 Introduction to Computing Hardware Part I.
Introduction to Microprocessors
1 Course Title: IT IN BUSINESS Course Instructor: ADEEL ANJUM Chapter No: 04 1 BY ADEEL ANJUM (MCS, CCNA,WEB DEVELOPER)
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Structure & Architecture 7b - CPU & Buses.
Computer Organization. The digital computer is a digital system that performs various computational tasks Digital computer use binary number system which.
Computer Organization 1 Instruction Fetch and Execute.
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.
Computer Systems. Bits Computers represent information as patterns of bits A bit (binary digit) is either 0 or 1 –binary  “two states” true and false,
The Computer System.
Computer operation is of how the different parts of a computer system work together to perform a task.
Chapter 2 Turning Data into Something You Can Use
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
Computers Are Your Future Tenth Edition Inside the System Unit 1.
BY MANJU Lesson 21 Computer Hardware. System Components A computer system requires many components to do its job: Input: Device to input data so it can.
Information Technology INT1001 Lecture 2 1. Computers Are Your Future Tenth Edition Chapter 6: Inside the System Unit Copyright © 2009 Pearson Education,
Logic Gates Dr.Ahmed Bayoumi Dr.Shady Elmashad. Objectives  Identify the basic gates and describe the behavior of each  Combine basic gates into circuits.
IC 3 BASICS, Internet and Computing Core Certification Computing Fundamentals Lesson 2 How Does a Computer Process Data?
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
Introduction to Programming. Key terms  CPU  I/O Devices  Main memory  Secondary memory  Operating system  User interface  Application  GUI 
Computer Graphics HARDWARE. Computers  Computers are automatic, electronic machines that –accept data & instructions from a user (INPUT) –store the data.
微處理機 Microprocessors 課本:The 8051 Microcontroller: A Systems Approach, M. A. Mazidi, J. G. Mazidi, R. D. McKinlay, Int‘l ed. Pearson Education, 2013 (全華圖書代理)
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Discovering Computers 2011: Living in a Digital World Chapter 4
The Central Processing Unit
General Architecture of Digital Computer
Computer Architecture
COMS 161 Introduction to Computing
Components of a CPU AS Computing - F451.
Basic components Instruction processing
AS Level ICT Selection and use of storage requirements, media, and devices: storage and storage capacity Unit 1 Topic a - Selection and use of storage.
Presentation transcript:

Chapter 0 Introduction to Computing

Section 0.1 Numbering and Coding Systems

Outlines of Section 0.1 Decimal and binary number systems 2017/4/17 Outlines of Section 0.1 Decimal and binary number systems Converting between decimal to binary Hexadecimal system Converting between binary and hex Counting in bases 10, 2, and 16 Addition and subtraction of hex number ASCII codes Please review the items if you have forgotten them. A printer is an example of embedded system since the processor inside it performs one task only.

Section 0.2 Digital Primer

Outlines of Section 0.2 Binary Logic 2017/4/17 Outlines of Section 0.2 Binary Logic Logic Gates - AND, OR, NOT, XOR, NAND, NOR Logic design using gates Decoders Flip-flops Please review the items if you have forgotten them. A printer is an example of embedded system since the processor inside it performs one task only.

Section 0.3 Inside the Computer

Important Terminology Bit 0 Nibble 0000 (4 bits) Byte 0000 0000 (8 bits) Word 0000 0000 0000 0000 (32 bits) KB (kilobyte)=210 bytes MB (megabyte)=220 bytes GB (gigabyte)=230 bytes TB (terabyte)=210 bytes

ROM v.s. RAM ROM (read only memory) RAM (random access memory) 2017/4/17 ROM v.s. RAM ROM (read only memory) ROM contains programs and information essential to operation of the computer. for permanent data which cannot changed by the user called as nonvolatile memory Data does not lost when power off RAM (random access memory) for temporary storage of programs that it is running Data lost when power off called as volatile memory ROM: permanent information tables for character patterns to be displayed on the video monitor, the programs for testing and finding the total amount of RAM installed on the system programs to display information on the video monitor. BIOS RAM: not permanent, data change with time various versions of the OS application packages: office word, tax calculation packages

Figure 0-9: Inside the Computer 2017/4/17 Figure 0-9: Inside the Computer Every computer can be broken down into three parts: CPU (Central Processing Unit) Memory:RAM,ROM, etc. I/O (Input/Output) devices:Peripherals CPU: execute information stored in memory. I/O device: provide a means of communicating with the CPU. Address Bus Peripherals (monitor, printer, etc.) CPU Memory (RAM, ROM, ) Data Bus Control Bus

Bus CPU is connected to memory and I/O through strips of wire called a bus. Buses are used to Communicate between the computer components. Data Bus Address Bus Control Bus Control bus Address bus I/O device CPU Memory Data bus

2017/4/17 The Operation of Bus For a device (memory or I/O) to be recognized by the CPU, it must be assigned an address. The address of every device must be unique. The CPU puts the address on the address bus, and the decoding circuitry finds the device. The CPU uses the data bus either to get data form that device or to send data to it. The control buses are used to provide read or write signals. The address bus and data bus determine the capacity of a given CPU.

Data Bus The more data buses available, the better the CPU. 2017/4/17 Data Bus The more data buses available, the better the CPU. Example:8 bits(slow), 16 bits, 32 bits, 64 bits(fast). An 8-bit data bus can send 1 byte a time. Data buses are bi-directional. More data buses mean a more expensive CPU and computer. The processing power of a computer is related to the size of its buses. Data bus is like a highway. More data buses available (increasing the number of lanes 路徑) provide a better pathway between the CPU and its external devices. 8 lines for a 8-bit bus

2017/4/17 Address Bus The more address buses available, the larger the number of devices that can be addresses. Example:8 bits(slow), 16 bits, 32 bits, 64 bits(fast). A 16-bit address bus can indicate 216=64K bytes of addressable memory. Regardless of the size of the data bus. Address buses are unidirectional. The number of address lines determines the number of locations with which a CPU can communicate. All general purpose microprocessor CPUs are what is called byte addressable. Ask, 8 bit address bus can indicate 28=256 memory cells. Ask, IBM PC AT uses a CPU with 24 address lines and 16 data lines. The total accessible memory is 224=16 MB. CPU can access 2 bytes per clock.

Central Processing Unit (CPU) Arithmetic/logic unit (ALU): to perform the arithmetic and logic operation Control unit: coordinating the machine’s activities Registers: to store temporary data Figure 2-1

Registers General-purpose registers Special-purpose registers A,B,R0,R1,R2,... Register banks: a set of registers (R0..R7) Special-purpose registers Program Counter (PC) Instruction Register (IR) Program Status Word (PSW)

The Registers of Computer 2017/4/17 The Registers of Computer Workspace R0 General Registers R1 Instructions R2 ... S Special Registers IR PC PSW

Machine Clock One bit is send on a wire in a clock period. Clock is used to synchronize work of the components on the machine. Clock decides the performance of the computer. a clock 10 1.4 GHz

The Machine Cycle(1/2) Every instruction in memory is executed by three steps: Fetch  Decode  Execute Each instruction has its micro-instruction (or micro-operations). A micro-operation is an elementary operation that can be performed in parallel during one clock pulse period. CPU has separate inside units for performing fetch/decode/execution. The instruction decoder is to interpret the instruction fetched into the CPU.

2017/4/17 The Machine Cycle(2/2) by instruction decoder by ALU

Internal Organization of Computers Example 8-bit data bus 16-bit address (for a total of 10000H locations) address 0000-FFFFH Address Bus CPU read /write RAM ROM Printer Disk Monitor Keyboard Data Bus Control Bus Figure 0-10 Internal Organization of Computers

Program Example Action Code Data Move value 21H into register A B0H 21H Add value 42H to register A 04H 42H Add value 12H to register A 04H 21H

Inside Memory 1400 B0 code for moving a value into register A Memory address Contents Meaning 1400 B0 code for moving a value into register A 1401 21 value to be moved 1402 04 code for adding a value to register A 1403 42 value to be added 1404 04 code for adding a value to register A 1405 12 value to be added 1406 00 code for halt

Actions Performed by the CPU(1/3) The PC is set to the value 1400H, indicating the address of the first instruction code to be execution. The CPU puts 1400H on the address bus and sent it out. The PC is added by 1. The memory circuitry finds 1400H while the CPU activates the READ signal, indicating to memory that CPU wants the byte at location 1400H. The content of memory location 1400H, which is B0, to be put on the data bus and brought into the CPU. The CPU decodes the instruction B0. PC=1400 PC=1401 PC=1401, IR=B0

Actions Performed by the CPU(2/3) The CPU performs the moving instruction: The control circuitry ask the content from memory location 1401 (saved in PC). The PC is added by 1. Put the value 21H to register A. After completing one instruction, the PC points to the address of the next instruction to be execute (i.e., 1402H.) From the memory location 1402H. The CPU fetches code 04H. The PC add 1. The CPU decoding 04H and ask the parameter in 1803H. The PC add 1. A = ?, PC=1402, IR=B0 A = 21H, PC=1402, IR=B0 A = 21H, PC=1403, IR=04 A = 21H, PC=1404, IR=04

Actions Performed by the CPU(3/3) The ALU executes the add instruction and sets the value 63H to register A. From the memory location 1404H, CPU fetches code 04H. The CPU decoding it and ask the parameter. The ALU executes the add instruction and sets the value 74H to register A. The content of address 1406 are fetched in and executed. This HALT instruction tells the CPU to stop incrementing PC and asking for the next instruction. A = 63H, PC=1404, IR=04 A = 74H, PC=1406 IR=04 A = 74H, PC=1407, IR=00