Exercise 1 Verilog Design of a 32-bit ALU

32-bit ALU

ALUOp 
Function
Result
000
and
A and B
001
or
A or B
010
add
A + B
110
subtract
A - B
111
set on less than
A<B?1:0
             

Working steps for Verilog Design of a 32-bit ALU

  1. Create library You can store all of your designs in this library later.

  2. Create module for 32-bit ALU

  3. Simulation

  4. The simulation table.

  5. An example of the simulation result of ALU.