Introduction To Computer Organization: 2.1 Functional Units
Introduction To Computer Organization: 2.1 Functional Units
Memory
o The Main Memory – Primary Storage or RAM – Random Access Memory
Holds data or a piece of a program code (instructions)
Consists of a large number of cells, each individually addressable.
Cell is called “byte” and consists of 8 bits (binary elements holding 0 or
1)
Usually a word consists of 4 bytes.
In most cases – volatile memory
o The Multilevel Cache - An intermediate stage between ultra-fast registers (inside
CPU) and much slower main memory.
Most actively used information in the main memory is duplicated in the
cache, which is faster, but of much lesser capacity.
23
2.2.System Buses
2.2.1 Memory Bus
The memory bus is the set of wires that is used to carry memory addresses and data to and from the
system RAM. The memory bus in most PCs is also shared with the processor bus, connecting the
system memory to the processor and the system chipset. The memory bus is part of the PC's hierarchy
of buses, which are high-speed communications channels used within the computer to transfer
information between its components.
Isolated I/O
o Separate I/O read/write control lines in addition to memory read/write control lines
o Separate (isolated) memory and I/O address spaces
o Distinct input and output instructions
Memory-mapped I/O
o A single set of read/write control lines (no distinction between memory and I/O
transfer)
o Memory and I/O addresses share the common address space which reduces memory
address range available
o No specific input or output instruction, as a result the same memory reference
instructions can be used for I/O transfers
o Considerable flexibility in handling I/O operations
24
2.3 Memory Subsystem Organization
Memory Hierarchy is to obtain the highest possible access speed while minimizing the total cost of the
memory system.
25
2.3.2. Memory Location: Address Map
Address space assignment to each memory chip. Example: 512 bytes RAM and 512 bytes ROM.
Main Memory
o Consists of RAM and ROM chips
o Holds instructions and data for the programs in execution
o Volatile
o Fast access
o Small storage capacity
9-bit address AD
26
Auxiliary Memory
o Information organized on magnetic tapes
o Auxiliary memory holds programs and data for future use
o Non-volatile – data remains even when the memory device is taken off-power
o Slower access rates
o Greater storage capacity
Associative Memory
o Accessed by the content of the data rather than by an address
o Also called Content Addressable Memory (CAM)
o Used in very high speed searching applications
o Much faster than RAM in virtually all search applications
o Higher costs
Argument register(A)
Match Register
Cache Memory
o Cache is a fast small capacity memory that should hold those information which are
most likely to be accessed
o The property of Locality of Reference makes the Cache memory systems work
27
o Locality of Reference - The references to memory at any given time interval tend to be
confined within a localized areas. This area contains a set of information and the
membership changes gradually as time goes by.
Temporal Locality - The information which will be used in near future is likely
to be in use already
Spatial Locality - If a word is accessed, adjacent(near) words are likely accessed
soon
User Processes
Directory Management
File System
Logical I/O Communication
Architecture
Physical Organization
Device I/O
Hardware
28
Data Transfer Rate
o Peripherals - Usually slower
o CPU or Memory - Usually faster than peripherals; Some Synchronization
mechanism may be needed
unit of Information
o Peripherals – Byte, Block, etc.
o CPU or Memory – Word
I/O data
Port A
register
Bidirectional Bus
data bus buffers I/O data
Port B
In register
te
CPU
Chip select
CS rn
I/O
Register select Control Control
RS1 al
Timing register
Register select
RS0 and b Device
I/O read Control u
RD s Status
I/O write Status
WR register
29
End chapter quizzes
a) Decode instruction
b) Moves the data
c) It is a logical unit
d) Used to save the data in register
a) ALU
b) Registers
c) Control Unit
d) System Bus
a) Synchronization
b) Transferring information
c) Managing memory
d) Process management
a) Auxiliary memory
b) Main memory
30
c) Associative memory
d) Cache memory
a) Memory location
b) Memory management
c) Memory address map
d) By assignment
a) 5 parts
b) 4 parts
c) 3 parts
d) 2 parts
a) RAM
b) ROM
c) CAD
d) CAM
a) Connect to CPU
b) Connect to Memory
c) Connect to Output Devices
d) Connect to ROM
ANSWERS
31