Structures, System Software, Performance
Structures, System Software, Performance
Syllabus: Basic Structure Of Computers: Functional unit, Basic Operational concepts, Bus
structures, System Software, Performance
Computer: Computer is a fast electronic calculating machine that accepts digitized input information,
processing it according to a list of internally stored instructions and produces the resulting output
information. The list of instructions is called as a Computer program and the internal storage is called as
Computer memory.
Types of Languages: Just as humans use language to communicate, and different regions have different
languages, computers also have their own languages that are specific to them. Different kinds of languages
have been developed to perform different types of work on the computer. Basically, languages can be divided
into two categories according to how the computer understands them.
➢ Low-Level Languages: A language that corresponds directly to a specific machine. Low-level computer
languages are either machine codes or are very close them. A computer cannot understand instructions
given to it in high-level languages or in English. It can only understand and execute instructions given in
the form of machine language i.e. binary. There are two types of low-level languages:
• Machine Language: a language that is directly interpreted into the hardware. Machine language is
the lowest and most elementary level of programming language and was the first type of
programming language to be developed. Machine language is basically the only language that a
computer can understand and it is usually written in hex. It is represented inside the computer by a
string of binary digits (bits) 0 and 1. The symbol 0 stands for the absence of an electric pulse and the
1 stands for the presence of an electric pulse. Since a computer is capable of recognizing electric
signals, it understands machine language.
Advantages:
➢ Machine language makes fast and efficient use of the computer.
➢ It requires no translator to translate the code. It is directly understood by the computer.
Disadvantages:
➢ All operation codes have to be remembered
➢ All memory addresses have to be remembered.
➢ It is hard to amend or find errors in a program written in the machine language.
• Assembly Language: A slightly more user-friendly language that directly corresponds to machine
language. Assembly language was developed to overcome some of the many inconveniences of
machine language. This is another low-level but very important language in which operation codes
and operands are given in the form of alphanumeric symbols instead of 0’s and l’s.
These alphanumeric symbols are known as mnemonic codes and can combine in a maximum
of five-letter combinations e.g. ADD for addition, SUB for subtraction, START, LABEL etc.
Because of this feature, assembly language is also known as ‘Symbolic Programming Language.'
Advantages:
➢ Assembly language is easier to understand and use as compared to machine language.
➢ It is easy to locate and correct errors.
➢ It is easily modified.
Disadvantages:
➢ Like machine language, it is also machine dependent/specific.
➢ Since it is machine dependent, the programmer also needs to understand the hardware.
➢ High-Level Languages: Any language that is independent of the machine. High-level computer
languages use formats that are similar to English. The purpose of developing high-level languages was to
enable people to write programs easily, in their own native language environment (English).
High-level languages are basically symbolic languages that use English words and/or mathematical
symbols rather than mnemonic codes. Each instruction in the high-level language is translated into many
machine language instructions that the computer can understand.
Advantages:
o High-level languages are user-friendly
o They are easier to learn.
o They are easier to maintain
o A program written in a high-level language can be translated into many machine languages and can
run on any computer
o programs developed in a high-level language can be run on any computer text
Disadvantages:
o A high-level language has to be translated into the machine language by a translator, which takes up
time
Computer Types: Basing capacity, technology used and performance of computer, they are classified
into two types
According to computational ability
According to generation
According to computational ability (Based on Size, cost and performance):
There are mainly 4 types of computers. These include:
a) Micro computers
b) Mainframe computers
c) Mini computers
d) Super computer
a) Micro computers: -
Micro computers are the most common type of computers in existence today, whether at work in
school or on the desk at home. These computers include:
1. Desktop computer
2. Personal digital assistants (more commonly known as PDA's)
3. Palmtop computers
4. Laptop and notebook computers
Micro computers were the smallest, least powerful and least expensive of the computers of the time.
The first Micro computers could only perform one task at a time, while bigger computers ran multi-tasking
operating systems, and served multiple users. Referred to as a personal computer or "desktop computer",
Micro computers are generally meant to service one user (person) at a time. By the late 1990s, all personal
computers run a multi-tasking operating system, but are still intended for a single user.
b) Mainframe Computers :-
The term Mainframe computer was created to distinguish the traditional, large, institutional computer
intended to service multiple users from the smaller, single user machines. These computers are capable of
handling and processing very large amounts of data easily and quickly. A mainframe speed is so fast that it
is measured in millions of tasks per milliseconds (MTM). While other computers became smaller,
Mainframe computers stayed large to maintain the ever growing memory capacity and speed.
Mainframe computers are used in large institutions such as government, banks and large corporations.
These institutions were early adopters of computer use, long before personal computers were available to
individuals. "Mainframe" often refers to computers compatible with the computer architectures established in
the 1960's. Thus, the origin of the architecture also affects the classification, not just processing power.
c) Mini Computers / Workstation :-
Mini computers, or Workstations, were computers that are one step above the micro or personal
computers and a step below mainframe computers. They are intended to serve one user, but contain special
hardware enhancements not found on a personal computer. They run operating systems that are normally
associated with mainframe computers, usually one of the variants of the UNIX operating system.
d) Super Computer:-
A Super computer is a specialized variation of the mainframe. Where a mainframe is intended to
perform many tasks, a Super computer tends to focus on performing a single program of intense numerical
calculations. Weather forecasting systems, Automobile design systems, extreme graphic generator for
example, are usually based on super computers.
These units are interconnected by electrical cables to permit communication between them. A
computer must receive both data and program statements to function properly and be able to solve problems.
The method of feeding data and programs to a computer is accomplished by an input device. Computer
input devices read data from a source, such as magnetic disks, and translate that data into electronic
impulses for transfer into the CPU. Example for input devices are a keyboard, a mouse, or a scanner.
Central Processing Unit The brain of a computer system is the central processing unit (CPU). The
CPU processes data transferred to it from one of the various input devices. It then transfers either an
intermediate or final result of the CPU to one or more output devices. A central control section and
work areas are required to perform calculations or manipulate data. The CPU is the computing center
of the system. It consists of a control section, an arithmetic-logic section, and an internal storage section
(main memory). Each section within the CPU serves a specific function and has a particular relationship
with the other sections within the CPU.
Input Unit: An input device is usually a keyboard or mouse, the input device is the conduit through
which data and instructions enter a computer.
1. The most common input device is the keyboard, which accepts letters, numbers, and commands
from the user.
2. Another important type of input device is the mouse, which lets you select options from on-
screen menus. You use a mouse by moving it across a flat surface and pressing its buttons. A variety
of other input devices work with personal computers, too:
3. The trackball and touchpad are variations of the mouse and enable you to draw or point on the
screen.
The joystick is a swiveling lever mounted on a stationary base that is well suited for playing
video games
Memory unit: memory is used to store programs and data. There are two classes of storage, called
primary and secondary.
Primary storage: It is a fast memory that operates at electronic speeds. Programs must stay in memory
while they are being executed.The memory contains a large number of semiconductor storage cells, each
capable of storing one bit of information. To provide easy access to any word in the memory, a distinct
address is associated with each word location. Addresses are numbers that identify successive locations. A
given word is accessed by specifying its address and issuing a control command.
The number of bits in each word is referred as the word length of the computer. Typical word
lengths range from 16 to 64 bits.
Programs must reside in the memory during execution. Instructions and data can be written into the
memory or read out under the control of the processor.
1. Memory in which any location can be reached in a short and fixed amount of time after
specifying its address is called random access memory (RAM).
2. The time required to access one word is called the memory access time.
3. The small, fast, Ram units are called caches. They are tightly coupled with the processor and
are often contained on the same integrated circuit chip to achieve high performance.
4. The largest and slowest units are referred to as the main memory.
Secondary storage: Secondary storage is used when large amounts of data and many programs have
to be stored, particularly for information that is accessed infrequently.
Examples for secondary storage devices are Magnetic Disks, Tape and Optical disks.
Add R1,R2,R3
In This instruction add is the operation perform on operands R1,R2 and place the result stored in R3.
The top level view of the computer is as follows:
1. Instruction register (IR):
1. The instruction register holds the instruction that is currently being executed.
2. Its output is available to the control circuits, which generate the timing signals that control the various
processing elements involved in executing the instruction.
2. Program counter (PC):
1. The program counter is another specialized register.
2. It keeps track of the execution of a program.
3. It contains the memory address of the next instruction to be fetched and executed.
4. During the execution of an instruction, the contents of the PC are updated to correspond to the
address of the next instruction to be executed
Bus Structures:-
1. BUS:A group of lines(wires) that serves as a connecting path for several devices of a computer is
called a bus.
The following are different types of busses:
1. Address Bus 2. Data Bus 3. Control Bus
The Data bus Carries(transfer) data from one component (source) to other component
(destination) connected to it. The data bus consists of 8, 16, 32 or more parallel signal lines. The data
bus lines are bi-directional. This means that CPU can read data on these lines from memory or from a port, as
well as send data out on these lines to a memory location.
The Address bus is the set of lines that carry(transfer) address information about where in memory
the data is to be transferred to or from. It is an unidirectional bus. The address bus consists of 16, 20, 24 or
more parallel signal lines. On these lines CPU sends out the address of the memory location.
The Control Bus carries the Control and timing information. Including these three the following
are various types of busses. They are
System Bus: A System Bus is usually a combination of address bus, data bus, and control bus
respectively.
Internal Bus: The bus that operates only with the internal circuitary of the CPU.
External Bus: Buses which connects computer to external devices is nothing but external bus.
Back Plane: A Back Plane bus includes a row pf connectors into which system modules can be plugged in.
I/O Bus: The bus used by I/O devices to communicate with the CPU is usually reffered as I/O bus.
Synchronous Bus: While using Synchronous bus, data transmission between source and destination units
takes place in a given timeslot which is already known to these units.
Asynchronous Bus: In this case the data transmission is governed by a special concept. That is handshaking
control signals.
The Bus interconnection Scheme:-
Single bus structure :-
1. A group of lines(wires) that serves as a connecting path for several devices of a computer is called
a bus.
2. In addition to the lines that carry the data, the bus must have lines for address and control
purposes.
3. The simplest way to interconnect functional units is to use a single bus, as shown below.
4. All units are connected to this bus. Because the bus can be used for only one transfer at a time, only
two units can actively use the bus at any given time.
5. Bus control lines are used to arbitrate multiple requests for use of the bus.
ADVANTAGE:
Its is low cost and its flexibility for attaching peripheral devices
DISADVANTAGE:
low performance because at time only one transfer
Traditional / Multiple bus Structure: There is a local bus that connects the processor to cache memory and
that may support one or more local devices. There is also a cache memory controller that connects this cache
not only to this local bus but also to the system bus.
On the system, the bus is attached to the main memory modules. In this way, I/O transfers to and
from the main memory across the system bus do not interfere with the processor’s activity. An expansion bus
interface buffers data transfers between the system bus and the I/O controllers on the expansion bus.
Some typical I/O devices that might be attached to the expansion bus include: Network cards (LAN), SCSI
(Small Computer System Interface), Modem, Serial Com etc..
At the start of execution, all program instructions and the required data are stored in the memory as
shown below. As execution proceeds, instructions are fetched one by one over the bus into the
processor, and a copy is placed in the cache. When the execution of instruction calls for data located in
the main memory, the data are fetched and a copy is placed in the cache. Later, if the same instruction or
data item is needed a second time, it is read directly from the cache.
Computer performance is often described in terms of clock speed (usually in MHz or GHz). This
refers to the cycles per second of the main clock of the CPU. Performance of a computer depends on the
following factors.
a) Processor clock:-
1. Processor circuits are controlled by a timing signal called a clock. A clock is a microchip that
regulates speed and timing of all computer functions.
2. Clock Cycle is the speed of a computer processor, or CPU, which is the amount of time between two
pulses of an oscillator. Generally speaking, the higher number of pulses per second, the faster the
computer processor will be able to process information
3. CPU clock speed, or clock rate, is measured in Hertz — generally in gigahertz, or GHz. A
CPU's clock speed rate is a measure of how many clock cycles a CPU can perform per second
4. To execute a machine instruction, the processor divides the action to be performed into a sequence of
basic steps, such that each step can be completed in one clock cycle.
5. The length P of one clock cycle is an important parameter that affects processor performance.
6. Its inverse is the clock rate, R = 1/P, which is measured in cycles per second.
7. If the clock rate is 500(MHz) million cycles per second, then the corresponding clock period is 2
nanoseconds.
b) Basic performance equation:- The Performance Equation is a term used in computer science. It refers
to the calculation of the performance or speed of a central processing unit (CPU).
Basically the Basic Performance Equation [BPE] is an equation with 3 parameters which are
required for the calculation of "Basic Performance" of a given system. It is given by
T = (N*S)/R
Where 'T' is the processor time [Program Execution Time] required to execute a given program
written in some high level language .The compiler generates a machine language object program
corresponding to the source program.
'N' is the total number of steps required to complete program execution. 'N' is the actual number
of instruction executions, not necessarily equal to the total number of machine language instructions in the
object program. Some instructions are executed more than others (loops) and some are not executed at all
(conditions).
'S' is the average number of basic steps each instruction execution requires, where each basic
step is completed in one clock cycle. We say average as each instruction contains a variable number of steps
depending on the instruction.
'R' is the clock rate [In cycles per second]
1. Discuss the generations of computers based on the development technologies used to fabricate the processors,
memories an I/O units.
2. What are the functional units of a computer system? Explain the way of handling information by each of
them.
3. “System software is responsible for coordination of all activities in a computing system”-Justify this statement
with the functionalities of it.
4. Write a short note on bus structures used in computer system.
5. Explain the importance of instruction set in measuring the performance of a computer system.
6. Discuss various computer types with their applications in real world environment.
7. What is the role of Processor clock, clock rate in the performance of computer system? Explain.
8. Suppose two numbers located in memory are to be added. What are the functional units of digital computer
system will carry out this? Explain how.
9. Define system software.
10. Mention different types of Bus structures.
11. Explain the structure of a computer system.
12. Write about logical structure of a simple personal computer.
13. Explain the organization of a computer system and its input-output processor.
14. Write differences between RISC and CISC.