Sr. No. 
 |    
Name of the Pin 
 |    
Direction 
 |    
Width 
 |    
Description 
 |   
1 
 |    
a 
 |    
Input 
 |    
8 
 |    
Data Input 
 |   
2 
 |    
b 
 |    
Input 
 |    
8 
 |    
Data Input 
 |   
3 
 |    
opcode 
 |    
Input 
 |    
4 
 |    
Control Logic for different operation 
 |   
4 
 |    
Op 
 |    
Output 
 |    
8 
 |    
Output 
 |   
There are total three inputs and one output signals. Two inputs a and b are input signals on which operation is going to be performed according to opcode input. a and b are 8 bit wide. opcode is 4 bit wide, so we can do sixteen different operations. The design code is given below. This is simple ALU.