Assignment No. 2
Assignment No. 2
fundamental concepts of computer architecture. It was introduced by Albert Paul Malvino in his book
"Digital Computer Electronics." The SAP-1 computer has a simple architecture with basic components.
Here's a brief overview of its main components:
1. Accumulator (AC):
Function: The accumulator is the primary register for performing arithmetic and logic operations. It
temporarily holds data during processing.
Function: The instruction register holds the current instruction being executed. It decodes the instruction
to determine the operation to be performed.
Function: The memory address register holds the address of the memory location from which data is to
be read or to which data is to be written.
Function: The memory buffer register holds data either read from or written to the memory. It serves as
a temporary storage for data in transit between the memory and other components.
5. Instruction Decoder:
Function: The instruction decoder interprets the opcode (operation code) of the instruction stored in the
instruction register, determining the specific operation to be performed.
Function: The ALU is responsible for performing arithmetic and logic operations, such as addition,
subtraction, AND, OR, etc., on data stored in the accumulator and other registers.
Function: The output register holds the result of an operation or data to be output. It is used to
temporarily store the data before it is sent to an output device.
Function: The input registers store data from input devices before it is processed by the computer. In the
SAP-1 architecture, there are two input registers (IR1 and IR2) to handle two inputs simultaneously.
Discussion:
Input Unit: Data is entered into the system through input devices and is temporarily stored in the input
registers (IR1 and IR2).
Memory: The memory unit stores both data and instructions. The Memory Address Register (MAR) holds
the address of the memory location, and the Memory Buffer Register (MBR) holds the data being read
from or written to memory.
Arithmetic and Logic Unit (ALU): Performs arithmetic and logic operations based on the instructions. It
takes input from the accumulator and the input registers.
Accumulator (AC): Temporarily stores data during processing. The result of arithmetic and logic
operations is usually stored here.
Output Unit: The output register (OR) holds the data to be output, and the result is sent to output
devices.
Control Unit: Controls the flow of data between different registers and components. The Instruction
Register (IR) and the Instruction Decoder play a crucial role in executing instructions.