Edit code - EDA Playground
Warning! This exercise has been opened in another tab; autosave has been disabled. Close this tab or refresh to reactivate.

 Languages & Libraries

 Tools & Simulators

 Examples

205


15
 
1
//----------------------------------------------------------------------------------
2
//                      www.verificationguide.com
3
//----------------------------------------------------------------------------------
4
module argument_passing;
5
  int x,y,z;
6
  
7
  function void display(int x,string y);
8
    $display("\tValue of x = %0d, y = %0s",x,y);    
9
  endfunction
10
  
11
  initial begin
12
    display(.y("Hello World"),.x(2016));
13
  end
14
  
15
endmodule
xxxxxxxxxx
1
 
1
// Code your design here
2
1356 views and 0 likes     
A short description will be helpful for you to remember your playground's details
 
100:0