Confused about schCheck

J

Jake

Guest
Hi,

I'm a little bit confused about the return value of the function
schCheck. If I run the function from the CIW, I get a list of
specific warnings, along with the actual value of the function, which
is a list whose first element is the number of errors and whose second
element is the number of warnings. However, if I specify an output
port and ask to print the output of a function to that output port, I
get only the return value of the function (which is actually what I
would expect). How do I get it to actually print those warnings and
errors to an external file?

Thanks,
Jake
 
On Mon, 10 Dec 2007 10:38:42 -0800 (PST), Jake <wegman.jake@gmail.com>
wrote:

Hi,

I'm a little bit confused about the return value of the function
schCheck. If I run the function from the CIW, I get a list of
specific warnings, along with the actual value of the function, which
is a list whose first element is the number of errors and whose second
element is the number of warnings. However, if I specify an output
port and ask to print the output of a function to that output port, I
get only the return value of the function (which is actually what I
would expect). How do I get it to actually print those warnings and
errors to an external file?

Thanks,
Jake
You can either interrogate the markers on the schematic after the
check, or a simple thing to do would be this:

procedure(abCheck(cv file)
let((rpt rtnVal)
rpt=outfile(file)
unless(rpt error("Could not open report file %L" file))
rtnVal=let(((poport rpt))
schCheck(cv)
)
close(rpt)
rtnVal
))

This will redirect the output during schCheck to the specified file.
This is achieved by dynamic scoping of the poport variable - done
carefully so that even if there's an error during the call to
schCheck, the unwinding stack will restore the original value of
poport.

Regards,

Andrew.
 

Welcome to EDABoard.com

Sponsor

Back
Top