1. Engineering
  2. Electrical Engineering
  3. exercise 23 sv parameterized alu an alu has the following...

Question: exercise 23 sv parameterized alu an alu has the following...

Question details
  1. Exercise 2.3 (SV): Parameterized ALU. An ALU has the following functions: add, and, or, and xor. These are selected by a 2-bit input fn. The encoding of fn is 0-3 with the above order. The ALU has a carry in (cIn) and a carry out (cOut). Scalar outputs N, Z, and V indicate when the ALU’s output is negative (twos compliment), zero, or there is a two’s compliment overflow. The two inputs are a and b, and the output is result. Write and test the module using enumerations and a width parameter.
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution