Skip to main content

Using AI to Create the ALU

Let’s create your project using the help from AI, follow these steps:

Create a 16-bit ALU in Verilog with inputs x, y (constant values) and control signals (zx, nx, zy, ny, f, no) to zero/invert the operands and select between AND, OR, addition, and subtraction, using a case block to define the operations. The output should reflect the result adjusted by the no signal. Include a top module that instantiates the ALU.