hassanzia
Junior Member level 3

HI all.
Is it possible to pass a RAM as an argument in a verilog task. Also can a task return a value as a RAM?
for example is the following code acceptable?
PS can a task return a value (like a C++ function)
Is it possible to pass a RAM as an argument in a verilog task. Also can a task return a value as a RAM?
for example is the following code acceptable?
Code:
task xyz();
input [7:0] reg_in [0:3];
output [7:0] reg_out [0:3];
endtask
PS can a task return a value (like a C++ function)