I have the following truth table (a and b being my inputs and r the result):
a | b | r |
---|---|---|
00 | 00 | 00 |
00 | 01 | 01 |
00 | 11 | 01 |
01 | 00 | 01 |
01 | 01 | 01 |
01 | 11 | 01 |
11 | 00 | 01 |
11 | 01 | 01 |
11 | 11 | 11 |
The issue is that I can't find the boolean expression to express this truth table. Another similar thread pointed out that karnaugh maps could solve it, but I can't find any implementation working with several bits inputs.
Note that to my model, the second bit doesn't matter is the first one is set for a specific input, thus if it facilitates the boolean expression, I can force it to 0, to 1, or not even force it.
Truth Table (given):
Kmaps:
Boolean Expressions: