Guest
For simulation, I'm used to initializing regs as I declare them in a
module:
reg [7:0] cnt = 0;
reg reset = 1;
Is it legal to do a similar shortcut in a task?
task foo;
input [31:0] data;
output [31:0] o_data;
reg mode = 0;
begin
....
end
endtask
Thanks!
John P
module:
reg [7:0] cnt = 0;
reg reset = 1;
Is it legal to do a similar shortcut in a task?
task foo;
input [31:0] data;
output [31:0] o_data;
reg mode = 0;
begin
....
end
endtask
Thanks!
John P