The CPU The Central Presentation Unit Main Memory and Addresses Address bus and Address Space Data Bus Control Bus The Instructions set Mnemonics Opcodes.

Slides:



Advertisements
Similar presentations
Chapter 2: Data Manipulation
Advertisements

Computer Systems Nat 4/5 Computing Science Computer Structure:
The CPU The Central Presentation Unit What is the CPU?
Computer Memory and Data Transfer
 Suppose for a moment that you were asked to perform a task and were given the following list of instructions to perform:
MICRO PROCESSER The micro processer is a multipurpose programmable, clock driven, register based, electronic integrated device that has computing and decision.
The CPU Revision Typical machine code instructions Using op-codes and operands Symbolic addressing. Conditional and unconditional branches.
19-1 Programming… The Pencil and Paper Computer The Pencil & Paper Instruction Set: (table on p148) The Operand specifies a memory location.
Instruction Set Architecture & Design
CSCE 121, Sec 200, 507, 508 Fall 2010 Prof. Jennifer L. Welch.
Introduction to Microprocessors Number Systems and Conversions No /6/00 Chapter 1: Introduction to 68HC11 The 68HC11 Microcontroller.
Implementation of a Stored Program Computer
Topic 1: Introduction to Computers and Programming
0 What is a computer?  Simply put, a computer is a sophisticated electronic calculating machine that:  Accepts input information,  Processes the information.
The CPU The Central Presentation Unit Language Levels Fetch execute cycle Processor speed.
UNDERSTANDING ASSEMBLY LANGUAGE.
Computer Structure.
C.S. Choy95 COMPUTER ORGANIZATION Logic Design Skill to design digital components JAVA Language Skill to program a computer Computer Organization Skill.
Processor Structure & Operations of an Accumulator Machine
Computer Processing of Data
How Computers Work Dr. John P. Abraham Professor UTPA.
1 Machine Language Alex Ostrovsky. 2 Introduction Hierarchy of computer languages: 1. Application-Specific Language (Matlab compiler) 2. High-Level Programming.
Instruction Set Architecture
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
GCSE Computing#BristolMet Session Objectives#11 MUST identify what program instructions consist of SHOULD describe how instructions are coded as bit patterns.
Implementation of a Stored Program Computer ITCS 3181 Logic and Computer Systems 2014 B. Wilkinson Slides2.ppt Modification date: Oct 16,
Microcode Source: Digital Computer Electronics (Malvino and Brown)
Week 2.  Understand what the processor is and what it does.  Execute basic LMC programs.  Understand how CPU characteristics affect performance.
The CPU Central Processing Unit. 2 Reminder - how it fits together processor (CPU) memory I/O devices bus.
Advanced Computer Architecture 0 Lecture # 1 Introduction by Husnain Sherazi.
Module 8 Part B Adapted By and Prepared James Tan © 2001.
Assembly Language A Brief Introduction. Unit Learning Goals CPU architecture. Basic Assembler Commands High level Programming  Assembler  Machine Language.
CS 111 – Sept. 15 Chapter 2 – Manipulating data by performing instructions “What is going on in the CPU?” Commitment: –Please read through section 2.3.
Important Concepts  Parts of the CPU  Arithmetic/Logic Unit  Control Unit  Registers  Program Counter  Instruction Register  Fetch/Decode/Execute.
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
 Introduction to Micro processor Introduction to Micro processor  Microprocessor instruction and opcodes Microprocessor instruction and opcodes  Mnemonics.
INTRODUCTION.  Upon completing this topic, you should be able to: Illustrate a basic elements of digital computer system and their functions, Depicts.
D75P 34 – HNC Computer Architecture
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Organization. The digital computer is a digital system that performs various computational tasks Digital computer use binary number system which.
Represents different voltage levels High: 5 Volts Low: 0 Volts At this raw level a digital computer is instructed to carry out instructions.
Electronic Analog Computer Dr. Amin Danial Asham by.
20 October 2015Birkbeck College, U. London1 Introduction to Computer Systems Lecturer: Steve Maybank Department of Computer Science and Information Systems.
Introduction to ComputersS1.1.1 Bina © 1998 Liran & Ofir Programming in C.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Computer operation is of how the different parts of a computer system work together to perform a task.
Computer Systems – Machine & Assembly code. Objectives Machine Code Assembly Language Op-code Operand Instruction Set.
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
BASIC COMPUTER ARCHITECTURE HOW COMPUTER SYSTEMS WORK.
First Foray into Programming (the hard way). A reminder from last lesson: A machine code instruction has two parts:  Op-code  Operand An instruction.
Programming Languages
Computer Architecture. Instruction Set “The collection of different instructions that the processor can execute it”. Usually represented by assembly codes,
Computing Science Computer Structure: Lesson 1: Processor Structure
What is a computer? Simply put, a computer is a sophisticated electronic calculating machine that: Accepts input information, Processes the information.
Control Unit Lecture 6.
Edexcel GCSE Computer Science Topic 15 - The Processor (CPU)
Assembly Language Assembly Language
Computer Architecture
Computers: Hardware and Software
Chapter 1 Introduction.
Overview of Computer Architecture and Organization
Introduction to Computer Architecture
Course Code 114 Introduction to Computer Science
CS 111 – Sept. 16 Machine language examples Instruction execution
Computer Science. The CPU The CPU is made up of 3 main parts : Cache ALU Control Unit.
Little Man Computer.
Presentation transcript:

The CPU The Central Presentation Unit Main Memory and Addresses Address bus and Address Space Data Bus Control Bus The Instructions set Mnemonics Opcodes Operands

Central Processing Unit Arithmetic Logical Unit Accumulator Control Unit Program Counter Instruction Register Central Memory ROM RAM Input Unit Output Unit Backing Storage Backing Storage Control Bus Data Bus

Main Memory Main Memory is where most of the results are temporarily stored; Main memory is much faster than the hard disk Each byte is stored in location in the main memory and each location has an address, this way the CPU can store and retrieve information very easily

Addresses Since each location in Main Memory has an address, the address has to be specified and saved When data is required back, the CPU will read this data by calling its address When the CPU writes information to the Main Memory two things have to be supplied 1.the address section – address bus 2.the data section. - data bus However, these two still pass from the same bus, they just pass from different sections along the same bus.

Address Bus and Space The address bus allows the CPU to address different locations in Main Memory The maximum number of available addresses is determined by the width of the address bus. An address bus is made up of tiny copper strips from which the information passes. The more strips there are the more addresses there will be. For example if the address bus has 9 strips the maximum number of addresses would be 2 9 = 512

Data Bus The data bus structure is very similar to the address bus It is used to allow the transfer of data to and from the CPU The largest amount of data passed at a single time is called the word length this specifies how much data can pass at one go The word length is measured in 8, 16, 32 and even 64 bits The larger the word length the faster the CPU will work

Control Bus The control bus is a two way line that controls the operations and the data flow between the memory unit, the arithmetic logic unit, and other computer peripherals.

The Instruction Set The instruction set is the complete collection of instructions which are used by the CPU These instructions will be written in machine-code or assembly language (we will go into these later) The instruction set is part of the design of a CPU hence the machine code of different types of computers is rarely compatible.

Mnemonics If programming was to be carried out in binary, it would be very difficult to write a complete program using just 1s and 0s Instead of remembering the binary code used for each function, mnemonics are used. Mnemonics is a word which can be easily remembered as it resembles the English language For example adding a number 0001ADD

Example Lets say we wish to add the number 9 Mnemonics: Binary: ADD OpcodeOperand 5

Opcodes Opcode is short for operational code An opcode is the mnemonic part of the instruction stating what is to be done OpcodeOperation ADDAddition SUBSubtraction DIVDivide MULMultiply

Operands Operand is the mathematical part of the instruction An operand is the data upon which the opcode is to carry out the action Opcode with OperandOperation ADD 7Add by 7 SUB 9Subtract by 9 DIV 2Divide by 2 MUL 2Multiply by 2

Machine Code Machine code is a system of codes understood by the computer. Machine code is composed only of the two binary digits 0 and, assemble language uses mnemonics Every CPU model has its own machine language, although If CPU A understands the full language of CPU B it is said that A is compatible with B, CPU B may not be compatible with CPU A, as A may know a few codes that B does not.

Machine code… The "words" of a machine language are called instructions; Each instruction causes an action by the CPU, such as reading from a memory location A program is a long list of instructions that are executed by a CPU Instructions are patterns of bits, different patterns correspond to different commands to the machine. Humans use mnemonic codes to refer to the useful bit-patterns.