Div by zero should be an error, whether integer or real. What happens when I write this: integer a, res; a = 0; res = 5 + (1/a); 1/a is now "x" but then is converted/coerced to integer(?) for addition with 5. What is the result of that "conversion"? How do you make "x" an integer? Do you get an error because the simulator can't convert it to an integer? That's sort of indirect. -Geoffrey Kevin Cameron wrote: > > Not much you can do about integer division by zero. Presumably this will > have to be addressed in SV which supports 2-state types (where x cannot > be the result) - I can't remember it coming up. > > Kev.Received on Wed Dec 14 13:41:57 2005
This archive was generated by hypermail 2.1.8 : Wed Dec 14 2005 - 13:41:58 PST