J
Jay Bhadra
Guest
Let's say I have a single module defining an array and a function
reg[2:0] mem[2:0];
....
function [7:0] f(ip, v)
....
mem[ip] = v;
....
endfunction
Is it going to be a problem if I am going to call function f from
parallel always blocks, as it can update the same location multiple
times? What about a task?
If that's a problem, then what would be a solution to this?
reg[2:0] mem[2:0];
....
function [7:0] f(ip, v)
....
mem[ip] = v;
....
endfunction
Is it going to be a problem if I am going to call function f from
parallel always blocks, as it can update the same location multiple
times? What about a task?
If that's a problem, then what would be a solution to this?