Week 5-2: Binary Arithmetic and Arithmetic Circuits Study Guide
Course Information and Learning Outcomes
CLO2: Understand number systems and convert numbers from one system to another to find equivalent values.
CLO3: Describe the functioning of various fundamental combinational and sequential components of digital circuits, writing truth tables and their corresponding Boolean equations.
CLO4: Solve Boolean equations for a given circuit using simplification techniques, specifically Boolean algebra and Karnaugh map (K-map) techniques.
CLO5: Use manufacturers' data sheets, application notes, and other sources of technical information to design digital circuits.
CLO6: Write truth tables for a given digital control problem to develop a Boolean equation that leads to a functional simplified digital circuit, and verify circuit functions by simulation models.
CLO7: Verify the functioning of various digital circuits by wiring on breadboards in the laboratory and by developing simulation models using Proteus software.
CLO8: Communicate the results and observations of laboratory work clearly using industry-standard terminology.
CLO10: Understand the basic concepts of microcontrollers and Field-Programmable Gate Arrays (FPGAs) to develop simple applications.
Fundamentals of Number Systems
Definition: Number systems are structured methods for representing numbers using a consistent, standardized set of symbols or digits. They serve as the foundational bedrock of mathematics and computing, providing the structure required for data processing and arithmetic computation.
Key Number Systems in Computing:
Decimal (Base ): Everyday counting system employing digits through .
Binary (Base ): Foundational computing system utilizing two digits, and , which directly correspond to the physical ON/OFF, HIGH/LOW, or TRUE/FALSE states of electronic switches in digital hardware.
Octal (Base ): Uses digits through ; primarily used to simplify binary representations by condensing three-bit groups ().
Hexadecimal (Base ): Uses digits through and letters through ; widely used in computing for memory addressing and condensing four-bit binary nibbles ().

Binary System Architecture and Positional Notation
Positional Weight Principle:
The binary system is a Base positional numeral system.
Integer column weights are positive powers of two that increase from right to left, starting with .
Fractional column weights are negative powers of two that decrease from left to right, starting immediately following the binary point with .
Integer Bit Positions and Column Weights:
Bit position (Least Significant Bit [LSB]):
Bit position :
Bit position :
Bit position :
Bit position :
Bit position (Most Significant Bit [MSB] in a 6-bit integer):
Fractional Bit Positions and Column Weights:
First position right of binary point:
Second position right of binary point:
Third position right of binary point:
Fourth position right of binary point:
Fifth position right of binary point:
Number System Conversions
Binary-to-Decimal Conversion Procedure:
Step 1: Multiply each bit by its corresponding positional column weight (), moving right-to-left for the integer portion and left-to-right for the fractional portion.
Step 2: Calculate the sum of all individual products to obtain the equivalent decimal quantity.
Binary-to-Decimal Worked Examples:
Example 1 (Integer): Convert the binary value to decimal:
Identify positional components: Bit , Bit , Bit .
Apply positional weights: .
Evaluate powers: .
Subscripts explicitly identify the radix (Base vs. Base ).
Example 2 (Fractional): Convert the binary value to decimal:
Integer expansion: .
Fractional expansion: .
Sum: .
Decimal-to-Binary Conversion Procedure (Repeated Division-by-2):
Step 1: Divide the integer decimal value by .
Step 2: Record the resulting integer quotient and record the remainder ( or ).
Step 3: Repeat division using the quotient until the quotient reaches .
Step 4: Read the recorded remainders in reverse order (from the final division step to the initial division step, corresponding to bottom-to-top / MSB-to-LSB).
Decimal-to-Binary Worked Examples:
Example 3: Convert decimal to binary:
Division 1: , Remainder = (LSB)
Division 2: , Remainder =
Division 3: , Remainder =
Division 4: , Remainder = (MSB)
Read sequence in reverse order: .

* **Example 4:** Convert decimal to binary:
* Division 1: , Remainder = (LSB)
* Division 2: , Remainder =
* Division 3: , Remainder =
* Division 4: , Remainder =
* Division 5: , Remainder =
* Division 6: , Remainder = (MSB)
* Read sequence in reverse order: .
Binary Addition and Overflow
Elementary Addition Rules:
(Sum = , Carry = )
(Sum = , Carry = )
(Sum = , Carry = )
(Sum = , Carry = )
Carry Bit Generation and Propagation:
A carry bit is produced whenever the sum in a bit column equals or exceeds the radix value ().
When adding , the result is ; a is recorded in the current sum column, and a carry of is propagated to the next higher-order column to the left.
When the carry is , recording it is optional; when the carry is , it must be explicitly included in the computation of the adjacent column.

Worked Binary Addition Examples:
Example 5 (4-bit binary addition): Add :
Bit 0: , Carry
Bit 1: , Carry
Bit 2: , Carry
Bit 3: , Carry
Final accumulated result:
Overflow in Digital Addition:
Definition: Overflow occurs when the numerical result of an arithmetic operation exceeds the fixed bit width or storage capacity of the destination register.
In a fixed -bit system, any carry generated out of the most significant bit () is classified as an overflow bit and cannot be accommodated within the allocated -bit word.
Example 6 (4-bit addition with overflow): Add :
Bit 0: , Carry
Bit 1: , Carry
Bit 2: , Carry
Bit 3: , Carry
The 4-bit storage register retains , while the fifth bit () represents an overflow condition (true total value is ).

Additional Practice Additions:
()
()
()
(, producing a 5-bit result)
Binary Subtraction and Borrow Mechanics
Elementary Subtraction Rules:
(Carry/Borrow = , Result = )
(Carry/Borrow = , Result = )
(Carry/Borrow = , Result = )
: Requires a borrow with carry from the next higher-order column.
Borrowing Procedure:
When subtracting a from a , a borrow of is pulled from the adjacent higher column to the left.
A borrow of from the adjacent column contributes a numeric weight of (, equivalent to two s) into the current column.
The current column operation becomes .
If the adjacent left column is , borrowing propagates leftward across intermediate zero-valued columns until a column containing a is reached.
Worked Binary Subtraction Examples:
Example 7: Subtract from ():
Bit 0 (rightmost): .
Bit 1: requires a borrow. Looking left, Bit 2 is , so borrowing propagates from Bit 3 ().
Borrow sequence: Bit 3 () becomes , lending to Bit 2. Bit 2 keeps a value of and lends () to Bit 1.
Bit 1 calculation: .
Bit 2 calculation: Leftover .
Bit 3 calculation: Leftover .
Final result: ().
Example 8: Solve ():
Bit 0: .
Bit 1: requires a borrow. Bit 2 () decrements to , lending to Bit 1.
Bit 1 calculation: .
Bit 2 calculation: Leftover .
Bit 3 calculation: .
Final result: ().
Logic Gates in Digital Arithmetic
Arithmetic Circuits: Hardware sub-systems constructed from logic gates designed to compute fundamental binary arithmetic functions (addition and subtraction).
AND Gate:
Function: Outputs HIGH () if and only if all input lines are HIGH ().
Boolean Equation:
Truth Table:
OR Gate:
Function: Outputs HIGH () when at least one input line is HIGH ().
Boolean Equation:
Truth Table:
XOR (Exclusive-OR) Gate:
Function: Outputs HIGH () if one input is HIGH and the other is LOW (inputs are distinct).
Boolean Equation:
Truth Table:
Half Adder Architecture and Design
Definition: A combinational circuit that adds two single-bit binary inputs ( and ) and produces two outputs: a sum bit () and a carry-out bit (). It lacks the hardware capability to accept a carry-in from a preceding stage.
Component Architecture:
An XOR gate generates the sum: .
An AND gate generates the carry-out: .
Truth Table:
Input , Input ,
Input , Input ,
Input , Input ,
Input , Input ,

Full Adder Architecture and Design
Definition: A combinational circuit that adds three single-bit inputs—two operand bits (, ) and a carry-in bit ()—producing two outputs: a sum () and a carry-out (). Full adders enable multi-bit addition by propagating carries across bit columns.
Counting Property: The combined 2-bit binary output directly represents the total count of s present on the three input lines ():
Zero inputs at : ()
One input at : ()
Two inputs at : ()
Three inputs at : ()
Truth Table:
Boolean Equations (from K-maps):
Dual Half-Adder Implementation:
Half Adder 1: Adds inputs and , generating an intermediate sum and an intermediate carry .
Half Adder 2: Adds the carry-in to the intermediate sum , producing the final sum and a second intermediate carry .
OR Gate: Combines the two intermediate carry outputs ( and ) to form the final carry-out: .


Multi-Bit Parallel Adders and Propagation Delay
Multi-Bit Parallel Adder Structure:
Constructed by cascading multiple full adders in parallel, linking each stage's carry-out to the carry-in of the next stage.
Stage 0 (LSB): Because there is no carry-in from a prior stage, Bit 0 can be implemented with a Half Adder or a Full Adder with .
Subsequent Stages: Stage 1 receives as ; Stage 2 receives as ; Stage 3 receives as .
Propagation Delay Limits:
Carry propagation requires each bit stage to wait for the carry bit to be evaluated by preceding stages.
The cumulative delay accumulates linearly () as bit width increases, creating a practical limit on the number of stages that can be cascaded in high-speed hardware.
Example 9 (Comprehensive 4-bit addition walkthrough): Add () and ():
Bit 0 (LSB): Inputs: ; Outputs:
Bit 1: Inputs: ; Outputs:
Bit 2: Inputs: ; Outputs:
Bit 3 (MSB): Inputs: ; Outputs:
Results Summary:
Stored 4-bit sum (): ()
Carry-out from MSB (Bit 3): (indicates register overflow)
True 5-bit arithmetic result: ()