Introduction To Computers Lecture Notes1718
Introduction To Computers Lecture Notes1718
The word RAM is often associated with volatile types of memory (such as DRAM
memory modules), where the information is lost after the power is switched off.
Modern types of writable RAM generally store a bit of data in either the state of a
flip-flop, as in SRAM (static RAM), or as a charge in a capacitor (or transistor
gate), as in DRAM (dynamic RAM), EPROM, EEPROM and Flash. Some types
have circuitry to detect and/or correct random faults called memory errors in the
stored data, using parity bits or error correction codes. RAM of the read-only type,
ROM, instead uses a metal mask to permanently enable/disable selected
transistors, instead of storing a charge in them.
As both SRAM and DRAM are volatile, other forms of computer storage, such as
disks and magnetic tapes, have been used as persistent storage in traditional
computers
ROM
Read-only memory (usually known by its acronym, ROM) is a class of storage
media used in computers and other electronic devices. Because data stored in ROM
cannot be modified (at least not very quickly or easily), it is mainly used to
distribute firmware (software that is very closely tied to specific hardware, and
unlikely to require frequent updates).
In its strictest sense, ROM refers only to mask ROM (the oldest type of solid state
ROM), which is fabricated with the desired data permanently stored in it, and thus
can never be modified. However, more modern types such as EPROM and flash
EEPROM can be erased and re-programmed multiple times; they are still described
as "read-only memory"(ROM) because the reprogramming process is generally
infrequent, comparatively slow, and often does not permit random access writes to
individual memory locations. Despite the simplicity of mask ROM, economies of
scale and field-programmability often make reprogrammable technologies more
flexible and inexpensive, so mask ROM is rarely used in new products as of 2007.
Electrically erasable programmable read-only memory (EEPROM) is
based on a similar semiconductor structure to EPROM, but allows its entire
contents (or selected banks) to be electrically erased, then rewritten
electrically, so that they need not be removed from the computer (or camera,
MP3 player, etc.). Writing or flashing an EEPROM is much slower
(milliseconds per bit) than reading from a ROM or writing to a RAM
(nanoseconds in both cases).
o Electrically alterable read-only memory (EAROM) is a type of
EEPROM that can be modified one bit at a time. Writing is a very
slow process and again requires higher voltage (usually around 12 V)
than is used for read access. EAROMs are intended for applications
that require infrequent and only partial rewriting. EAROM may be
used as non-volatile storage for critical system setup information; in
many applications, EAROM has been supplanted by CMOS RAM
supplied by mains power and backed-up with a lithium battery.
o Flash memory (or simply flash) is a modern type of EEPROM
invented in 1984. Flash memory can be erased and rewritten faster
than ordinary EEPROM, and newer designs feature very high
endurance (exceeding 1,000,000 cycles). Modern NAND flash makes
efficient use of silicon chip area, resulting in individual ICs with a
capacity as high as 16 GB as of 2007; this feature, along with its
endurance and physical durability, has allowed NAND flash to replace
magnetic in some applications (such as USB flash drives). Flash
memory is sometimes called flash ROM or flash EEPROM when
used as a replacement for older ROM types, but not in applications
that take advantage of its ability to be modified quickly and
frequently.
4.Buses
As shown in the picture above, the accumolator is used to accumulate
results. It is the place where the answers from many operations are stored
temporarily before being put out to the computer's memory while the other
genral-pupose registers hold data on which operations are to be performed
by the ALU.
Control Unit:
The component of CPU of a computer which organizes the processing of
data or commands is called Control Unit. Control Unit is an internal part of
the CPU which co-ordinates the input and output devices of a computer. The
functions performed by the control unit vary by the internal architecture of
the CPU. However basically its funtion is to directs the entire computer
system to carry out stored program instructions by communicating with
ALU and register. The CU uses instructions contained in Instruction resgiter
in order to decide which circuit needs to be activated. Moreover it also
instruct the ALU to either perform the arithmetic or logical operation.
When a program is run, one register called the program counter keeps track
of which program instruction comes next.
Register:
These are special, high-speed storage area within the Central processing
unit. The data must be represented in a register before it can be processed
e.g. if two numbers are to be multiplied, both numbers must be in registers,
and the result is also placed in a register.
The number of registers that a CPU has and the size of each (number of bits)
help determine the power and speed of a CPU i.e. 32-bit CPU is one in
which each register is 32 bits wide. Therefore, each CPU instruction can
manipulate 32 bits of data.
Buses- internal conectivities
Operation of CPU
Circuits Used
3.In case of a memory instruction (direct or indirect) the execution phase will be in
the next clock pulse.
If the instruction has an indirect address, the effective address is read from main
memory, and any required data is fetched from main memory to be processed and
then placed into data registers(Clock Pulse: T3). If the instruction is direct, nothing
is done at this clock pulse. If this is an I/O instruction or a Register instruction, the
operation is performed (executed) at clock Pulse.
The result generated by the operation is stored in the main memory, or sent to an
output device. Based on the condition of any feedback from the ALU, Program
Counter may be updated to a different address from which the next instruction will
be fetched.
The cycle starts immediately when power is applied to the system using an initial
PC value that is predefined for the system architecture (in Intel IA-32 CPUs, for
instance, the predefined PC value is 0xfffffff0). Typically this address points to
instructions in a read-only memory (ROM) which begins the process of loading the
operating system.
Fetch cycle
Step 1 of the Instruction Cycle is called the Fetch Cycle. These steps are the same
for each instruction. The fetch cycle processes the instruction from the instruction
word which contains an opcode.
Decode
Step 2 of the instruction Cycle is called the decode. The opcode fetched from the
memory is being decoded for the next steps and moved to the appropriate registers.
Step 3 is deciding which operation it is. If this is a Memory operation - in this step
the computer checks if it's a direct or indirect memory operation:
If this is a I/O or Register instruction - the computer checks its kind and executes
the instruction.
Execute cycle
Step 4 of the Instruction Cycle is the Execute Cycle. These steps will change with
each instruction.
Data is transferred between the CPU and the I/O module. Next, arithmetic and
logical operations given in the instructions are executed on the data, as well as
other instructions such as jumping to another location on the program counter.
Input device
A definition of an input device was already included within the von Neumann
architecture in 1945, however conception of an architecture including similar
devices designed for input only appear since 1936. The von Neumann architecture
describes a device designed for inserting user data, which are separated from the
algorithm data and code. These devices included a keyboard or a punched card.
Computer mice were invented by Doug Engelbart in the 1960s.
Keyboards
Computer keyboard
Keyer
Chorded keyboard
LPFK
Pointing devices
Pointing device
A computer mouse
A pointing device is any human interface device that allows a user to input spatial
data to a computer. In the case of mice and touch screens, this is usually achieved
by detecting movement across a physical surface. Analog devices, such as 3D
mice, joysticks, or pointing sticks, function by reporting their angle of deflection.
Movements of the pointing device are echoed on the screen by movements of the
cursor, creating a simple, intuitive way to navigate a computer's GUI.
Some devices allow many continuous degrees of freedom as input. These can be
used as pointing devices, but are generally used in ways that don't involve pointing
to a location in space, such as the control of a camera angle while in 3D
applications. These kinds of devices are typically used in CAVEs, where input that
registers 6DOF is
Composite devices
Video input devices are used to digitize images or video from the outside world
into the computer. The information can be stored in a multitude of formats
depending on the user's requirement.
Webcam
Image scanner
Fingerprint scanner
Barcode reader
3D scanner
Laser rangefinder
Medical Imaging
o Computed tomography
o Magnetic resonance imaging
o Positron emission tomography
o Medical ultrasonography
In the fashion of video devices, audio devices are used to either capture or create
sound. In some cases, an audio output device can be used as an input device, in
order to capture produced sound.
Microphone
MIDI keyboard or other digital musical instrument
Output device
These devices display information that has been held or generated within a
computer.
Impact Printers use a print head containing a number of metal pins which
strike an inked ribbon placed between the print head and the paper.
Some print heads have only 9 pins to make the dots to build up a
character; some have 24 pins which produce a better resolution.
These printers are cheap to run and relatively fast. They are useful for
low quality carbon copy printing.
o Thermal Printer
o Laser Printer
o Ink Jet Printer
Laser Printers use a laser beam and dry powdered ink to produce a fine
dot matrix pattern. This method of printing can generate about 4 pages of
A4 paper per minute.
A laser printer
The standard of print is very good and laser printers can also produce
very good quality printed graphic images too.
An inkjet printer
Inkjet printers use colour cartridges which combine magenta, yellow and cyan
inks to create colour tones. A black cartridge is also used for crisp
monochrome output.
This method of printing can generate up to 200 cps and allows for good
quality, cheap colour printing.
Thermal printer paper tends to darken over time due to exposure to sunlight
and heat. The standard of print produced is poor.
Pen plotters have an ink pen attached to draw the images, and electrostatic
plotters work similarly to a laser printer.
The size of the plot is limited only by the size of the plotter's bed.