Fundamentals Lecture 1
Fundamentals Lecture 1
Definition of Computer
Computer: The word computer is taken from the Latin word “compute” which means “calculate”.
According to the Oxford English Dictionary, the word "computer" was first used to describe a mechanical calculating
device in 1897. A computer is an electronic and programmable device used to solve a lot of problems in our daily life. It
is used to store and process data to make decision.
Generation of Computer
Historical Evolution of Computers
Father of modern computers - Charles Babbage (British mathematician)
Invented computers (mechanical): Analytical Engine, Difference Engine.
Generation of Computer:
The gradual development of present computers over past computers is divided into different time periods. Each time
period is considered as a generation of computer.
The parameters which are used to measure the development of present computers over past computers are:
Space: Space must be minimized. Speed: Speed must be maximized.
Capacity: Capacity must be maximized. Cost: Cost must be minimized.
Classification of Computers
Computers are classified according to the following criteria:
Criteria-I: According to purpose it is used
1. Special Purpose Computers: Special purpose computers are single purpose computers.These computers are
dedicatedly used to serve only that purpose.Example- speedometer, thermometer, sphygmomanometer, barometer etc.
2. General Purpose Computers: General purpose computers are multi-purpose computers. These computers are
versatilly used to serve more than one purposes. Example- Desktop, laptop, palmtop etc.
Mainframe
Terminal-1 Terminal-3
Terminal-4
(ii) Super-computers: Super-computers are largest in size and highest in processing power than all other type of
computers. These computers are not frequently used in our daily life. These can be used in satellite, weather
forecasting, weapon testing, battle field, game playing and so on.
Computer Hardware
Computer Hardware: Computer hardware are some physical components or rigid objects of a computer system.
Example: Keyboard, Mouse, Monitor, Hard Disk etc.
A Computer system is divided into three main categories of hardware units. Those are below:
Input-Output units: Input devices (keyboard, mouse etc.) and output devices such as monitor, printer etc.
Memory units: Primary memory such as RAM, ROM and secondary memory such as HD, CD, DVD etc
.
Processing unit: Central Processing Unit (CPU) or microprocessor.
Computer System
A system is an orderly group of interrelated and interdependent components or units work together to perform some
predefined tasks. Example: Solar system, Digestive system , Computer system etc.
CPU (Processor)
P, D Inf
P, D
Input Unit (Keyboard) Primary Memory (RAM) Inf
Output Unit (Monitor)
Ins, D
Inf
CPU (Processor)
Discussion:
To execute a program, the program along with its data must be loaded into primary memory RAM either
directly from an input unit or from a secondary memory. CPU then takes one instruction and its corresponding
data from RAM. Using that instruction the data is processed and information is generated. The generated
information is then stored back to RAM. Finally, the information is sent to the output unit and/or saved in
secondary memory for future use.
Registers
Register-1
Register-2
:
:
Registers-N
Computer Memory
What is a Computer Memory?
Answer: A computer memory is nothing but a power or capability to store data and then reproduce or delivery or
retrieve the stored data when necessary.
Example: Hard disk, RAM, ROM, CD, DVD, Pen drive etc.
Classification of Computer Memory
Computer memories can be classified according to following criteria:
Classification-1: According to Distance from a CPU:
Computer Memory
Answer: RAM is a very much essential memory. During the execution of a program, there is a close interaction in
between RAM and processor. In the execution of program, processor takes data and instruction from RAM. After
processing, RAM stores information. For this important role, RAM is called a main memory.
Computer Memory
Ex. RAM Ex. ROM, HD, CD, DVD, Pen drive etc.
DVD
CD
RAM ROM Magnetic Tape Magnetic Disk
Hard Disk
DRAM SRAM
RDRAM SDRAM
RAM - Random Access Memory
SRAM - Static Random Access Memory
DRAM - Dynamic Random Access Memory
RDRAM - Rambus Dynamic Random Access Memory
SDRAM - Sequential Dynamic Random Access Memory
CD - Compact Disk
DVD - Digital Versatile Disk
Question: Draw the internal organization of a 64x4 RAM and discuss data read write operation in it.
Answer:
Rom architecture: picture
Write Operation: To write any data in a location of memory, at first the input buffer is enabled (E) by CS=1 and R/W=0.
Then, the address of the specified location is determined by decoding the address lines (A0 to A5). Finally, a group of 4
bits data is sent through input data lines (I0 to I3) and written in the specified memory location via input buffer.
Read Operation: To read any data in a location of memory, at first the output buffer is enabled (E) by CS=1 and R/W=1.
Then, the address of the specified location is determined by decoding the address lines (A0 to A5). Finally, a group of 4
bits data is sent from the specified memory location to the output data lines (O0 to O3) via output buffer.
Memory Access Time: Unlike a Sequential Access Memory (SAM, such as HD, CD, DVD etc.), memory access time (data
read/write operation time, generally a read operation) in a RAM is not location dependent. That is, equal for all location.
Memory Cell => Flip-Flop (FF) => store 1 bit data (for SRAM)
Memory Cell => Charged Capacitor => store 1 bit data (for DRAM)
Memory Word => Register => group of FFs or Charged Capacitor …….. (may be 4, 8, 16, 32, or 64 bits long)
Flip Flop (FFs) : Cross Coupled NAND gate or NOR gate.
SRAM DRAM
BIOS: The full meaning of BIOS is Basic Input Output System. A BIOS is a MROM. The instructions of a BIOS are executed
by the processor and a POST (Power On Self Test) procedure is taken place for checking whether the input-output
devices are in working order or not.
Types of ROM
MROM: This ROM maintains the characteristics of ROM. It is non- programmable (non-writeable) ROM.
PROM: It is a one-time writeable (Programmable) but many-times readable ROM.
EPROM: It is a many-times writeable (Programmable) and many-times readable ROM. The programming is done using
UV light.
EEPROM: It is a many-times writeable (Programmable) and many-times readable ROM. The programming is done using
electricity.
Cache Memory
Question: What is a cache memory? Why is it important in a computer system?
Answer:
Definition of cache memory
A cache memory is a physical memory like RAM. It is smaller in capacity but faster in operation than RAM. It is
positioned in between processor and RAM.
There are two types of cache memory, such as L1 type cache memory and L2 type cache memory. L1 type cache
memory is built-in into the processor and L2 type cache memory is built-in outside the processor but inside the
motherboard.
Importance of cache memory in a computer system
There is an unbelievable speed mismatch in between the operation of a processor and RAM. Processor is the fastest unit
in a computer system, but RAM is not as fast as processor. So, there is always a speed mismatch problem in between
them when they work together. To overcome this speed mismatch problem, a faster memory is used in between
processor and RAM. This faster memory is called cache memory.
Program=8GB
Page-1
Swap in
RAM=5GB
Page-2
Frame-1 Page-3
Frame-2 Page-4
Frame-3 Page-5
Frame-4 Page-6
Frame-5 Swap out
Page-7
Page-8
Figure: Block diagram of implementation of virtual memory technique.
Question: Draw the internal organization of a hard disk drive and discuss data
read-write operation in it.
Answer:
Read-Write Head Spindle/Shaft
Disk/Plate/Platter Sector
Read-Write
Access Arm
Track
Question: Draw the internal organization of a compact disk (CD) and discuss
how data is read from it.
Answer:
Figure: Tracks of CD
Discussion:
To read any data a beam of laser light is thrown from a laser source. The laser beam is passed through a prism to guide it
on right track. When the beam is fallen on the surface of the CD it can either reflect or scattered into different angles. If
the fallen place is concave (meaning a land), then the beam is reflected straight back to the prism. The direction of the
reflected beam is navigated through the prism and sent to a sensor. The sensor then sense the intensity of light and
make decision it as a land (high) and a voltage for logic 1 is sent to the data bus.
For a pit, the fallen laser beam is scattered into different angles and there is no reflected light to the prism. So, the
sensor does not sense any reflected light, it means the absence of a land bit. That is, a pit (low) is read and a voltage for
logic 0 is sent to the data bus.
Sheet Image
(hardcopy) (softcopy)
OMR: An OMR is an input device used to read (scan) a sheet of ink marks using optic or light. The marks can either be
circular, rectangular, or other shapes. After reading the marks the raw data are sent to computer for further processing.
OMR Computer
OCR: An OCR is an input device used to read (scan) a sheet of characters using optic or light. After reading the
characters the raw data are sent to computer for further processing.
Barcode Reader: A barcode reader is an input device used to read the barcode of products. After reading the barcode
the reader interprets the meaning of the barcode. Finally, the interpreted meaning is sent to the computer for further
processing.
Types of Monitor:
Monitors are following types:
1. CRT (Cathode Ray Tube) monitor.
2. Flat Panel monitor:
a. LCD (Liquid Crystal Display) monitor.
b. LED (Light Emitting Diode) monitor.
Question: Mention a comparative study among CRT, LCD and LED monitors.
Answer:
CRT Monitor
Answer:
Maruful Islam
Screen
Discussion: The display mechanism of a CRT monitor is very much like a home TV. There is an electron gun made of
filament (coil) and cathode at the end of long glass tube. A very high voltage of electricity is passed through the filament
and the electrons of cathode are boiled off. Then the boiled electrons are emitted. A continuous flow of emitted
electrons make an electron beam and passed toward the screen. The glass screen is inside coated with phosphor. For a
monochrome (Black/White) monitor only white color phosphor is used where as a color monitor three different colors
(Red, Green, Blue) of phosphors are used. In a monochrome monitor only a single electron gun is used but for a color
monitor three electron guns are used for three colors of phosphors. When the electron beam strikes on the phosphor
then an illumination of light is taken place for a fraction of time. To sustain the display of an object (picture) on the
monitor the electron beam strikes on the same position phosphor again and again (45 to 72 or more times per second).
For a color monitor the intensity of electron beams of three electron guns are different. As a result, a combination of
the illumination of three different color of phosphors make a final color of a pixel. When the intensity of all the three
electron beams are highest then a white color is produced for a pixel. But for no electron beams (zero intensity) a black
color is produced. To display a complete object, the electron beams scan the monitor left to right and top to bottom.
Color monitor :
1. Beam Penetration method [ 1 electron gun, 3 phosphors (R,G,B) are overlapped fashion ]
2. Shadow Masking method [ 3 electron guns, 3 phosphors (R,G,B) are triangular form.
Specification of a Monitor:
1. Size 3. Refresh Rate
2. Resolution 4. Dot Pitch.
Size: Diagonal distance of a monitor. May be 15, 17, 21, or more inch.
Resolution: The number of pixels scattered on monitor at a particular moment. It is considered in row by column (mxn)
that is matrix form . It is changeable.
Example: 600X480, 800X600, 1024X768 etc.
There is an inversely proportional relationship between the resolution and size of pictures.
Refresh Rate: The number of times the electron beam scans (strikes on pixels) the entire monitor per second is
called refresh rate. It is measured in hertz (cycle/sec.) and it has a range 45 Hz to 72 Hz. A 60 Hz refresh rate is
standard. A lower refresh rate makes picture flickering and higher makes harm for phosphor coating.
Dot Pitch: Dot pitch is the distance of the three color (R,G,B) phosphors. It has a standard measurement and it is
0.28mm.
Flat Panel Monitor
LCD Monitor
A LCD monitor is made by liquid crystal which is transparent in normal condition but it becomes opaque when
charged with electricity. There are two types of LCD monitors such as (a) passive matrix LCD monitor (b) active
matrix LCD monitor.
Passive Matrix LCD Monitor: A passive matrix LCD monitor is made by an array of transistors which are
arranged in a row and in a column. The intersection of a row and a column makes a pixel. To emit any pixel ,
current is passed through the top of the column and right of the row of the associated pixel.
Advantage :
• Low cost.
Disadvantages:
• Viewing angle problem.
• Submarining problem.
• Low contrast problem.
Dual Scan Passive Matrix LCD:
The submarining problem is overcome by scanning the monitor two times than normal scanning.
Active Matrix LCD Monitor
The viewing angle problem is overcome by a matrix of pixels. Here each pixel is represented by a transistor. Some active
LCD monitor has four transistors (thin film transistors) to represent each pixel.
Advantages:
• No viewing angle problem. • No low contrast problem.
Disadvantage:
• Costly.
Maruful Islam