| U = Uniop | single operand, input Y is ignored when U = 0 | |||
| L = Logic operation | Logic operation do not use carry input, input cin ignored when L = 0 | |||
| N = not | Complement input X when N = 1 | |||
| Inputs to miniALU | Function or operation | |||
| U | L | N | Sum | Cout (each Cout bit for Logic operations) |
| 0 | 0 | 0 | X | |
| 0 | 0 | 1 | not X | |
| 0 | 1 | 0 | X plus cin (same as increment) | |
| 0 | 1 | 1 | (not X) plus cin ( 2s complement if cin = 1 or 1s complement if cin=0) | |
| 1 | 0 | 0 | X xor Y | X and Y |
| 1 | 0 | 1 | (not X) xor Y | (not X) and Y |
| 1 | 1 | 0 | X plus Y plus cin | |
| 1 | 1 | 1 | (not X) plus Y plus cin | |
Feel free to email comments and suggestions to
acken@okstate.edu
Today is
![]()
![]()
![]()
![]()