1. Trang chủ
  2. » Kinh Doanh - Tiếp Thị

David vernon introduction to computer systems e02p8vE5a0pXJOQ1A9eTYVvMdI1Ecw8u pdf

358 7 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 358
Dung lượng 647,39 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Input Systems Keyboard MouseTouch Screen Pen/Stylus Magnetic Ink INPUT Character Recognition MICR... Input Systems Keyboard MouseTouch Screen Pen/Stylus Magnetic Ink Bar Code INPUT... I

Trang 1

An Introduction to Computer Systems

David Vernon

Trang 2

A Computer

Trang 3

Key Concepts

sounds, images)

Trang 4

Types of Computer

Pre-programmed

Watches Traffic Signals Engine Management Televisions Telephones Navigation Devices

Special Purpose (embedded systems)

Can be adapted to many situations Personal Computers Workstations Mainframes Supercomputers

General Purpose (user-programmable) Computer

Trang 6

» such as the letters of the alphabet,

» or integers or real numbers,

» or light in an image,

» for the tone of a violin

Trang 7

Key Concepts

electronic components that perform a function

– Combinations of thousands of circuits built on tiny pieces of silicon called chips

Trang 8

Key Concepts

– Data with two states – off & on

– low voltage & high voltage – 0v & 5v

Trang 9

Key Concepts

• Bit

– Single Binary Digit – Can have value 0 or 1, and nothing else – A bit is the smallest possible unit of information in

a computer

Trang 10

Key Concepts

information

– 1 bit - 2 alternatives – 2 bits - 4 alternatives – 3 bits - 8 alternatives – 4 bits - 16 alternatives – n bits - 2n alternativies – 8bits - 28= 256 alternatives – a group of 8 bits is called a byte

Trang 14

Key Concepts

– Two and usually more communication devices connected together

– Many connection topologies

Trang 15

Key Concepts

– The physical (electronic and mechanical) parts of

a computer or information system

– The programs that control the operation of the computer system

Trang 16

Components of Computer Systems

Trang 17

Components of Computer Systems

Trang 18

Key Components

– Input – Output – Storage – Processor

Trang 20

Input Systems Keyboard Mouse

INPUT

» Cursor manipulation device

» Trackball

Trang 21

Input Systems Keyboard Mouse

Touch Screen

INPUT

Trang 22

Input Systems Keyboard Mouse

INPUT

Trang 23

Input Systems Keyboard Mouse

Touch Screen Pen/Stylus Magnetic Ink

INPUT

Character Recognition

(MICR)

Trang 24

Input Systems Keyboard Mouse

Touch Screen Pen/Stylus Magnetic Ink Bar Code

INPUT

Trang 25

Input Systems Keyboard Mouse

Optical Character Recognition

INPUT

systems

handwritten block capital

Trang 26

Input Systems Keyboard Mouse

Optical Character Recognition

Sensors

INPUT

– Digital thermometers – Accelerometers

– Strain gauges (weighing scales) –

Trang 27

Input Systems Keyboard Mouse

Touch Screen Pen/Stylus

Magnetic Ink Bar Code

Optical Character Recognition

Trang 28

Input Systems Keyboard Mouse

Touch Screen Pen/Stylus

Magnetic Ink Bar Code

Optical Character Recognition

Trang 30

Output Systems

OUTPUT

Trang 31

» LCD (Liquid Crystal Display)

OUTPUT

Trang 32

Output Systems

– Modulator-Demodulator – Allows computers to communicate over telephone lines

OUTPUT

Trang 33

OUTPUT

Trang 34

Output Systems

Voice CRT Flat Panel

Soft Copy Modem Disk or Tape

Plotters Microfilm Non-impact

Printers

Impact Printers Hard Copy

OUTPUT

Trang 35

Output Systems

Voice CRT Flat Panel

Soft Copy Modem Disk or Tape

Plotters Microfilm Non-impact

Printers

Impact Printers Hard Copy

OUTPUT

Trang 36

Output Systems

Voice CRT Flat Panel

Soft Copy Modem Disk or Tape

Plotters Microfilm

Laser Magnetic Thermal Transfer Thermal and Electrostatic

Non-impact Printers

Impact Printers Hard Copy

OUTPUT

Trang 37

Output Systems

Voice CRT Flat Panel

Soft Copy Modem Disk or Tape

Plotters Microfilm Non-impact

Printers

Dot matrix Line Printer

Impact Printers Hard Copy

OUTPUT

Trang 39

Permanent MASS STORAGE

STORAGE

Trang 40

» Won’t disappear when power is off

– RAM - Random Access Memory

Permanent MASS STORAGE

STORAGE

Trang 41

Storage Systems

– 15,000 tracks per inch

– Digital code read by laser

– 650 Mbytes in a 4.75” plastic platter

– CD ROM; WORM; Erasable Disks

ROM RAM

Temporary MEMORY

Optical Magnetic

Permanent MASS STORAGE

STORAGE

Trang 42

Optical Magnetic

Permanent MASS STORAGE

STORAGE

Trang 43

– Lasers read and write inofrmation

– Also use a magnetic material

– To write: a laser beam heats a tiny spot and a magnetic field is

applied to reverse the magnetic polarity

ROM RAM

Temporary MEMORY

Optical Magnetic

Permanent MASS STORAGE

STORAGE

Trang 44

STORAGE

Trang 45

STORAGE

Trang 46

ROM RAM

Temporary MEMORY

Trang 47

The Processor:

Hardware & Software

Trang 48

Components of Computer Systems

Trang 50

Microprocessor

Memory Interface ICs

Trang 51

Microprocessor

Memory Interface ICs

Trang 52

Operating

Systems

Programming Languages

System Software

General Purpose

Special Purpose Application Software Software

Trang 53

Operating Systems

– Software which is responsible for passing

information to and from the person using the program (the user)

– Communicates with and controls the computer

– Three types of user interface:

» Graphic user interfaces

» Menu driven interfaces

» Command driven interfaces

Operating Systems

Programming Languages

System Software

General Purpose

Special Purpose Application Software Software

Trang 54

Operating Systems

– Pictures, graphic symbols (icons), to represent

commands – Windows: a way of ‘looking in’ on several

applications at once

Operating Systems

Programming Languages

System Software

General Purpose

Special Purpose Application Software Software

Trang 55

Programming Languages

System Software

General Purpose

Special Purpose Application Software Software

Trang 56

Operating Systems

– A (system) prompt

– User types in single letter, word, line which is translated into

an instruction for the computer – For example: cp source destination

– Need to be very familiar with the syntax (grammar) of the

command language

Operating Systems

Programming Languages

System Software

General Purpose

Special Purpose Application Software Software

Trang 57

Operating

Systems

Programming Languages

System Software

General Purpose

Special Purpose Application Software Software

Trang 58

Operating Systems

the overall operation of the computer system

Trang 59

– Software which ties the hardware to the software, and

– manages the flow of information to and from disks, printers, keyboards,

Shell Network I/F Task

Scheduler

Kernel

Operating Systems

Programming Languages

System Software

General Purpose

Special Purpose Application Software Software

Trang 60

Operating Systems

– Collection of information (stored on disk) – Disks need to be formatted to allow them to store information

– OS manages location of files on disk – OS performs I/O to disk

– OS checks and corrects errors on disk I/O

Trang 61

Operating Systems

– Programs which handle the various hardware devices, e.g., mouse, keyboard, CD, video, etc.

– For example, an application wants to print a document

» It call the operating system

» which sends the information to the device driver together with instructions

» and the printer driver handles all the control of the printer

Trang 63

Operating Systems

– Single-tasking – Command-driven – Huge number of applications written for DOS – Does not require powerful computer

– No network services – No multimedia extensions – Designed for the Intel 80x86 processor

Trang 64

Operating Systems

– GUI – Can run DOS programs – Has network services – Has multimedia extensions – Requires large amounts of memory, disk space, powerful processor

– Designed for the Intel 80X86 processors

Trang 65

Operating Systems

– Multi-tasking – GUI called finder – Very easy to use – Very graphically oriented – Has network services

– Has multimedia extensions – Designed for the Motorola and PowerPC

Trang 66

Application Software

– Payroll – Accounting – Book-Keeping – Entertainment – Statistical Analysis

Operating Systems

Programming Languages

System Software

General Purpose

Special Purpose Application Software Software

Trang 67

Application Software

Operating Systems

Programming Languages

System Software

General Purpose

Special Purpose Application Software Software

– Word Processing (e.g MS Word) – Desktop Publishing (e.g Quark Xpress) – Spreadsheets (e.g MS Excel)

– Databases (e.g MS Access) – Graphics (e.g MS Powerpoint) – E-mail (e.g MS Mail)

Trang 68

Application Software

Operating Systems

Programming Languages

System Software

General Purpose

Special Purpose Application Software Software

Trang 69

Application Software

Operating Systems

Programming Languages

System Software

General Purpose

Special Purpose Application Software Software

– Object Linking & Embedding (OLE) – Information is stored in one location only – Reference is made to it from another application – This reference is known as a link

– Don’t actually make a copy (cf hypertext, multimedia, WWW)

Trang 70

Application Software

Trang 71

Operation of Processor and Memory

Trang 72

The Processor

and carries out instructions

Trang 73

The Processor

set

is called machine language

Trang 75

The Processor

memory, then the operand is called an address

num1 could be a number or it could be the

address of a number in memory (i.e where the number is stored)

Trang 76

Program Control branching, subroutines

Data Movement Move, load, store

Input/Output Read, Write

Trang 77

The Processor

– retrieve instructions from memory – retrieve data (operands) from memory – perform the operation

– (maybe store the result in memory) – retrieve the next instruction

Trang 78

The Processor

and over at speeds measured in millionths of

a second

must wait until the clock ‘ticks’ to begin

ticks 300 000 000 times a second

Trang 79

The Components of a Processor

MEMORY

CPU

Control Unit

Trang 80

The Control Unit

components

Trang 81

The Control Unit

– is a signal – which tells the control unit to suspend execution of its present sequence of instructions (A)

– and to transfer to another sequence (B) – resuming the original sequence (A) when finished with (B)

Trang 82

: : Instruction Bn

EXECUTE instructions

Trang 83

The Control Unit

individual actions (more on this later)

computer

Trang 84

The Arithmetic & Logic Unit

Trang 85

The Arithmetic & Logic Unit

– addition, subtraction, multiplication, division

– make a comparison (CMP a, b) – and take action as a result (BEQ same)

Trang 86

– store data items

Trang 87

– Size of the operand register – Also used to describe the size of the pathways to and from the processor and between the

components of the processor

processor are 32 bits wide (long!)

Trang 88

Specialized Processors

– Image processing; sound, speech

– Real number arithmetic

Circuits

– Microwave contoller

– Engine management controller

Trang 89

The Operation of the Processor

A Simple Accumulator-Based CPU

(Von Neumann Computer)

Trang 90

The Components of a Processor

MEMORY

CPU

Control Unit

Trang 91

Main Components

– Coordinates all other units in the computer – Organizes movement of data from/to I/O, memory, registers.

– Directs ALU, specifically to indicate the operations

to be performed – The control unit operates according to the stored program, receiving and executing its instructions one at a time

Trang 92

The Components of a Processor

MEMORY

CPU

Control Unit

Trang 93

Main Components

– All computations are performed in this unit – ALU comprises adders, counters, and registers – Numerical operations (+ - / x)

– Logical operations (AND, OR, program branching)

Trang 94

– Receives data from two or more sources, performs the

arithmetic, and sends the results to a register

– Counts the number of times an operation is performed

Trang 95

The Components of a Processor

MEMORY

Control Unit

Trang 96

Some Key Points

binary digits

digits

allows these codes to be stored

Trang 97

The Operation of a Processor

assignment statement?

A := B + C

Trang 98

The Operation of a Processor

(because it’s not written in a way which matches the structure of the computer’s physical architecture)

of instructions which the does match the computer architecture

Trang 99

The Operation of a Processor

architecture (i.e a machine)

or assembly language)– machine language when it’s written as a binary code

– assembly language when it’s written symbolically.

Trang 100

The Components of a Processor

MEMORY

Control Unit

Trang 101

The Components of a Processor

MEMORY CPU

DR AR

AC PC

IR Control

DR

Trang 102

The Components of a Processor

Trang 103

The Components of a Processor

MEMORY CPU

DR AR

AC PC

IR Control

DR

Trang 104

The Components of a Processor

MEMORY CPU

DR AR

AC Arithmetic

PC IR

Control

Circuits

DR

Trang 105

The Components of a Processor

MEMORY CPU

DR AR

AC PC

IR Control

DR

Trang 106

The Components of a Processor

MEMORY CPU

DR AR

AC Arithmetic

PC IR

Control

Circuits

DR

Trang 107

The Components of a Processor

MEMORY CPU

DR AR

AC PC

IR Control

DR

Trang 108

Instruction Format

general, one would expect– opcode/operand

– opcode/address (which may vary in size)

Trang 111

AC PC

IR Control

DR

00000001 B

01001100

C A

Trang 112

AC Arithmetic

PC IR

Control

Circuits

DR

00000001 B

01001101

C A

Trang 113

AC PC

IR Control

DR

00000001 B

01001101

C A

Trang 114

But

Trang 115

AC PC

IR Control

Load B Add C Store A

Trang 116

So

Trang 118

AC Arithmetic

PC IR

Load B Add C Store A

Load B

Trang 119

AC PC

IR Control

DR

00000001 B

01001100

C A

Load B Add C Store A

Load B

Trang 120

AC Arithmetic

PC IR

Load B Add C Store A

Add C

01001100

Trang 121

AC PC

IR Control

DR

00000001 B

01001101

C A

Load B Add C Store A

Add C

Trang 122

AC Arithmetic

PC IR

Load B Add C Store A

Store A

01001101

Trang 123

AC PC

IR Control

DR

00000001 B

01001101

C A

Load B Add C Store A

Store A

Trang 124

AC Arithmetic

PC IR

Load B Add C Store A

Trang 125

Operation of the Processor

execute sequences of instructions stored in main memory

– Fetch Cycle – Execute Cycle

Trang 127

Instruction Cycle

micro-operations each of which involves a transfer of data to/from registers

Trang 128

Instruction Cycle

supervises other system component usually via special control lines

(either directly or indirectly)

devices are usually ignored until they actively request service from the CPU via an interrupt

Trang 129

: : Instruction Bn

EXECUTE instructions Interrupt is activated by

an electronic signal

Trang 130

Instruction Cycle

START

Instruction Awaiting

Execution?

Fetch next instruction

Execute next instruction

Trang 131

AC PC

IR Control

DR

00000001 B

11111111 01001100 C

A Load B

Add C

Store A

Output

OP1 OP1 OP1

Main Program Subroutine A

Output

OP1 OP1 OP1

Interrupt Handler

Trang 132

Register Transfer Language

referred to by an acronym

– Accumulator; main operand register of ALU

Trang 133

Register Transfer Language

Trang 134

Register Transfer Language

– Program Counter – Stores address of the next instruction to be executed

• IR

– Instruction Register – Holds the opcode of the current instruction

Trang 135

Register Transfer Language

– Address Register – Holds the memory address of an operand

Trang 136

Register Transfer Language

Trang 137

CPU Activated?

AR ← PC

NO YES

Trang 139

Evaluate an Assignment

– Load B – Add C – Store A

Trang 143

AC PC

IR Control

Load B Add C Store A

Trang 144

AC Arithmetic

PC IR

Load B Add C Store A

Load B DR ← M(AR)

Load B

Trang 145

AC PC

IR Control

Load B Add C Store A

Load B IR ← DR(opcode)

Load B

Trang 146

AC Arithmetic

PC IR

Load B Add C Store A

Load B Increment PC

Load B

Trang 147

AC PC

IR Control

Load B Add C Store A

Load B Decode Instruction

Load B

Trang 148

AC Arithmetic

PC IR

Load B Add C Store A

Load B AR ← DR(address)

Load B B

Trang 149

AC PC

IR Control

Load B Add C Store A

Load B DR ← M(AR)

Trang 150

AC Arithmetic

PC IR

Load B Add C Store A

Load B AC ← DR

B

01001100 01001100

Trang 151

Extensions to the Basic Organizationand

Binary Number Representations

Trang 152

operands and addresses

called a General Register Organization

provided for the purpose of memory address

Trang 153

extended to include multiplication and division

numbers as well as integers

storing instructions (instruction buffer)

Trang 154

transfer to subroutines or interrupt handling programs and recovery of original status of interrupted program on returning from

interrup handler

e.g the use of a ‘push-down stack’ implies that we need only a special-purpose ‘stack pointer’ register

Trang 155

Simultaneous processing of two or more distinct instructions or data streams

Trang 156

Information Representation

– Text – Numbers

» Integers

» Reals (floating point numbers)

Trang 157

– A-Z, a-z, 1-9, ,¬!”£$$%^&*()_+

– Special unprintable characters such as the ENTER key (CR for carriage return)

Trang 158

negative (-), then an n-bit binary word can represent integers in the range

-2n-1

Trang 159

represent integers in the range

Trang 160

0 0 0 0 0 0 0 1 1 0 0 1 1 1 1 1

Trang 162

positive or negative numbers(1 for negative; 0 for positive)

+9 = 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1-9 = 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1

Trang 163

1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0

Ngày đăng: 02/04/2021, 09:45