Slides Prepared by Walid A. Najjar & Brian J. Linard, University of California, Riverside
Slides Prepared by Walid A. Najjar & Brian J. Linard, University of California, Riverside
Chapter 1
Welcome Aboard!
What computers consist of How computers work How they are organized
internally
1-3
Copyright 2003 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Slides prepared by Walid A. Najjar & Brian J. Linard, University of California, Riverside
Computing Machines
Ubiquitous ( = everywhere)
General purpose: servers, desktops, laptops, PDAs, etc. Special purpose: cash registers, ATMs, games, telephone switches, etc. Embedded: cars, hotel doors, printers, VCRs, industrial machinery, medical equipment, etc.
Distinguishing Characteristics
Speed Cost Ease of use, software support & interface Scalability
1-4
Copyright 2003 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Slides prepared by Walid A. Najjar & Brian J. Linard, University of California, Riverside
The notion that we can concentrate on one level of the big picture at a time, with confidence that we can then connect effectively with the levels above and below. Framing the levels of abstraction appropriately is one of the most important skills in any undertaking.
Hardware
vs. Software
On the other hand, abstraction does not mean being clueless about the neighboring levels. In particular, hardware and software are inseparably connected, especially at the level we will be studying.
1-5
Copyright 2003 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Slides prepared by Walid A. Najjar & Brian J. Linard, University of California, Riverside
Electronic Devices
Desired Behavior
a very wide semantic gap between the intended behavior and the workings of the underlying electronic devices that will actually do all the work. The forerunners to modern computers attempted to assemble the raw devices (mechanical, electrical, or electronic) into a separate purpose-built machine for each desired behavior.
1-6
Copyright 2003 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Slides prepared by Walid A. Najjar & Brian J. Linard, University of California, Riverside
Electronic Devices
Desired Behavior
A general purpose computer is like an island that helps span the gap between the desired behavior (application) and the basic building blocks (electronic devices).
1-7
Copyright 2003 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Slides prepared by Walid A. Najjar & Brian J. Linard, University of California, Riverside
ca 2000 You can see why they called this CPU a microprocessor!
Copyright 2003 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Slides prepared by Walid A. Najjar & Brian J. Linard, University of California, Riverside
Computational Devices
Given enough time and memory, all computers are capable of computing exactly the same things (irrespective of speed, size or cost).
Turings Thesis: every computation can be performed by some Turing Machine - a theoretical universal computational device
Problem
Transformation
The ultimate objective is to transform a problem expressed in natural language into electrons running around a circuit!
Thats what Computer Science and Computer Engineering are all about: a continuum that embraces software & hardware.
1-9
Copyright 2003 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Slides prepared by Walid A. Najjar & Brian J. Linard, University of California, Riverside
A Turing Machine
Also known as a Universal Computational Device: a theoretical device that accepts both input data and instructions as to how to operate on the data
1 - 10
Copyright 2003 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Slides prepared by Walid A. Najjar & Brian J. Linard, University of California, Riverside
Devices
Copyright 2003 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Slides prepared by Walid A. Najjar & Brian J. Linard, University of California, Riverside
Levels of Abstraction
These levels do not necessarily correspond to discrete components, but to well defined standard interfaces. Standard interfaces provide
portability third party software/hardware wider usage
Natural Language Algorithm Program Machine Architecture Micro-architecture Logic Circuits Devices
These levels are to some extent arbitrary there are other ways to draw the lines.
1 - 12
Copyright 2003 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Slides prepared by Walid A. Najjar & Brian J. Linard, University of California, Riverside
An example:
This lecture PowerPoint Windows XP
1 - 13
Copyright 2003 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Slides prepared by Walid A. Najjar & Brian J. Linard, University of California, Riverside
Architecture
This is the formal specification of all the functions a particular machine can carry out, known as the Instruction Set Architecture (ISA).
Microarchitecture
The implementation of the ISA in a specific CPU - i.e. the way in which the specifications of the ISA are actually carried out.
1 - 14
Copyright 2003 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Slides prepared by Walid A. Najjar & Brian J. Linard, University of California, Riverside
Circuits
Each functional component of the microarchitecture is built up of circuits that make decisions based on simple rules
Devices
Finally, each logic circuit is actually built of electronic devices such as CMOS or NMOS or GaAs (etc.) transistors.
1 - 15
Copyright 2003 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Slides prepared by Walid A. Najjar & Brian J. Linard, University of California, Riverside
How to represent information The building blocks of computers: logic gates The basic algorithm: the von Neumann model An example: the LC-3 structure and language Programming the machine: assembly language A higher-level language: C
1 - 16
Copyright 2003 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Slides prepared by Walid A. Najjar & Brian J. Linard, University of California, Riverside