TM103 Chapter 1
TM103 Chapter 1
Introduction to
Computer Organization & Architecture
Course name
• TM103 - Computer Organization and Architecture
Course level
• Level 1 course
• Equivalent to 4 CH (Credit Hours)
Assessment
• Continuous Assessment (CA) : 50%
- 1 TMA (Tutor Marked Assignment) : 20%
- 1 MTA (Mid-Term Assessment): 30%
• Final Exam: 50%
November 27, 2023 TM103- Arab Open University 2
Course description (2/3)
Success Requirements
• Get at least 15/50 on the CA (TMA + MTA)
• Get at least 20/50 on the Final Exam
• Get at least a total of 50/100 (TMA + MTA + Final)
Chapter 1 : Introduction
• Overview of computer organization and
architecture
• The main components of a computer
• An example system
• The computer level hierarchy
One of the most important tasks computer scientists are usually concerned
with, is writing complex program algorithms rather than with designing
computer hardware. Certainly, if we want our algorithms to be feasible, a
computer eventually has to run them. The execution time of many complex
algorithms may vary due to many factors other than the structure of the
algorithm itself. Some algorithms could be so complicated that they would
take too long to run on some systems, and very fast on others. Why?
To understand why an algorithm works well on a computer system and seems
to be infeasible on another, you have to understand the relation between the
hardware and the software.
Therefore, it is very important that we understand how hardware interacts
with software. We need to become aware of how the computer components
fit together to produce a working computer system.
Studying computer organization and architecture will help understand this
interaction between software and hardware.
November 27, 2023 TM103- Arab Open University 7
1.1 Overview
Computer organization involves all the physical features of computer
systems. It addresses issues such as control signals, signaling methods, and
memory types. It helps you to answer the question:
How does a computer work?
This section will introduce you to some of the terminology that is specific to
computers. This terminology can be confusing, inaccurate, and frightening.
We believe that with little explanation, we can clear the fog.
For the sake of discussion, we have provided a computer advertisement (see
Figure 1.1).
The ad is typical of many that it bombards you with phrases such as 16GB DDR3
SDRAM, PCIe, and L1 cache.
11
November 27, 2023 TM103- Arab Open University
1.3 An Example System
Without having a handle on such terminology, you would be hard pressed to know
whether the stated system is a wise buy, or even whether the system is able to
serve your needs.
Before we explain the ad, however, we need to discuss something even more basic;
the measurement terminology.
It seems that every field has its own way of measuring things.
For computer people to tell each other how big something is, or how fast it is, they
should use the same units of measure.
The common prefixes used with computers are given in the tables 1.1 and 1.2.
Table 1.1: Capacity and Speed prefixes Table 1.2: Time and Space prefixes
Power-of-10 prefixes are ordinarily used for power, electrical voltage, frequency, and
data rate (number of bits per second), whereas the power-of-2 prefixes are used for
capacity.
For example, if your DSL has a data rate of 128kbps, then the k here means 10 3. If a
file is 2KB in size, then it is 2x210 bytes.
P.S: Note that the uppercase “K” is usually used to refer to the power-of-2 prefix, while the
lowercase “k” usually refers to the power-of-10 prefix. In addition, a byte is a set of 8 bits,
where “B” is for byte, and “b” is for bit.
Prefixes for these metrics are given in table 1.2. Notice that the fractional prefixes
have exponents that are the reciprocal of the prefixes on table 1.1. Therefore, if
someone says that an operation requires a microsecond to complete, you should
also understand that a million of these operations could take place in one second.
Now back to the ad, you can see that the microprocessor in the ad is an intel i5
Quad core, which means that it is essentially four processors, and it belongs to the
multicore processors type. This will speed up the processing power of the
computer.
Computers with large main memory capacity can run larger programs with greater
speed than computers having small memory capacity.
RAM is an acronym for random access memory. Random access means that
memory contents can be accessed directly if you know its location, which means
that the needed access time to retrieve a certain piece of data will be short.
Cache is a type of temporary memory that can be accessed faster than RAM.
The system in our advertisement has two kinds of cache. Level 1 cache is small,
fast memory that is built into the microprocessor chip, and helps speed up access
to frequently used data. Level 2 cache is a collection of fast, built-in memory chips
situated between the microprocessor and the main memory.
This system has two levels of cache memory, the level1 (L1) cache is smaller and
(Usually) faster than the L2 cache. Note that these cache sizes are measured in KB
and MB.
(For more information on different types of memory, refer to chapter 6)
November 27, 2023 TM103- Arab Open University 16
1.3 An Example System
Hard disk capacity determines the amount of data and size of programs you can
store. This one can store 1TB.
7200 RPM is the rotational speed of the disk. Generally, the faster a disk rotates,
the faster it can deliver data to RAM. (There are many other factors involved as
well)
SATA stands for serial advanced technology attachment, which describes how the
hard disk interfaces with (or connects to) other system components.
A DVD can store about 4.7GB of data. This drive supports rewritable DVDs, +/-RW,
that can be reused to store data many times; 24x describes its speed.
Ports allow movement of data between a system and its external devices. This
system has ten ports.
A bus is a group of wires that moves data and instructions to various places within
a computer. Bus speed ultimately sets the upper limit on the system’s
information-carrying capability.
Additional dedicated Input/ Output (I/O) buses can improve system buses.
PCI, peripheral component interface, is one such bus. This system has two PCIe
(PCI express) devices: a video card and a sound card.
The video card contains memory and programs that support the monitor.
All through the remainder of the lectures, you will see how these components
work and how they interact with software to make complete computer systems.
To understand the whole process, we will use a “divide and conquer” approach.
Imagine the computer as a hierarchy of levels (table 1.3), in which each level has a
specific function.
Memorize
this table!