UNIT 4- Computer Arithmetic
UNIT 4- Computer Arithmetic
Binary Adder:
Binary adders are circuit which adds two binary numbers and results in the sum of the two
binary numbers. (GeeksforGeeks, 2024)
Binary Subtractor:
This can be achieved by using a combination of full adders and inverters. By inverting the
bits of the number to be subtracted and adding one, we can use the adder to perform
subtraction
Binary Multiplier:
This can be implemented using the shift-and-add method. we use a series of AND gates and
adders.
Multiply each bit of the multiplicand with each bit of the multiplier.
Shift the partial products and add them together using the binary adder.
Binary Divider:
Design: this is achieved by ontinuously subtracting the divisor from the dividend.
If the result is negative, restore the dividend and shift the divisor right.
If the result is positive, record a 1 in the quotient and shift the divisor right.
It would fetch instructions, decode them, and direct the flow of data between the
modules.
Registers: Utilize registers to store operands, intermediate results, and the final result.
Control Unit: The control unit would generate the necessary control signals to
activate the appropriate modules (adder, subtractor, multiplier, divider) based on the
instruction.
Data Path:
o Establish a clear data path between the registers, the CPU, and the arithmetic
logic units (ALUs) (containing the adder, subtractor, multiplier, and divider).
Typically, the ALU has direct input and output access to the processor
controller, main memory. (Hanna, 2021)
o This path allows for the efficient transfer of data between components.
Advantages:
o Simplicity: Binary uses only two digits (0 and 1), making it easy to implement
in electronic circuits.
o Reliability: Less prone to noise and errors compared to analog systems.
o Efficiency: Binary logic gates are simple and fast.
o Versatility: Can be used for a wide range of applications, from simple
calculations to complex computations in computers.
Challenges:
o Longer Representation: Binary numbers can be longer than their decimal
equivalents for the same value, potentially requiring more storage space.
o Human Readability: Binary numbers can be difficult for humans to read and
understand directly.
Key Considerations:
Hardware Design: The implementation entails the design and assembly of required
hardware components such as logic gates, registers, etc. using technologies like Very
Large-Scale Integration (VLSI).
References:
1. GeeksforGeeks. (2024, April 26). Binary Adder with Logic Gates. GeeksforGeeks.
https://www.geeksforgeeks.org/binary-adder-with-logic-gates/
https://www.techtarget.com/whatis/definition/arithmetic-logic-unit-ALU
1.