Introduction To Computer Part 1
Introduction To Computer Part 1
Start binary number with last digit. Therefore the binary equivalent of 217 is
11011001
Number System
Number System
Conversion of Octal number into Decimal equivalent
Let octal number be (235)8
In many newer computers, these devices are built directly into the
motherboard. Some newer microprocessors are large and complex enough to
require their own dedicated circuit boards, which plug into a special slot in the
motherboard. You can think of the motherboard as the master circuit board in
a computer.
4/8/2022 13
The Basic Semiconductor Memory Array
Each storage element in a memory can retain either a I or a 0 and is called a cell.
4/8/2022 14
Memory Address and Capacity
The capacity of a memory is the total number of data units that can be stored.
capacity is 64 bytes
capacity is 64 bits. capacity is 8 bytes
4/8/2022 15
Basic Memory Operations
The write operation puts data into a specified address in the memory, and
the read operation copies data out of a specified address in the memory.
The addressing operation, which is part of both the write and the read
operations, selects the specified memory address.
Data units go into the memory during a write operation and come out of
the memory during a read operation on a set of lines called the data bus
4/8/2022 16
2-dimensional memory
4/8/2022 17
3-dimensional memory
4/8/2022 18
Write operation
4/8/2022 19
Read operation
4/8/2022 20
RAMs and ROMs
Because RAMs lose stored data when the power is turned off, they are
volatile memories.
Because ROMs retain stored data even if power is turned off, they are
nonvolatile memories.
4/8/2022 21
RAMs
RAMs are read/write memories in which data
can be written into or read from any selected
address in any sequence.
4/8/2022 23
RAM Family
4/8/2022 24
Transistor as a Switch
4/8/2022 25
Static RAM Unit cell
4/8/2022 26
Basic Synchronous SRAM with Burst Feature
Activity
4/8/2022 27
Cache Memory
Cache memory is a relatively small, high-speed memory that stores
the most recently used instructions or data from the larger but
slower main memory.
Cache memory is basically a cost -effective method of improving
system performance without making all of the memory faster.
The concept of cache memory is based on the idea that computer
programs tend to get instructions or data from one area of main
memory before moving to another area.
Basically, the cache controller "guesses" which area of the slow
dynamic memory the CPU will need next and moves it to the
cache memory so that it is ready when needed.
If the cache controller guesses right, the data are immediately
available to the microprocessor. (hit)
If the cache controller guesses wrong, the CPU must go to the
main memory and wait much longer for the correct instructions or
data. (miss)
4/8/2022 30
L 1 and L2 Caches
4/8/2022 31
Dynamic RAM (DRAM) Memory Cells
4/8/2022 33
DRAM unit Cells
4/8/2022 34
ROM
A ROM contains permanently or semi
permanently stored data, which can be read from
the memory but either cannot be changed at all
or cannot be changed without specialized
equipment.
A ROM stores data that are used repeatedly in
system
application&, such as tables. conversions, or
programmed instructions for system initialization
and operation.
ROMs retain stored data when the power is off
and are therefore nonvolatile memories.
4/8/2022 35
ROM Family
The mask ROM is the type in which the data are permanently stored in the
memory during the manufacturing process.
The PROM, or programmable ROM, is the type in which the data are electrically
stored by the user with the aid of specialized equipment.
Both the mask ROM and the PROM can be of either MOS or bipolar technology.
The EPROM, or erasable PROM. is strictly a MOS device.
The UV EPROM is electrically programmable by the user, but the stored data must
be erased by exposure to ultraviolet light over a period of several minutes.
The electrically erasable PROM (EEPROM or E 2 PROM) can be erased in a few
milliseconds.
4/8/2022 36
Storage Hard Disc/Disk
A hard disk is also known as a hard drive
or fixed disk. It is said to be rigid
magnetic disc that stores data. It is
located within a drive unit. Hard disk is a
non-volatile storage device that contains
platters (magnetic disks) rotating at high
speeds. Non-volatile means the data
retains when the computer shuts down.
Hard disk was introduced in the year 1956 by IBM. The first personal
computer contains a hard drive of less than 1 megabyte, while
modern computers contain a hard drive of 1 terabyte.
The hard disks are robust and can be used for a long time. But hard
disks can be crashed, and the main reason is head crash. If the hard
drive is crashed, we may lose all our documents, photos, etc., stored
in it.
Hard Disc/Disk
A hard drive has only a few basic parts. There are one or more shiny
silver platters where information is stored magnetically, there's an
arm mechanism that moves a tiny electro magnet called a read-write
head back and forth over the platters to record or store information,
and there's an electronic circuit to control everything and act as a
link between the hard drive and the rest of your computer.
The platters are the most important parts of a hard drive. As the
name suggests, they are disks made from a hard material such as glass,
ceramic, or aluminum, which is coated with a thin layer of metal that
can be magnetized or demagnetized. A small hard drive typically has
only one platter, but each side of it has a magnetic coating. Bigger
drives have a series of platters stacked on a central spindle, with a
small gap in between them. The platters rotate at up to 10,000
revolutions per minute (rpm) so the read-write heads can access any
part of them.
There are two read-write heads for each platter, one to read the top
surface and one to read the bottom, so a hard drive that has five
platters (say) would need ten separate read-write heads. The read-
write heads are mounted on an electrically controlled arm that
moves from the center of the drive to the outer edge and back again.
To reduce wear and tear, they don't actually touch the platter: there's
a layer of fluid or air between the head and the platter surface.
Hard Disc/Disk
1. Actuator that moves the read-write arm. In older
hard drives, the actuators were stepper motors. In
most modern hard drives, voice coils are used
instead. As their name suggests, these are simple
electromagnets, working rather like the moving
coils that make sounds in loudspeakers. They
position the read-write arm more quickly,
precisely, and reliably than stepper motors and
are less sensitive to problems such as
temperature variations.
2. Read-write arm swings read-write head back and
forth across platter.
3. Central spindle allows platter to rotate at high
speed.
4. Magnetic platter stores information in binary form.
5. Plug connections link hard drive to circuit board in
personal computer.
6. Read-write head is a tiny magnet on the end of
the read-write arm.
7. Circuit board on underside controls the flow of
data to and from the platter.
8. Flexible connector carries data from circuit board
to read-write head and platter.
9. Small spindle allows read-write arm to swing
across platter.
Hard Disc/Disk
Reading and Writing Data
The data is stored in a very orderly pattern on each platter. Bits of
data are arranged in concentric, circular paths called tracks.
Each track is broken up into smaller areas called sectors.
Part of the hard drive stores a map of sectors that have already been
used up and others that are still free. (In Windows, this map is called
the File Allocation Table or FAT.)
When the computer wants to store new information, it takes a look
at the map to find some free sectors. Then it instructs the read-write
head to move across the platter to exactly the right location and
store the data there.
To read information, the same process runs in reverse.
There is an interface (a connecting piece of equipment) called a
controller. This is a small circuit that operates the actuators, selects
specific tracks for reading and writing, and converts parallel streams
of data going from the computer into serial streams of data being
written to the disk (and vice versa). Controllers are either built into
the disk drive's own circuit board or part of the computer's main
board (motherboard).
Hard Disc/Disk
Disadvantages of Hard Disk
With so much information stored in such a tiny amount of
space, a hard drive is a remarkable piece of engineering.
That brings benefits (such as being able to store 500 CDs on
your HDD)—but drawbacks too.
One of them is that hard drives can go wrong if they get dirt
or dust inside them.
A tiny piece of dust can make the read-write head bounce up
and down, crashing into the platter and damaging its
magnetic material. This is known as a disk crash (or head
crash) and cause the loss of all the information on a hard
drive.
A disk crash usually occurs without any warning.
That's why you should always keep backup copies of your
important documents and files, either on another hard drive,
on a compact disc (CD) or DVD, or on a flash memory stick.
Flash memory
Flash works using an entirely different kind of transistor that stays switched on
(or switched off) even when the power is turned off.
A normal transistor has three connections (wires that control it) called the
source, drain, and gate. Think of a transistor as a pipe through which electricity
can flow as though it's water. One end of the pipe (where the water flows in) is
called the source—think of that as a tap . The other end of the pipe is called the
drain—where the water drains out and flows away.
In between the source and drain, blocking the pipe, there's a gate. When the gate
is closed, the pipe is shut off, no electricity can flow and the transistor is off.
In this state, the transistor stores a zero. When the gate is opened, electricity
flows, the transistor is on, and it stores a one.
But when the power is turned off, the transistor switches off too. When you
switch the power back on, the transistor is still off, and since you can't know
whether it was on or off before the power was removed, you can see why we
say it "forgets" any information it stores.
A flash transistor is different because it has a second gate above the first one.
When the gate opens, some charge leaks up the first gate and stays there, in
between the first gate and the second one, recording a number one. Even if the
power is turned off, the charge is still there between the two gates.
That's how the transistor stores its information whether the power is on or off.
The information can be erased by making the "trapped charge" drain back down
again.
Flash memory
That's a very glossed over, highly simplified explanation of
something that's extremely complex. If you want more detail, it
helps if you read our article about transistors first, especially the
bit at the bottom about MOSFETs—and then read on.
The transistors in flash memory are like MOSFETs only they have
two gates on top instead of one. This is what a flash transistor
looks like inside.You can see it's an n-p-n sandwich with two
gates on top, one called a control gate and one called a floating
gate. The two gates are separated by oxide layers through which
current cannot normally pass:
In this state, the transistor is switched off—and effectively storing
a zero. How do we switch it on? Both the source and the drain
regions are rich in electrons (because they're made of n-type
silicon), but electrons cannot flow from source to drain because
of the electron deficient, p-type material between them. But if we
apply a positive voltage to the transistor's two contacts, called the
bitline and the wordline, electrons get pulled in a rush from
source to drain. A few also manage to wriggle through the oxide
layer by a process called tunneling and get stuck on the floating
gate.
The presence of electrons on the floating gate is how a flash
transistor stores a one. The electrons will stay there indefinitely,
even when the positive voltages are removed and whether there
is power supplied to the circuit or not. The electrons can be
flushed out by putting a negative voltage on the wordline—which
repels the electrons back the way they came, clearing the floating
gate and making the transistor store a zero again.
SSD
All problems of hard disk such as —weight, power consumption, access
times, and reliability—can be solved by using solid-state drives (SSDs),
which typically use flash memory chips instead of spinning magnetic
platters.
Computer makers have been moving away from hard drives, and toward
SSDs, for at least the last decade, largely driven by the trend away from
desktop computers and toward mobile devices. Apple iPods are a good
example of how times have changed.The original "Classic" iPods,
launched in 2001, are little more than hard drives, sound cards, and
batteries (you can see what an iPod hard drive looks like in the photos
above); the hard drive, in particular, was an obvious excuse for failure if
you took them jogging or tossed them around in your bag. With the iPod
Touch, which launched in 2007, Apple switched decisively to SSD
technology, making music players thinner and lighter in your pocket, less
prone to mechanical failure, and giving far better battery life.You're more
likely to wear out the buttons or crack the screen on a modern iPod or
iPhone than do any damage to the memory chips inside.
No contest? SSDs win hands down? Not so fast! If you're looking to buy
as much storage as you can for as little cash, and you're less fussy about
things like power consumption and speed, traditional hard drives are still
the best value for money. As of 2020, SSDs are still quite a bit more
expensive per gigabyte than traditional hard drives, though there are big
variations in price among the different types of SSDs and the difference
between SSDs and hard drives is closing year by year. Don't expect old-
style hard drives to disappear until that price difference closes
substantially
MICROPROCESSORS
4/8/2022 47
Arithmetic Logic Unit:
The ALU is the key processing element of the microprocessor. It is directed by the control
unit to perform arithmetic operations (addition, subtraction. multiplication, and division)
and logic operations (NOT, AND, OR, and exclusive-OR), as well as many other types of
operations. Data for the ALU are obtained from the register array.
Instruction Decoder:
The instruction decoder takes each binary instruction in the order in which it appears in
memory and decodes it.
Register Array:
The register array is a collection of registers that are contained within the microprocessor.
During the execution of a program, data and memory addresses are temporarily stored in
registers that make up this array.
Some registers are classed as general-purpose, they can be used for any purpose dictated
by the program.
Other registers have specific capabilities and functions and cannot be used as general-
purpose registers.
Control Unit :
The control unit is "in charge" of the processing of instructions once they
are decoded. It provides the timing and control signals for getting data into and out of the
microprocessor and for synchronizing the execution of instructions.
4/8/2022 48
Flow chart
A flowchart is simply a graphical representation of steps. It
shows steps in sequential order and is widely used in presenting
the flow of algorithms, workflow or processes. Typically, a
flowchart shows the steps as boxes of various kinds, and their
order by connecting them with arrows.
What is a Flowchart?
A flowchart is a graphical representations of steps. It was
originated from computer science as a tool for representing
algorithms and programming logic but had extended to use in
all other kinds of processes. Nowadays, flowcharts play an
extremely important role in displaying information and
assisting reasoning. They help us visualize complex processes,
or make explicit the structure of problems and tasks. A
flowchart can also be used to define a process or project to
be implemented.
Flow Chart
Flowchart Symbols
Different flowchart shapes have different conventional meanings. The meanings of
some of the more common shapes are as follows:
Terminator
The terminator symbol represents the starting or ending point of the system.
Process
A diamond represents a decision or branching point. Lines coming out from the
diamond indicates different possible situations, leading to different sub-processes.
Flow Chart
Data
This symbol would contain a letter inside. It indicates that the flow continues on a
matching symbol containing the same letter somewhere else on the same page.
Off-Page Reference
This symbol would contain a letter inside. It indicates that the flow continues on a
matching symbol containing the same letter somewhere else on a different page.
Delay or Bottleneck