(Mini-)ALU

The following circuit demonstrates how the register file can be used together with the adder and the status flag module for a simple ALU (Arithmetical-Logical-Unit):

Tasks

  • Create this circuit in CircuitVerse.

  • Familiarize yourself with how the circuit works. Try performing the following operations:

    • Write the bit pattern 1111 into register %0. The status flags should not be modified.

    • Write the bit pattern 0001 into register %1. The status flags should not be modified.

    • Add the contents of registers %0 and %1, simultaneously updating the status flags.

    • Subtract the content of register %1 from %0, simultaneously updating the status flags.