Computer HArdware and Software
Computer HArdware and Software
Output
Primary Storage
Secondary Storage
Input
3
A Computer Hardware System
The control unit makes sure that all of those actions are
carried out. It also manages all the other components on
the CPU.
Memory Unit (MU)
• CPU has its own memory to store data. (Cache)
• Like L1, L2, L3 (A shared Memory )
• Instructions are also stored in this memory/CPU registers.
• These are the fastest storage area in a computer.
MU vs Mail Box Example
• The location in memory for each instruction and each piece of
data is identified by an address.
• That is, each location has an address number, like the mailboxes in
front of an apartment house. And, like the mailboxes, the address
numbers of the locations remain the same, but the contents
(instructions and data) of the locations may change. That is, new
instructions or new data may be placed in the locations when the
old contents no longer need to be stored in memory.
MEMORY
• In computing, memory refers to the physical devices used to store
programs (sequences of instructions) or data (e.g. program
state information) on a temporary or permanent basis for use in a
computer or other digital electronic device.
• A typical computer contains numerous types
of memory including
– RAM (Random Access Memory)
– ROM (Read Only Memory)
– Virtual Memory
RAM
• RAM is the most common type of memory found in computers and other devices,
such as printers.
• There are two different types of RAM: DRAM (Dynamic Random Access Memory) and
SRAM (Static Random Access Memory).
• The two types differ in the technology they use to hold data, with DRAM being the
more common type. In terms of speed, SRAM is faster. DRAM needs to be refreshed
thousands of times per second while SRAM does not need to be refreshed, which is
what makes it faster than DRAM. DRAM supports access times of about 60
nanoseconds, SRAM can give access times as low as 10 nanoseconds.
• Despite SRAM being faster, it's not as commonly used as DRAM because it's so much
more expensive.
• Both types of RAM are volatile, meaning that they lose their contents when the
power is turned off.
• In common usage, the term RAM is synonymous with main memory, the memory
available to programs.
ROM
• ROM (read-only memory) refers to special
memory used to store programs that boot the
computer and perform diagnostics. Most
personal computers have a small amount of
ROM (a few thousand bytes). In fact, both
types of memory (ROM and RAM) allow
random access. To be precise, therefore, RAM
should be referred to as read/write RAM and
ROM as read-only RAM.
Read Only Memory (ROM) Types
There are five basic ROM types:
1. ROM - Read Only Memory
2. PROM - Programmable Read Only Memory
3. EPROM - Erasable Programmable Read Only
Memory
4. EEPROM - Electrically Erasable Programmable
Read Only Memory
Each type has unique characteristics, but all
types of ROM memory have two things in
common:
• Current PCs have 32 bit buses and the newer generation are
going to use 64 bit wide buses.
Types of Computer Bus
• Data Bus
– Used to carry data signals
– E.g numbers which we want to add or the string which we want to compare.
– Transfer data from main memory (Ram) to CPU and vice versa or other part
of computer.
• Address Bus
– Used to carry address signals
– E.g address of memory location or a port(interface – where an input or
output device is attached.
• Control Bus
– It used to carry control signals
– E.g read/write , enable / disable etc.