Confused about schCheck

Discussion in 'Cadence' started by Jake, Dec 10, 2007.

  1. Jake

    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
     
    Jake, Dec 10, 2007
    #1
  2. Jake

    andrewb Guest

    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.
     
    andrewb, Dec 10, 2007
    #2
  3. Jake

    Jake Guest

    Excellent as always, Andrew.

    Thanks,
    Jake
     
    Jake, Dec 11, 2007
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.