Hello!
I have a syntax error that was not popping up before.
// I am calling a task in the always block of a module w/ a as input and b as o/p from the task.
logic [3:0] b;
logic [7:0] a;
always @ (a) begin
grp_task (a,b);
end
task grp_task;
input [7:0] i1;
output [3:0] o1;
begin
o1 = (i1==2)? 'd4: (i1==4) ? 'd2 : 'dx;
end
endtask
I am getting this error as: Argument to inout/output/ref port must be an expression that is valid on the
left-hand side of a procedural assignment.
Any help is very much appreciated.
Thanks