In order to do anything interesting, we need to be able to do more than simply shift data words from place to place. We need to be able to derive new values from the old. That is the role of the ALU. The ALU will provide several operations. Here is a partial list:
|
Bus0[n] input |
Bus1[n] input |
Accumulator[n] output |
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 1 | 1 |
| 1 | 0 | 0 |
|
Bus0[n] input |
Bus1[n] input |
Accumulator[n] output |
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 1 | 0 |
| 1 | 0 | 1 |
|
Bus0[n] input |
Bus1[n] input |
Accumulator[n] output |
| 0 | x | 1 |
| 1 | x | 1 |
Some of the operations listed above are also shown below.
|