4881Views5Replies

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.

5 Replies

user
purduecerBest Answer (author)2009-10-03

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

--Purduecer

Select as Best AnswerUndo Best Answer

user
endolith (author)2009-10-04

What specifically are you trying to do?

Select as Best AnswerUndo Best Answer

user
cdarcy (author)endolith2009-10-04

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

Select as Best AnswerUndo Best Answer

user
seandogue (author)2009-10-04

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

Select as Best AnswerUndo Best Answer

user
orksecurity (author)2009-10-03

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.

Select as Best AnswerUndo Best Answer