find the syntax error and output in verilog code

 function guess;

input [7:0] a,b;

if

(a>b)

#10;

guess=a;

else

#10;

guess=b;

endfunction




output or syntax error:- inside the function we cannot use delay.




Comments

Popular posts from this blog