as a hobby I'm working on a ternary computer, using very basic building block.
in order to implement an half adder, I need a very basic component/circuit, that take the following input voltage, [-2,-1,0,1,2] and outputs this voltage [-1,0,0,0,1].
I don't want something that return -0.5 volts if given -1v, it has to be close to 0v.
does anyone know of any basic component that does this?
Input | output ============== -2 | -1 -1 | 0 0 | 0 1 | 0 2 | 1 