hassanzia
Junior Member level 3
- Joined
- Nov 24, 2011
- Messages
- 30
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,506
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)