Is there a way to check if a real is +/- inf?
tmp=0;
tmp2=1.0/tmp;
$display("%e, %e",tmp,tmp2);
if(tmp2==????) begin
$display("INF");
end
what should do at the place of the question marks?
E.g. something like isinf() in C++.
tmp2==1.0/0.0 || tmp2==-1.0/0.0 does seem to work for the few cases I tried? Anything better?