This is a simple ALU. Four variables are used:
* c and d are inputs
* a b define the functions (o1,o2) as follows:
0 0 -> inputs are propagated to o1,o2
0 1 -> o2 is the OR of the inputs
1 0 -> o2 is the AND of the inputs
1 1 -> output is the sum of the inputs
|