A simple ALU#

Source

Exercise 152

What is an arithmetic logic unit?

Learning Goals#

  • Understand how ALUs function

  • Be able to describe a simple ALU in Verilog

Background#

Arithmetic Logic Unit (ALU)#

Source

Exercise 153

An ALU is controlled by some control signals.

  1. How are these control signals called?

  2. What do these control signals consist of?

  3. Where do these control signals come from?

Exercise 154

Imagine you have an 8 bit ALU with following operations:

Opcode

Operation

0

No operation

1

Add

2

Subtract

3

Increment

4

Bitwise Inverse

5

Bitwise XOR

6

Bitwise OR

7

Bitwise AND

  1. Design the bit slice circuits for this ALU.

  2. How would the behavioral design for the operations look like?

Requirements#

TODO