1.introduction
1.introduction
The hardware components of a computer can be divided into the following units:
1. Input unit
3. Memory unit
4. Output unit
Input unit:
The data and instructions entered by an input unit are stored in memory before they
are sent to the CPU.
Examples: of input devices are keyboard, mouse, joystick, lightpen, scanners etc.
Examples of Micro Processors are Intel Pentium, dual core, core i3, core i5, core
2duo
(a) Control Unit:
logic operations such as AND, OR, NOT. The logic operations are useful in
conditional branching.
Memory Unit:
The presence of voltage at a particular location in the memory is splitted as ‘1’ and
the absence of voltage at a particular location in the memory is splitted as ‘0’.
The memory unit stores the data and instructions in the form 0’s and 1’s (binary
form).
These are used to store the intermediate results produced by ALU and also
used to find the next instruction to be executed by the CPU.
Register s are the costliest and fastest memory available in the market.
The cache memory which is placed within the micro processor is called
internal cache.
The cache memory which is placed outside the micro processor is called
external cache. The external cache is generally placed between processor and
main memory.
External cache
Cache memory is cheaper than register memory and costlier than the other
types of memory in the computer.
Cache memory is slower than the Register memory but faster than the other
types of memory in the computer.
The main memory is volatile (temporary) in nature i.e., the data and
instructions stored on main memory will be lost, whenever the computer is
turned off or shutdown.
Main memory is cheaper than the Register memory and cache memory but
costlier than the other types of memory in the computer.
Main memory is slower than the Register memory and cache memory but
faster than the other types of memory in the computer.
Read Only Memory(ROM) is also treated as main memory but its nature is
not volatile.
The main purpose of ROM is to store the minimum set of programs required
to boot up the computer.
Output Unit:
Output units are used to display the results produced by the computer.
Soft copy output devices are just used to display the results only i.e., the
output produced on soft copy output devices cannot be carried from one place
to another place.
Hard copy output devices will produce the output on a hard copy such as paper
which can be carried one place to another place.
Examples of hard copy output devices are printers and plotters etc.
Hardware:
Software:
Program:
A program is nothing but a set of instructions that are used to solve a problem.
Programming language:
Machine language:
Machine language programs are written using a stream of 0’s and 1’s.
The job of programmer is very difficult. Since the programmer need to remember
many codes for writing a program.
The machine language instructions are executed faster than the instructions written in
other languages.
The instructions written in assembly language are not directly understandable to the
computer. Therefore, a translator is used to convert the assembly language
instructions into machine language instructions. This translator is called “Assembler”
Every single assembly language instruction is converted into one machine language
instruction.
A program written in high level language is very close to the language used by the
programmer. Therefore, writing a high level program is very easy compared to
machine and assembly language programs.
The readability of high level programs is more compared to the machine and
assembly language programs.
The programs written in high level language are not directly understandable to the
computers. So, a translator is used to convert the high level language into machine
language.This translator is called “compiler”.
Types of software:
Programming software:
System software:
Application software: