Skip to main content

Simulating the Project

  1. Go to the Simulate tab and select Dynamic Simulation.

  2. The automatically generated code will be loaded for simulation.

  3. Click Run to execute:

  • Use the interactive menu to change the input values (x, y) and observe the outputs.

  • Control Signals: Configure the signals (zx, nx, zy, ny, f, no) according to the desired operation. For example:

    • Addition: zx=0, nx=0, zy=0, ny=0, f=1, no=0.

    • Subtraction: zx=0, nx=0, zy=0, ny=1, f=1, no=0 (this configuration inverts the value of y before addition).

    • AND: zx=0, nx=0, zy=0, ny=0, f=0, no=0.

    • OR: zx=0, nx=0, zy=0, ny=0, f=0, no=1 (this configuration inverts the result of an AND to achieve OR).