arguments of type inout in task

V

vinoth

Guest
Hi ,

If i have inout arguments in a task, how do i pass values to them.
can anyone suggest me a solution
 
On Feb 18, 10:40 am, "vinoth" <jesuraj.vin...@gmail.com> wrote:
Hi ,

If i have inout arguments in a task, how do i pass values to them.
can anyone suggest me a solution
Use register to communicate with these tasks:


task read_serial;
inout [31:0] my_data;
....
endtask

reg [31:0] data;
data = 32'h AAAA_BBBB; //data_in
read_serial(data);
$display ("data_out = %h", data);


-Alex
 

Welcome to EDABoard.com

Sponsor

Back
Top