CS302 Assignment2 Solution
CS302 Assignment2 Solution
Assignment # 02 - Solution
Question 01
Solution:
1. NOT Gate:
Function: Inverts the input signal.
Usage: Each complemented variable in the SOP expression (e.g., ¬A, ¬C) is
generated using a NOT gate.
2. AND Gate:
Function: Produces an output of 1 only when all its inputs are 1.
Usage: Combines variables and their complements to form product terms (e.g.,
¬A·B·¬C·D).
3. OR Gate:
Function: Produces an output of 1 if at least one input is 1.
Usage: Combines all product terms to form the SOP expression.
Boolean Expression
The circuit implements the following SOP (Sum of Products):
F(A, B, C, D) = ¬A·B·¬C·D + A·B·¬C·¬D + A·¬B·C·D
ABEL Expression
Using ABEL syntax:
`!` represents NOT.
`&` represents AND.
`#` represents OR.
Summary
Each term in the SOP corresponds to an AND gate.
Complements (e.g., ¬A, ¬C) are produced using NOT gates.
The OR gate combines the outputs of all AND gates to produce the final output.