CO101 Reviewer
CO101 Reviewer
ORGANIZATION
4 main functions of a computer:
Computer Organization and Architecture offers in-intensity
information of internal working, structuring, and operation Data processing
of a computer system. Data storage
Data movement
Control
COMPUTER ARCHITECTURE When data are received from or delivered to a device that is
directly linked to the computer, the technique is called
Computer Architecture refers to the attributes of a system input-output (I/O), and the device is called a peripheral.
seen to a programmer, or placed every other way, the When data are moved over longer distances, to or from a
attributes which have an immediate effect on the logical remote device, the technique is called data
execution of a program. communications.
Computer Architecture is a useful description of Within the computer system, a control unit manages the
requirements and design implementation for several parts computer sources and organizes the overall performance of
of the computer. its functional components in response to the instructions.
Architecture defines what the computer does.
STRUCTURE
COMPUTER ORGANIZATION Computer Structure:
Computer Organization talks about the functional units and Central Processing Unit (CPU): Controls the
interconnection that understand the architecture operation of the computer and executes its data
specification. processing functions. Often called the processor.
Computer Organization is how operational attributes are Main Memory: Stores data.
linked together and contribute to realize the architectural Input/output (I/O): Moves data among the
specification. computer and its external environment.
System Interconnection: Some mechanism that
Computer Organization deals with the structural delivers for communication amongst CPU, main
relationship. memory, and I/O.
Organization defines how the computer does. CPU Structure :
The ENIAC was decimal rather than a binary machine. In the fifth generation, VLSI technology was converted to
Ultra Large Scale Integration (ULSI) technology.
The ENIAC was completed in 1946.
This generation is primarily based on parallel processing
hardware and AI (Artificial Intelligence) software.
In this generation far-off processing, time-sharing, An application is any program, or group of programs, that is
multiprogramming working device have been used. designed for the end user.
Some computers of this generation were: Applications software is capable of dealing with user inputs
and helps the user to complete the task. It is also called
IBM-360 series end-user programs or only an app.
Honeywell-6000 series
PDP (Personal Data Processor) IBM-370/168 Types of Application Software:
TDC-316 Presentation Software – a program to show informations in
Fourth Generation (1971-1980) the form of slides. We can create slideshows with text,
graphics, and multimedia elements (e.g., Microsoft
Very Large Scale Integrated (VLSI) circuits was used of this PowerPoint).
era.
Spreadsheet Software – organizes data in rows and
Fourth generation computer systems have become further columns for calculations (e.g., Microsoft Excel).
powerful, compact, reliable, and affordable. As a result, it
gave rise to Personal Computer (PC) revolution. Database Software – collection of data related to any
applications (e.g., MySQL, Microsoft Access).
In this era, time-sharing, actual time networks, distributed
operating system had been used. Multimedia Software – combination of text, graphics,
audio, and multimedia software to edit video, audio, and
All the high-level languages like C, C++, DBASE, etc., had text for various purposes.
been used on this era.
Entertainment – deals with the general public, media, and
Some computers of this generation were: telecommunication. It includes music, video, navigation,
social networking, news, and educational apps.
DEC 10
STAR 1000 Simulation Software – imitation of real-world environments
PDP 11 for education, testing, training, and scientific modeling.
CRAY-1(Super Computer)
Word Processing Software - manipulates and formats text, Systems software can be categorized under the following:
creates documents, and checks grammar and spelling (e.g.,
Microsoft Word). Operating system: Harnesses communication
between hardware, system programs, and other
applications.
Device driver: Enables device communication with
Level 5: High-Level Language Level the OS and other programs.
The High-Level Language Level, consists of languages such Firmware: Enables device control and
as C, C++, FORTRAN, Lisp, Pascal, and Prolog. identification.
Translator: Translates high-level languages to low-
These languages must be translated (using either a level machine codes.
compiler or an interpreter) to a language the machine can Utility: Ensures optimum functionality of devices
understand. and applications.
Compiled languages are translated into assembly language Operating System (OS)
and then assembled into machine code.
It is installed first on a computer to allow devices and
The program of high-level language must be interpreted applications to be identified and therefore functional.
before the execution.
Types of Operating Systems
The compiler compiles a set of machine language
instructions for every program in a high-level language. Real-Time OS: installed in special purpose
embedded systems like robots, cars, and modems.
The linker is used for the large programs in which we can Single-user and single-task OS: installed on single-
create some modules for the different task. user devices like phones.
Single-user and multitask OS: installed on
Interpreter immediately executes the resulting machine contemporary personal computers.
language instruction. It takes one statement of the high- Multi-user OS: installed in network environments
level language program and translates it into machine level where many users have to share resources. Server
language instruction. OSs are examples of multi-user operating systems.
The compiler translates the entire source program into an Network OS: used to share resources such as files,
object program, but the interpreter translates line by line. printers in a network setup.
Internet/Web OS: designed to run on the browser
Level 4: Assembly Language Level that is online.
Mobile OS: designed to run on mobile phones,
In Assembly Language Level, all the high-level languages tablets and other mobile devices.
are changed into assembly language, since the machine
understands only the assembly language. The execution Device Drivers make it possible for all connected
time of assembly language is very low. components and external add-ons to perform their
intended tasks and as directed by the OS.
Assembler
Firmware is the operational software embedded within a
The assembler is simple, and can only convert the code into flash, ROM, or EPROM memory chip for the OS to identify
low-level language. The assembling program performs by it.
using a simple one-to-one mapping from the process of
assembly code to machine code. Programming Language Translators are intermediate
programs relied on by software programmers to translate
The assembly language is also known as a symbolic high-level language source code to machine language code.
language. Popular translator languages are compilers, assemblers, and
The assembly language is machine-dependent, and the interpreters.
high-level language is machine-independent. Utilities are types of system software which sits between
The computer is not able to understand the instruction in system and application software. These are programs
assembly language, but the machine code is intended for diagnostic and maintenance tasks for the
understandable to the computer. computer.
Level 3: System Software Level The Instruction Set Architecture (ISA), or Machine Level,
consists of the machine language recognized by the
System software mainly helps in operating the process and particular architecture of the computer system. Programs
it establishes the connection between hardware and user written in machine language can be executed directly by
interface. It may consist operating system, library code, etc. the electronic circuits without any interpreters, translators,
or compilers.
Deals with operating system instructions.
Instruction Set Architecture (ISA) specifies the instructions Some of the basic components of an electronic circuit:
that a microprocessor can execute.
Diodes are used to allow the flow of current in a particular
The instruction set architecture specifies: direction only. Diodes are made up of semiconductor
materials.
Memory organization – the total addressable
memory locations, the size of each address Transistor is basically a semiconductor device that has three
Data types terminals. It can be used as an amplifier or a switching
General purpose registers device.
Addressing modes
Instruction set (machine language) – size of Resistor is a passive component that is used to oppose the
instructions (length), instruction formats flow of current in a circuit. Resistors follow Ohm’s law.
etc. Two types of resistors:
I/O
Fixed resistors are unable to alter the value of
Sometimes referred to as machine code or object code, resistance.
machine language is a collection of binary digits or bits that Variable resistors can change the value of
the computer reads and interprets. Machine language is resistance as per requirement.
the only language a computer is capable of understanding.
Capacitor is consists of two conducting plates between
which there is an insulator. Capacitors are mainly used to
Level 1: Control Level store electrical energy in an electric field.
The Control Level, is where a control unit makes sure that Inductors are used to store electric energy in a magnetic
instructions are decoded and executed properly and that field. It is also used to resist changes in current.
data is moved where and when it should be. Battery is another important component of an electronic
Control units can be designed in one of two ways: They can circuit which is used as a source of power. A battery
be hardwired or they can be microprogrammed. converts chemical energy into electrical energy.
The other option for control is to implement instructions Logic Gates are the most basic components of a digital
using a microprogram. A microprogram is a program circuit. They have two or more inputs and they produce one
written in a low-level language that is implemented directly output.
by the hardware. Logic gates are basically of three types:
The Digital circuit is one such circuit where the signal exists Two Types of Digital Circuits:
in one of the two states which are 0 and 1. Combinational Logic Circuit is made up of logic gates whose
Some of the important components of a digital circuit output is determined by the present input only. The output
include registers, transistors, battery and many more. does not depend on the previous outputs of the circuit.
Digital Circuit Basics Sequential Logic Circuit is one such circuit in which the
output of the circuit not only depends on the present input
A digital circuit comprises various components each of but it also depends on the past outputs.
which is used to perform a specific task.
Store the specified value into the memory cell I/O Controllers
specified by address.
Speed of I/O devices is slow compared to RAM
Destructive, overwrites the previous value of the
RAM ~ 50 nsec.
memory cell.
Hard-Drive ~ 10msec. = (10,000,000 nsec)
The memory system is interfaced via:
Structure of the I/O Subsystem:
Memory Address Register (MAR)
1. Key is pressed on the keyboard.
Memory Data Register (MDR)
2. Keyboard Controller – sends the scan code for the
Fetch/Store signal
key to the keyboard buffer.
Memory Unit is a collection of storage cells together with 3. Keyboard Buffer – the keyboard controller sends
associated circuits needed to transfer information in and an interrupt request to system software.
out of the storage. 4. System Software – the system software responds
to the interrupt by reading the scan code from the
The memory stores binary information in groups of bits keyboard buffer.
called words. 5. The system software passes the scan code to the
The internal structure of a memory unit is specified by the CPU.
number of words it contains and the number of bits in Buses
each word.
Data is transmitted from one part of a computer to another,
Two major types of memories are used in computer connecting all major internal components to the CPU and
systems: memory, by the means of Buses.
RAM (Random Access Memory) The Registers, ALU and the interconnecting BUS are
ROM (Read-Only Memory) collectively referred as data path.
4. Input/output (I/O) Devices Types of Bus:
The method that is used to transfer information between Data Bus carries data among the memory unit, the
internal storage and external I/O devices is known as I/O I/O devices, and the processor.
interface. Address Bus carries the address of data (not the
There exists special hardware components between CPU actual data) between memory and processor.
and peripherals to supervise and synchronize all the input Control Bus carries control commands from the
and output transfers that are called interface units. CPU (and status signals from other devices) in
order to control and coordinate all the activities Arithmetic Section: Function of arithmetic section
within the computer. is to perform arithmetic operations like addition,
subtraction, multiplication, and division.
Logic Section: Function of logic section is to
MODULE 4 – CPU BASICS AND ORGANIZATIONS perform logic operations such as comparing,
selecting, matching, and merging of data.
The CPU in current computers is the embodiment of the
“mill” in Babbage’s difference engine. Memory or Storage Unit
CPU or basically a processor is the most important part of This unit can store instructions, data, and intermediate
the computer system. CPU is frequently called as the brain results. This unit supplies information to other units of the
of the computer. computer when needed. It is also known as internal storage
unit or the main memory or the primary storage or
The number of instruction carried by the computer in one Random Access Memory (RAM).
second is used to calculate the speed of that computer. That
speed of the computer is calculated in Hertz. Primary memory and secondary memory are two types of
memories in the computer.
Kilohertz (kHz) = 1,000 Hertz (Hz)
Elements of CPU:
Megahertz (MHz) = 1,000,000 Hertz (Hz)
Register
Gigahertz (GHz) = 1,000,000,000 Hertz (Hz) L1 cache memory
L2 cache memory
Terahertz (THz) = 1,000,000,000,000 Hertz (Hz)
Register is a very small place which is used to hold data of
How the CPU works? the processor. A register is used to store data such as
1. Whenever a data or some instruction or program is instruction, storage address and any kind of data like bit
requested by the user, the CPU draws it from the sequence or any characters etc. The register is the fastest of
RAM (Random Access Memory) and might some all the memory devices.
other hardware for the purpose. program counter (PC) – stores address of the -> next <-
2. The CPU reads the information linked with the task instruction in RAM.
given to it.
3. The CPU starts its calculation and transporting the memory address register (MAR) – stores the address of the
data. current instruction being executed.
4. Before the information is further performed, it has
to travel through the System BUS. memory data register (MDR)– stores the data that is to be
5. The responsibility of the CPU is to make sure that sent to or fetched from memory. 4. CIR – current instruction
the data is processed and is on the system bus. register – stores actual instruction that is being decoded
and executed.
Parts of CPU:
Accumulator (ACC) – stores result of calculations.
Control Unit
Logic Unit L1 AND L2 CACHE MEMORY
Memory or Storage Unit Cache Memory is a kind of memory which is placed in the
Control Unit is used to manage the operation of the CPU. It processor’s chip or may be placed separately linked by a
is responsible for controlling the transfer of data and bus. The use of Cache Memory is to store program
instructions among other units of a computer. Without the commands which are again and again used by software for
control unit, the respective components will not be able to an operation.
execute the program as they don’t know what to do and Levels Of Cache Memory:
when to do.
L1 cache is extraordinary fast but it is very small. It
In the Hardwired control unit, the control signals that are is mainly placed on the CPU chip.
important for instruction execution control are generated L2 cache has more data holding capacity than L1
by specially designed hardware logical circuits, in which we cache. It is situated in CPU chip or in the separate
can not modify the signal generation method without chip but connected to CPU with the high-speed
physical change of the circuit structure. alternative data bus.
In microprogrammed control units, subsequent instruction BUSES
words are fetched into the instruction register in a normal
way. address bus carries the address of the instruction
or data.
Arithmetic Logic Unit (ALU) data bus carries data between processor and the
The function of the ALU is to execute integer calculation memory.
and bitwise logic operations. control bus sends control signals such as: memory
read, memory write.
4 Main Primary Functions of the CPU
TYPES OF CPU
The AMD Opteron series and Intel Itanium and Xeon series
are CPUs used in servers and high-end workstation
computers.