CSC 321
CSC 321
The following image shows the block diagram that depicts the transfer of
data from R1 to R2.
Here, the letter 'n' indicates the number of bits for the register. The 'n'
outputs of the register R1 are connected to the 'n' inputs of register R2.
A load input is activated by the control variable 'P' which is transferred to the
register R2.
Control Unit(CU) - A control unit (CU) handles all processor control signals. It
directs all input and output flow, fetches code for instructions, and controls how
data moves around the system.
Arithmetic and Logic Unit(ALU): The arithmetic logic unit is that part of the
CPU that handles all the calculations the CPU may need, e.g. Addition,
Subtraction, Comparisons. It performs Logical Operations, Bit Shifting
Operations, and Arithmetic operations.
Registers: Registers refer to high-speed storage areas in the CPU. The data
processed by the CPU are fetched from the registers. There are different
types of registers used in architecture :-
Following is the list of registers that plays a crucial role in data processing…
1. Accumulator: Stores the results of calculations made by ALU. It holds
the intermediate results of arithmetic and logical operatoins.It act as a
temporary storage location or device.
2. Program Counter (PC): Keeps track of the memory location of the next
instructions to be dealt with. The PC then passes this next address to the
Memory Address Register (MAR).
Buses
Buses are the means by which information is shared between the registers in a multiple-
register configuration system.
Data is transmitted from one part of a computer to another, connecting all major
internal components to the CPU and memory, by the means of Buses. Types:
1. Data Bus: It carries data among the memory unit, the I/O devices, and
the processor.
2. Address Bus: It carries the address of data (not the actual data)
between memory and processor.
3. Control Bus: It carries control commands from the CPU (and status
signals from other devices) in order to control and coordinate all the
activities within the computer.
Memory Unit
A memory unit is a collection of storage cells together with associated circuits needed to
transfer information in and out of the storage. The memory stores binary information in
groups of bits called words. The internal structure of a memory unit is specified by the
number of words it contains and the number of bits in each word.
Memory Transfer
Most of the standard notations used for specifying operations on memory transfer are
stated below.
o The transfer of information from a memory unit to the user end is called a Read operation.
o The transfer of new information to be stored in the memory is called a Write operation.
1. Read: DR ← M [AR]
o The Read statement causes a transfer of information into the data register (DR)
from the memory word (M) selected by the address register (AR).
o And the corresponding write operation can be stated as:
2. Write: M [AR] ← R1
o The Write statement causes a transfer of information from register R1 into the
memory word (M) selected by address register (AR).
Speed: Read operations are generally faster than write operations since the data
is already stored in the memory.
Efficiency: Read operations are more efficient since they do not require
modifying the data in memory.
Non-destructive: Read operations do not modify the data in memory, so they
can be performed repeatedly without affecting the stored data.
Disadvantages of Read Operations:
Limited functionality: Read operations only retrieve data from memory, so they
cannot be used to modify the data.
Security risks: Read operations can be used to access sensitive data stored in
memory, making them a potential security risk.
Flexibility: Write operations allow data to be modified, making them useful for
storing and updating information in memory.
Dynamic: Write operations allow data to be changed in real-time, making them
essential for many computing applications.
Customization: Write operations allow users to customize and personalize their
computing experience by modifying stored data.
Slower: Write operations are generally slower than read operations since the
data needs to be modified and then written back to memory.
Overwriting risk: Write operations can overwrite existing data in memory,
leading to data loss or corruption.
Wear and Tear: Repeated write operations can cause wear and tear on memory
cells, leading to reduced reliability and lifespan.
Micro-Operations
Microoperations, also known as micro-operations or micro-ops, are the fundamental and
elementary operations performed by the control unit of a microprocessor as part of the
execution of a machine-level instruction. These operations are at a very low level of abstraction
and involve the manipulation of data within the CPU's registers, memory, and data paths.
1. Micro-operations that move binary data from one register to another are known as register transfers.
Arithmetic micro-operation
The Arithmetic Micro-operations deals with the operations performed on numeric data stored
in the registers. Arithmetic microoperations typically involve the use of the arithmetic logic unit
(ALU), a component of the CPU responsible for performing arithmetic and logical operations.
1. Addition
2. Subtraction
3. Increment
4. Decrement
5. Shift