I am tring to figure out how I can have some sort of module that can create the following scenario:
The module has two inputs and one output. One of the inputs is "select". If select is high, then the output of the module is always low. If select is low, then the output of the module will equal the state of the other input.
Here is the truth table for my desired module:
Here is the circuit I am trying to achieve this outcome with:
Subtract is the "select" input and each of the "overflow" inputs are the 2nd inputs. Therefore I need 3 of my desired modules where each of the XOR gates are. The XOR gates achieve what I want when "overflow" is high, but not when it is low.
I'm sure this is relatively easy to achieve but I just can't seem to think straight at the moment. I think that some type of flip-flop would be my best bet.
~SELECT & INPUT
. Assuming you're re-using the same select line for all three instances, you need one inverter and three AND gates. \$\endgroup\$