We can interchange value with the help of non-blocking statements.
always @ (a or b)
begin
a = 1;
b = 2;
#10;
Verilog 
 | 
  
VHDL 
 | 
 
Verilog isn’t strongly typed language. 
 | 
  
VHDL is strongly typed language. 
 | 
 
Verilog is case sensitive language. 
 | 
  
VHDL is case insensitive language. 
 | 
 
Verilog is easy to learn comparatively VHDL. 
 | 
  
VHDL is hard to learn comparatively Verilog. 
 | 
 
Verilog has simple data types.  | 
  
VHDL allows creating more complex data types. 
 | 
 
Verilog has a lack of library management. 
 | 
  
VHDL has a very good library management. 
 | 
 
Function 
 | 
  
Task 
 | 
 
A Function must execute in one simulation time
  unit. 
 | 
  
A Task may execute in non-zero simulation time. 
 | 
 
A function can’t contain time-controlling event. 
 | 
  
A task can contain time-controlling event. 
 | 
 
A function can enable only function, not task. 
 | 
  
A task can enable function and task. 
 | 
 
A function must have at least one input argument. 
 | 
  
A task can have zero or more arguments of any
  type. 
 | 
 
A function returns a single value that is of bit
  or vector. 
 | 
  
A task doesn’t return a value. 
 | 
 
Sr. No. 
 |    
Name of the   Pin 
 |    
Direction 
 |    
Width 
 |    
Description 
 |   
1 
 |    
Clk 
 |    
Input 
 |    
1 
 |    
Clock Signal 
 |   
2 
 |    
Rst 
 |    
Input 
 |    
1 
 |    
Reset Signal 
 |   
3 
 |    
Req 
 |    
Input 
 |    
4 
 |    
4 Request   Signals 
 |   
4 
 |    
Grant 
 |    
Output 
 |    
4 
 |    
4 Grant Signals 
 |   
Sr. No. 
 |    
Name of the   Pin 
 |    
Direction 
 |    
Width 
 |    
Description 
 |   
1 
 |    
Nw_pa 
 |    
Output 
 |    
1 
 |    
News Paper   Signal 
 |   
2 
 |    
Coin 
 |    
Input 
 |    
2 
 |    
Only two   Coins, 
5 =2’b01 10 =2’b10 0 =2’b00  |   
3 
 |    
Clk 
 |    
Input 
 |    
1 
 |    
Clock Signal 
 |   
4 
 |    
Rst 
 |    
Input 
 |    
1 
 |    
Reset Signal 
 |