CBCA2103_SG (1)
CBCA2103_SG (1)
CBCA2103
Computer Architecture
STUDY GUIDE
CBCA2103
Computer Architecture
Copyright © 2
Open University Malaysia (OUM)
STU DY GU I DE CB CA2 1 0 3 Computer Architecture
Part One comprises the Course Introduction, which gives you an overview
of the course. More specifically, it provides you with the course synopsis,
objectives, learning outcomes and study load. There is a brief description of
the main textbook(s), which you must read to fulfil the course requirements.
There is also a list of additional reading references. You are encouraged to
go into myINSPIRE to check out the assessment, assignment and final
examination formats.
Part Two comprises the Learning Guide. This starts with an overview, a
recommended weekly study schedule to guide your learning process and a
brief description of the various elements in the Learning Guide. There is also
a list of topics to be covered. For each topic, you are given the specific
learning outcomes, a topic overview and a listing of the focus areas, together
with assigned readings and the pages where information on the focus areas
is found. To consolidate your learning and test your understanding, a
summary of the main content covered and study questions are provided at
the end of each topic.
Finally, there are two appendices, Learning Support and Study Tips, to
help you walk through the course successfully.
Please read through this Study Guide before you commence your course.
We wish you a pleasant study experience.
Contents
Part One: Course Introduction ................................................................... 5
Synopsis ............................................................................................ 5
Objectives .......................................................................................... 5
Learning Outcomes ........................................................................... 5
Study Load ......................................................................................... 6
Main Textbook(s) .............................................................................. 6
Additional Recommended Readings.................................................. 7
Assessment ....................................................................................... 7
Appendices ................................................................................................ 59
Appendix A: Learning Support ......................................................... 59
Appendix B: Study Tips ................................................................... 60
Copyright © 4
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
Objectives
Learning Outcomes
Study Load
Main Textbook(s)
Access through OUM Tan Sri Abdullah Sanusi Digital Library portal:
Null, L., & Lobur, J. (2003). The essentials of computer organization and
architecture. Sudbury, MA: Jones & Bartlett Publishers.
Copyright © 6
Open University Malaysia (OUM)
STU DY GU I DE CB CA2 1 0 3 Computer Architecture
Assessment
Topic Week
Topic 1: Central Processing Unit (CPU) Organisation 1
Topic 2: Pipelining and Parallel Processing 2
Topic 3: Microprogrammed Control Unit 3
Topic 4: Memory Organisation 4
Topic 5: Input-Output Organisation 5
Topic 6: Elements of Assembly Language 6
Topic 7: Basic Instructions 7
Topic 8: Multiprocessor 8
Topic 9: Case Study on 8085 processor 9 to 10
Each topic in the Learning Guide comprises the following sections (refer to
Figure 1):
Assigned Readings: Help you to navigate the main textbook and reading
materials;
Copyright © 8
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
Topic Overview
This topic discusses the main components of the Central Processing Unit
(CPU), which includes describing the functions of each component. It
explains the various types of CPU organisations as well. This topic also
explains instruction format, addressing modes, data manipulation and
transfer, status bit condition and program interrupt, which are important
functions of the CPU.
Copyright © 10
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
Content Summary
1.1 The Control Processing Unit (CPU) can be defined as the brain of a
computer, as it handles all instructions to perform a specific task.
1.3 Figure 1.1 illustrates the components of a CPU and how they interact
with one another.
1.4 The primary function of a CPU is to execute the programs that reside
in the memory unit, which consists of a sequence of instructions.
1.7 There are three types of CPU organisations as shown in Figure 1.2.
Input-output instructions.
A mode field which specifies the way the operand or the effective
address is determined.
Copyright © 12
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
1.15 The Opcode instruction can be further categorised into three parts, as
summarised in Figure 1.3.
1.16 Status bits are also called condition-code bits or flag bits. It is
convenient to check the status bits after an ALU operation.
Copyright © 14
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
Study Questions
2. List the phases in each instruction cycle for the instructions executed in
a CPU.
Topic Overview
Content Summary
2.1 The concept of parallel processing came about to improve the speed
of CPU performance. Parallel processing implies the simultaneous
processing of information. It is used to provide simultaneous data
processing tasks for the purpose of increasing the computational
speed of a computer system.
Copyright © 16
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
Arithmetic Pipeline
Instruction Pipeline
Copyright © 18
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
2.13 The purpose of a CISC is to simplify the compilation and improve the
overall performance of a computer.
Study Questions
Copyright © 20
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
Topic Overview
This topic begins by explaining the basic parts of a digital computer system
and their functions. This topic also describes the function of control units
including the function of two major types of control units. The terms and
concepts used such as address sequencing capabilities and microinstruction
format are also introduced in this topic.
Content Summary
3.1 A digital computer can be divided into two parts which are:
Control unit.
3.2 The Execution Unit (EU) and Control Unit (CU) in a processor are as
illustrated in Figure 3.1.
3.4 A control unit is one of the components of a CPU apart from the
register set and ALU.
Copyright © 22
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
3.7 The hardwired control unit and microprogrammed control unit are
explained in detail in Table 3.1.
Table 3.1: The Hardwired Control Unit and Microprogrammed Control Unit
3.10 Figure 3.2 illustrates the address selection for control memory.
3.11 The status bits control the conditional branch decisions generated in
the branch logic.
Copyright © 24
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
3.13 Figure 3.3 has an operation code of four bits which can specify up to
16 distinct instructions. A simple mapping process that converts the
four bit operation code to a six bit address for control memory is
shown in Figure 3.3.
Study Questions
3. What are the two major types of control unit? Describe each one in
detail.
Copyright © 26
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
Learning Outcomes
By the end of this topic, you should be able to:
1. Explain the basic function of a memory unit and the criteria needed for
choosing the memory unit;
Topic Overview
This topic discusses various memory device organisations. The topic begins
with discussion on the basic function of a memory unit and the criteria
needed when choosing the memory, followed by an explanation of each level
in the memory unit. This topic also discusses Random Access Memory
(RAM) and Read Only Memory (ROM) and its respective functions. The
function of associative memory and details on the operation of this type of
memory, followed by the functions of cache memory are also presented in
this topic. Lastly, this topic discusses the function of virtual memory and
explains the memory and address space functions.
Content Summary
Cost;
Speed;
Reliability; and
Copyright © 28
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
It has two operating modes which are static and dynamic; and
4.10 Cache memory is generally the top level and also the fastest
component in the memory hierarchy. It has the memory of 512K 12
bit word.
4.12 The references to the main memory tend to be confined within a few
localised areas in memory.
4.13 The basic operations of the cache is that when the CPU needs to
access the memory, first the cache is examined:
Cache miss: Data not found in the cache. Processor loads data
from the main memory and copies it into the cache.
4.15 A hit ratio is defined as the number of hits divided by the total number
of CPU references to memory (hits + misses).
4.17 The transformation of data from the main memory to cache memory
is called a mapping process.
4.20 Virtual memory allows translating auxiliary memory into the location
of the main memory. It maps memory addresses used by a program,
called virtual addresses, into physical addresses in the computer
memory.
Copyright © 30
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
Page fault: The page referenced by the CPU is not in the main
memory;
Study Questions
10. Explain the concept of virtual memory. What are the functions of
address space and memory space that are used in virtual memory?
Topic Overview
This topic introduces the peripheral devices that are attached to a computer,
followed by an explanation of input-output interface and the commands
received by the interface. This topic also explores various methods of data
transfer and their respective functions. Lastly, the topic elaborates the
function of the input-output processor and serial communication.
Copyright © 32
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
Content Summary
5.2 Input-output devices that are attached to the computer are also called
peripherals. Among the most commonly used peripherals are:
Input device: Light pen, mouse, touch screen, joy stick or digitiser;
and
5.5 The I/O bus connects data lines, address lines and control lines.
Control command;
Status command;
5.8 Asynchronous data transfer occurs when the internal timing in each
unit (CPU and interface) is independent from one another.
5.9 Each unit uses its own private clock for internal registers.
5.12 Figure 5.1 illustrates the position of the DMA controller in a computer
system.
5.14 The IOP is a specialised processor that can load, store and execute
instructions.
Copyright © 34
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
5.15 Figure 5.2 shows the working of a computer with IOP. The
communication between the IOP and CPU can take on different
forms, depending on the particular computer used.
5.16 In an I/O based system, I/O devices can directly access the memory
without intervention by the processor.
5.19 Data link is the communication lines, modems and other equipment
used in the transmission of information between two or more stations.
5.21 Data transparency uses Data Link Escape (DLE) character which is
inefficient and complicated to implement.
Study Questions
3. What are the commands that should be received by the interface for
the interface to activate?
Copyright © 36
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
Topic Overview
Content Summary
6.2 Comments are used to describe the source code and they always
start with a semicolon. These comments are ignored and are not
executed during assembly.
6.5 Based on Figure 6.1, the name field ends with a colon (:) when used
with an instruction and has no colon when issued with a directive.
6.7 Names and other identifiers used in assembly language are formed
from letters, digits and special characters. Special characters include
underscore (_), question mark (?), dollar symbol ($) and alias symbol
(@).
6.8 A name may not begin with a digit. An identifier may have up to
247 characters.
Constants;
Copyright © 38
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
6.12 Many instructions have two operands. The first operand gives the
destination of the operation while the second operand identifies a
source for the operation, never the destination.
6.14 Memory mode operands come in several formats, two of which are:
Direct; and
Register indirect.
Study Questions
Topic Overview
This topic covers instructions to copy data from one location to another and
instructions used for integer arithmetic. It specifies the types of operands that
are allowed for various instructions. This topic also explains the instructions
on the integer addition and subtraction, followed by multiplication instructions
and division instructions.
Copyright © 40
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
Content Summary
7.1 Instructions to copy data in 8086 architectures are done using mov
(“move”) in a form of mov destination, source where the destination
must either be a register or memory location and source may be a
constant, another register or a memory location.
7.2 This instruction copies a byte, word or doubleword value from the
source operand location to the destination operand location.
7.4 The destination location must be the same size as the source.
For example:
count: = number
For example:
The Intel 8088 in IBM PC had a clock speed of 4.77 MHz that is
4,770,000 cycles per second.
7.7 Exchanges of data in one location with data from another location in
a single instruction can be done using xchg.
7.8 The Intel 8086 microprocessor has add and sub instructions to
perform addition and subtraction using byte, word or doubleword
length operands.
With both add and sub instructions, the source (second) operand is
unchanged.
Copyright © 42
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
7.11 The Intel 8086 microprocessor has inc and dec instructions to
increment (add one to) and decrement (subtract one from) a single
operand and a neg instruction that negates a single operand.
inc destination
dec destination
7.14 There are fewer variants of mul than of imul. The mul instruction has
a single operand and its format is:
mulsource
7.16 The signed multiplication instructions use mnemonic imul. There are
three formats, each with a different number of operands. They are:
imul source;
div source.
7.18 The source operand identifies the divisor. The divisor can be in a
register or the memory but not immediate.
Study Questions
4. If the Intel 8088 in IBM PC had a clock speed of 4.77 MHz, what is a
clock speed in cycles per second?
6. What are the operands used for add and sub instructions?
Copyright © 44
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
Topic 8: Multiprocessor
Learning Outcomes
Topic Overview
Content Summary
Copyright © 46
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
8.7 The global shared memory can be divided equally among the
processors.
8.8 Shared memory MIMD machines can be divided into two categories
according to how they synchronise their memory operations, which
are:
Switch-based architecture.
8.10 A UMA machine has one pool of shared memory that is connected to
a group of processors through a bus or switched network.
8.17 When most people use the term distributed system, they are referring
to a loosely-coupled system. Loosely-coupled distributed computers
depend on a network for communication among processors.
Copyright © 48
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
8.22 The procedure itself resides on the remote machine but the
invocation is done as if the procedure were local to the calling
system.
8.28 There is no concept of share data storage in these systems and there
are no program counters to control execution.
8.33 They can deal with imprecise and probabilistic information and they
allow adaptive interaction between the processing elements to occur.
Connectionist systems;
Copyright © 50
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
8.37 Systolic array computers derive their name based on the analogy of
how the blood flows through a biological heart.
8.40 Connections are short and the design is simple and thus highly
scalable.
8.41 The advantages of systolic arrays are that they tend to be robust,
highly compact, efficient and cheap to produce.
8.42 However, the drawbacks are that they are highly specialised and thus
inflexible as to the types of problems that can be solved.
Study Questions
Topic Overview
Copyright © 52
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
Content Summary
9.1 The Intel 8085AH is a complete 8-bit parallel Central Processing Unit
(CPU).
9.3 Its basic clock speed is 3MHz (8085AH), 5HZ (8085AH-2) or 6MHz
(8085-AH-1).
9.5 The 8085AH has 12 addressable 8-bit registers. Four of them can
function only as two 16-bit register pairs. Six others can be used
interchangeably as 8-bit registers or as 16-bit register pairs.
9.6 The 8085AH uses a multiplexed data bus. The address is split
between the higher 8-bit address bus and the lower 8-bit address or
data bus.
9.9 Apart from the features of the 8085AH explained previously, the
8085AH has three maskable vector interrupt pins, one non-maskable
TRAP interrupt and a bus vectored interrupt, INTR.
INTR;
RST 5.5;
Copyright © 54
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
RST 6.5;
TRAP.
9.11 The TRAP input is recognised just as any other interrupt but has the
highest priority, while INTR has the lowest priority.
9.12 The TRAP interrupt is useful for catastrophic events such as power
failure or bus error.
9.14 The Arithmetic and Logic Unit (ALU) performs all arithmetic and
logical operation, including accumulators and fine flags with the
temporary register.
9.16 The 8085 has 8-bit flag register with five active flags. The
explanations of flags are given in Table 9.1.
9.20 ALE is an output status signal. It indicates that data and address
are present on the multiplexed address/data lines when ALE = 1 it
means address is present), when ALE = 0 (it means data is
present on multiplexed lines).
9.23 The data can be specified in various ways, called addressing mode.
This can be the data itself or the address of that particular data.
9.25 The types of addressing modes are divided into four, which are:
9.26 In 8085, the stack is defined as a set of memory locations in the R/W
memory, specified by the programmer in the main memory.
Copyright © 56
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
9.30 The interfacing process involves designing a circuit that will match
the memory requirements with microprocessor signals.
Study Questions
Copyright © 58
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
Appendices
Appendix A: Learning Support
Tutorials
As you work on the activities and the assigned text(s), your facilitator will
provide assistance to you throughout the duration of the course. Should you
need assistance at any time, do not hesitate to contact your facilitator and
discuss your problems with him/her.
Bear in mind that communication is important for you to be able to get the
most out of this course. Therefore, you should, at all times, be in touch with
your facilitator, e-facilitator and coursemates, and be aware of all the
requirements for successful completion of the course.
The TSDAS Digital Library has a wide range of print and online resources for
the use of its learners. This comprehensive digital library, which is accessible
through the OUM portal, provides access to more than 30 online databases
comprising e-journals, e-theses, e-books and more. Examples of databases
available are EBSCOhost, ProQuest, SpringerLink, Books247, InfoSci
Books, Emerald Management Plus and Ebrary Electronic Books. As an OUM
learner, you are encouraged to make full use of the resources available
through this library.
You should plan to spend about eight hours of study time on each topic,
which includes doing all assigned readings and activities. You must also set
aside time to discuss work online. It is often more effective to distribute the
study hours over a number of days rather than spend a whole day studying
one topic.
Study Strategy
The following is a proposed strategy for working through the course. If you
have difficulty following this strategy, discuss your problems with your
facilitator either through the online forum or during the tutorials.
(i) The most important step is to read the contents of this Study Guide
thoroughly.
(ii) Organise a study schedule (as recommended in Table 2). Take note of
the amount of time you spend on each topic as well as the dates for
submission of assignment(s), tutorials and examination.
(iii) Once you have created a study schedule, make every effort to stick to
it. One reason learners are unable to cope with postgraduate courses
is that they procrastinate and delay completing their coursework.
Read the Study Guide carefully and look through the list of topics
covered. Try to examine each topic in relation to other topics.
Copyright © 60
Open University Malaysia (OUM)
STUDY GUIDE CBCA2103 Computer Architecture
(v) When you have completed a topic, review the Learning Outcomes for
the topic to confirm that you have achieved them and are able to do
what is required.
(vi) After completing all topics, review the Learning Outcomes of the course
to see if you have achieved them.