Design the ALU of the TinyMicro. The ALU has two operands,
a and b, and one result c. The
operation of the ALU is determined by the 2-bit control signals
Op as follows:
Op=00,
.
Op=01,
.
Op=10,
.
Op=11,
.
Design a parametrized -bit ALU with a default value of .
module ALU(a, b, Op, c);
parameter N=8;
input [N-1:0] a, b;
input [1:0] Op;
output [N-1:0] c;a and b are the two input
operands.
Op indicates the type of operation.
c is the result of the operation.