Docsity

Understanding the Functional Units and Organization of a Computer, Summaries of Computer Architecture and Organization

Partial preview of the text

Download Understanding the Functional Units and Organization of a Computer and more Summaries Computer Architecture and Organization in PDF only on Docsity!

Introduction to

Computer

Organisation and

Architecture

Lecture 1

Architecture and Organisation Architecture is those attributes visible to the programmer Instruction set, number of bits used for data representation, I/O mechanisms, addressing techniques. e.g. Is there a multiply instruction? Organization is how features are implemented Control signals, interfaces, memory technology. e.g. Is there a hardware multiply unit or is it done by repeated addition?

Structure & Function

Structure is the way in which components relate to

each other

Function is the operation of individual components

as part of the structure

Function

The following are the functions of the computer:

Data processing Data storage Data movement Control

Operations (1)

Data

movement

Operations (2)

Storage

Operation (4) Processing from storage to I/O

Structure - Top Level

Computer Main Memory Input Output Systems Interconnection Peripherals Communication lines Central Processing Unit Computer

Structure - The Control Unit

CPU

Control Memory Control Unit Registers and Decoders Sequencing Login Control Unit AL U Registers Internal Bus Control Unit

What is a computer?

Simply put, a computer is a sophisticated electronic calculating machine that: Accepts input information, Processes the information according to a list of internally stored instructions and Produces the resulting output information. Functions performed by a computer are: Accepting information to be processed as input. Storing a list of instructions to process the information. Processing the information according to the list of instructions. Providing the results of the processing as output. What are the functional units of a computer? 14

Information in a computer -- Instructions Instructions specify commands to:

Transfer information within a computer (e.g., from memory to ALU)

Transfer of information between the computer and I/O devices (e.g., from

keyboard to computer, or computer to printer)

Perform arithmetic and logic operations (e.g., Add two numbers, Perform a

logical AND).

A sequence of instructions to perform a task is called a program, which is stored in the memory. Processor fetches instructions that make up a program from the memory and performs the operations stated in those instructions. What do the instructions operate upon? 16

Information in a computer -- Data Data are the “operands” upon which instructions operate. Data could be:

Numbers,

Encoded characters. Data, in a broad sense means any digital information. Computers use data that is encoded as a string of binary digits called bits. 17

Memory unit

Memory unit stores instructions and data.

Recall, data is represented as a series of bits.

To store data, memory unit thus stores bits.

Processor reads instructions and reads/writes data from/to

the memory during the execution of a program.

In theory, instructions and data could be fetched one bit at a time.

In practice, a group of bits is fetched at a time.

Group of bits stored or retrieved at a time is termed as “word”

Number of bits in a word is termed as the “word length” of a computer.

In order to read/write to and from memory, a processor

should know where to look:

“Address” is associated with each word location.

19

Memory unit (contd..)

Processor reads/writes to/from memory based on the memory address:

Access any word location in a short and fixed amount of time based on the

address.

Random Access Memory (RAM) provides fixed access time independent of the

location of the word.

Access time is known as “Memory Access Time”.

Memory and processor have to “communicate” with each other in order to read/write information.

In order to reduce “communication time”, a small amount of RAM (known as

Cache) is tightly coupled with the processor.

Modern computers have three to four levels of RAM units with different speeds and

sizes:

Fastest, smallest known as Cache

Slowest, largest known as Main memory.

20