Computer Organization and Architecture
Computer Organization and Architecture
Architecture
Introduction to computer System and
its sub modules
1) Fixed-point representation
2) Floating-point representation
Fixed-point representation:
Numbers are often normalized, such that the decimal point is placed to
the right of the first non zero digit.
01011100
10100011
11111111
By adding 1 to the result, it is 0
01011100
10100100
100000000
Arithmetic & Logical Unit
Consider an ALU which can perform four arithmetic
operations and four logical operations To distinguish
between arithmetic and logical operation, we may use a
signal line,
0 - in that signal, represents an arithmetic operation and
1 - in that signal, represents a logical operation.
Memory
1. Concept of Memory.
2. Cache Memory.
3. Memory Management
4. Virtual memory
DRAM SRAM
SRAM & DRAM both are volatile
The faster memory that is inserted between CPU and Main Memory is termed
as Cache memory.
Memory Management
In an Uni-programming system, main memory is divided into two parts :
one part for the operating system and the other part for the program
currently being executed.
Partitioning
1) Fixed size partitions
2) Variable size partitions
Paging
The memory is partitioned into equal fixed size chunks that are
relatively small. This chunk of memory is known as frames or page
frames.
Each process is also divided into small fixed chunks of same size.
The chunks of a program is known as pages.
At a given point of time some of the frames in memory are in use and
some are free. The list of free frame is maintained by the operating
system.
Virtual Memory
The virtual address space is used to develop a process. The special
hardware unit , called Memory Management Unit (MMU) translates
virtual address to physical address. When the desired data is in the main
memory, the CPU can work with these data. If the data are not in the
main memory, the MMU causes the operating system to bring into the
memory from the disk.
Control Unit
Hardwired Control :
Microprogrammed Control :
Hardwired Control : In this hardwired control techniques, the control
signals are generated by means of hardwired circuit. The main objective
of control unit is to generate the control signal in proper sequence.
Eg: Programmable Logic Array
Microprogrammed Control
There is an alternative approach by which the control signals
required inside the CPU can be generated . This alternative
approach is known as microprogrammed control unit.
1. Data Processing:
2. Data Storage:
3. Data Movement:
4. Control:
Types of Operands
1. Addresses:
2. Numbers:
3. Characters:
4. Logical Data:
Types of Operations
Data Transfer
Arithmetic
Logical
Conversion
Input Output [ I/O ]
System Control
Transfer Control
A. Data Transfer
Move (Transfer) --------Transfer word or block from source to destination
Branch
Skip
Procedure call.
BRP X ----Branch to location X if result is positive
BRN X ---- Branch to location X if result is negative
BRZ X----- Branch to location X is result is zero
BRO X----- Branch to location X if overflow occurs
Jump (branch) Unconditional transfer, load PC with specific
address
Jump conditional Test specific condition; either load PC with
specific address or do nothing, based on condition