EE 231
Prelab 5: Using Altera to Implement an Arithmetic Logic Unit

  1. Which ALU operations can affect the carry bit (consider A and B as unsigned numbers)?



    -Give an example of A and B for which the carry bit is set.




  2. Which ALU operations can affect the overflow bit (consider A and B as two's Complement numbers)?



    - Give an example of A and B for which the overflow bit is set




  3. Write a program in Altera to implement all the ALU functions using the CASE statement.