Gil John F.

asked • 12/07/14

I have a problem in dealing with what logic gates to be used when you apply the if and else if statement in logic circuits.

I have a problem in dealing with what logic gates to be used when you apply the if and else if statement in logic circuits. Assuming there are three inputs, INPUT A, INPUT B and INPUT Condition and on OUTPUT Z, If input Condition == 0 the output must be INPUT A else if input Condition == 1 the output must be INPUT B. The problem is that INPUT A and INPUT B have different logic values so I can't derive a equation from truth table. A help is really much appriciated. Thank you!

I tried reviewing all logic gates, comparator, multiplexer, decoder, encoder but I just don't know how to output the input A or input B depending on the condition.

1 Expert Answer

By:

Americo M. answered • 08/03/22

Tutor
4.9 (147)

Computer Engineering, AI & Robotics | Mentor of Students Now at NVIDIA

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.