Computer Theory
Computer Theory
Computer Theory
In the early days of development, the 'generation of computers' was intended solely to
illustrate the difference between hardware technologies. However, nowadays the term is the
conclusion of both hardware and software changes involved in the path of computer
development. In particular, the term 'generation' refers to development that changes the way
computers work. Moreover, frequent improvements were made to make computer devices
more compact in size, cheaper in price, more powerful and smarter, etc.
How many generations of computers are there?
First Generation (1942-1954),
Vaccum tube based
First Generation (1946 – 1959)
• This is the earliest generation of computers, known as the first
generation of computers.
• The first generation period is considered from 1946 to 1959.
• During the first generation, computers were developed using
vacuum tubes as the core technology.
• First-generation computers used the machine language, the
lowest-level programming language so that it could be easily
processed and understood by computers.
Disadvantages of the First Generation Computers
• The control unit acts like the supervisor which determines the
sequence in which computer programs and instructions are
executed. It retrieves instructions from memory, decodes the
instructions, interprets the instructions and understands the
sequence of tasks to be performed accordingly. It further
transmits the instructions to the other parts of the computer
system to execute them. In short, the control unit determines
the sequence of operations to execute the given instructions.
Arithmetic & Logical Unit
It performs arithmetic and logical operations.
• The arithmetic unit controls simple operations such as
addition, subtraction, division, and multiplication.
• On the other side, the logical unit controls the logical operations
such as AND, OR, Equal, greater than, and less than, etc.
Apart from it, the logic unit also responsible for performing
several other operations such as comparing, selecting, matching,
and merging data.
RAM
• RAM is an acronym of ‘Random Access Memory’. It
constitutes the internal memory of the CPU (Central Processing
Unit) for storing the given instructions and immediate results.
It is also known as read-write memory.
• RAM is a primary-volatile memory as the data is lost when we
turn off (Switch off or Shut down) the computer or there is a
power failure.
• RAM is small in size and comparatively faster than most of the
available computer memories. But, it is not as fast a registers.
RAM can be further divided into the following two subcategories:
.
a) SRAM
SRAM stands for ‘Static Random Access Memory’. It stores the data in a
static form which means that the data remains in the memory as long as
the computer system is on. SRAM is faster and more expensive than
DRAM. It uses a matrix of six transistors and no capacitors. As the
transistors do not need the power to prevent leakage, hence, there is no
requirement to refresh SRAM again and again.
.
b) DRAM
DRAM stands for ‘Dynamic Random Access Memory'. DRAM is widely
used in computer systems. Previously, there was a single data rate (SDR)
DRAM in computers. At present, computers are using a dual data rate
(DDR) DRAM. DDR is also available in different versions such as DDR2,
DDR3, and DDR4, which are more energy-efficient and are providing
better performance.
.
DRAM is cheap, small and uses less power than other RAMs. DRAM is
made up of a transistor and a capacitor in each cell. Because of a
capacitor, it has a leakage problem. Therefore, DRAM requires constant
refreshing.
ROM
• ROM is an acronym of ‘Read Only Memory’. As the name
suggests, the data cannot normally be written to it. However, the
data can be read from this type of memory.
• ROM is a primary-non-volatile memory which means that it is
capable of retaining the data in the memory even if there is no
power supply.
• ROM is a very fast type of computer memory that stores
instructions required to start the computer as soon as it is
connected to the power source. When a computer is connected to
the power, the CPU starts reading the instructions stored in
ROM.
• It does not require support from drivers or any other complex
software to load the necessary parts of the operating system in
the primary memory.
• After that, the computer system boots up and becomes ready to
be used. The entire operation is referred to as ‘bootstrap’ and the
instructions that ROM contains are called ‘bootstrap code’.
ROM can be further divided into the following subcategories:
a) MROM
MROM stands for ‘Masked Read Only Memory’. MROM is a type
of memory whose contents are pre-programmed with specific
functional data by the integrated circuit manufacturer.
b) PROM
PROM stands for ‘Programmable Read-Only Memory'. As the
name suggests, these types of memory are programmable, which
means that they can be coded or programmed by the manufacture.
PROM can be programmed enters the set of programs or codes
using a PROM programmer. The data or instructions cannot be
changed or erased once they are written.
c) EPROM
EPROM stands for ‘Erasable Programmable Read-Only
Memory’. It is an upgraded version of PROM. Unlike PROM,
EPROM allows users to erase the stored data as well as rewrite the
data. The data stored in EPROM can be erased by passing
ultraviolet light for a particular length of time using an EPROM
eraser.
.
d) EEPROM
EEPROM stands for ‘Electrically Erasable Programmable Read-
Only Memory’. As the name suggests, this type of memory is
programmed and erased electrically. Both programming and
erasing of data takes around 4 to 10 milliseconds. EEPROM can be
erased and reprogrammed for around ten thousand times.
EEPROM can be erased 1 byte at a time, rather than erasing the
entire memory at once. Therefore, the entire process is flexible but
slow.
Note: RAM and ROM are known as the Primary Memory or Main
Memory.
Cache Memory
• Cache memory is a very high-speed semiconductor memory that
is used to store instances of programs and data frequently
accessed by the CPU.
• It provides faster data storage and access to the CPU. Therefore,
when the CPU requests the data and programs, they are quickly
transferred from cache memory, so the CPU can access them
instantly.
• CPU does not require accessing the primary memory or the hard
disk to fetch the data.
•
• Cache memory generally lies in between CPU and the primary
memory (RAM) and it acts as a buffer between CPU and RAM.
Cache memory is costlier than the primary memory; however, it
saves time and increases efficiency.
•
There are following types of Cache memory:
Level 1 or Register Cache
In multicore CPU systems, each core may have separate L1 and L2, but all cores
Virtual Memory
.
The following are the available external memories used in the computer
system:
Magnetic Storage Devices