
The error statement is used display error messages on the standard error output of the UNIX command used to invoke the simulator. Its format is identical to that of the message statement, except the file number is omitted. The following is an example.
if (a*b)!=result
error "Invalid product. %d*%d SB %d, received %d",a,b,a*b,result
endif
As in the message statement, the error message will appear on a separate line in the standard error output.
In the Windows version, the error message will appear in the Messages Window.