COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2012.

Slides:



Advertisements
Similar presentations
Machine cycle.
Advertisements

SECTION 4a Transforming Data into Information.
CBP Comp 1017 Digital Technologies1 Let’s make a Computer … at least the CPU … Pentium 4 Pentium 3 Opteron Ultra Sparc Itanium 2 McKinley.
CBP Comp 1017 Digital Technologies1 Let’s make a Computer.
Computer Systems. Computer System Components Computer Networks.
2 pt 3 pt 4 pt 5pt 1 pt 2 pt 3 pt 4 pt 5 pt 1 pt 2pt 3 pt 4pt 5 pt 1pt 2pt 3 pt 4 pt 5 pt 1 pt 2 pt 3 pt 4pt 5 pt 1pt Category1 Computers Category2 CPU.
The processor and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
Chapter 2 Processing Data Peter Norton’s Introduction to Computers
The central processing unit and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
80x86 Processor Architecture
Implementation of a Stored Program Computer
0 What is a computer?  Simply put, a computer is a sophisticated electronic calculating machine that:  Accepts input information,  Processes the information.
MOTHERBOARD holds the and connects directly or indirectly to every part of the PC. holds the processor, memory and expansion slots and connects directly.
Chapter 4  Converts data into information  Control center  Set of electronic circuitry that executes stored program instructions  Two parts ◦ Control.
Basic Operational Concepts of a Computer
1 CS/COE0447 Computer Organization & Assembly Language Pre-Chapter 2.
Copyright Jim Martin Computers Inside and Out Dr Jim Martin
A-Level Computing Data representation. Objectives Know how data can be represented in a computer system Understand the need for various forms of representation.
Computer Processing of Data
The Computer Systems By : Prabir Nandi Computer Instructor KV Lumding.
Technology in Focus: Under the Hood
How Computers Work Dr. John P. Abraham Professor UTPA.
Overview of Computing. Computer Science What is computer science? The systematic study of computing systems and computation. Contains theories for understanding.
Personal Computer Adapted by Dr. Semmes from Mrs. Jungman’s Hardware Presentation and Mrs. Belisle’s Class Notes.
Eng.Samra Essalaimeh Philadelphia University 2013/ nd Semester PIC Microcontrollers.
ECEN2102 Digital Logic Design Lecture 1 Numbers Systems Abdullah Said Alkalbani University of Buraimi.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Implementation of a Stored Program Computer ITCS 3181 Logic and Computer Systems 2014 B. Wilkinson Slides2.ppt Modification date: Oct 16,
1Copyright © Prentice Hall 2000 The Central Processing Unit Chapter 3 What Goes on Inside the Computer.
Advanced Computer Architecture 0 Lecture # 1 Introduction by Husnain Sherazi.
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.
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2013.
Assembly Language A Brief Introduction. Unit Learning Goals CPU architecture. Basic Assembler Commands High level Programming  Assembler  Machine Language.
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 Science 101 Computer Systems Organization.
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
Number Bases and Representation. Denary Number System (Base 10) Our number system uses 10 digits (0-9) As you move from right to left each number is worth.
I/O Memory Reg File ALU Program Counter Instruction Register Control Interconnect Control 1)PC contains mem address of Instruction, 2)From memory, instr.
Introduction to Microprocessors
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2015.
COMPILERS CLASS 22/7,23/7. Introduction Compiler: A Compiler is a program that can read a program in one language (Source) and translate it into an equivalent.
20 October 2015Birkbeck College, U. London1 Introduction to Computer Systems Lecturer: Steve Maybank Department of Computer Science and Information Systems.
CBP Comp 1017 Digital Technologies1 Let’s make a Computer … at least the CPU … Pentium 4 Pentium 3 Opteron Ultra Sparc Itanium 2 McKinley.
Basic Computer Organization Rashedul Hasan.. Five basic operation No matter what shape, size, cost and speed of computer we are talking about, all computer.
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2015.
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2012.
CBP 2002ITY 270 Computer Architecture1 Module Structure Whirlwind Review – Fetch-Execute Simulation Instruction Set Architectures RISC vs x86 How to build.
Hardware Information Created by Nasih 1. Hardware  The physical components of a computer system, including any peripheral equipment such as printers,
1 3 Computing System Fundamentals 3.2 Computer Architecture.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
COMP 1321 Digital Infrastructure
Processor/Memory Chapter 3
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
COMP 1321 Digital Infrastructure
The Central Processing Unit
Introduction to Computer Architecture
Computer Architecture
Chapter One: Introduction
Introduction to Computer Architecture
COMP 1321 Digital Infrastructure
COMP 1321 Digital Infrastructure
COMP 1321 Digital Infrastructure
CS/COE0447 Computer Organization & Assembly Language
What is Computer Architecture?
Lecture 4 Number Systems. von Neumann Model Every computer today is based on the von Neumann Model. It is based on 3 ideas: 1.Four subsystems 2.Stored.
What is Computer Architecture?
COMP 1321 Digital Infrastructure
Computer Science. The CPU The CPU is made up of 3 main parts : Cache ALU Control Unit.
Presentation transcript:

COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2012

Week 2: CPUs and Motherboards

Problem for Processor design n n Data needs to be stored n n Memory consists of ‘cells’ (effectively switches)   Recorded digitally » »either a “0” or a “1” » »no middle way

Binary Numbers n n Base 2… based on 0 and 1 n n To represent binary, need “on/off” switches   mechanical… too slow   electronic… Ok if fast enough » »early electronic switches large and needed a lot of energy » »Head of IBM (1950s) said that the world needed only four of these computers anyway (!) » »use of transistors made the computer more widespread

Number Theory: decimal representation of 2,314 bracket form: (2 x 10 3 ) + (3 x 10 2 ) + (1 x 10 1 ) + (4 x10 0 ) most significant digit 2 least significant digit ThousandsHundredsTensunits 10x10x1010x

Some definitions… n n binary digit bit 0 or 1 n n byte: a group of 8 bits n n (nibble: a group of 4 bits) n n word: a group of bits of a fixed length (actual length of a word is rather arbitrary)

Binary representation of the four bit word x2x22x bracket form: (1 x 2 3 ) + (1 x 2 2 ) + (0 x 2 1 ) + (1 x2 0 ) = 13 in denary (decimal)

Binary representation of the 8 bit word = 181 Q. How many different binary numbers can an 8 bit word hold? A. 256 (= 2 8 ) ranging from to

The 16 bit number n n (a) To what decimal number is it equal? n n (b) What is the value of the most significant bit? n n (c) How many different 16 bit binary numbers can be represented?

The 16 bit number n n (a) To what decimal number is it equal? Answer: = 53 n n (b) What is the value of the most significant bit? Answer: 0 n n (c) How many different 16 bit binary numbers can be represented? Answer: 2 16 = (which is 64 k)

Shorthand n n Rows of 1s and 0s can be very confusing n n Easy to make mistakes n n Solution: divide into blocks of 4 digits use the decimal numbers corresponding to each block n n Problem: confusion with 10 or more n n Solution: use letters for 10 to 15

Hexadecimal notation DecimalBinaryHexadecimal

Hexadecimal notation DecimalBinaryHexadecimal A B C D E F

Notation n n Useful to know what type of number we are dealing with e.g. “110”   use subscript at the end   = 110 (denary)   = 110 (binary) = 6 (denary)   110 H or = 110 (hexadecimal) = 272 (denary) n n So now you know!

Now, let’s make a Computer … at least the CPU … Pentium 4 Pentium 3 Opteron Ultra Sparc Itanium 2 McKinley

CPU Memory Keyboard VDU Computer Program (Code) 1 do this… 2 do that 3 now this 4 goto 1 Plus Data… CPU with INPUT & OUTPUT

Pentium Data Cache Code Cache Instruction Fetch Instruction Decode Execution Unit

Minimalist CPU What is needed to build a CPU? “Execution Unit” ALU (Arithmetic Logic Unit) Memory (to store intermediate data) Input Output A Good Name !

Arithmetic Logic Unit Input AInput B Output ALU (or Integer Execution Unit) 5 32 add 1 32 sub

5 32 add Processing Idea Nr. 1 Move data from memory Move data into memory Memory DRAM, Hard Disk.. Move data in and out of data memory store

5 32 add Processing Idea Nr.2 IP (Code Memory) mov 3 in from memory mov 2 in from memory add the two numbers mov the result to memory Instruction Memory Program Move instructions into CPU from code memory

Registers Registers are high-speed memory on the CPU chip Parking places for data on the move AX and BX are used for ALU operations MAR is memory address register, here 4. So result, 6+8=14 will go into memory cell address 4 AX BX MAR

ip Data Memory Instruction Memory mar Our computer so far …

Instruction Memory A couple of extra bits Data Memory Instruction Register Memory Data Register Data Address add ax,bx 1.Line of code goes in 2.Electrical bit signals come out Energize ax Energize bx Select ALU “add"

Moving data into Registers Instruction Memory mar 3 4 mov ax, [1] BX AX mov ax, [1] mov bx, [2] 7 For example …

Moving data into Memory Instruction Memory mar 3 4 mov [3], ax BX AX mov [3], ax mov [0], bx 7 For example … 8 7

Adding Numbers Instruction Memory mar 3 4 add ax, bx BX AX Add ax,bx 7 For example … … this means ‘ add ax to bx, put the answer in ax’

So THAT’S how it works! Next week: the programming!