Professional Documents
Culture Documents
Computer Organization: Lec #11: ALU Bnar Mustafa
Computer Organization: Lec #11: ALU Bnar Mustafa
Bnar Mustafa
bnar.mustafa8@gmail.com
Spring 2021
Part 1: https://youtu.be/YNWaH8oDKsk
Part 2: https://youtu.be/LN1aiPu6i4Q
Part 3: https://youtu.be/9peL4EM-HNI
• The control unit supplies the data required by the ALU from
memory, or from input devices, and directs the ALU to perform a
specific operation based on the instruction fetched from the
memory. ALU is the ―calculator‖ portion of the computer.
• The binary point (.) is also not stored; it is always found in the same
place – immediately after the first bit.
The Sign
• The sign of a binary floating-point number is represented by a
single bit. A 1 bit indicates a negative number, and a 0 bit
indicates a positive number.
Note :in (fraction)The left hand side 0 bit denote positive sign while right
hand side 0 bit to complete the 8-bit size .
the binary point of the fraction follows the sign bit but is not shown in
the register.
Addition
• Addition is similar to decimal arithmetic. The addition of two binary
number 1 and 1 is 10, where we consider 0 and carry forward 1 to
next high order.
• For example, 1 + 1 + 1 = 3 in base 10 and 1 + 1 + 1 = 11 in binary
number system.
Rules:
0+0=0
0+1=1
1+0=1
1 + 1 = 10 (which is 0 carry 1)
Example:
1011
(+) 1 0 1
——————
1 0000
• 0100010 – 0001010
• 1 + 11
• 1010 + 11
• 100101 + 10101