DDCO MODULE 3
DDCO MODULE 3
MODULE-3
Basic Structure of Computers: Functional Units, Basic Operational Concepts, Bus structure, Performance –
Processor Clock, Basic Performance Equation, Clock Rate, Performance Measurement.
Machine Instructions and Programs: Memory Location and Addresses, Memory Operations, Instruction and
Instruction sequencing, Addressing Modes.
BASIC STRUCTURE OF COMPUTERS
A computer can be defined as a fast electronic calculating machine that accepts the (data) digitized input
information process it as per the list of internally stored instructions and produces the resulting information. List
of instructions are called programs & internal storage is called computer memory. The different types of
computers are
1. Personal computers: This is the most common type found in homes, schools, Business offices etc., It is
the most common type of desk top computers with processing and storage units along with various input
and output devices.
2. Note book computers: These are compact and portable versions of PC
3. Work stations: These have high resolution input/output (I/O) graphics capability, but with same
dimensions as that of desktop computer. These are used in engineering applications of interactive design
work.
4. Enterprise systems: These are used for business data processing in medium to large corporations that
require much more computing power and storage capacity than work stations. Internet associated with
servers has become a dominant worldwide source of all types of information.
5. Super computers: These are used for large scale numerical calculations required in the applications like
weather forecasting etc.
The preceding Add instruction combines a memory access operation with an ALU Operations. In some other
type of computers, these two types of operations are performed by separate instructions for performance
reasons.
Load LOCA, R1
Add R1, R0
Transfers between the memory and the processor are started by sending the address of the memory location to
be accessed to the memory unit and issuing the appropriate control signals. The data are then transferred to or
from the memory.
3.4 Performance, Processor Clock, Basic Performance Equation, Clock Rate Performance Measurement
The most important measure of the performance of a computer is how quickly it can execute programs. The
speed with which a computer executes program is affected by the design of its hardware. For best performance,
it is necessary to design the compiles, the machine instruction set, and the hardware in a coordinated way.
The total time required to execute the program is elapsed time is a measure of the performance of the
entire computer system. It is affected by the speed of the processor, the disk and the printer. The time needed to
execute a instruction is called the processor time.
In addition to specifying the address ordering of bytes within a word, it is also necessary to specify the labeling
of bits within a byte or a word. The same ordering is also used for labeling bits within a byte, that is, b7, b6, ….,
b0, from left to right.
3.5.3 Word Alignment
In the case of a 32-bit word length, natural word boundaries occur at addresses 0,4, 8, …, We say that the word
locations have aligned addresses .in general, words are said to be aligned in memory if they begin at a byte
address that is a multiple of the number of bytes in a word. The memory of bytes in a word is a power of2.
Hence, if the word length is 16 (2 bytes), aligned words begin at byte addresses 0,2,4,…, and for a word length
of 64 (23 bytes), aligned words begin at bytes addresses0,8,16 ….
There is no fundamental reason why words cannot begin at an arbitrary byte address. In that case, words
are said to have unaligned addresses. While the most common case is to use aligned addresses, some computers
allow the use of unaligned word addresses.
Dept of CSE – AIET, Mijar, Moodabidri Page 10
Digital Design and Computer Organization BCS302
3.5.4 Accessing Numbers, Characters, and Character Strings
A number usually occupies one word. It can be accessed in the memory by specifying its word address.
Similarly, individual characters can be accessed by their byte address.
In many applications, it is necessary to handle character strings of variable length. The beginning of the
string is indicated by giving the address of the byte containing its first character. Successive byte locations
contain successive characters of the string. There are two ways to indicate the length of the string. A special
control character with the meaning “end of string” can be used as the last character in the string, or a separate
memory word location or processor register can contain a number indicating the length of the string in bytes.
3.6 Memory Operations
Both program instructions and data operands are stored in the memory. To execute an instruction, the processor
control circuits must cause the word (or words) containing the instruction to be transferred from the memory to
the processor. Operands and results must also be moved between the memory and the processor. Thus, two
basic operations involving the memory are needed, namely, Load (or Read or Fetch) and Store (or Write).
The load operation transfers a copy of the contents of a specific memory location to the processor. The
memory contents remain unchanged.
To start a Load operation, the processor sends the address of the desired location to the memory and
requests that its contents be read.
The memory reads the data stored at that address and sends them to the processor.
The store operation transfers an item of information from the processor to a specific memory location,
destroying the former contents of that location.
The processor sends the address of the desired location to the memory, together with the data to be
written into that location.
An information item of either one word or one byte can be transferred between the processor and the
memory in a single operation. Actually this transfer in between the CPU register & main memory.
3.7 Instruction and Instruction sequencing
A computer must have instructions capable of performing four types of operations
Data transfers between the memory and the processor registers
Arithmetic and logic operations on data
Program sequencing and control
I/O transfers
3.7.1 Register Transfer Notation
Transfer of information from one location in the computer to another. Possible locations that may be involved in
such transfers are memory locations that may be involved in such transfers are memory locations, processor