This is my code, and I get this compile error:
ERROR :near "initial": syntax error, unexpected initial
How do I fix this error?
module pract_wildcardequality();
logic [3:0] a,b;
function void wildcradd(a,b);
begin
if(a==?b)
$monitor ("a %d",a==?b);
else
$monitor ("a else %d",a==?b);
end
initial begin
wildcardd(4'b010x,
4'b0101);
end
//end
endmodule