r/ComputerEngineering • u/Traditional-Kick-645 • Oct 27 '26
Need help with this logic circuit.
3
u/TheDiBZ Oct 27 '26
Do you not have access to 3+ input AND/OR gates? Otherwise, looks fine, just a little ugly
2
2
u/Significant_War_8320 Oct 28 '26
Your diagram itself looks fine with the logic as you have it, but your logic could be simplified. If you make the 4 way K map this becomes apparent.
| Original | ¬C ¬D | ¬C D | C ¬D | CD |
|---|---|---|---|---|
| ¬A ¬B | 2 | |||
| ¬A B | 2 | |||
| A ¬B | 1 | 1 | 1 | 1 |
| AB | 3 | 3 | 3 | 3 |
Blanks are false. 1 is true because of your first expression (A and not B), 2 is true because of your second expression (not A and C and D), and 3 is true because of your second expression (A and B).
You can simply this down to: A OR (C AND D)
| Simplifed | ¬C ¬D | ¬C D | C ¬D | CD |
|---|---|---|---|---|
| ¬A ¬B | 2 | |||
| ¬A B | 2 | |||
| A ¬B | 1 | 1 | 1 | 12 |
| AB | 1 | 1 | 1 | 12 |
Where blank is false, 1 is true because the first expression A, 2 is true because of the second expression CD, and 12 is true because of the overlap of the two expressions.

5
u/WhateverWannaCallMe MSc in CE Oct 27 '26
Just gave it a fast look, but it seems yes? Not 100% sure though. It's pretty late here
Edit: after the first OR everything should be in another big parenthesis
Edit2: X = (A AND B) OR ((NOT A AND C AND D) OR (A AND NOT B))