COMP 1321 Digital Infrastructure

Slides:



Advertisements
Similar presentations
1 Chapter 2 The Digital World. 2 Digital Data Representation.
Advertisements

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 3 Dr. Shi Dept. of Electrical and Computer Engineering.
Chapter 4 Gates and Circuits.
CSC 110 – Intro to Computing Lecture 14: Midterm Review.
Chapter 1 Data Storage. 2 Chapter 1: Data Storage 1.1 Bits and Their Storage 1.2 Main Memory 1.3 Mass Storage 1.4 Representing Information as Bit Patterns.
Teaching Computing at KS3 Session 2 Sue Sentance and Sophie Baker
3. DIGITAL ELECTRONICS..
1 Survey of Computer Science CSCI 110, Spring 2011 Lecture 16 Digital Circuits, binary Numbers.
(2.1) Fundamentals  Terms for magnitudes – logarithms and logarithmic graphs  Digital representations – Binary numbers – Text – Analog information 
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.
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.
1 Number SystemsLecture 8. 2 BINARY (BASE 2) numbers.
Computer Terminology Chapter 2 CIT History of Computers First known device used to compute was the Abacus 3000 BC 1617 John Napier created a crude.
Foundations of Computer Science Computing …it is all about Data Representation, Storage, Processing, and Communication of Data 10/4/20151CS 112 – Foundations.
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.
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2013.
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.
Data Representation Conversion 24/04/2017.
Basic Electricity and Electronics Module Two Basic Electronics Copyright © Texas Education Agency, All rights reserved.
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2012.
CMP 100 Introduction to Computing Lecture Binary Numbers & Logic Operations.
1 Ethics of Computing MONT 113G, Spring 2012 Session 1 Digital Circuits, binary Numbers Course webpage:
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2015.
Binary System Presented by Mr. Wilhelmi Internal Representation of Data Input Input  Data that is put into the computer for processing Data Data  The.
Machine Architecture and Number 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.
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2015.
Numbering Systems and Conversion Understand How Computing Devices Work 1.
09/06/ Data Representation ASCII, Binary Denary Conversion, Integer & Boolean data types.
Basic Electricity and Electronics Module Two Basic Electronics Copyright © Texas Education Agency, All rights reserved.
Programmable Logic Controller
Unit 1 Introduction Number Systems and Conversion.
Computer Architecture and Number Systems
3 – Boolean Logic and Logic Gates 4 – Binary Numbers
Invitation to Computer Science, C++ Version, Fourth Edition
GCSE OCR Computing A451 Binary logic Computing hardware 6.
Basics of Logic gates - Part 1
Digital gates and difinition
Working with DIGITAL Information
Digital Electronics INTRODUCTION ANALOG VS DIGITAL NUMBER SYSTEMS.
Representation of data in computer systems
Chapter 2.3 Binary Logic.
Computer Fundamentals
Fundamentals & Ethics of Information Systems IS 201
Invitation to Computer Science, Java Version, Third Edition
BEE1244 Digital System and Electronics BEE1244 Digital System and Electronic Chapter 2 Number Systems.
Saturday, 10 November 2018 Binary
Chapter 1 Data Storage.
How Boolean logic is implemented
BINARY STORAGE AND REGISTERS
Number Systems Decimal (base 10) { }
For OCR GCSE Computing Unit 1 - Theory
Binary / Hex Binary and Hex The number systems of Computer Science.
Data Representation Conversion 05/12/2018.
COMP 1321 Digital Infrastructure
COMP 1321 Digital Infrastructure
Machine Architecture and Number Systems
COMP 1321 Digital Infrastructure
Data Binary Conversion.
Machine Architecture and Number Systems
Machine Architecture and Number Systems
The basics of any electronic device means either electricity is flowing or it is not i.e. a switch is either on or off Computers are electronic devices.
Information Technology Department
LO1 – Understand Computer Hardware
Notes from Last Class Office Hours: GL Accounts?
WJEC GCSE Computer Science
Binary.
Machine Architecture and Number Systems
Dr. Clincy Professor of CS
Presentation transcript:

COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2017

Week 2: Binary Numbers and CPUs Objectives of session: 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 All about processing data Needs a mechanism for adding data (input) removing processed data (output) storing data outside the CPU In early days (e.g. Bletchley Park) data input, output, movement, storage were all paper-based… very slow!

Binary Numbers Base 2… based on symbols 0 and 1 perfect fit with Boole & logic states (1850s) surprising no-one before Shannon (1930s) grasped this idea To represent binary in real world… need “on/off” switches mechanical… slow but gotta start somewhere… (!)

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

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

A Fast Switch Electronic… But once working, it did work, and quickly… called valves, but actually glass tubes air taken out; near vacuum didn’t work until “warmed up” needed a lot of energy to work took up lots of space But once working, it did work, and quickly… Head of IBM (1950s) said that the world would only need four of these computers anyway (!)

More from Shannon (1948) Demonstrated the essential unity of all information media: text telephone signals radio waves pictures, film, etc… ALL could be encoded in the universal language of binary digits used term “bit” for a binary digit

Binary Logic and CPU Design Putting theory into practice… Data stored as blocks of ‘cells’ (effectively switches) voltage off/on in binary either “0” or “1” If memory and data binary… processing must be binary as well! 9

Number Systems (binary and others) Number of different symbols… “base” of number system many tried over the years Examples: base 2: binary (2 symbols) base 10: decimal (10 symbols) base 12: (inches in a foot, etc. flawed… only 10 symbols) base 16: hexadecimal (16, and 16 symbols) Nystrom (1859!)

Logic and Digital Logic “Logical”… through mental activity (human CPU?) https://www.youtube.com/watch?v=5_APSczipvo&t=18s (Mr Spock) “Emotional”… following gut feeling Now add “digital” specific type of logic required to program a CPU!

Some Definitions… binary digit bit 0 or 1 byte: a group of 8 bits (nibble: a group of 4 bits) “word”: a group of bits of a fixed length actual length of a word depends on the register size in a CPU 12

Number Theory: what does decimal 2314 mean? Thousands Hundreds Tens units 10x10x10 10x10 10 103 102 101 100 bracket form: (2 x 103) + (3 x 102) + (1 x 101) + (4 x100 ) most significant digit 2  least significant digit 4 13

Counting in Binary… Same logic as decimal (denary) system Two symbols When both symbols used start another column…

Counting in Hexadecimal 16 symbols 0-9 plus A-F Same logic as decimal or binary Why bother? represents a nibble as a single symbol!

What does binary 1101 mean? 1 1 0 1 2x2x2 2x2 2 1 23 22 21 20 1 1 0 1  2x2x2 2x2 2 1  23 22 21 20 bracket form – for conversion...   (1 x 23) + (1 x 22) + (0 x 21) + (1 x20 )   8 + 4 + 0 + 1 = 13 in denary (decimal) 16

Binary representation of the 8 bits: 1011 0101 27 26 25 24 23 22 21 20   1 0 1 1 0 1 0 1  128 + 0 + 32 + 16 + 0 + 4+ 0 + 1   = 181 Q. How many different binary numbers can an 8 bit word hold? A. 256 (= 28) ranging from 0000 0000 to 1111 1111 17

“Significance” of a bit All bits aren’t equal! As with decimal, the greater the value… the more significant it becomes e.g. decimal 13821 1 in 10000s column… has much greater value than 1 in the 1s column

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

The 16 bit number 0000 0000 0011 0101 (a) To what decimal number is it equal? Answer: 32 + 16 + 0 + 4 + 0 + 1 = 53 (b) What is the value of the most significant bit? Answer: 0 (c) How many different 16 bit binary numbers can be represented? Answer: 216 = 65536 (which is 64 k) 20

Shorthand Rows of many 1s and 0s can be very confusing easy to make mistakes Solution: divide into blocks of 4 digits (nibbles) use hexadecimal equivalent for each nibble very useful in hard disk analysis, when searching for data 21

Hexadecimal notation Decimal Binary Hexadecimal 0 0000 0 1 0001 1 0 0000 0 1 0001 1 2 0010 2 3 0011 3 4 0100 4 5 0101 5 6 0110 6 7 0111 7 8 1000 8 9 1001 9 22

Hexadecimal notation Decimal Binary Hexadecimal 10 1010 A 11 1011 B 15 1111 F 23

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

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

Transistors Same effect as valves Wonderful discovery much smaller use much less energy Wonderful discovery very exciting for Shannon? computers could be much smaller than he expected… http://www.technologyreview.com/featuredstory/401112/claude-shannon-reluctant-father-of-the-digital-age

Effects of Miniaturisation Transistors first used in radios very popular with 1950s “teenagers” 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) Ultra Sparc 1 Pentium 4 Opteron 21364 Itanium 2 McKinley

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

So THAT’S how they work!?  Next week: Structure of a CPU and programming it!