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

Slides:



Advertisements
Similar presentations
Microcomputer Circuits Prof Jess UEAB 2007 Designing a Microprocessor Chapter 1.
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.
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, Java Version, Third Edition.
The processor and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
The Study of Computer Science Chapter 0 Intro to Computer Science CS1510, Section 2.
Basic Operational Concepts of a Computer
BLOCK DIAGRAM OF COMPUTER
Chapter 4 Gates and Circuits. 4–2 Chapter Goals Identify the basic gates and describe the behavior of each Describe how gates are implemented using transistors.
CSC 101 Introduction to Computing Lecture 9 Dr. Iftikhar Azim Niaz 1.
1 More on Computer Components Computer switches Binary number system Inside the CPU Cache memory Types of RAM Computer buses Creating faster CPUs NEXT.
Computer Processing of Data
3 1 3 C H A P T E R Hardware: Input, Processing, and Output Devices.
Physics 413 Chapter 1 Computer Architecture What is a Digital Computer ? A computer is essentially a fast electronic calculating machine. What is a program.
How Computers Work Dr. John P. Abraham Professor UTPA.
CS 1308 – Computer Literacy and the Internet. It’s Not Magic  The goal of the next series of lectures is to show you exactly how a computer works. 
Test #1 rescheduled to next Tuesday, 09/20/05 The contents will cover chapter 1, 2, and part of Chapter 4. The contents will cover chapter 1, 2, and part.
COMPUTER SYSTEM ARCHITECTURE By Sohaib.  The digital computer is a digital system that performs various computational tasks.  The word digital implies.
ELE22MIC Lecture 3 Paul Main’s Office Location has moved to Pysical Sciences 2 Room 107 Will be available for 2 hours consultation 10am - 12am after Tuesday.
The Study of Computer Science Chapter 0 Intro to Computer Science CS1510.
Foundations of Computer Science Computing …it is all about Data Representation, Storage, Processing, and Communication of Data 10/4/20151CS 112 – Foundations.
ECEN2102 Digital Logic Design Lecture 1 Numbers Systems Abdullah Said Alkalbani University of Buraimi.
ECEn 191 – New Student Seminar - Session 9: Microprocessors, Digital Design Microprocessors and Digital Design ECEn 191 New Student Seminar.
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,
Binary Number System & Logic Operations. The focus of the last lecture was on the microprocessor During that lecture we learnt about the function of the.
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.
Technology in Action Alan Evans Kendall Martin Mary Anne Poatsy Twelfth Edition Copyright © 2016 Pearson Education, Inc.0.
Discovering Computers Fundamentals, Third Edition CGS 1000 Introduction to Computers and Technology Spring 2007.
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2013.
CHAPTER 4 The Central Processing Unit. Chapter Overview Microprocessors Replacing and Upgrading a CPU.
Computer Science Binary. Binary Code Remember the power supply that is inside your computer and how it sends electricity to all of the components? That.
I/O Memory Reg File ALU Program Counter Instruction Register Control Interconnect Control 1)PC contains mem address of Instruction, 2)From memory, instr.
CSCI-100 Introduction to Computing Hardware Part I.
Data Manipulation CSC Overview  Computer Architecture  Machine Language  Computer Architecture  Machine Language.
Introduction to Microprocessors
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2012.
CS 1308 – Computer Literacy and the Internet Building the CPU.
CBP Comp 1017 Digital Technologies1 Let’s make a Computer … at least the CPU … Pentium 4 Pentium 3 Opteron Ultra Sparc Itanium 2 McKinley.
Concepts of Engineering and Technology Copyright © Texas Education Agency, All rights reserved.
Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2015.
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2012.
Hardware Information Created by Nasih 1. Hardware  The physical components of a computer system, including any peripheral equipment such as printers,
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
Logic Gates Dr.Ahmed Bayoumi Dr.Shady Elmashad. Objectives  Identify the basic gates and describe the behavior of each  Combine basic gates into circuits.
09/06/ Data Representation ASCII, Binary Denary Conversion, Integer & Boolean data types.
IC 3 BASICS, Internet and Computing Core Certification Computing Fundamentals Lesson 2 How Does a Computer Process Data?
Invitation to Computer Science, C++ Version, Fourth Edition
Chapter 3 - Binary Numbering System
Dr.Ahmed Bayoumi Dr.Shady Elmashad
COMP 1321 Digital Infrastructure
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
COMP 1321 Digital Infrastructure
The Central Processing Unit
Computer Architecture
Fundamentals & Ethics of Information Systems IS 201
Invitation to Computer Science, Java Version, Third Edition
Edited by : Noor Alhareqi
Edited by : Noor Alhareqi
COMP 1321 Digital Infrastructure
COMP 1321 Digital Infrastructure
COMP 1321 Digital Infrastructure
Logical Computer System
Information Technology Department
COMP 1321 Digital Infrastructure
Digital Circuits and Logic
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 2015

Week 2: Binary Numbers and CPUs n n Objectives:   Explain the CPU as the fundamental part of the computer   Explain why binary numbers are fundamental to computing   Convert between binary and hexadecimal numbers   Explain the structure of typical CPU

Origins of the CPU n All about processing data n Also needs a mechanism for  adding data (input)  removing processed data (output)  storing data outside the CPU n In early days (e.g. Bletchley Park) data input, output, movement, storage all paper-based… very slow!

Binary Numbers n n Base 2… based on 0 and 1   perfect fit with Boole & logic states n n To represent binary in real world need “on/off” switches   mechanical… slow   but gotta start somewhere…

Electrical Storage of Binary? n Possible using:  Relays »on – magnet has current/off – magnet no current  binary numbers »relay off = 0 »relay on = 1

Shannon & Relays n 1938: first scientist to use Boolean Logic with relays: on/off 1/0  realised binary numbers could replace decimal numbers & represent real data values n Figured that relays could be wired together to create logic gates and do Boolean Algebra (!) n Problem… relays slow

A Fast Switch   Electronic… » »called valves, but actually glass tubes » »Air taken out; near vacuum » »needed a lot of energy to work » »took up lots of space   But it was fast, and it did work… » »Head of IBM (1950s) said that the world needed only four of these computers anyway (!)

More from Shannon (1948) n Demonstrated the essential unity of all information media:  text  telephone signals  radio waves  pictures, film, etc… n All could be encoded in the universal language of binary digits  used “bits” to describe them

Binary Logic and CPU Design n n Data stored as blocks of ‘cells’ (effectively switches)   voltage off/on » »in binary either “0” or “1” n n If memory and data are binary…   so must the processing!

Number Systems n Number of different items…  “base” of number system n Examples:  base 2: binary (2 items)  base 10: decimal (10 items)  base 16: hexadecimal (16)

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!

Binary Logic & the CPU n Binary logic + Boolean algebra  logic gates  mathematically predictable effects of combining them  documented as truth tables n Problem: valves wired together produce pretty large, energy hungry logic gates: »CPU would be very large & use a lot of energy!

Hey Presto… the Transistor n Same effect as valves n much smaller n use much less energy n Wonderful discovery n must have been very exciting for Shannon n computers could be much smaller than he expected 12/claude-shannon-reluctant-father-of-the-digital-age

Miniaturisation n Transistors first used in radios  very popular with “teenagers” n Took some time to become part of more sophisticated devices  breakthrough: integrated circuits (ICs)  many transistors on a single component  first IC with enough transistors to be a CPU with programmed instructions… Intel (1972)

Now, let’s make a Computer … or at least the CPU (millions of transistors) Pentium 4 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 do I need to build a CPU? “Execution Unit” ALU (Arithmetic Logic Unit) Memory (to store intermediate data)) Input Output A Good Name! Intel’s first was called… “4004”… because it had a 4-bit bus!

Arithmetic Logic Unit (ALU) Input AInput B Output (or… more sophisticated… Integer Execution Unit) 5 32 add 1 32 sub How could these numbers be represented as data that passes into the ALU?

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 The 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 part!