5035Views5Replies

Author Options:

What do i use for an "if then else" gate? Transistor logic instrucions would be best but anything that works is fine. Answered

What do i use for an "if then else" gate? Transistor logic instrucions would be best but anything that works is fine.

Discussions

0
None
purduecer

Best Answer 8 years ago

Try researching a device called a multiplexer, that should tell you much.

--Purduecer

0
None
endolith

8 years ago

What specifically are you trying to do?

0
None
cdarcyendolith

Answer 8 years ago

binary calculator out of an iphone box, i have rest of logic worked out. uses LEDs and 7 buttons (1,0,x,+,-,/).

0
None
seandogue

8 years ago

AND gate followed by an inverter (octal, nand, whatever). Trivial boolean logic.

0
None
orksecurity

8 years ago

I presume that by if-then-else you mean ((a and b) or ((not a) and c)), so the output is either b or c depending on the state of A. So if you want to do it as TTL gates, that's two ands, an or, and an inverter. Of course you can apply boolean-logic equivalencies to express the same thing other ways. Or you can go looking for a chip which directly implements that input-selection logic. They do exist, though they tend to be used where you're switching two complete busses or where there are more than two inputs and the selection input is more than one bit wide.