Physics 413 Chapter 1 Computer Architecture What is a Digital Computer ? A computer is essentially a fast electronic calculating machine. What is a program.

Slides:



Advertisements
Similar presentations
Chapter 5 Internal Memory
Advertisements

Computer Organization and Architecture
Computer Organization and Architecture
1 Lecture 3: Instruction Set Architecture ISA types, register usage, memory addressing, endian and alignment, quantitative evaluation.
+ CS 325: CS Hardware and Software Organization and Architecture Internal Memory.
1-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL
COMP3221: Microprocessors and Embedded Systems Lecture 2: Instruction Set Architecture (ISA) Lecturer: Hui Wu Session.
Introduction to Microprocessors Number Systems and Conversions No /6/00 Chapter 1: Introduction to 68HC11 The 68HC11 Microcontroller.
Registers  Flip-flops are available in a variety of configurations. A simple one with two independent D flip-flops with clear and preset signals is illustrated.
August 26 TA: Angela Van Osdol Questions?. What is a computer? Tape drives? Big box with lots of lights? Display with huge letters? Little box with no.
Computer Organization and Assembly language
CSE378 Gen. Intro1 Machine Organization and Assembly Language Programming Machine Organization –Hardware-centric view (in this class) –Not at the transistor.
C.S. Choy95 COMPUTER ORGANIZATION Logic Design Skill to design digital components JAVA Language Skill to program a computer Computer Organization Skill.
CCSE251 Introduction to Computer Organization
E0001 Computers in Engineering1 The System Unit & Memory.
Technology in Focus: Under the Hood
Physics 413 Chapter 1: Introduction to the HCS 12 Microcontroller.
1 4.2 MARIE This is the MARIE architecture shown graphically.
School of Computer Science G51CSA 1 Computer Systems Architecture Guoping Qiu School of Computer Science The University of Nottingham
Computer Systems Organization CS 1428 Foundations of Computer Science.
Introduction Computer Organization and Architecture: Lesson 1.
Computers organization & Assembly Language Chapter 0 INTRODUCTION TO COMPUTING Basic Concepts.
Chapter 5 Internal Memory. Semiconductor Memory Types.
Digital Electronics Chapter 7 Memory and Programmable Logic.
Computer Generations Evolution of the Computer. Modern Computers Modern computers – Binary, electrical, computational devices.
CSNB374: Microprocessor Systems Chapter 1: Introduction to Microprocessor.
Ted Pedersen – CS 3011 – Chapter 10 1 A brief history of computer architectures CISC – complex instruction set computing –Intel x86, VAX –Evolved from.
Introduction to Microprocessors
HOW a Computer Works ? Anatomy of Microprocessor.
MICROOCESSORS AND MICROCONTROLLER:
August 27 Books? ? Accounts?. What does a computer look like? Tape drives? Big box with lots of lights? Display with huge letters? Little box with.
CPU/BIOS/BUS CES Industries, Inc. Lesson 8.  Brain of the computer  It is a “Logical Child, that is brain dead”  It can only run programs, and follow.
Semiconductor Memory Types
Digital Circuits Introduction Memory information storage a collection of cells store binary information RAM – Random-Access Memory read operation.
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.
Chapter 2.
Evolution of the Computer. Zeroth Generation- Mechanical 1.Blaise Pascal –Mechanical calculator only perform Von Leibiniz –Mechanical.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
Lecture # 10 Processors Microcomputer Processors.
BITS Pilani Pilani Campus Pawan Sharma ES C263 Microprocessor Programming and Interfacing.
Computer Organization IS F242. Course Objective It aims at understanding and appreciating the computing system’s functional components, their characteristics,
MICROPROCESSOR BASED SYSTEM DESIGN BY PROF. DR. B. S. CHOWDHRY Lecture #
Computer Architecture Furkan Rabee
William Stallings Computer Organization and Architecture 7th Edition
Microprocessor and Microcontroller Fundamentals
Computer Organization
Processor/Memory Chapter 3
Why to use the assembly and why we need this course at all?
Introduction to Microprocessors
William Stallings Computer Organization and Architecture 7th Edition
William Stallings Computer Organization and Architecture 8th Edition
William Stallings Computer Organization and Architecture 7th Edition
William Stallings Computer Organization and Architecture 8th Edition
Introduction to Computing Chapter 0
What is Computer Architecture?
Introduction to Microprocessor Programming
What is Computer Architecture?
What is Computer Architecture?
William Stallings Computer Organization and Architecture 8th Edition
CSE378 Introduction to Machine Organization
Chapter 10 Instruction Sets: Characteristics and Functions
Presentation transcript:

Physics 413 Chapter 1

Computer Architecture What is a Digital Computer ? A computer is essentially a fast electronic calculating machine. What is a program ? A program is a set of very simple instructions that a computer can understand. Examples of simple instructions are ADD two numbers, Is X > Y?, COPY A into the memory. What is Machine Language ? The set of exceedingly simple and primitive instructions that a computer can understand is called the Instruction Set or Machine Language.

Architecture and Organization Computer Architecture deals with the design of those components of a computer that are accessible to a programmer. For instance, the Motorola 6800 does not have a MUL instruction but the Pentium does. Computer Organization deals with the implementation of the architecture and may be transparent to the programmer. For instance, precisely how is MUL implemented in the hardware?

Levels of Abstraction L5 High ‑ level Language (C++, Java) L4 Assembly Language L3 Operating System L2 Instruction Set Architecture (ISA) L1 Microarchitecture Level L0 Digital Logic Level Transistors

A Brief History of Computers First Generation ‑ Vacuum Tubes ‑ 1945 ‑ 1955 ENIAC (Electronic Numerical Integrator and Computer) had 18,000 Vacuum Tubes, 1500 relays and weighed 30 tons Second Generation ‑ Transistors ‑ 1955 ‑ 65 ‑ PDP ‑ 8 (DEC) Third Generation ‑ IC ‑ 1965 ‑ 80 ‑ IBM 360 Fourth Generation ‑ 1980 ‑ ? VLSI ‑ Pentium4 ‑ PowerPC (G4) ‑ SPARC

Intel and Motorola/IBM Microprocessors CPU Year Data/Address Clock Transistors / kHz 2, / 20 8 MHz 30,000 P / 32 3 GHz 42 M / 16 1 MHz 6000 G / MHz 10.5 M CISC Complex Instruction Set Computers (6800) RISC Reduced Instruction Set Computers (G4) CISC + RISC ( Pentium 4 ) EPIC Explicitly Parallel Instruction Computing Intel + HP Itanium (

Moore’s Law The number of transistors on a chip doubles every 18 months Example: From 1992 ‑ 1995 memory chip size quadrupled from 16M to 64 M

All about microprocessors ROM is where the program that initializes the PC is stored. RAM access is fast ADDRESS BUS carries the address of RAM, ROM, and other peripherals 6800 has 16 address lines, A 0 through A 15 DATA BUS carries data back and forth between the microprocessor and RAM, ROM, and other peripherals. The 6800 has a data bus that is 8 bits wide.

What is a von Neumann Machine? von Neumann was a world ‑ renowned mathematician. In 1952 he pointed out the primitive architecture of the ENIAC which had to be programmed by moving jumpers and cables and used 10 switches to represent the digits 0 ‑ 9. von Neumann’s machine used binary digits 0 ‑ 1 and stored program and data in memory. The ALU had an accumulator. Today’s computers are essentially von Neumann machines.

What is a Virtual Machine? A Virtual Machine is a software implementation for which no direct hardware implementation exists. This is really a buzz word. All high ‑ level languages and assembly languages are “ virtual machines” ! The term “Java Virtual Machine” is being bandied about a lot these days. It is simply a Java Program. Ultimately, all “virtual machines” have to be implemented in hardware to get “real results”!

Memory Big Endian: 4 bytes arranged as:0123 (32 ‑ bit word) Little Endian: 4 bytes arranged 3210 (32 ‑ bit word) DRAM Organization nxn matrix structure is popular for large memory sizes RAS ‑ Row Address Strobe CAS ‑ Column Address Strobe RAS ‑ CAS strategy reduces the number of pins but slows down access because two addressing cycles are required SRAM Fast for cache

ROM PROM EPROM ‑ UV erasable EEPROM ‑ Electrically erasable byte at a time FLASH ‑ electrical block erasable ‑ digital film ‑ more like RAM!

Hamming Code Detecting errors is easy (attach a parity bit) Correcting errors is complex and requires Hamming code with several parity bits Hamming distance between two code words is the number of single bit errors required to convert one code word to another. Example: 1101 and 1110 are a distance 2 apart n = m + r where r = parity bits, m = bits in the original data and n = total number of bits transmitted

2 r >= m+r+1 Example: For 8 ‑ bit code one needs 4 parity bits for a total of 12 bits Parity bits are bits 1, 2, 4, 8 etc (P1, P2, P4, P8 ) 3 = = = 2+4 P1 checks bits 3, 5, 7, 9, 11 7 = P2 checks bits 3,6,7,10,11 9 = 1+8 P4 checks bits 5,6,7,12 10 =2+8 P8 checks bits 9,10,11,12 11 = = 4+8

Problemo du Jour... Example We need to send What 12-bit Hamming word should we send?

Solution de Problemo du Jour …

IEEE – 754 Floating Point Format (32-bit) 1 sign bit 8 exponent bits 23 significand bits sign bit is 0 for positive numbers and 1 for negative numbers exponent is in “excess-127” format so an exponent of +4 will be written as +131 and an exponent of –9 will be written as Hence exponents can range from -127 to +128 (written as 0 through 255) The “normalized” significand must be in the form 1.xxxxx…. Hence only the xxxxx part is actually written in the 23 bits and “1.” is understood

Convert to IEEE-754 format (decimal) = = x 2 3 (normalized) Our sign bit = 0 Our exponent = 3 or 130 (excess 127) = Our significand = ( 13 more zeros!) Putting it all together we get = (16 more zeros) = (hex)